iperf3 network uplink and downlink speed measurement tool

1. Introduction

iperf3 is a network speed test tool, supports IPv4 and IPv6, supports TCP, UDP, SCTP transmission protocols, and can be used on various platforms such as Windows, Mac OS X, Linux, FreeBSD, etc. It is a simple and practical tool that can be used very quickly Good test whether the broadband traffic of the operator meets the standard

2. Download address

iperf3 download address
insert image description here

3. Install it on a Windows computer and set it as a server

  1. Put the downloaded installation package on the C drive and unzip it
    insert image description here

  2. View the files in the download package
    insert image description here

  3. Open the cdm command line and enter cd C:/iperf3
    insert image description here

  4. Set this computer as the server, enter iperf3.exe -s on the cmd command line and press Enter
    insert image description here
    Now the server has been set up, just wait for the client to send traffic

4. Set the client computer to enable iperf3 and send traffic to the server

  • The installation method is the same as before, put it on the C drive, then unzip it, and use the cmd command line to enter the software location

insert image description here

5. View the changes of the server and client cdm command lines

  1. client
    insert image description here

  2. The server
    insert image description here
    can see that the average traffic from the client to the server is about 330 megabytes

6. Test the uplink and downlink bandwidth

The speed tested above is unilateral bandwidth, so the bandwidth traffic at both ends needs to be tested 原来做为客户端的电脑同时也打开服务端cdm命令行iperf3.exe -s, and then let原服务端的电脑做为客户端向服务端打流量

  1. original server
    insert image description here
    insert image description here

  2. Original client
    insert image description here
    insert image description here
    conclusion:
    the uplink and downlink traffic on both sides are 250MB and 150MB respectively, because mine is a virtual machine run on the same computer, the fluctuation will be bigger

7. Parameters

parameter illustrate
-s indicates server-side
-c indicates the client
-u The specified is udp message, the default is TCP
-b Specify the size of the sending bandwidth
-p specified port
-l set buffer size
–h View all parameter meanings
-t Duration (in seconds)

insert image description here
insert image description here
insert image description here

8. Examples

UDP mode is usually used for bandwidth testing, because it can measure the limit bandwidth, delay jitter, and packet loss rate. When testing, first use the theoretical bandwidth of the link as the data transmission rate. For example, the theoretical bandwidth of the link from the client to the server is 100Mbps. Use -b 100M to test first, and then according to the test results (including Actual bandwidth, delay jitter and packet loss rate), and then use the actual bandwidth as the data transmission rate to test, you will find that the delay jitter and packet loss rate are much better than the first time, repeat the test several times, you can get a stable actual bandwidth.

UDP mode
server side:

iperf -u -s

client:

iperf -u -c 192.168.1.1 -b 100M -t 60

In udp mode, with 100Mbps as the data transmission rate, the client uploads the bandwidth test to the server 192.168.1.1, and the test time is 60 seconds.

Example 1 : The client initiates 30 connection threads to the server at the same time, and the data sending rate is 5Mbps.

iperf -u -c 192.168.1.1 -b 5M -P 30 -t 60

Example 2 : Take 100M as the data transmission rate to test the uplink and downlink bandwidth.

iperf -u -c 192.168.1.1 -b 100M -d -t 60

TCP mode
server side:

iperf -s

client:

iperf -c 192.168.1.1 -t 60

In tcp mode, the client uploads the bandwidth test to the server 192.168.1.1, and the test time is 60 seconds.

Example 1: The client initiates 30 connection threads to the server at the same time.

iperf -c 192.168.1.1  -P 30 -t 60

Example 2: Perform uplink and downlink bandwidth tests.

iperf -c 192.168.1.1  -d -t 60

Guess you like

Origin blog.csdn.net/qq_43440135/article/details/121200758