命令行快速測試局域網連接速度


背景

調試需要知道兩端是否達到千兆網速,跑個測試最直觀。

方法

需要兩台設備,都安裝iperf工具。

服務端

$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------

客戶端

$ iperf -c 10.0.1.33
------------------------------------------------------------
Client connecting to 10.0.1.33, TCP port 5001
TCP window size: 65.0 KByte (WARNING: requested 64.0 KByte)
------------------------------------------------------------
[  1] local 10.0.1.9 port 58847 connected with 10.0.1.33 port 5001
[ ID] Interval       Transfer     Bandwidth
[  1] 0.00-10.02 sec  96.4 MBytes  80.7 Mbits/sec

參考

Test the Speed of a Local Area Network - Super User


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM