Raspberry Pi Zero Wネットワーク通信性能

Raspberry Pi Zero W稼働中

今回、Raspberry Pi Zero W (以下RPi0W)が無線LANインターフェースしか持っていないということで無線LAN APから間に障害物が無いところ距離1mに置き、ケースの影響を受けないよう基板剥き出しで計測した。無線LAN APの性能も計測結果に影響するかもしれないが、こちらは敢えて無視で。計測はルーターとRPi0Wの間にL2SWが1台、無線LAN APが1台。無線LAN APとRPi0Wの間のみが無線で、それ以外は有線。ネットワーク的には1hopとなっている。
それぞれ3回ずつ計測し、中間の値を取る。

pi@raspberrypi:~ $ iperf -c 192.168.6.1
------------------------------------------------------------
Client connecting to 192.168.6.1, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 192.168.6.226 port 58398 connected with 192.168.6.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  50.1 MBytes  42.0 Mbits/sec

RPi0W → PCルーター (IPv4): 42.0Mbps

pc@router:~ % iperf -c 192.168.6.226
------------------------------------------------------------
Client connecting to 192.168.6.226, TCP port 5001
TCP window size: 1.00 MByte (default)
------------------------------------------------------------
[  3] local 192.168.6.1 port 37838 connected with 192.168.6.226 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  40.9 MBytes  34.2 Mbits/sec

PCルーター → RPi0W (IPv4): 34.2Mbps

pi@raspberrypi:~ $ iperf -V -c fdc1::1
------------------------------------------------------------
Client connecting to fdc1::1, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local fdc1::8000 port 38738 connected with fdc1::1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  40.2 MBytes  33.7 Mbits/sec

RPi0W → PCルーター (IPv6): 33.7Mbps

pc@router:~ % iperf -V -c fdc1::8000
------------------------------------------------------------
Client connecting to fdc1::8000, TCP port 5001
TCP window size: 1.00 MByte (default)
------------------------------------------------------------
[  3] local fdc1::1 port 27810 connected with fdc1::8000 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  44.5 MBytes  37.2 Mbits/sec

PCルーター → RPi0W (IPv4): 37.2Mbps

おおよそ30〜40Mbpsというところ。ちょっとどころかかなり遅い。できればこの10倍くらい欲しいんだけどね。
受信についてはIPv6でもIpv4に比べて落ち込まない。IPv6の送信だけが何故か落ち込む。

公開iperf3サーバに接続してみた。

pi@raspberrypi:~ $ iperf -c iperf.he.net
------------------------------------------------------------
Client connecting to iperf.he.net, TCP port 5001
TCP window size: 43.8 KByte (default)
------------------------------------------------------------
[  3] local 192.168.6.226 port 50184 connected with 216.218.227.10 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.1 sec  44.0 MBytes  36.4 Mbits/sec

この程度の速度だと1hopとなりとで測るのとあまり差が無かった。

関連記事: