iperfテストtcp帯域幅


# iperf -c 2xx.1xx.1xx.1xx -p 5555  -B 172.16.28.173 -i 1 -t 10
------------------------------------------------------------
Client connecting to 2xx.1xx.1xx.1xx, TCP port 5555
Binding to local address 172.16.28.173
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[  3] local 172.16.28.173 port 5555 connected with 211.160.178.10 port 5555
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  1.0- 2.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  2.0- 3.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  3.0- 4.0 sec   128 KBytes  1.05 Mbits/sec
[  3]  4.0- 5.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  5.0- 6.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  6.0- 7.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  7.0- 8.0 sec   128 KBytes  1.05 Mbits/sec
[  3]  8.0- 9.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  9.0-10.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  0.0-10.9 sec   384 KBytes   289 Kbits/sec
# iperf -c 211.160.178.10 -p 5555  -B 101.82.96.114  -i 1 -t 10
------------------------------------------------------------
Client connecting to 2xx.1xx.1xx.1xx, TCP port 5555
Binding to local address 101.82.96.114
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[  3] local 101.82.96.114 port 5555 connected with 211.160.178.10 port 5555
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  1.0- 2.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  2.0- 3.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  3.0- 4.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  4.0- 5.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  5.0- 6.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  6.0- 7.0 sec   128 KBytes  1.05 Mbits/sec
[  3]  7.0- 8.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  8.0- 9.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  9.0-10.0 sec   128 KBytes  1.05 Mbits/sec
[  3] 10.0-11.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 11.0-12.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 12.0-13.0 sec  0.00 Bytes  0.00 bits/sec
[  3] 13.0-14.0 sec  0.00 Bytes  0.00 bits/sec
[  3]  0.0-14.1 sec   384 KBytes   223 Kbits/sec
C:\Users\Administrator>D:\cifs\tools\iperf-2.0.5-cygwin\iperf.exe -s -p 5555
------------------------------------------------------------
Server listening on TCP port 5555
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  4] local 10.12.23.47 port 5555 connected with 101.82.96.114 port 5555
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.2 sec   384 KBytes   307 Kbits/sec
[  4] local 10.12.23.47 port 5555 connected with 101.82.96.114 port 5555
[  4]  0.0-32.2 sec   384 KBytes  97.6 Kbits/sec
[  4] local 10.12.23.47 port 5555 connected with 119.6.254.189 port 12895
[  4]  0.0-14.6 sec   384 KBytes   215 Kbits/sec
[  4] local 10.12.23.47 port 5555 connected with 119.6.254.189 port 27603
[  4]  0.0-10.9 sec   384 KBytes   288 Kbits/sec
[  4] local 10.12.23.47 port 5555 connected with 101.82.96.114 port 5555
[  4]  0.0-14.4 sec   384 KBytes   218 Kbits/sec

-b帯域幅パラメータを設定しないでください.そうしないとudpモードと誤認します.
Bパラメータを指定すると、tcpクライアントも-pパラメータのポートでローカルのNIC ipをバインドしようとします(本来このポート番号は、クライアントモードではiperfサーバのportを指定するために多重化されています).