TL; DR
此处描述的问题都是由开关故障引起的,有关修复方法,请参阅我的答案。
我从这次经历中学到的是:
原始问题
我有如图所示的LAN设置。Mac是我的主计算机,Linux盒是运行OpenMediaVault的NAS,并通过千兆交换机连接。路由器在楼下,通过电力线适配器连接;路由器也是DHCP服务器。
当交换机通过电力线适配器连接到路由器时,mac和linux盒之间的文件传输速度出现问题。如果我从电源线适配器断开交换机的连接,并手动将IP地址分配给mac和linux机器,我将获得快速传输。
但这破坏了互联网连接。当我重新连接时,其余的网络文件传输会缓慢进行爬网,并且电力线适配器上有很多活动(指示灯闪烁)。就像数据沿着电力线传到路由器,然后又传回到Linux盒之前。
I can't turn off the DHCP from the router as a number of other devices use it for wireless connection, and I don't want to have to manage static IPs for the entire network.
I've considered running a cable from the router to the upstairs but it's not practical; not impossible but it would be real pain and that's what I thought powerline adapters were for, extending networks easily :)
I also want the linux NAS to be accessible from the wireless network and still be able to transfer files at a reasonable speed.
I'm looking for suggestions on how to find the problem, because at the moment I have to disconnect plugs and reconfigure NICs to talk to different parts of the network/internet.
Devices:
Router: Technicolor TG582n
Powerline: BT Broadband Extender Flex 500
Mac: Macbook Pro (2011)
Linux: OpenMediaVault v2.1 (with all updates applied)
Switch: Netgear GS608 v2 (8 port)
Related
I've seen this question: Slow Internet speed when HomePlug combined with router but that is asking about internet connection speed rather than local file copy speed.
Update
I have a hunch I may have left the wifi connected when I saw the strange behaviour of the powerline flashing away while transferring files to the NAS. I think the wifi was being prioritised by the network, so data was flowing down the wireless to the router and back up the powerline.
I've also been testing with iperf performing 2 or 3 connections per test setup, results below, which has shown interesting results but I'm no nearer to understanding why this is happening. All cables used are CAT6.
mac <-> linux direct connection
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39347
[ 4] 0.0-10.0 sec 882 MBytes 740 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39348
[ 4] 0.0-10.0 sec 882 MBytes 739 Mbits/sec
mac <-> switch <-> linux
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39349
[ 4] 0.0-10.1 sec 90.6 MBytes 75.5 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39350
[ 4] 0.0-10.0 sec 114 MBytes 95.3 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39351
[ 4] 0.0-10.0 sec 115 MBytes 96.2 Mbits/sec
然后,我也将电源线适配器也连接到了交换机。Mac和Linux的连接未更改。
mac <-> switch <-> linux
|
powerline
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39352
[ 4] 0.0-10.2 sec 33.4 MBytes 27.5 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39353
[ 4] 0.0-10.4 sec 37.4 MBytes 30.2 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39354
[ 4] 0.0-10.1 sec 37.4 MBytes 31.1 Mbits/sec
为了查看交换机是否有故障,我将所有连接都移到了不同的端口
mac <-> switch <-> linux
|
powerline
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39355
[ 4] 0.0-10.0 sec 85.6 MBytes 71.7 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39356
[ 4] 0.0-10.0 sec 83.0 MBytes 69.5 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39357
[ 4] 0.0-10.0 sec 76.4 MBytes 63.9 Mbits/sec
Whis加快了速度,但我没有再将它们移回原处。对于下一个测试,我再次断开了电源线适配器。
mac <-> switch <-> linux
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39358
[ 4] 0.0-10.0 sec 184 MBytes 154 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39359
[ 4] 0.0-10.0 sec 211 MBytes 177 Mbits/sec
[ 4] local 192.168.1.250 port 5001 connected with 192.168.1.224 port 39360
[ 4] 0.0-10.0 sec 205 MBytes 171 Mbits/sec
切换肯定发生了一些奇怪的事情,不幸的是,我没有其他可以测试的东西。我很感谢netgear交换机是一套便宜的工具,可能有人值得我投资更好的东西,有人认为吗?
这听起来像是开关的问题。此类问题已知该交换机模型:http : //forums.whirlpool.net.au/archive/2249158
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句