[[searchwing-pi-datarate]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
searchwing-pi-datarate [2020/01/08 21:41]
beckmanf [Julian tests] added channel remark
searchwing-pi-datarate [2021/11/17 22:34]
wf68spef
Line 1: Line 1:
-===== Raspberry Pi data transfer rate test =====+===== Raspberry Pi Zero data transfer rate test =====
  
 The Raspberry Pi stores the images which are collected during flight. After the plane landed, the images are retrieved from the Pi. The least impact with respect to water sealing would be a wireless transfer via Wifi or Bluetooth. For completeness I also test the transfer rate via USB configured as RNDIS network device. As a seperate topic I look into the transfer rate of the SD Card. The Raspberry Pi stores the images which are collected during flight. After the plane landed, the images are retrieved from the Pi. The least impact with respect to water sealing would be a wireless transfer via Wifi or Bluetooth. For completeness I also test the transfer rate via USB configured as RNDIS network device. As a seperate topic I look into the transfer rate of the SD Card.
Line 507: Line 507:
 ==== Results ==== ==== Results ====
  
 +  * The Laptop and the Pi should not be connected via a single 2.4 GHz access point as laptop and Pi share the same Wifi channel. This results in 50% throughput reduction (see Julians 2.5 MB/s for wget).
 +  * The transfer rate via wget on an undisturbed 2.4 GHz wifi channel is **5 MB/s**. (Only Pi connected to AP, No other stations use this channel). This 40 MBit/s throughput on http level compares well to the maximum 65 MBit/s wifi data rate of the Pi Zero W.
 +  * ssh transfer is limited by CPU load on the Pi for encryption and results in 1.8 MB/s for Wifi.
 +  * Short Guard Interval setting could possibly increase the the raw wifi rate from 65 MBit/s to 72 MBit/​s. ​
  
  
Line 515: Line 519:
  
  
 +===== Pi4/CM4 data transfer rate test =====
  
 +  * Fritzbox 7520
 +  * CM4 5Ghz Wifi 
 +  * Laptop T14 via Ethernet
 +
 +==== pi4 config ====
 +
 +
 +
 +<​code>​
 +pi@testi:~ $ iw dev
 +phy#0
 + Unnamed/​non-netdev interface
 + wdev 0x2
 + addr de:​a6:​32:​fe:​85:​b0
 + type P2P-device
 + txpower 31.00 dBm
 + Interface wlan0
 + ifindex 3
 + wdev 0x1
 + addr dc:​a6:​32:​fe:​85:​b0
 + ssid DrMartinRouterKing
 + type managed
 + channel 64 (5320 MHz), width: 80 MHz, center1: 5290 MHz
 + txpower 31.00 dBm
 +
 +pi@testi:~ $ iw phy
 +Wiphy phy0
 + max # scan SSIDs: 10
 + max scan IEs length: 2048 bytes
 + max # sched scan SSIDs: 16
 + max # match sets: 16
 + Retry short limit: 7
 + Retry long limit: 4
 + Coverage class: 0 (up to 0m)
 + Device supports roaming.
 + Device supports T-DLS.
 + Supported Ciphers:
 + * WEP40 (00-0f-ac:​1)
 + * WEP104 (00-0f-ac:​5)
 + * TKIP (00-0f-ac:​2)
 + * CCMP-128 (00-0f-ac:​4)
 + * CMAC (00-0f-ac:​6)
 + Available Antennas: TX 0 RX 0
 + Supported interface modes:
 + * IBSS
 + * managed
 + * AP
 + * P2P-client
 + * P2P-GO
 + * P2P-device
 + Band 1:
 + Capabilities:​ 0x1020
 + HT20
 + Static SM Power Save
 + RX HT20 SGI
 + No RX STBC
 + Max AMSDU length: 3839 bytes
 + DSSS/CCK HT40
 + Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
 + Minimum RX AMPDU time spacing: 16 usec (0x07)
 + HT TX/RX MCS rate indexes supported: 0-7
 + Bitrates (non-HT):
 + * 1.0 Mbps
 + * 2.0 Mbps (short preamble supported)
 + * 5.5 Mbps (short preamble supported)
 + * 11.0 Mbps (short preamble supported)
 + * 6.0 Mbps
 + * 9.0 Mbps
 + * 12.0 Mbps
 + * 18.0 Mbps
 + * 24.0 Mbps
 + * 36.0 Mbps
 + * 48.0 Mbps
 + * 54.0 Mbps
 + Frequencies:​
 + * 2412 MHz [1] (20.0 dBm)
 + * 2417 MHz [2] (20.0 dBm)
 + * 2422 MHz [3] (20.0 dBm)
 + * 2427 MHz [4] (20.0 dBm)
 + * 2432 MHz [5] (20.0 dBm)
 + * 2437 MHz [6] (20.0 dBm)
 + * 2442 MHz [7] (20.0 dBm)
 + * 2447 MHz [8] (20.0 dBm)
 + * 2452 MHz [9] (20.0 dBm)
 + * 2457 MHz [10] (20.0 dBm)
 + * 2462 MHz [11] (20.0 dBm)
 + * 2467 MHz [12] (20.0 dBm)
 + * 2472 MHz [13] (20.0 dBm)
 + * 2484 MHz [14] (disabled)
 + Band 2:
 + Capabilities:​ 0x1062
 + HT20/​HT40
 + Static SM Power Save
 + RX HT20 SGI
 + RX HT40 SGI
 + No RX STBC
 + Max AMSDU length: 3839 bytes
 + DSSS/CCK HT40
 + Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
 + Minimum RX AMPDU time spacing: 16 usec (0x07)
 + HT TX/RX MCS rate indexes supported: 0-7
 + VHT Capabilities (0x00001020):​
 + Max MPDU length: 3895
 + Supported Channel Width: neither 160 nor 80+80
 + short GI (80 MHz)
 + SU Beamformee
 + VHT RX MCS set:
 + 1 streams: MCS 0-9
 + 2 streams: not supported
 + 3 streams: not supported
 + 4 streams: not supported
 + 5 streams: not supported
 + 6 streams: not supported
 + 7 streams: not supported
 + 8 streams: not supported
 + VHT RX highest supported: 0 Mbps
 + VHT TX MCS set:
 + 1 streams: MCS 0-9
 + 2 streams: not supported
 + 3 streams: not supported
 + 4 streams: not supported
 + 5 streams: not supported
 + 6 streams: not supported
 + 7 streams: not supported
 + 8 streams: not supported
 + VHT TX highest supported: 0 Mbps
 + Bitrates (non-HT):
 + * 6.0 Mbps
 + * 9.0 Mbps
 + * 12.0 Mbps
 + * 18.0 Mbps
 + * 24.0 Mbps
 + * 36.0 Mbps
 + * 48.0 Mbps
 + * 54.0 Mbps
 + Frequencies:​
 + * 5170 MHz [34] (disabled)
 + * 5180 MHz [36] (20.0 dBm)
 + * 5190 MHz [38] (disabled)
 + * 5200 MHz [40] (20.0 dBm)
 + * 5210 MHz [42] (disabled)
 + * 5220 MHz [44] (20.0 dBm)
 + * 5230 MHz [46] (disabled)
 + * 5240 MHz [48] (20.0 dBm)
 + * 5260 MHz [52] (20.0 dBm) (no IR, radar detection)
 + * 5280 MHz [56] (20.0 dBm) (no IR, radar detection)
 + * 5300 MHz [60] (20.0 dBm) (no IR, radar detection)
 + * 5320 MHz [64] (20.0 dBm) (no IR, radar detection)
 + * 5500 MHz [100] (20.0 dBm) (no IR, radar detection)
 + * 5520 MHz [104] (20.0 dBm) (no IR, radar detection)
 + * 5540 MHz [108] (20.0 dBm) (no IR, radar detection)
 + * 5560 MHz [112] (20.0 dBm) (no IR, radar detection)
 + * 5580 MHz [116] (20.0 dBm) (no IR, radar detection)
 + * 5600 MHz [120] (20.0 dBm) (no IR, radar detection)
 + * 5620 MHz [124] (20.0 dBm) (no IR, radar detection)
 + * 5640 MHz [128] (20.0 dBm) (no IR, radar detection)
 + * 5660 MHz [132] (20.0 dBm) (no IR, radar detection)
 + * 5680 MHz [136] (20.0 dBm) (no IR, radar detection)
 + * 5700 MHz [140] (20.0 dBm) (no IR, radar detection)
 + * 5720 MHz [144] (disabled)
 + * 5745 MHz [149] (disabled)
 + * 5765 MHz [153] (disabled)
 + * 5785 MHz [157] (disabled)
 + * 5805 MHz [161] (disabled)
 + * 5825 MHz [165] (disabled)
 + Supported commands:
 + * new_interface
 + * set_interface
 + * new_key
 + * start_ap
 + * join_ibss
 + * set_pmksa
 + * del_pmksa
 + * flush_pmksa
 + * remain_on_channel
 + * frame
 + * set_wiphy_netns
 + * set_channel
 + * tdls_oper
 + * start_sched_scan
 + * start_p2p_device
 + * connect
 + * disconnect
 + * crit_protocol_start
 + * crit_protocol_stop
 + * update_connect_params
 + software interface modes (can always be added):
 + valid interface combinations:​
 + * #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
 +    total <= 3, #channels <= 2
 + * #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
 +    total <= 4, #channels <= 1
 + Device supports scan flush.
 + Device supports randomizing MAC-addr in sched scans.
 + max # scan plans: 1
 + max scan plan interval: 508
 + max scan plan iterations: 0
 + Supported TX frame types:
 + * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
 + * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
 + * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
 + * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
 + * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
 + Supported RX frame types:
 + * managed: 0x40 0xd0
 + * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
 + * P2P-client: 0x40 0xd0
 + * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
 + * P2P-device: 0x40 0xd0
 + Supported extended features:
 + * [ 4WAY_HANDSHAKE_STA_PSK ]: 4-way handshake with PSK in station mode
 + * [ 4WAY_HANDSHAKE_STA_1X ]: 4-way handshake with 802.1X in station mode
 + * [ DFS_OFFLOAD ]: DFS offload
 +</​code>​
 +
 +==== iperf measurements via WLAN ====
 +
 +=== Datatransfer Pi4 -> Laptop ===
 +
 +<​code>​
 +➜  /tmp iperf3 -s
 +-----------------------------------------------------------
 +Server listening on 5201 (test #1)
 +-----------------------------------------------------------
 +Accepted connection from 192.168.178.29,​ port 54534
 +[  5] local 192.168.178.20 port 5201 connected to 192.168.178.29 port 54536
 +[ ID] Interval ​          ​Transfer ​    ​Bitrate
 +[  5]   ​0.00-1.00 ​  ​sec ​ 9.14 MBytes ​ 76.7 Mbits/​sec ​                 ​
 +[  5]   ​1.00-2.00 ​  ​sec ​ 10.8 MBytes ​ 90.9 Mbits/​sec ​                 ​
 +[  5]   ​2.00-3.00 ​  ​sec ​ 10.9 MBytes ​ 91.1 Mbits/​sec ​                 ​
 +[  5]   ​3.00-4.00 ​  ​sec ​ 10.8 MBytes ​ 90.9 Mbits/​sec ​                 ​
 +[  5]   ​4.00-5.00 ​  ​sec ​ 10.9 MBytes ​ 91.5 Mbits/​sec ​                 ​
 +[  5]   ​5.00-6.00 ​  ​sec ​ 10.3 MBytes ​ 86.2 Mbits/​sec ​                 ​
 +[  5]   ​6.00-7.00 ​  ​sec ​ 9.21 MBytes ​ 77.3 Mbits/​sec ​                 ​
 +[  5]   ​7.00-8.00 ​  ​sec ​ 10.9 MBytes ​ 91.1 Mbits/​sec ​                 ​
 +[  5]   ​8.00-9.00 ​  ​sec ​ 10.8 MBytes ​ 90.7 Mbits/​sec ​                 ​
 +[  5]   ​9.00-10.00 ​ sec  10.9 MBytes ​ 91.5 Mbits/​sec ​                 ​
 +[  5]  10.00-10.01 ​ sec   103 KBytes ​ 89.2 Mbits/​sec ​                 ​
 +- - - - - - - - - - - - - - - - - - - - - - - - -
 +[ ID] Interval ​          ​Transfer ​    ​Bitrate
 +[  5]   ​0.00-10.01 ​ sec   105 MBytes ​ 87.8 Mbits/​sec ​                 receiver
 +-----------------------------------------------------------
 +Server listening on 5201 (test #2)
 +-----------------------------------------------------------
 +^Ciperf3: interrupt - the server has terminated
 +</​code>​
 +
 +=== Datatransfer Pi4 <- Laptop ===
 +
 +<​code>​
 +➜  /tmp iperf3 -c 192.168.178.29
 +iperf3: error - unable to connect to server: Connection refused
 +➜  /tmp iperf3 -c 192.168.178.29
 +Connecting to host 192.168.178.29,​ port 5201
 +[  5] local 192.168.178.20 port 40318 connected to 192.168.178.29 port 5201
 +[ ID] Interval ​          ​Transfer ​    ​Bitrate ​        ​Retr ​ Cwnd
 +[  5]   ​0.00-1.00 ​  ​sec ​ 5.21 MBytes ​ 43.7 Mbits/​sec ​  ​24 ​  24.0 KBytes ​      
 +[  5]   ​1.00-2.00 ​  ​sec ​ 4.57 MBytes ​ 38.4 Mbits/​sec ​  ​32 ​  22.6 KBytes ​      
 +[  5]   ​2.00-3.00 ​  ​sec ​ 4.75 MBytes ​ 39.8 Mbits/​sec ​  ​35 ​  38.2 KBytes ​      
 +[  5]   ​3.00-4.00 ​  ​sec ​ 5.11 MBytes ​ 42.8 Mbits/​sec ​  ​36 ​  28.3 KBytes ​      
 +[  5]   ​4.00-5.00 ​  ​sec ​ 4.51 MBytes ​ 37.9 Mbits/​sec ​  ​24 ​  31.1 KBytes ​      
 +[  5]   ​5.00-6.00 ​  ​sec ​ 5.11 MBytes ​ 42.8 Mbits/​sec ​  ​31 ​  21.2 KBytes ​      
 +[  5]   ​6.00-7.00 ​  ​sec ​ 5.23 MBytes ​ 43.8 Mbits/​sec ​  ​23 ​  35.4 KBytes ​      
 +[  5]   ​7.00-8.00 ​  ​sec ​ 5.46 MBytes ​ 45.8 Mbits/​sec ​  ​27 ​  21.2 KBytes ​      
 +[  5]   ​8.00-9.00 ​  ​sec ​ 4.99 MBytes ​ 41.8 Mbits/​sec ​  ​20 ​  35.4 KBytes ​      
 +[  5]   ​9.00-10.00 ​ sec  4.63 MBytes ​ 38.9 Mbits/​sec ​  ​41 ​  19.8 KBytes ​      
 +- - - - - - - - - - - - - - - - - - - - - - - - -
 +[ ID] Interval ​          ​Transfer ​    ​Bitrate ​        Retr
 +[  5]   ​0.00-10.00 ​ sec  49.6 MBytes ​ 41.6 Mbits/​sec ​ 293             ​sender
 +[  5]   ​0.00-10.00 ​ sec  49.3 MBytes ​ 41.4 Mbits/​sec ​                 receiver
 +
 +iperf Done.
 +
 +</​code>​
  • searchwing-pi-datarate.txt
  • Last modified: 2021/11/18 15:08
  • by wf68spef