SSD_iperf2使用
1. 获取 iperf¶
windows版本2.0.9下载链接:https://iperf.fr/iperf-download.php#windows
2. 编译¶
此处指定对应的编译器:
./configure --host=arm-linux-gnueabihf CXX=${CROSS_COMPILE}g++ CC=${CROSS_COMPILE}gcc cd iperf-2.0.9/ make clean make
3. 测试¶
-
cp ./src/iperf ${your board
windows pc和目标板相互连接测试。
-
吞吐测试
./iperf -s ./iperf -c 172.19.24.78 -i 1 -t 10 //tcp 吞吐
结果:
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 113 MBytes 94.7 Mbits/sec
-
丢包测试
./iperf -s -u 服务端运行 ./iperf -c 172.19.24.78 -i 1 -t 10 -u //udp丢包
结果:
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 4] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.029 ms 0/ 893 (0%)
-
help
./iperf -h