Low UDP iperf throughput
Posted: Mon May 13, 2019 7:47 pm
Hi all,
I'm running the esp-idf iperf example [0] and the maximum UDP throughput is ~1.05Mbits/sec, but according to the docs [1] it should be ~30Mbits/sec.
Is really 30Mbits/sec the expected throughput on this scenario?
Target hardware:
* ESP32 Core Board V2.
Test setup:
* testing on esp-idf tag v3.2 [2] and commit 05838641 [3], as suggested in [1]. Same results on both versions.
* using config examples/wifi/iperf/sdkconfig.defaults.99 [4] as suggested here [1].
* testing using ESP32 in AP and STA modes. Same results on both versions.
Test log:
* ESP32 (iperf server):
*Linux host (iperf client):
Thanks in advance,
Ariel
[0]: https://github.com/espressif/esp-idf/tr ... wifi/iperf
[1]: https://docs.espressif.com/projects/esp ... throughput
[2]: https://github.com/espressif/esp-idf/releases/tag/v3.2
[3]: https://github.com/espressif/esp-idf/commit/05838641
[4]: https://github.com/espressif/esp-idf/bl ... efaults.99
I'm running the esp-idf iperf example [0] and the maximum UDP throughput is ~1.05Mbits/sec, but according to the docs [1] it should be ~30Mbits/sec.
Is really 30Mbits/sec the expected throughput on this scenario?
Target hardware:
* ESP32 Core Board V2.
Test setup:
* testing on esp-idf tag v3.2 [2] and commit 05838641 [3], as suggested in [1]. Same results on both versions.
* using config examples/wifi/iperf/sdkconfig.defaults.99 [4] as suggested here [1].
* testing using ESP32 in AP and STA modes. Same results on both versions.
Test log:
* ESP32 (iperf server):
Code: Untitled.bsh Select all
esp32> iperf -s -u -i 1 -t 10
I (847313) cmd_wifi: mode=udp-server sip=192.168.1.105:5001, dip=0.0.0.0:5001, interval=1, time=10
I (847326) iperf: want recv=16384
Interval Bandwidth
0- 1 sec 0.62 Mbits/sec
1- 2 sec 1.05 Mbits/sec
2- 3 sec 1.05 Mbits/sec
3- 4 sec 1.06 Mbits/sec
4- 5 sec 1.05 Mbits/sec
5- 6 sec 1.05 Mbits/sec
6- 7 sec 1.05 Mbits/sec
7- 8 sec 1.02 Mbits/sec
8- 9 sec 1.07 Mbits/sec
9- 10 sec 1.06 Mbits/sec
0- 10 sec 1.01 Mbits/sec
I (857338) iperf: iperf exit
esp32>
Code: Untitled.bsh Select all
$ iperf -c 192.168.1.105 -i 1 -t 10 -u -e
------------------------------------------------------------
Client connecting to 192.168.1.105, UDP port 5001 with pid 13039
Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust)
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.0.101 port 34857 connected with 192.168.1.105 port 5001
[ ID] Interval Transfer Bandwidth Write/Err PPS
[ 3] 0.0000-1.0000 sec 131 KBytes 1.07 Mbits/sec 91/0 90 pps
[ 3] 1.0000-2.0000 sec 128 KBytes 1.05 Mbits/sec 89/0 89 pps
[ 3] 2.0000-3.0000 sec 128 KBytes 1.05 Mbits/sec 89/0 89 pps
[ 3] 3.0000-4.0000 sec 128 KBytes 1.05 Mbits/sec 89/0 89 pps
[ 3] 4.0000-5.0000 sec 128 KBytes 1.05 Mbits/sec 89/0 89 pps
[ 3] 5.0000-6.0000 sec 128 KBytes 1.05 Mbits/sec 89/0 89 pps
[ 3] 6.0000-7.0000 sec 129 KBytes 1.06 Mbits/sec 90/0 89 pps
[ 3] 7.0000-8.0000 sec 128 KBytes 1.05 Mbits/sec 89/0 89 pps
[ 3] 8.0000-9.0000 sec 128 KBytes 1.05 Mbits/sec 89/0 89 pps
read failed: Connection refused
[ 3] WARNING: did not receive ack of last datagram after 2 tries.
[ 3] 0.0000-10.0041 sec 1.25 MBytes 1.05 Mbits/sec 892/16 89 pps
[ 3] Sent 892 datagrams
$
Ariel
[0]: https://github.com/espressif/esp-idf/tr ... wifi/iperf
[1]: https://docs.espressif.com/projects/esp ... throughput
[2]: https://github.com/espressif/esp-idf/releases/tag/v3.2
[3]: https://github.com/espressif/esp-idf/commit/05838641
[4]: https://github.com/espressif/esp-idf/bl ... efaults.99