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参数的端口来绑定本地的网卡ip(本来这个端口号,在客户端模式下是用来指定iperf服务器的port的,复用了)。



  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值