Openwrt安装iperf服务端
opkg update
opkg install iperf3
路由器运行iperf3服务端
iperf3 -s -D
-s 表示运行的是服务器模式,就是测速接收方,-D(大写字母)表示后台运行,断开连接之后还会运行。
其他安装iperf客户端
iPerf - Download iPerf3 and original iPerf pre-compiled binaries
下载对应版本
单线测试命令:
iperf3 -c 192.168.50.11 -b 1000m -t 60 -i 1 -u
-c表示运行的是客户端模式,就是测速发送方。 -b表示估计带宽,-t表示持续测速时间,就是一共跑60秒,-i表示间隔输出结果时间,就是每隔1秒钟输出一次,-u表示使用udp连接来测速,默认是tcp连接测速,因为tcp要进行确认所以不如udp测速更准确。
多线测试命令:
iperf3 -c 192.168.50.11 -b 1000m -t 60 -i 1 -u -P 2
多线程2-4个最好,太多了路由器吃不消
Comments | NOTHING