我一直在尝试解决家庭 LAN 吞吐量问题。我有一台华硕路由器,上面有两个盒子,一台 Windows 11 PC 和一台 Unraid Linux 服务器,直接通过 cat6 电缆连接到 1Gb 端口。Linux 盒子有一个 802.3ad 链路绑定对(已验证配置正确)。路由器通过 eth 和 wifi 支持一些其他设备。
我正在尝试弄清楚为什么从 PC 到服务器的吞吐量会间歇性下降。这会影响两台机器上的 SSD 之间的文件传输时间,但在不涉及磁盘的情况下测量吞吐量时,问题就会显现出来。
我通常希望维持至少 850 Mbits/秒的稳定平均线路速度。
下面是使用 iperf3 测量 PC 发送和服务器接收时发生的情况的示例:
C:\...\Downloads>iperf3.exe -c 192.168.50.100 -n 2000M -bidir
Connecting to host 192.168.50.100, port 5201
[ 4] local 192.168.50.200 port 59322 connected to 192.168.50.100 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.01 sec 26.6 MBytes 222 Mbits/sec
[ 4] 1.01-2.00 sec 27.6 MBytes 233 Mbits/sec
[ 4] 2.00-3.00 sec 103 MBytes 864 Mbits/sec
[ 4] 3.00-4.00 sec 106 MBytes 886 Mbits/sec
[ 4] 4.00-5.00 sec 105 MBytes 883 Mbits/sec
[ 4] 5.00-6.00 sec 103 MBytes 864 Mbits/sec
[ 4] 6.00-7.00 sec 105 MBytes 885 Mbits/sec
[ 4] 7.00-8.00 sec 102 MBytes 858 Mbits/sec
[ 4] 8.00-9.00 sec 106 MBytes 887 Mbits/sec
[ 4] 9.00-10.00 sec 55.2 MBytes 463 Mbits/sec
[ 4] 10.00-11.00 sec 66.8 MBytes 560 Mbits/sec
[ 4] 11.00-12.00 sec 59.6 MBytes 500 Mbits/sec
[ 4] 12.00-13.00 sec 52.4 MBytes 438 Mbits/sec
[ 4] 13.00-14.00 sec 67.8 MBytes 571 Mbits/sec
[ 4] 14.00-15.00 sec 28.5 MBytes 239 Mbits/sec
[ 4] 15.00-16.00 sec 48.5 MBytes 407 Mbits/sec
[ 4] 16.00-17.01 sec 50.8 MBytes 420 Mbits/sec
[ 4] 17.01-18.00 sec 92.0 MBytes 782 Mbits/sec
[ 4] 18.00-19.00 sec 106 MBytes 888 Mbits/sec
[ 4] 19.00-20.00 sec 108 MBytes 906 Mbits/sec
[ 4] 20.00-21.00 sec 100 MBytes 843 Mbits/sec
[ 4] 21.00-22.01 sec 102 MBytes 855 Mbits/sec
[ 4] 22.01-23.00 sec 105 MBytes 887 Mbits/sec
[ 4] 23.00-24.00 sec 109 MBytes 913 Mbits/sec
[ 4] 24.00-24.60 sec 63.2 MBytes 883 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-24.60 sec 1.95 GBytes 682 Mbits/sec sender
[ 4] 0.00-24.60 sec 1.95 GBytes 682 Mbits/sec receiver
这些减速经常发生,有时会持续一分钟以上。当我翻转并从服务器发送到 PC 时,延迟消失了:
C:\...\Downloads>iperf3.exe -c 192.168.50.100 -n 2000M -bidir -R
Connecting to host 192.168.50.100, port 5201
Reverse mode, remote host 192.168.50.100 is sending
[ 4] local 192.168.50.200 port 58040 connected to 192.168.50.100 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 110 MBytes 922 Mbits/sec
[ 4] 1.00-2.00 sec 107 MBytes 900 Mbits/sec
[ 4] 2.00-3.00 sec 104 MBytes 874 Mbits/sec
[ 4] 3.00-4.00 sec 108 MBytes 908 Mbits/sec
[ 4] 4.00-5.00 sec 107 MBytes 900 Mbits/sec
[ 4] 5.00-6.01 sec 95.7 MBytes 798 Mbits/sec
[ 4] 6.01-7.00 sec 103 MBytes 870 Mbits/sec
[ 4] 7.00-8.00 sec 106 MBytes 892 Mbits/sec
[ 4] 8.00-9.00 sec 105 MBytes 881 Mbits/sec
[ 4] 9.00-10.00 sec 108 MBytes 907 Mbits/sec
[ 4] 10.00-11.00 sec 104 MBytes 871 Mbits/sec
[ 4] 11.00-12.00 sec 107 MBytes 897 Mbits/sec
[ 4] 12.00-13.00 sec 103 MBytes 863 Mbits/sec
[ 4] 13.00-14.00 sec 105 MBytes 880 Mbits/sec
[ 4] 14.00-15.00 sec 107 MBytes 901 Mbits/sec
[ 4] 15.00-16.00 sec 102 MBytes 854 Mbits/sec
[ 4] 16.00-17.00 sec 105 MBytes 882 Mbits/sec
[ 4] 17.00-18.00 sec 108 MBytes 910 Mbits/sec
[ 4] 18.00-18.96 sec 103 MBytes 908 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-18.96 sec 1.95 GBytes 885 Mbits/sec 2 sender
[ 4] 0.00-18.96 sec 1.95 GBytes 885 Mbits/sec receiver
(当我使用 PC 作为 iperf3 服务器并以 Linux 机作为客户端运行测试时,会发生相同的速度传输。)
我一直在对各种情况进行故障排除,并且已经尝试过:
- 确保没有其他设备同时主动向服务器传输数据(无论是否开启配对绑定)
- 更换电缆
- 不同的路由器以太网端口(均为 1Gb)
- 重启路由器
有网络经验的人能否对如何隔离问题提出一些建议?