首先,完全不确定这是否是正确的提问地点。如果不是,请原谅我。
好吧,我有一个 OrangePi 零作为服务器。我安装在上面阿姆比安(旧版,xenial 版本,内核 4.11.5-sun8i)。
它有一个 100Mb 以太网端口;我将其设置为 NAS,但下载速度很慢。
我运行 iperf3,这是我在服务器上收到的输出。首先我将其作为服务器进行测试(因此我验证了上传速度):
user@DiscoRete:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.1.104, port 51784
[ 5] local 192.168.1.2 port 5201 connected to 192.168.1.104 port 51785
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 10.8 MBytes 90.8 Mbits/sec
[ 5] 1.00-2.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 2.00-3.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 3.00-4.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 4.00-5.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 5.00-6.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 6.00-7.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 7.00-8.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 8.00-9.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 9.00-10.00 sec 11.3 MBytes 94.9 Mbits/sec
[ 5] 10.00-10.02 sec 220 KBytes 94.6 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-10.02 sec 113 MBytes 94.5 Mbits/sec sender
[ 5] 0.00-10.02 sec 113 MBytes 94.5 Mbits/sec receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
带宽约为95Mb/s;因为链接是 100Mb 以太网,所以对我来说完全没问题。
然后我测试了下载速度:
user@DiscoRete:~$ iperf3 -c 192.168.1.104
Connecting to host 192.168.1.104, port 5201
[ 4] local 192.168.1.2 port 47504 connected to 192.168.1.104 port 5201
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 284 KBytes 2.33 Mbits/sec 37 2.83 KBytes
[ 4] 1.00-2.00 sec 270 KBytes 2.21 Mbits/sec 39 2.83 KBytes
[ 4] 2.00-3.00 sec 393 KBytes 3.22 Mbits/sec 40 1.41 KBytes
[ 4] 3.00-4.00 sec 352 KBytes 2.88 Mbits/sec 29 1.41 KBytes
[ 4] 4.00-5.00 sec 481 KBytes 3.94 Mbits/sec 32 1.41 KBytes
[ 4] 5.00-6.00 sec 488 KBytes 4.00 Mbits/sec 56 2.83 KBytes
[ 4] 6.00-7.00 sec 315 KBytes 2.58 Mbits/sec 37 2.83 KBytes
[ 4] 7.00-8.00 sec 236 KBytes 1.93 Mbits/sec 28 2.83 KBytes
[ 4] 8.00-9.00 sec 346 KBytes 2.84 Mbits/sec 38 2.83 KBytes
[ 4] 9.00-10.00 sec 293 KBytes 2.40 Mbits/sec 32 2.83 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 3.38 MBytes 2.83 Mbits/sec 368 sender
[ 4] 0.00-10.00 sec 3.32 MBytes 2.78 Mbits/sec receiver
iperf Done.
等等:低于 3Mb/s???您认为这里的问题是什么?我怎样才能进一步测试它?
谢谢
更新:我改变了以太网线;第一次效果更好(传输速度约为 8MB/s),但随后又回到了 300kB/s(所以这里看到的是 2Mb/s)。
如果有帮助的话,我注意到当电缆断开时,OrangePI 零端口上的两个 LED 会亮起...
这个周末,当我回到家时,我会尝试用我得到的另一块板更换 oPI 板。然后我会尝试直接连接。
您对如何调试这个有任何其他提示吗?