iperf3 instructions

Table of contents

If you are interested, welcome to visit and exchange iperf3 source code to read and analyze to communicate together.

1. What is iperf3

Two, iperf3 network structure

The simplest iPerf3 test network:

Typical multi-host, multi-NIC, multi-role iPerf3 test network:

3. Installation of iPerf3 software

4. Operation of iPerf3 software

Run in server server mode:

Run in client client mode:

5. Detailed explanation of iPerf3 command parameters


If you are already using iperf3, for advanced details see:

Author's translation and example tutorial for each parameter: Detailed Explanation of iPerf3 Command Parameters

If you are interested, welcome to visit and exchange iperf3 source code to read and analyze to communicate together.

1. What is iperf3

iPerf3 is a very powerful tool for testing the maximum bandwidth of an IP network. It supports setting and adjusting various parameters,

Such as time, buffer, protocol, etc., to support the network performance of the IP network under test under different configurations, and obtain

Various performance indicators such as bandwidth, packet loss rate and so on. iPerf3 is not compatible with iperf, and does not share source code with iperf.

Is a completely new tool that is completely different from iperf.

The official site is: iPerf - The TCP, UDP and SCTP network bandwidth measurement tool

Two, iperf3 network structure

iPerf3 supports TCP and UDP, and is a tool for testing IP network performance, so the network structure of iPerf3 and IP network

The network is the same, it is a master-slave network structure, to complete a complete iPerf3 test, usually at least two IP masters are required

One (or more) hosts run the iPerf3 Server server, and the other (or more) hosts run the iPerf3 client.

Notice:

1) One IP host can run multiple iPerf Server servers (different ports need to be specified) and multiple iPerf3 client clients at the same time,

Then an IP host can act as both the host and the slave at the same time.

2) An IP host can have multiple network interface cards, and each network card can be bound to one or more iPerf3 instances, and each iPerf3

Instances can freely choose to work in server mode or client mode

The simplest iPerf3 test network:

A client is running on the host 172.168.3.36, a server is running on the host 192.168.3.3, through the client host to

The way the server host sends TCP or UDP data packets, we can get the IP network performance index between the two hosts.

Typical multi-host, multi-NIC, multi-role iPerf3 test network:

One or more iPerf3 server server instances and multiple iPerf3 client official client instances can be bound to each network card of each host. separate test

The performance of the IP network between a certain network card of an IP host and a certain network card of another IP host.

( Note: Due to the back and forth between two hosts on the IP network, it is possible to take different IP paths, so the network performance test results between host B and host C

cannot be equal to the network performance test results from host C to host B)

3. Installation of iPerf3 software

sudo apt install iperf3

The iPerf3 software does not distinguish between the server mode and the client mode during installation, it supports both modes at the same time, as long as it is specified by parameters at runtime.

4. Operation of iPerf3 software

When the iPerf3 software is running, you need to use the -s or -c parameter to specify whether to run in server mode or client mode. The following takes a host with a single network card and a single IP as an example:

The simplest command is as follows:

Run in server server mode:

iPerf3 -s

It will run iPerf3 on the host side, and listen to both UDP and TCP on port 5201 by default.

Run in client client mode:

iPerf3 -c xxx.xxx.xxx.xxx

xxx.xxx.xxx.xxx needs to be replaced with the IP addresses of all hosts on the iperf3 server. By default, it will connect to port 5201 of the peer end.

The default protocol is TCP. After sending for 10 seconds, it will stop and report the sending and receiving ends (sender/client, receiver/server)

Statistical results of network packets sent and received.

5. Detailed explanation of iPerf3 command parameters

See the official parameter description document: iPerf - iPerf3 and iPerf2 user documentation

Author's translation and example tutorial for each parameter: Detailed Explanation of iPerf3 Command Parameters

Guess you like

Origin blog.csdn.net/meihualing/article/details/111772648