Iperf双向带宽测量

服务器端:

# iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local 192.168.24.243 port 5001 connected with 192.168.24.242 port 44809 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.1 sec 113 MBytes 94.1 Mbits/sec connect failed: Connection refused 

客户端:

 # iperf -c 192.168.24.243 -r ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ ------------------------------------------------------------ Client connecting to 192.168.24.243, TCP port 5001 TCP window size: 123 KByte (default) ------------------------------------------------------------ [ 5] local 192.168.24.242 port 44809 connected with 192.168.24.243 port 5001 Waiting for server threads to complete. Interrupt again to force quit. [ ID] Interval Transfer Bandwidth [ 5] 0.0-10.0 sec 113 MBytes 94.8 Mbits/sec 

为什么我得到这个错误? 没有防火墙。

看起来你的客户端阻塞了来自服务器的传入连接。

服务器正在报告“连接被拒绝”。
客户端报告“正在等待服务器线程完成”。