过去4个小时一直在玩iperf,我无法理解为什么客户端和服务器的结果是不一样的。
考虑客户端上的以下iperf输出:
iperf -c 91.121.112.163 -p 2222 ------------------------------------------------------------ Client connecting to 91.121.112.163, TCP port 2222 TCP window size: 1.06 MByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.160 port 36726 connected with 91.121.112.163 port 2222 [ ID] Interval Transfer Bandwidth [ 3] 0.0-11.4 sec 1.88 MBytes 1.38 Mbits/sec
这里是服务器上的相应输出:
iperf -V -s -p 2222 ------------------------------------------------------------ Server listening on TCP port 2222 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local ::ffff:91.121.112.163 port 2222 connected with ::ffff:86.209.154.156 port 36726 [ ID] Interval Transfer Bandwidth [ 4] 0.0-19.1 sec 1.88 MBytes 823 Kbits/sec
因此,客户端以1.38Mbits / sec的速度上传,但服务器的速度是823kbits / sec?
有人对这些令人困惑的结果有解释吗?
来自客户:(强调我的)
[ ID] Interval Transfer Bandwidth [ 3] 0.0-**11.4** sec 1.88 MBytes 1.38 Mbits/sec
从服务器:
[ ID] Interval Transfer Bandwidth [ 4] 0.0-**19.1** sec 1.88 MBytes 823 Kbits/sec
由于某种原因,服务器认为testing时间比客户端要长8秒。 这足以将总带宽(从服务器的angular度来看)降低到823 Kbps。
我相信问题是客户端正在与缓冲出站stream量的设备进行通信,所以客户端认为这是在服务器实际接收到最后一块数据之前完成的。 我用iperf注意到了很多 – 服务器的秒读报告比客户端要稳定得多。 我也注意到,客户端的第一秒始终是最高吞吐量,我认为这是填充path上任何设备的缓冲区。 以下是客户端和服务器testing一个链接,双向形成7Mbps …
------------------------------------------------------------ Client connecting to 204.22.22.104, TCP port 5001 TCP window size: 20.0 KByte (default) ------------------------------------------------------------ [ 3] local 10.125.20.100 port 49248 connected with 204.22.22.104 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 1.12 MBytes 9.44 Mbits/sec [ 3] 1.0- 2.0 sec 768 KBytes 6.29 Mbits/sec [ 3] 2.0- 3.0 sec 768 KBytes 6.29 Mbits/sec [ 3] 3.0- 4.0 sec 896 KBytes 7.34 Mbits/sec [ 3] 4.0- 5.0 sec 768 KBytes 6.29 Mbits/sec [ 3] 5.0- 6.0 sec 896 KBytes 7.34 Mbits/sec [ 3] 6.0- 7.0 sec 768 KBytes 6.29 Mbits/sec [ 3] 7.0- 8.0 sec 896 KBytes 7.34 Mbits/sec [ 3] 8.0- 9.0 sec 768 KBytes 6.29 Mbits/sec [ 3] 9.0-10.0 sec 768 KBytes 6.29 Mbits/sec [ 3] 0.0-10.2 sec 8.38 MBytes 6.91 Mbits/sec ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local 204.22.22.104 port 5001 connected with 10.125.20.100 port 49248 [ ID] Interval Transfer Bandwidth [ 4] 0.0- 1.0 sec 828 KBytes 6.78 Mbits/sec [ 4] 1.0- 2.0 sec 764 KBytes 6.25 Mbits/sec [ 4] 2.0- 3.0 sec 857 KBytes 7.02 Mbits/sec [ 4] 3.0- 4.0 sec 815 KBytes 6.68 Mbits/sec [ 4] 4.0- 5.0 sec 811 KBytes 6.64 Mbits/sec [ 4] 5.0- 6.0 sec 814 KBytes 6.66 Mbits/sec [ 4] 6.0- 7.0 sec 815 KBytes 6.68 Mbits/sec [ 4] 7.0- 8.0 sec 814 KBytes 6.66 Mbits/sec [ 4] 8.0- 9.0 sec 812 KBytes 6.65 Mbits/sec [ 4] 9.0-10.0 sec 806 KBytes 6.60 Mbits/sec [ 4] 0.0-10.6 sec 8.38 MBytes 6.64 Mbits/sec