最近发现从 nas 上 smb 下载速度总是不稳定, 开始能有几 M/s ,很快就下滑,过段时间又好。但是网页测速又都是正常。今天研究了下,好像是不同协议下的情况。用 iperf3 , 上传开始几 M ,很快就限制了,但是同时用 librespeed 这种 http 的速度则仍然正常。同一个服务器iperf(也测试过 5 线程)和 librespeed 结果如下。同一个服务器部署了 iperf3 和 librespeed-goiperf3 -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.jsonSelected server: 7You're testing from: xxx - Ping: 10.27 ms Jitter: 0.47 msDownload test is disabledUpload rate: 117.31 Mbps