iperf3命令使用
发表于:2025-12-03 作者:千家信息网编辑
千家信息网最后更新 2025年12月03日,iperf3命令使用1,iperf3安装iperf3下载:https://iperf.fr/iperf-download.php#fedora[root@localhost home]# rpm -i
千家信息网最后更新 2025年12月03日iperf3命令使用
iperf3命令使用
1,iperf3安装
iperf3下载:https://iperf.fr/iperf-download.php#fedora
[root@localhost home]# rpm -ivhiperf3-3.1.3-1.fc24.x86_64.rpmPreparing... ################################# [100%]Updating / installing... 1:iperf3-3.1.3-1.fc24 ################################# [100%]
2,常用几种命令
服务器端:
[root@localhost home]# iperf3 -s
客户端:
[root@localhost home]# iperf3 -c 192.168.0.222Connecting to host 192.168.0.222, port 5201[ 4]local 192.168.0.221 port 47864 connected to 192.168.0.222 port 5201[ ID] Interval Transfer Bandwidth Retr Cwnd[ 4] 0.00-1.00 sec 639 MBytes 5.36 Gbits/sec 86 366 KBytes [ 4] 1.00-2.00 sec 514 MBytes 4.31 Gbits/sec 0 393 KBytes [ 4] 2.00-3.00 sec 570 MBytes 4.78 Gbits/sec 16 301 KBytes [ 4] 3.00-4.00 sec 605 MBytes 5.08 Gbits/sec 0 322 KBytes [ 4] 4.00-5.00 sec 555 MBytes 4.65 Gbits/sec 0 334 KBytes [ 4] 5.00-6.00 sec 581 MBytes 4.87 Gbits/sec 0 341 KBytes ^C[ 4] 6.00-6.54 sec 284 MBytes 4.44 Gbits/sec 0 344 KBytes - - - - - - - - - - - - - - - - - - - - - -- - -[ ID] Interval Transfer Bandwidth Retr[ 4] 0.00-6.54 sec 3.66 GBytes 4.81 Gbits/sec 102 sender[ 4] 0.00-6.54 sec 0.00 Bytes 0.00 bits/sec receiveriperf3: interrupt - the client hasterminated
解释:
默认情况客户端使用TCP协议
-s:指明是服务器端
-c: 指明是客户端
192.168.0.222为服务端IP地址
[root@localhost home]# iperf3 -u -c 192.168.0.222 -b 100MConnecting to host 192.168.0.222, port 5201warning: Unable to set socket pacing, usingapplication pacing instead[ 4]local 192.168.0.221 port 46516 connected to 192.168.0.222 port 5201[ ID] Interval Transfer Bandwidth Total Datagrams[ 4] 0.00-1.00 sec 10.8 MBytes 90.8 Mbits/sec 1386 [ 4] 1.00-2.00 sec 11.9 MBytes 99.7 Mbits/sec 1521 [ 4] 2.00-3.00 sec 11.9 MBytes 100 Mbits/sec 1526 [ 4] 3.00-4.00 sec 11.9 MBytes 100 Mbits/sec 1526 [ 4] 4.00-5.00 sec 11.9 MBytes 100 Mbits/sec 1528 ^C[ 4] 5.00-5.38 sec 4.75 MBytes 104 Mbits/sec 608 - - - - - - - - - - - - - - - - - - - - - -- - -[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams[ 4] 0.00-5.38 sec 63.2 MBytes 98.5 Mbits/sec 0.000 ms 0/8095 (0%) [ 4]Sent 8095 datagramsiperf3: interrupt - the client hasterminated
解释:
-u:指定是udp报文
-b:指定发送带宽大小。
服务器端:
[root@localhost home]# iperf3 -s -p 2480
客户端:
[root@localhost home]# iperf3 -u -c 192.168.0.222 -b 100M -p 2480Connecting to host 192.168.0.222, port 2480warning: Unable to set socket pacing, usingapplication pacing instead[ 4]local 192.168.0.221 port 53812 connected to 192.168.0.222 port 2480[ ID] Interval Transfer Bandwidth Total Datagrams[ 4] 0.00-1.00 sec 10.8 MBytes 90.6 Mbits/sec 1383 [ 4] 1.00-2.00 sec 11.9 MBytes 99.9 Mbits/sec 1524 [ 4] 2.00-3.00 sec 11.9 MBytes 99.9 Mbits/sec 1524 [ 4] 3.00-4.00 sec 12.0 MBytes 100 Mbits/sec 1530 ^C[ 4] 4.00-4.06 sec 1.20 MBytes 167 Mbits/sec 154 - - - - - - - - - - - - - - - - - - - - - -- - -[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams[ 4] 0.00-4.06 sec 47.8 MBytes 98.7 Mbits/sec 0.000 ms 0/6115 (0%) [ 4]Sent 6115 datagramsiperf3: interrupt - the client hasterminated
解释:
-p:指定端口
iperf3 -h 查看所有参数含义
[root@localhost home]# iperf3 -hUsage: 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 bandwidthreports -F,--file name xmit/recv thespecified file -A,--affinity n/n,m set CPU affinity -B,--bindbind to a specific interface -V,--verbose more detailedoutput -J,--json output in JSONformat --logfile f sendoutput to a log file -d,--debug emit debuggingoutput -v,--version show versioninformation and quit -h,--help show this messageand quitServer 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 clientconnection then exitClient specific: -c,--client run in client mode, connecting to -u,--udp use UDP rather thanTCP -b,--bandwidth #[KMG][/#] target bandwidth in bits/sec (0 for unlimited) (default 1 Mbit/secfor UDP, unlimited for TCP) (optional slash andpacket 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 forTCP, 8 KB for UDP) --cport bind to a specific client port (TCP andUDP, default: ephemeral port) -P,--parallel # number of parallel client streams torun -R,--reverse run in reverse mode(server sends, client receives) -w,--window #[KMG] set window size / socket buffer size -C,--congestion set TCPcongestion control algorithm (Linux and FreeBSD only) -M,--set-mss # set TCP/SCTP maximum segment size (MTU- 40 bytes) -N,--no-delay set TCP/SCTP nodelay, disabling Nagle's Algorithm -4,--version4 only use IPv4 -6,--version6 only use IPv6 -S,--tos N set the IP 'type ofservice' -L,--flowlabel N set the IPv6 flowlabel (only supported on Linux) -Z,--zerocopy use a 'zero copy'method of sending data -O,--omit N omit the first nseconds -T,--title str prefix every outputline with this string --get-server-output getresults from server --udp-counters-64bit use64-bit counters in UDP test packets --no-fq-socket-pacing disablefair-queuing based socket pacing (Linux only) [KMG] indicates options that support aK/M/G suffix for kilo-, mega-, or giga- iperf3 homepage at:http://software.es.net/iperf/Report bugs to: https://github.com/esnet/iperf
客户
客户端
服务
服务器
解释
命令
参数
含义
地址
大小
带宽
常用
情况
报文
端口
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
云南网络安全等级保护
浙江服务器机柜订购
关于软件开发的公司
百度网络技术有限公司法务
软件开发需要下载什么软件
特种网络技术分类标准
在售中国乘用车销量数据库
股票代理服务器
计算机科学与技术属于软件开发么
苹果查找怎么样连接服务器
北京云服务器租用价格表云空间
个人对网络安全的认识简答
数据库技术好难
给客户的保证服务器安全的文档
奉贤区参考软件开发销售方法
pubg端游服务器怎么切换
麦块里面有什么好玩的服务器
服务器夜景
手机软件开发用什么条件
山西在线网络技术服务售价
阿里云服务器支持php
外网访问的web服务器
张店工具软件开发定制
网络安全管理与维护学什么
高频数据用什么数据库保存
农业网络技术传播
网络安全登记保护二级标准
科技微讯-互联网的一些事一些情
三级网络技术二十套题
计算机数据库教程