PC⇔ルータ間と、ルータ⇔ISP&インターネット間のどちらにボトルネックがあるのか調べる。
PC⇔ルータ間
PCとルータの両方にiPerf3を入れて計測する。
PC側
PS > .\iperf3.exe -s -i 5 -p 5001 -f m ----------------------------------------------------------- Server listening on 5001 ----------------------------------------------------------- Accepted connection from 192.168.xxx.1, port 60464 [ 5] local 192.168.xxx.yyy port 5001 connected to 192.168.xxx.1 port 60466 [ 7] local 192.168.xxx.yyy port 5001 connected to 192.168.xxx.1 port 60468 [ ID] Interval Transfer Bandwidth [ 5] 0.00-5.00 sec 43.6 MBytes 73.1 Mbits/sec [ 7] 0.00-5.00 sec 43.7 MBytes 73.4 Mbits/sec [SUM] 0.00-5.00 sec 87.3 MBytes 146 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ 5] 5.00-10.00 sec 47.1 MBytes 79.1 Mbits/sec [ 7] 5.00-10.00 sec 47.0 MBytes 78.8 Mbits/sec [SUM] 5.00-10.00 sec 94.1 MBytes 158 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ 5] 10.00-15.00 sec 46.2 MBytes 77.5 Mbits/sec [ 7] 10.00-15.00 sec 45.0 MBytes 75.6 Mbits/sec [SUM] 10.00-15.00 sec 91.3 MBytes 153 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ 5] 15.00-20.00 sec 45.3 MBytes 76.0 Mbits/sec [ 7] 15.00-20.00 sec 45.2 MBytes 75.8 Mbits/sec [SUM] 15.00-20.00 sec 90.4 MBytes 152 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ 5] 20.00-20.02 sec 153 KBytes 61.9 Mbits/sec [ 7] 20.00-20.02 sec 234 KBytes 94.3 Mbits/sec [SUM] 20.00-20.02 sec 387 KBytes 156 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 5] 0.00-20.02 sec 0.00 Bytes 0.00 Mbits/sec sender [ 5] 0.00-20.02 sec 182 MBytes 76.4 Mbits/sec receiver [ 7] 0.00-20.02 sec 0.00 Bytes 0.00 Mbits/sec sender [ 7] 0.00-20.02 sec 181 MBytes 75.9 Mbits/sec receiver [SUM] 0.00-20.02 sec 0.00 Bytes 0.00 Mbits/sec sender [SUM] 0.00-20.02 sec 363 MBytes 152 Mbits/sec receiver ----------------------------------------------------------- Server listening on 5001 -----------------------------------------------------------
ルータ側
root# iperf3 -c 192.168.xxx.yyy -P 2 -i 5 -p 5001 -f m -t 20 Connecting to host 192.168.xxx.yyy, port 5001 [ 5] local 192.168.xxx.1 port 60466 connected to 192.168.xxx.yyy port 5001 [ 7] local 192.168.xxx.1 port 60468 connected to 192.168.xxx.yyy port 5001 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-5.09 sec 44.6 MBytes 73.5 Mbits/sec 82 201 KBytes [ 7] 0.00-5.09 sec 44.7 MBytes 73.8 Mbits/sec 0 212 KBytes [SUM] 0.00-5.09 sec 89.3 MBytes 147 Mbits/sec 82 - - - - - - - - - - - - - - - - - - - - - - - - - [ 5] 5.09-10.02 sec 46.5 MBytes 79.0 Mbits/sec 0 211 KBytes [ 7] 5.09-10.02 sec 46.3 MBytes 78.7 Mbits/sec 0 212 KBytes [SUM] 5.09-10.02 sec 92.8 MBytes 158 Mbits/sec 0 - - - - - - - - - - - - - - - - - - - - - - - - - [ 5] 10.02-15.09 sec 46.8 MBytes 77.5 Mbits/sec 0 211 KBytes [ 7] 10.02-15.09 sec 45.7 MBytes 75.7 Mbits/sec 0 212 KBytes [SUM] 10.02-15.09 sec 92.4 MBytes 153 Mbits/sec 0 - - - - - - - - - - - - - - - - - - - - - - - - - [ 5] 15.09-20.01 sec 44.5 MBytes 75.9 Mbits/sec 0 211 KBytes [ 7] 15.09-20.01 sec 44.4 MBytes 75.7 Mbits/sec 0 212 KBytes [SUM] 15.09-20.01 sec 88.9 MBytes 152 Mbits/sec 0 - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.01 sec 182 MBytes 76.5 Mbits/sec 82 sender [ 5] 0.00-20.01 sec 182 MBytes 76.5 Mbits/sec receiver [ 7] 0.00-20.01 sec 181 MBytes 75.9 Mbits/sec 0 sender [ 7] 0.00-20.01 sec 181 MBytes 75.9 Mbits/sec receiver [SUM] 0.00-20.01 sec 363 MBytes 152 Mbits/sec 82 sender [SUM] 0.00-20.01 sec 363 MBytes 152 Mbits/sec receiver iperf Done.
ルータ⇔ISP&インターネット間
一つは、iPerf3の公開サーバを使用する方法。当然、使用するサーバによって速度が異なる。speedtest.netに参加しているサーバがiPerf3に対応していればいいのだが……
root# iperf3 -c bouygues.iperf.fr -P 1 -i 5 -p 9200 -f m -t 20 Connecting to host bouygues.iperf.fr, port 9200 [ 5] local 192.168.1.2 port 47220 connected to 89.84.1.222 port 9200 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-5.00 sec 1.52 MBytes 2.55 Mbits/sec 0 112 KBytes [ 5] 5.00-10.00 sec 4.43 MBytes 7.43 Mbits/sec 1 278 KBytes [ 5] 10.00-15.00 sec 6.89 MBytes 11.6 Mbits/sec 0 396 KBytes [ 5] 15.00-20.00 sec 7.93 MBytes 13.3 Mbits/sec 0 427 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.00 sec 20.8 MBytes 8.71 Mbits/sec 1 sender [ 5] 0.00-20.24 sec 20.3 MBytes 8.40 Mbits/sec receiver
もう一つは、netperfを使う方法。
root# speedtest-netperf.sh 2020-10-26 20:10:37 Starting speedtest for 60 seconds per transfer session. Measure speed to netperf.bufferbloat.net (IPv4) while pinging gstatic.com. Download and upload sessions are sequential, each with 5 simultaneous streams. .............................................................. Download: 57.29 Mbps Latency: [in msec, 62 pings, 0.00% packet loss] Min: 3.820 10pct: 4.000 Median: 4.340 Avg: 4.767# clear 90pct: 4.700 Max: 25.681 CPU Load: [in % busy (avg +/- std dev), 60 samples] cpu0: 32.3 +/- 9.3 Overhead: [in % used of total CPU available] netperf: 19.5 ............................................................. Upload: 74.16 Mbps Latency: [in msec, 60 pings, 0.00% packet loss] Min: 4.080 10pct: 4.180 Median: 4.500 Avg: 5.555 90pct: 9.101 Max: 15.660 CPU Load: [in % busy (avg +/- std dev), 58 samples] cpu0: 53.1 +/- 10.6 Overhead: [in % used of total CPU available] netperf: 14.5