iperf工具吞吐量测试
发布日期:2021-06-29 14:51:17 浏览次数:2 分类:技术文章

本文共 1272 字,大约阅读时间需要 4 分钟。

【附件】

iperf.exe(电脑端),
iperf(车机端),版本号,2.06

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

【测试步骤】

  1. 车机手动开启热点。

    ===> 进入设置方法: adb shell am start com.android.settings/com.android.settings.Settings

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

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

以车机作服务器举例:

  1. 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

  2. 电脑 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 5001TCP 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(测试时长)

在这里插入图片描述

转载地址:https://ciellee.blog.csdn.net/article/details/105063573 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:《Linux内核 学习笔记》--- 第二章 内存管理 2.5 slab分配器
下一篇:《Linux内核 学习笔记》--- 第二章 内存管理 2.3 内核内存布局图

发表评论

最新留言

不错!
[***.144.177.141]2024年04月16日 18时00分20秒