命令iperf3命令使用

简介:

安装:

[root@bogon ~]# rpm -ivh iperf3-3.1.3-1.fc24.x86_64.rpm 
Preparing...                          ################################# [100%]
Updating / installing...
   1:iperf3-3.1.3-1.fc24              ################################# [100%]
#查看
[root@bogon ~]# which iperf3
/usr/bin/iperf3
[root@bogon ~]# 
启动:
/usr/bin/iperf3
[root@bogon ~]# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

客户端启动:
C:\Users\lw\Downloads\iperf>iperf3 -c 172.31.00.88
Connecting to host 172.31.00.88, port 5201
[ 4] local 172.31.00.36 port 21848 connected to 172.31.00.88 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 7.88 MBytes 66.0 Mbits/sec
[ 4] 1.00-2.00 sec 7.62 MBytes 64.0 Mbits/sec
[ 4] 2.00-3.00 sec 7.62 MBytes 63.9 Mbits/sec
[ 4] 3.00-4.00 sec 7.62 MBytes 64.0 Mbits/sec
[ 4] 4.00-5.00 sec 7.62 MBytes 64.0 Mbits/sec
[ 4] 5.00-6.00 sec 7.62 MBytes 63.9 Mbits/sec
[ 4] 6.00-7.00 sec 7.62 MBytes 64.0 Mbits/sec
[ 4] 7.00-8.00 sec 7.75 MBytes 65.0 Mbits/sec
[ 4] 8.00-9.00 sec 7.62 MBytes 64.0 Mbits/sec
[ 4] 9.00-10.00 sec 7.62 MBytes 64.0 Mbits/sec


[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 76.6 MBytes 64.3 Mbits/sec sender
[ 4] 0.00-10.00 sec 76.6 MBytes 64.3 Mbits/sec receiver

iperf Done.
服务端显示

[root@bogon ~]# iperf3 -s

Server listening on 5201

Accepted connection from 172.31.00.36, port 21847
[ 5] local 172.31.00.88 port 5201 connected to 172.31.00.36 port 21848
[ ID] Interval Transfer Bandwidth
[ 5] 0.00-1.00 sec 7.22 MBytes 60.6 Mbits/sec 
[ 5] 1.00-2.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 2.00-3.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 3.00-4.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 4.00-5.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 5.00-6.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 6.00-7.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 7.00-8.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 8.00-9.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 9.00-10.00 sec 7.64 MBytes 64.1 Mbits/sec 
[ 5] 10.00-10.08 sec 641 KBytes 64.0 Mbits/sec

[ ID] Interval Transfer Bandwidth

[ 5] 0.00-10.08 sec 0.00 Bytes 0.00 bits/sec sender
[ 5] 0.00-10.08 sec 76.6 MBytes 63.8 Mbits/sec receiver

Server listening on 5201

说明:
Interval :时间间隔
Transfer :转移 
Bandwidth:带宽
目前:只有63.8M网络

帮助:
ou have new mail in /var/spool/mail/root
[root@bogon ~]# iperf3 -h
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: http://software.es.net/iperf/
Report bugs to: https://github.com/esnet/iperf
You have new mail in /var/spool/mail/root
[root@bogon ~]#










本文转自 知止内明 51CTO博客,原文链接:http://blog.51cto.com/357712148/2059293,如需转载请自行联系原作者
目录
相关文章
|
6月前
|
网络协议 网络安全 网络架构
ping命令详解
【8月更文挑战第14天】 ping命令详解
255 3
|
8月前
|
网络协议 Linux Windows
ping命令详解
ping命令详解
230 1
|
Linux 网络架构 Windows
Linux下ping命令、traceroute命令、tracert命令的使用
Linux系统的ping命令是常用的网络命令,它通常用来测试与目标主机的连通性,我们经常会说“ping一下某机器,看是不是开着”、不能打开网页时会说“你先ping网关地址192.168.1.1试试”。它通过发送ICMP ECHO_REQUEST数据包到网络主机(send ICMP ECHO_REQUEST to network hosts),并显示响应情况,这样我们就可以根据它输出的信息来确定目标主机是否可访问(但这不是绝对的)。
2167 0
|
Unix Linux 网络架构
必备的网络常用测试命令(ping命令)
它是一个可以检查两个主机之间连通性的DOS命令,利用网络上机器IP地址的唯一性,给目标IP地址发送一个ICMP数据包,再要求对方返回一个同样大小的数据包来确定两台网络机器的联通情况和联通时延。所以用好它可以很好地帮助我们分析判定网络故障和检测网络连接的速度。下面就具体列出它的用法:
必备的网络常用测试命令(ping命令)
|
网络协议 网络架构 网络安全
常见网络命令之traceroute命令一起其他常用命令
备注:任何命令+/?就可以显示命令帮助,比如:ipconfig /?。 traceroute命令 traceroute是UNIX系统中的名字,用来跟踪一个分组从源点到终点的路径。在Windows系统中这个命令是tracert。 tracert 网址 例如 tracert www.baidu.com 结果: 主要用来测试,访问目标地址要经过的所有路由器或三层交
1950 0
|
网络协议 测试技术 Linux
|
网络协议
iperf3的常用命令样例
iperf3是一个用于测量网络带宽的工具,以下是一些常用的iperf3命令样例: 1. 在服务器模式下启动iperf3: ``` iperf3 -s ``` 2. 在客户端通过TCP连接测试带宽: ``` iperf3 -c <服务器IP地址> ``` 3. 在客户端通过UDP连接测试带宽: ``` iperf3 -c <服务器IP地址> -u ``` 4. 指定连接端口号: ``` iperf3 -c <服务器IP地址> -p <端口号> ``` 5. 设置测试时间: ``` iperf3 -c <
1444 0
|
9月前
|
Java
cmd常用命令(端口占用)
cmd常用命令(端口占用)

热门文章

最新文章