The iperf3 command uses the
The iperf3 command is installed using 1pm iPerf3
Iperf3 download: https://iperf.fr/iperf-download.php#fedora
[root@localhost home] # rpm-ivhiperf3-3.1.3-1.fc24.x864.rpmgathering. # # [100%] Updating / installing... 1:iperf3-3.1.3-1.fc24 # # [100%] 2, common commands
Server side:
[root@localhost home] # iperf3-s
Client:
[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 8666 KBytes [4] 1.00-2.00 sec 514 MBytes 4.31 Gbits/sec 0393 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 0322 KBytes [4] 4.00-5.00 sec 555 MBytes 4.65 Gbits/sec 0334 KBytes [4] 5.00 sec 581 MBytes 4.87 Gbits/sec 0341 KBytes ^ C [4] 6.00 sec 284 MBytes 4.44 Gbits/ Sec 0344 KBytes-[ID] Interval Transfer Bandwidth Retr [4] 0.00-6.54 sec 3.66 GBytes 4.81 Gbits/sec 102sender [4] 0.00-6.54 sec 0. 00 Bytes 0.00 bits/sec receiveriperf3: interrupt-the client hasterminated
Explanation:
The client uses the TCP protocol by default
-s: indicates the server side
-c: indicates the client
192.168.0.222 is the server IP address
[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 sec 11.9 MBytes 99.7 Mbits/sec 1521 [4] 2.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 08095 (0%) [4] Sent 8095 datagramsiperf3: interrupt-the client hasterminated
Explanation:
-u: specify a udp message
-b: specifies the size of the send bandwidth.
Server side:
[root@localhost home] # iperf3-s-p 2480
Client:
[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 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 0swap 6115 (0%) [4] Sent 6115 datagramsiperf3: interrupt-the client hasterminated
Explanation:
-p: designated port
Iperf3-h check the meaning of all the parameters [root@localhost home] # iperf3-hUsage: iperf [- s |-c host] [options] iperf [- h |-- help] [- v |-- version] Server or Client:-server port to listen on/connect to server port to listen on/connect to-server port to listen on/connect to server port to listen on/connect to [kmgKMG] format to report: Kbits, Mbits, KBytes,MBytes-talk interval # seconds between periodic bandwidthreports-F -- file name xmit/recv thespecified file-A file name xmit/recv thespecified file talking about the momentum m set CPU affinity-BGrammer talk about bind bind to a specific interface-V talk verbose more detailedoutput-J Masters talk about JSON output in JSONformat-- logfile f sendoutput to a logfile-d force talk talk debug emit debuggingoutput-v language language version show versioninformation and quit-h -- help show this messageand quitServer specific:-- Sqiang talk server run in server mode-DMY Methodist daemon run the server as a daemon-I recollect Methodism Pidfile file write PID file-1 people Keiko oneoff handle one clientconnection then exitClient specific:-- c Meimei Leiwi client run in client mode, connecting to-ujinger Mustang UFUP Mustu-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 KMG talk of time # time in seconds to transmit for (default 10 secs)-n KMG words # [KMG] number of bytes to transmit (instead of-t)-k -- blockcount # [KMG] number of blocks (packets) to transmit (instead of-tor-n)-- Lechawren # [KMG] length of buffer to read or write (default 128KB forTCP, 8 KB for UDP)-- cport bind to a specific client port (TCP andUDP, default: ephemeral port)-- PPerry # number of parallel client streams torun-R -- reverse run in reverse mode (server sends, client receives)-- reverse run in reverse mode (server sends, client receives)-- wmahashi talk window # [KMG] set window size / socket buffer size-C language talk congest set TCPcongestion control algorithm (Linux and FreeBSD only)-MQ Fukui MSS # set TCP/SCTP maximum segment size (MTU- 40 bytes)-NMHI Leiwashi Nodelay set TCP/SCTP nodelay, disabling Nagle's Algorithm-4 set TCP/SCTP nodelay QQ version 4 only use IPv4-6 -- version6 only use IPv6-SmithMurtos N set the IP 'type ofservice'-L Momit N set the IPv6 flowlabel N set the IPv6 flowlabel (only supported on Linux)-Z Mol Razocopy use a' zerocopy 'method of sending data-Omei Muyomit 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