Low UDP iperf throughput

ariel.dalessandro
Posts: 3
Joined: Thu Nov 22, 2018 4:02 pm

Low UDP iperf throughput

Postby ariel.dalessandro » 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):
  1. esp32> iperf -s -u -i 1 -t 10
  2. I (847313) cmd_wifi: mode=udp-server sip=192.168.1.105:5001, dip=0.0.0.0:5001, interval=1, time=10
  3. I (847326) iperf: want recv=16384
  4.         Interval Bandwidth
  5.    0-   1 sec       0.62 Mbits/sec
  6.    1-   2 sec       1.05 Mbits/sec
  7.    2-   3 sec       1.05 Mbits/sec
  8.    3-   4 sec       1.06 Mbits/sec
  9.    4-   5 sec       1.05 Mbits/sec
  10.    5-   6 sec       1.05 Mbits/sec
  11.    6-   7 sec       1.05 Mbits/sec
  12.    7-   8 sec       1.02 Mbits/sec
  13.    8-   9 sec       1.07 Mbits/sec
  14.    9-  10 sec       1.06 Mbits/sec
  15.    0-  10 sec       1.01 Mbits/sec
  16. I (857338) iperf: iperf exit
  17. esp32>
*Linux host (iperf client):
  1. $ iperf -c 192.168.1.105 -i 1 -t 10 -u -e
  2. ------------------------------------------------------------
  3. Client connecting to 192.168.1.105, UDP port 5001 with pid 13039
  4. Sending 1470 byte datagrams, IPG target: 11215.21 us (kalman adjust)
  5. UDP buffer size:  208 KByte (default)
  6. ------------------------------------------------------------
  7. [  3] local 192.168.0.101 port 34857 connected with 192.168.1.105 port 5001
  8. [ ID] Interval            Transfer     Bandwidth      Write/Err  PPS
  9. [  3] 0.0000-1.0000 sec   131 KBytes  1.07 Mbits/sec  91/0       90 pps
  10. [  3] 1.0000-2.0000 sec   128 KBytes  1.05 Mbits/sec  89/0       89 pps
  11. [  3] 2.0000-3.0000 sec   128 KBytes  1.05 Mbits/sec  89/0       89 pps
  12. [  3] 3.0000-4.0000 sec   128 KBytes  1.05 Mbits/sec  89/0       89 pps
  13. [  3] 4.0000-5.0000 sec   128 KBytes  1.05 Mbits/sec  89/0       89 pps
  14. [  3] 5.0000-6.0000 sec   128 KBytes  1.05 Mbits/sec  89/0       89 pps
  15. [  3] 6.0000-7.0000 sec   129 KBytes  1.06 Mbits/sec  90/0       89 pps
  16. [  3] 7.0000-8.0000 sec   128 KBytes  1.05 Mbits/sec  89/0       89 pps
  17. [  3] 8.0000-9.0000 sec   128 KBytes  1.05 Mbits/sec  89/0       89 pps
  18. read failed: Connection refused
  19. [  3] WARNING: did not receive ack of last datagram after 2 tries.
  20. [  3] 0.0000-10.0041 sec  1.25 MBytes  1.05 Mbits/sec  892/16       89 pps
  21. [  3] Sent 892 datagrams
  22. $
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

ESP_Angus
Posts: 1577
Joined: Sun May 08, 2016 4:11 am

Re: Low UDP iperf throughput

Postby ESP_Angus » Tue May 14, 2019 2:10 am

Hi Ariel,

The main difference is that the 30Mbit/sec is measured in a shielded box - so strong WiFi signal and no interference.

Can you give any information about the WiFi signal where you were testing?

ariel.dalessandro
Posts: 3
Joined: Thu Nov 22, 2018 4:02 pm

Re: Low UDP iperf throughput

Postby ariel.dalessandro » Tue May 14, 2019 2:31 am

Hi ESP_Angus,
Thanks for the quick reply.
ESP_Angus wrote: The main difference is that the 30Mbit/sec is measured in a shielded box - so strong WiFi signal and no interference.
Is it? According to https://docs.espressif.com/projects/esp ... throughput:
* Espressif’s lab Rx/Tx = 30/30Mbit/sec.
* Shield box Rx/Tx = 90/60Mbit/sec.
ESP_Angus wrote: Can you give any information about the WiFi signal where you were testing?
Yes. Using ESP32 in AP mode (ssid: esp32test):
  1. $ nmcli device wifi list
  2. IN-USE  SSID                      MODE   CHAN  RATE        SIGNAL  BARS  SECURITY  
  3. *       esp32test                 Infra  2     135 Mbit/s  100     ▂▄▆█  WPA1 WPA2
  4.         FS2.4                     Infra  1     195 Mbit/s  69      ▂▄▆_  WPA1 WPA2
  5.         FiberCorp WiFi742 2.4GHz  Infra  6     195 Mbit/s  59      ▂▄▆_  WPA1 WPA2
  6.         WiFi-3A                   Infra  6     135 Mbit/s  59      ▂▄▆_  WPA1 WPA2
  7.         WNinternet_A3B20          Infra  9     130 Mbit/s  49      ▂▄__  WPA2      
  8.         Bertita1                  Infra  1     130 Mbit/s  40      ▂▄__  WPA1 WPA2
  9.         AndroidAP                 Infra  11    130 Mbit/s  40      ▂▄__  WPA2      
  10.         WIFI-891-Local            Infra  6     54 Mbit/s   35      ▂▄__  WPA2      
  11.         Riccobelli                Infra  6     54 Mbit/s   35      ▂▄__  WPA1 WPA2
  12.         DIRECT-t7M2020 Series     Infra  6     54 Mbit/s   35      ▂▄__  WPA2      
  13.         AnyCast-D977D467          Infra  11    135 Mbit/s  35      ▂▄__  WPA2      
  14.         Diavoli rossi             Infra  11    65 Mbit/s   35      ▂▄__  WPA2      
  15.         FS5.8                     Infra  52    405 Mbit/s  35      ▂▄__  WPA1 WPA2
  16.         FiberCorp WiFi742 5.8GHz  Infra  153   405 Mbit/s  35      ▂▄__  WPA1 WPA2
  17.         Fibertel WiFi228 2.4GHz   Infra  6     195 Mbit/s  34      ▂▄__  WPA1 WPA2
  18.         pepavik                   Infra  1     195 Mbit/s  32      ▂▄__  WPA1 WPA2
  19.         WiFi-Arnet-B7990F         Infra  11    270 Mbit/s  29      ▂___  WPA2      
  20.         Fibertel WiFi885 2.4GHz   Infra  11    130 Mbit/s  29      ▂___  WPA1 WPA2

Who is online

Users browsing this forum: Bing [Bot] and 16 guests