https://www.cnblogs.com/xuanbjut/p/14144255.html
TCP吞吐量
./iperf3 -c 192.168.91.23 -i 1 -t 60 -p 520 -R 单线程 反向,
./iperf3 -c 192.168.91.23 -P 30 -t 60 -p 520 多线程
./iperf3 -c 192.168.91.23 -d -t 60 -p 520 上下行带宽
-R:反向,板子做客户端,测试接收时使用
-t: 时间
-p:端口
-s:服务端
-c:客户端
-u:UDP 默认TCP
UDP吞吐量
iperf3 -s -i 1 -p 521
./iperf3 -u -c 192.168.91.23 -b 100m -t 60 -p 521 单线程
./iperf3 -u -c 192.168.91.23 -b 5m -t 60 -p 521 多线程
./iperf3 -u -c 192.168.91.23 -b 100m -d -t 60 -p 521 上下行带宽
./iperf3 -u -c 192.168.91.23 -b 100m -t 60 -p 69
./iperf3 -c 192.168.91.23 -p 520 -f m -i 1 -t 5 -O 3 -R
window上的安装和使用
https://blog.csdn.net/weixin_43914200/article/details/88966108
安装:
iperf官网:https://iperf.fr/
iperf官网下载地址(所有版本都可以在这个网址中下载):https://iperf.fr/iperf-download.php
使用:
在执行文件目录下打开cmd窗口:
做服务端命令:iperf3 -s -i 1 -p 520