最近发现从 nas 上 smb 下载速度总是不稳定, 开始能有几 M/s ,很快就下滑,过段时间又好。但是网页测速又都是正常。 今天研究了下,好像是不同协议下的情况。 用 iperf3 , 上传开始几 M ,很快就限制了,但是同时用 librespeed 这种 http 的速度则仍然正常。同一个服务器 iperf(也测试过 5 线程)和 librespeed 结果如下。同一个服务器部署了 iperf3 和 librespeed-go iperf3 -c xxx
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 646 KBytes 5.29 Mbits/sec 29 16.3 KBytes
[ 5] 1.00-2.00 sec 125 KBytes 1.02 Mbits/sec 0 19.0 KBytes
[ 5] 2.00-3.00 sec 250 KBytes 2.05 Mbits/sec 0 16.3 KBytes
[ 5] 3.00-4.00 sec 125 KBytes 1.02 Mbits/sec 37 16.3 KBytes
[ 5] 4.00-5.00 sec 250 KBytes 2.05 Mbits/sec 5 16.3 KBytes
[ 5] 5.00-6.00 sec 125 KBytes 1.02 Mbits/sec 15 10.9 KBytes
[ 5] 6.00-7.00 sec 125 KBytes 1.02 Mbits/sec 2 16.3 KBytes
[ 5] 7.00-8.00 sec 250 KBytes 2.05 Mbits/sec 0 16.3 KBytes
[ 5] 8.00-9.00 sec 125 KBytes 1.02 Mbits/sec 19 16.3 KBytes
[ 5] 9.00-10.00 sec 125 KBytes 1.02 Mbits/sec 0 16.3 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 2.09 MBytes 1.76 Mbits/sec 107 sender
[ 5] 0.00-10.00 sec 1.94 MBytes 1.63 Mbits/sec receiver
librespeed-cli --local-json speed.json --server 7 --duration 5 --no-download
Using local JSON server list: speed.json
Selected server: 7
You're testing from: xxx -
Ping: 10.27 ms Jitter: 0.47 ms
Download test is disabled
Upload rate: 117.31 Mbps
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.