Using iPerf to Test Network Speed and Bandwidth (Throughput)

IPerf is an open-source device designed to take a look at community bandwidth between two community nodes. The iPerf permits to generate TCP and UDP site visitors/load between two hosts. You can use iPerf to shortly measure the utmost community bandwidth (throughput) between a server and a consumer, conduct stress testing of the ISP communication channel, router, community gateway (firewall), your Ethernet or Wi-Fi community.

In this text, we’ll present you the way to set up and use the iPerf device to examine the community throughput on Windows and Linux CentOS (there are iPerf variations for Android, MacOS, RouterOS from MikroTik and different platforms).

iPerf Versions: iPerf2 vs iPerf3

IPerf is a cross-platform device and doesn’t require set up, simply copy and run it on two gadgets, between which you need to take a look at the community throughput.

IPerf works in a server-client mode. On the primary machine, the iPerf begins in server mode (it ready for site visitors from the iPerf consumer). On the second laptop, the iPerf begins in consumer mode, generates TCP or UDP site visitors and measures the utmost knowledge switch fee.

There are at the moment two impartial iPerf branches growing in parallel: iPerf2 and iPerf3. The performance of those instruments is usually suitable, however they use completely different community ports by default. In iPerf1/2 it’s 5001, in iPerf3 it’s 5201.

  • iPerf2 is ideally used for parallel threads, bidirectional assessments, and this model is formally supported on Windows OS;
  • iPerf3 has higher implementation of high-speed UDP testing. IPerf3 code is considerably smaller and higher optimized.

The remaining variations are usually not so vital as to particularly use a selected model of iPerf (even the CLI parameters are the identical). In this text we’ll use the iperf3.

The iPerf3 isn’t formally supported for Windows platform, but it surely works fairly high-quality. I didn’t discover any apparent bugs. You can ship your bug report to the

How to Install iPerf on Windows?

You can obtain iPerf Three.1.Three for Windows from the next hyperlink If you need to use the iPerf – you will get it . You don’t want to set up the device, it’s sufficient to obtain the iPerf archive and extract it to a neighborhood listing on the drive. There are solely two recordsdata within the archive: cygwin1.dll and iperf3.exe.

There are a number of iPerf GUI implementations for Windows. For instance, IperfThree-Cygwin-GUI or jperf.

The jperf is written on Java (a Java VM have to be put in on the pc to run it). In addition to graphical type for the CLI interface, Jperf can construct graphs bandwidth charts of the communication channel in actual time.

To use it, simply specify the iPerf server deal with and run the scan.

There is a separate iPerfAutomate module within the PowerShell Script Gallery that can be utilized to get community efficiency metrics out of your PowerShell scripts. You can set up the module with the command: Install-Module -Name iPerfAutomate

Installing iPerf on CentOS Linux

In CentOS eight, the iperf3 bundle is included to the AppStream base repository (in CentOS 7 yow will discover iperf3 within the EPEL repo). You can set up it with the dnf (yum) command:

# dnf set up iperf3

On Debian/Ubuntu distros, you possibly can set up the iperf3 with the command:

sudo apt set up iperf3

If you need to use your Linux occasion because the iperf3 server, you want to open the TCP/UDP ports 5201 in firewalld (iptables):

# firewall-cmd --permanent --add-port=5201/udp
# firewall-cmd --permanent --add-port=5201/tcp
# firewall-cmd --reload

Using iPerf Command to Measure Network Speed/Bandwidth

Let’s have a look at a couple of examples of utilizing iPerf to take a look at community throughput. In this instance, we’ll use a Linux CentOS host because the iPerf server. Run the iPerf3 device in server mode:

# iperf3 –s

The iPerf server is working, it’s ready for connections on the 5201 TCP port.

Server listening on 5201.

Hint. iPerf arguments are case delicate!

Depending on the firewall settings between the consumer and the server, you possibly can change the listening port utilizing the argument -p [port_number]. You can run the iPerf server with a big TCP window dimension and on a distinct TCP port. Use the command:

# iperf3 -s -w 32768 –p 5200

  • -w 32768 – set TCP home windows dimension to 32 kB (by default it’s about eight kB)
  • –p 5200 – the port on which iPerf is ready for connections (I remind you that iperf2 listens by default on port 5001 and the iperf3 on 5201).

I’m utilizing a pc with Windows 10 put in as an iPerf consumer. Run the command immediate and go to the listing with the iPerf executable:
cd c:toolsiperf
In order to run a community bandwidth take a look at from the consumer, specify the iPerf server deal with (or DNS identify):
iperf3.exe -c
If you began the iPerf server with an elevated TCP window dimension, you should use the next command to get the utmost community load:

iperf3.exe -c -P eight -t 30 -w 32768

  • -c – IP deal with of the iPerf server;
  • -w 32768 — improve the TCP window dimension;
  • -t 30 – is the time in seconds for the take a look at to be accomplished (by default, it’s 10 seconds);
  • -P eight —is the variety of parallel threads (streams) to get the utmost channel load;

In my instance, the take a look at lasted 30 seconds. In the ultimate report, we have an interest within the values of the Bandwidth column listed within the final [SUM] line. In this case the common community bandwidth between two hosts is 85.9 Mbit/s. 307 MB of information was transferred (Transfer column) with the symmetric velocity  (sender=receiver).

Using the -f argument, you possibly can change the velocity format (bits, kilobits or megabits). In the continual assessments, when you’ve gotten to estimate the efficiency throughout a number of minutes (hours), you possibly can set the time period to show the intermediate outcomes utilizing the –i choice.

You can run iPerf in reverse mode (the server sends knowledge, and the consumer accepts). User the –R choice on the consumer for this.

By default, the utility generates TCP site visitors, if you happen to want to examine your community bandwidth  for UDP packets, you need to use the –u choice. In this case you must begin the iPerf server with the command: iperf3 -s –u).

If you want to take a look at your Internet service supplier bandwidth, you should use one of many public iPerf servers (iPerf public host record is offered right here):

iperf3 -c

If you want to measure the utmost community velocity in each instructions (in a duplex mode), use the –d choice on the consumer:

iperf3.exe -c IP -P eight -t 30 -w 32768 –d

During the community take a look at utilizing iPerf, you possibly can monitor your community connection throughput chart by means of the Task Manager.

It is vital to notice that, throughout the take a look at iPerf makes use of all obtainable bandwidth of the communication channel between the consumer and server, which may negatively have an effect on productive apps and customers.

You can show the total record of the choices as follows:

iperf3 –assist

Iperf is an easy-to-use and handy community utility that helps you to measure community connection efficiency and most knowledge switch velocity between two gadgets.

Check Also

Configuring Network Adapter Settings with PowerShell: IP Address, DNS, Default G…

In this text we’ll present you find out how to configure community adapter parameters in …

Leave a Reply

Your email address will not be published. Required fields are marked *