在mac环境下,对android网络性能进行iperf测试,步骤如下:
Mac的ipe形形色色的人作文rf安装
brew install iperf
android的iperf,有两种方式,一种安装iperf apk,下载地址:/d/file/titlepic/iperf-download.php ,第二种方式为用iperf binary, 下载: /d/file/titlepic/init 密码: 8ael (android 9测试有效)
服务端
iperf -s -p 5001 -P 1 -f m -i 2
# 说明:
# -s表示作为服务端启动
# -p 5001 表示监听的端口为5001
# -P 1表示服务端与客户端之前的线程数为1。客户端同时使用此参数
# -f m表示显示数据相关大小时输出格式为Mbps
# -i 2表示每2秒刷新一次log
客户端
iperf -c xx.xx.xx.xx -p 5001 -t 60 -P 1 -n 100M
# 说明:
# -c xxxx 表示作为客户端启动,xx.xx.xx.xx即服务端ip地址
# -p 5001 表示服务端监听的端口为5001
# -t 60 表示测试时长为60秒
# -P 1表示客户端与服务端之间的线程数为1。服务端同时使用此参数
# -n 100M 表示发送总数据量为100M。此时-t限定的时长将无效
# -i 2表示每2秒刷新一次log
Mac服务器端:
$ iperf -s -p 5001 -P 1 -f m -i 2------------------------------------------------------------Server listening on TCP port 5001TC爱情不是一切P window size: 0.12 MByte (default)------------------------------------------------------------[ 4] local 192.168.10.72 port 5001 connected with 192.168.10.64 port 60334[ ID] Interval Transfer Bandwidth[ 4] 0.0- 2.0 c 4.12 MBytes 17.3 Mbits/c[ 4] 2.0- 4.0 c 8.45 MBytes 35.4 Mbits/c[ 4] 4.0- 6.0 c 21.2 MBytes 89.0 Mbits/c[ 4] 6.0- 8.0 c 21.6 MBytes 90.6 Mbits/c[ 4] 8.0-10.0 c 21.0 MBytes 88.1 Mbits/c[ 4] 10.0-12.0 c 20.4 MBytes 85.7 Mbits/c[ 4] 0.0-12.3 c 护手霜可以擦脸吗100 MBytes 68.1 Mbits/c[SUM] 0.0-12.3 c 104 MBytes 70.9 Mbits/c
Android客上海海事大学录取分数线户端:
/data/local/tmp # ./iperf -c 192.168.10.72 -p 5001 -t 60 -滥竽充数的寓言故事P 1 -n 100M------------------------------------------------------------Client connecting to 192.168.10.72, TCP port 5001TCP window size: 1.00 MByte (default)------------------------------------------------------------[ 3] local 192.168.10.64 port 60334 connected with 192.168.10.72 port 5001[ ID] Interval Transfer Bandwidth [ 3] 0.0-12.2 c 100 MBytes 68.7 Mbits/c
本文地址:https://blog.csdn.net/wcyan/article/details/107428748
本文发布于:2023-04-08 20:36:32,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/2f4687611b721d2c49fd7124751764d8.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:Mac下Android iperf网络测试.doc
本文 PDF 下载地址:Mac下Android iperf网络测试.pdf
留言与评论(共有 0 条评论) |