dadb version 看版本
adb disconnect 断开连接
adb connect 192.168.1.2 设置连接IP 1
adb devices 确认是否成功 2
adb kill-server Kill 进程
adb start-server 重启进程
adb shell 进入盒子控制台 3
iperf -s -w 2M -1 8k -i 1&
iperf -c 192.168.1.200 -w 2M -1 8k -i 1 -t 30
mount -o remount,rw /dev/block/system 5
su 4
/U盘路径/iperf文件 6
0E
cp /storage/6C0B-9023/iperf /system/bin 7
信道 11
衰减 0
信号强度 -59
RX 80.6/76.8/70.0/67.6/69.9
信道 11
衰减 20dBm
信号强度 -72
RX 26.8/29.1/29.1/29.3/29.5
要注意路由器的wirless标准,是80211 ac还是其他,以免影响测试结果
ubuntu虚似机-桥接
服务端 执行这个命令
iperf -s
客户端
iperf -c 192.168.3.115 -p 5001
oot@am62axx-evm:/opt/edgeai-gst-apps# iperf -c 192.168.3.115 -p 5001
------------------------------------------------------------
Client connecting to 192.168.3.115, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.3.92 port 50400 connected with 192.168.3.115 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.1 sec 2.38 MBytes 1.98 Mbits/sec
root@am62axx-evm:/opt/edgeai-gst-apps# iperf -c 192.168.3.115 -p 5001
------------------------------------------------------------
Client connecting to 192.168.3.115, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.3.92 port 51142 connected with 192.168.3.115 port 5001
\[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.8 sec 134 MBytes 103 Mbits/sec
使用iperf测试网络性能
测试吞吐量,抖动和丢包率
如何需要同时测试以上三个参数,那么只能通过UDP获得。使用-u参数进行UDP测试(iperf默认为TCP)
iperf3 -s -p 17895
iperf3 -c 192.168.3.115 -p 17895 -P 1 -t 1000