0
点赞
收藏
分享

微信扫一扫

iperf工具吞吐量测试

艾晓雪 2022-02-28 阅读 112


【附件】

iperf.exe(电脑端),

iperf(车机端),版本号,2.06

工具下载路径: https://iperf.fr/iperf-download.php

【测试步骤】



车机手动开启热点。
===> 进入设置方法: adb shell am start com.android.settings/com.android.settings.Settings



笔记本 连接上车机的热点。



分别通过 ifconfig 和 ipconfig 记录下 车机 和 电脑的 ip地址。



以车机作服务器举例:



push iperf 到车机内,并运行 iperf -s -w 5M
===>
adb root
adb remount
adb push iperf /system/bin/iperf
adb shell
chmod 777 /system/bin/iperf
iperf -s -w 5M



电脑 cmd 下运行 iperf.exe
===> iperf.exe -c 192.168.43.1 -p 5001 -w 5M -i 1 -t 60



C:\Users\ciellee\Desktop\电脑iperf>iperf.exe -c 192.168.43.1 -p 5001 -w 5M -i 1 -t 60
------------------------------------------------------------
Client connecting to 192.168.43.1, TCP port 5001
TCP window size: 5.00 MByte
------------------------------------------------------------
[300] local 192.168.43.31 port 60021 connected with 192.168.43.1 port 5001
[ ID] Interval Transfer Bandwidth
[300] 0.0- 1.0 sec 14.0 MBytes 117 Mbits/sec
[300] 1.0- 2.0 sec 9.39 MBytes 78.8 Mbits/sec
[300] 2.0- 3.0 sec 7.80 MBytes 65.5 Mbits/sec
[300] 3.0- 4.0 sec 9.91 MBytes 83.1 Mbits/sec
[300] 4.0- 5.0 sec 9.32 MBytes 78.2 Mbits/sec
[300] 5.0- 6.0 sec 6.79 MBytes 57.0 Mbits/sec

【iperf 配置】

服务器端配置

iperf -s -w 2M

客户端配置

iperf -c 192.168.43.1(服务器端IP地址) -p 5001(服务器端端口号) -w 2M -i 1 -t 60(测试时长)

iperf工具吞吐量测试_android



举报

相关推荐

0 条评论