wifi 性能之吞吐量测试

1:wifi测试环境要求            

1:测试无线网络时,两个设备端之间,不能存在格挡物,如墙面、机器、金属等物品,导致无线通信传输受阻,影响吞吐量速度

2、需排除网络路由因素,路由器应选用千兆路由,优先选择支持 WiFi6 的路由器。

3、测试过程应在环境空旷,WiFi信号弱的地方进行测试,减少同频干扰,如会议室内TV 端:

4、测试无线网络时,WiFi模块与路由之间距离应该保持 0.5~2 米直线距离。

PC 端:

防止 PC 电脑设备落后导致测试,网络吞吐量过低,无论测试有线!无线/上行下行吞吐量速度,PC 电脑都需要接入千兆网线来进行测试

2:吞吐量测试图

      吞吐量测试主要测试该网卡在局域网的平均传输速度,直接能体现出该网卡的网络性能,网络吞吐量包括上行速度和下行速度,如网络设备A在网上下载应用,这时候影响下载的最大因素是下行速度,如果上传资料,那么影响的最大因素是上行速度 

3:吞吐量测试

安卓设备和pc接在路由器上,安卓通过wifi与路由器进行数据交互,PC通过有线网络和路由器进行数据交互。

PC端的测试工具是iperf3的windows版本

安卓端的测试工具是安卓app或者交叉编译出来的iperf3bin文件

4:命令解析

pc端运行命令iperf3 -s 开启服务端

安卓端运行app或者运行iperf3命令

Usage: iperf [-s|-c host] [options]
       iperf [-h|--help] [-v|--version]

Server or Client:
  -p, --port      #         server port to listen on/connect to
  -f, --format    [kmgKMG]  format to report: Kbits, Mbits, KBytes, MBytes
  -i, --interval  #         seconds between periodic bandwidth reports
  -F, --file name           xmit/recv the specified file
  -A, --affinity n/n,m      set CPU affinity
  -B, --bind      <host>    bind to a specific interface
  -V, --verbose             more detailed output
  -J, --json                output in JSON format
  --logfile f               send output to a log file
  -d, --debug               emit debugging output
  -v, --version             show version information and quit
  -h, --help                show this message and quit
Server specific:
  -s, --server              run in server mode
  -D, --daemon              run the server as a daemon
  -I, --pidfile file        write PID file
  -1, --one-off             handle one client connection then exit
Client specific:
  -c, --client    <host>    run in client mode, connecting to <host>
  -u, --udp                 use UDP rather than TCP
  -b, --bandwidth #[KMG][/#] target bandwidth in bits/sec (0 for unlimited)
                            (default 1 Mbit/sec for UDP, unlimited for TCP)
                            (optional slash and packet count for burst mode)
  -t, --time      #         time in seconds to transmit for (default 10 secs)
  -n, --bytes     #[KMG]    number of bytes to transmit (instead of -t)
  -k, --blockcount #[KMG]   number of blocks (packets) to transmit (instead of -t or -n)
  -l, --len       #[KMG]    length of buffer to read or write
                            (default 128 KB for TCP, 8 KB for UDP)
  --cport         <port>    bind to a specific client port (TCP and UDP, default: ephemeral port)
  -P, --parallel  #         number of parallel client streams to run
  -R, --reverse             run in reverse mode (server sends, client receives)
  -w, --window    #[KMG]    set window size / socket buffer size
  -C, --congestion <algo>   set TCP congestion control algorithm (Linux and FreeBSD only)
  -M, --set-mss   #         set TCP/SCTP maximum segment size (MTU - 40 bytes)
  -N, --no-delay            set TCP/SCTP no delay, disabling Nagle's Algorithm
  -4, --version4            only use IPv4
  -6, --version6            only use IPv6
  -S, --tos N               set the IP 'type of service'
  -L, --flowlabel N         set the IPv6 flow label (only supported on Linux)
  -Z, --zerocopy            use a 'zero copy' method of sending data
  -O, --omit N              omit the first n seconds
  -T, --title str           prefix every output line with this string
  --get-server-output       get results from server
  --udp-counters-64bit      use 64-bit counters in UDP test packets
  --no-fq-socket-pacing     disable fair-queuing based socket pacing
                            (Linux only)

[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-

iperf3 homepage at: iperf3 — iperf3 3.17.1 documentation
Report bugs to:     https://github.com/esnet/iperf

5:工具下载地址

csdn - 安全中心

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值