我家是 100Mbps 的联通宽带,路由器的接口均为千兆,使用一台毕本做服务器,另一台笔记本做客户端。
今天分别用 iPerf 测试 TCP 速度,然后测试局域网内拷贝文件的速度,最后使用 SpeedTest 测试外网速度。
期间用了两者连接方式,第一种是将『服务器』与『客户端』通过网线与『路由器相连』
连接方式:Server <-LAN-> router <-LAN-> Client
iPerf TCP 速度:949949 Mbits/sec
局域网内文件传输:100 MB/S +
SpeedTest 下行速度:97.44 Mbps
结果看起来一切正常,内网基本能达到千兆速度。
第二种,是将『服务器』同样用网线与『路由器』相连,但是『客户端』通过 wifi 无线连接了『路由器』,这个结果就让我匪夷所思了!
连接方式:Server <-LAN-> router <-wifi-> Client
iPerf TCP 速度:47.3 Mbits/sec ………… [A]
局域网内文件传输速度:43MB/s+ ………… [B]
SpeedTest 下行速度:93.85 Mbps ………… [C]
按理说,速度应该接近于 A=B>=C 才对啊! 为什么 B 是 A 的 7 倍多? 而 C 是 A 的 2 倍?? 这是为什么?
PS.测试了 iPerf 多线程,速度没差别。 PS.测试时的网络是服务器和客户端独享的。
测试数据附在评论里
1
testwifi OP - - - - - - - - - - - - - - - - - - - - - - - - -
C:\Users\jyz\Desktop\jper\iperf-3.1.3-win64\iperf3.exe -c 192.168.154.184 Connecting to host 192.168.154.184, port 5201 [ 4] local 192.168.154.122 port 65397 connected to 192.168.154.184 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 113 MBytes 949 Mbits/sec [ 4] 1.00-2.00 sec 113 MBytes 948 Mbits/sec [ 4] 2.00-3.00 sec 113 MBytes 949 Mbits/sec [ 4] 3.00-4.00 sec 113 MBytes 949 Mbits/sec [ 4] 4.00-5.00 sec 113 MBytes 949 Mbits/sec [ 4] 5.00-6.00 sec 113 MBytes 949 Mbits/sec [ 4] 6.00-7.00 sec 113 MBytes 949 Mbits/sec [ 4] 7.00-8.00 sec 113 MBytes 949 Mbits/sec [ 4] 8.00-9.00 sec 113 MBytes 949 Mbits/sec [ 4] 9.00-10.00 sec 113 MBytes 950 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 1.10 GBytes 949 Mbits/sec sender [ 4] 0.00-10.00 sec 1.10 GBytes 949 Mbits/sec receiver iperf Done. C:\Users\jyz>C:\Users\jyz\Desktop\jper\iperf-3.1.3-win64\iperf3.exe -c 192.168.154.184 -b 200M Connecting to host 192.168.154.184, port 5201 [ 4] local 192.168.154.229 port 50357 connected to 192.168.154.184 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 5.38 MBytes 45.1 Mbits/sec [ 4] 1.00-2.00 sec 5.50 MBytes 46.0 Mbits/sec [ 4] 2.00-3.00 sec 5.75 MBytes 48.2 Mbits/sec [ 4] 3.00-4.00 sec 5.88 MBytes 49.3 Mbits/sec [ 4] 4.00-5.00 sec 5.62 MBytes 47.3 Mbits/sec [ 4] 5.00-6.00 sec 5.38 MBytes 45.0 Mbits/sec [ 4] 6.00-7.00 sec 5.50 MBytes 46.1 Mbits/sec [ 4] 7.00-8.00 sec 5.62 MBytes 47.2 Mbits/sec [ 4] 8.00-9.00 sec 5.75 MBytes 48.4 Mbits/sec [ 4] 9.00-10.00 sec 6.00 MBytes 50.4 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 56.4 MBytes 47.3 Mbits/sec sender [ 4] 0.00-10.00 sec 56.4 MBytes 47.3 Mbits/sec receiver iperf Done. |
2
123zsr123 2020-03-26 14:30:34 +08:00
弄多线程试试?
|