iperf3 tool detects network performance and bandwidth

Detailed explanation of the use of iperf3 tools

The two branch companies are interconnected through a dedicated line to test the bandwidth of the dedicated line at two points, or to test the bandwidth and network performance between the client and the server in the office. In addition to using ftp to upload large files to test the bandwidth, the test can also be done through the iperf3 tool .

iperf or iperf3: is a network performance testing tool.

Can test TCP and UDP bandwidth quality.
The maximum TCP bandwidth can be measured, with multiple parameters and UDP characteristics.
Can report bandwidth, delay jitter and packet loss.
Iperf has a binary version for free use on linux and windows platforms.

Official website URL: https://iperf.fr/

  1. iperf3 installation:
    [root@server-02 ~]# yum install iperf3

iperf3 tool detects network performance and bandwidth

  1. iperf3 parameters and usage:

iperf3 tool detects network performance and bandwidth

Server side parameters:
-s specifies the server side
-p specifies the port (to be consistent with the client port)
-B specifies the interface or IP address of the server

Client side parameters:
-c specifies the client side
-p specifies the port (to be consistent with the server port)
-u specifies the udp protocol (to be consistent with the server protocol)
-4 only ipv4
-6 only ipv6
-f [ kmgKMG] Format the bandwidth output
-n specify the number of bytes transmitted
-b [KMG] specify the transmission bandwidth
-t specify the transmission time in seconds, the default is 10 seconds
-B specify the interface or IP address of the client
--get-server-output Get results from the server

  1. Test:
    Two centos7 servers, with IP addresses 172.16.100.20 and 172.16.100.50, you
    must first turn off the firewall or allow the test port, otherwise, the client cannot communicate with the server.
    [root@server-02 ~]# systemctl stop firewalld
    [root@server-02 ~]# systemctl status firewalld

iperf3 tool detects network performance and bandwidth

server side:

[root@server-02 ~]# iperf3 -s -p 25001

iperf3 tool detects network performance and bandwidth

Client:

[root@server-02 ~]# iperf3 -c 172.16.100.50 -p 25001

iperf3 tool detects network performance and bandwidth

Server display results:
iperf3 tool detects network performance and bandwidth

Guess you like

Origin blog.51cto.com/2221384/2576393