banner



How To Install Iperf3 On Linux

Iperf is a network testing tool that can create TCP and UDP data connections and measure the throughput of a network that is conveying them. It supports tuning of various parameters related to timing, protocols, and buffers. For each examination it reports the bandwidth, loss, and other parameters.

The current version, sometimes referred to as iperf3, is a redesign of an original version developed at NLANR/DAST. iperf3 is a new implementation from scratch, with the goal of a smaller, simpler code base, and a library version of the functionality that can be used in other programs. It is mainly developed on CentOS Linux, FreeBSD and MacOS X, but works well on other Linux distributions as well.

Install Iperf

Iperf3 is bachelor in repositories on most Linux distributions.

To install on Ubuntu/Debian:

          $ sudo apt install iperf3        

To install on RHEL:

          $ sudo yum install iperf3        

To install Fedora:

          $ sudo dnf install iperf3        

To compile from source, You lot can get the latest version of iperf3 from http://downloads.es.internet/pub/iperf/ using wget and extract it with tar.

          # wget http://downloads.es.net/pub/iperf/iperf-3.0.6.tar.gz          # tar zxvf iperf-3.0.6.tar.gz        

Note: Brand sure you accept GCC installed.

Then you merely demand to configure it and compile it similar this:

          # cd iperf-3.0.half dozen # ./configure # make # make install        

Now y'all should take iperf3 installed on your organization.

How to Use iperf3

To examination the performance of a network with iperf you will demand 2 computers, one that will act equally a server and one that will act as a customer, this will assist you test the network segment betwixt the 2 host computers.

In the most uncomplicated form you can run iperf3 equally root with the -s on one of the computers that volition deed as a server, it volition open a port and look for connections from a client. Delight check your firewall or iptables and exist sure that the port iperf3 server opens on is non blocked in any way. The output should look like this:

iperf server run

So on the 2nd computer that is connected to the same network equally the server we can perform a bones test past running the -c switch and the IP address of the server. The output volition look similar this:

iperf client

From this output nosotros can see that nosotros accept a 80MBits/sec speed over TCP.

Using the customer y'all can use different flags to exam various network scenarios, you tin use the -P flag to test a few parallel connections to the server like this:

          # iperf3 -c 192.168.i.1 -P 5        

and the output will await similar this:

iperf parallel

This will show you what happens when more applications from the customer connects to the the server.

Yous can test the performance of the UDP protocol using the -u flag like this:

          # iperf3 -c 192.168.1.1 -u        

and the output should look like this:

iperf udp

As you can see 2 new fields accept appeared in the output, jitter witch shows the latency of the packets that have been send and Lost/Total Diagram witch shows the total number of packets lost from the number of packets send.

Other useful flags:

-b, --bandwidth n[KM] - fix target bandwidth to due north bits/sec (default one Mbit/sec for UDP, unlimited for TCP).
-t, --fourth dimension n - time in seconds to transmit for (default 10 secs)
-n, --bytes n[KM] - number of bytes to transmit (instead of -t)
-g, --blockcount n[KM] - number of blocks (packets) to transmit (instead of -t or -due north)
-l, --length n[KM] - length of buffer to read or write (default 128 KB for TCP, 8KB for UDP)
-R, --reverse - run in reverse mode (server sends, customer receives)

This flags are mainly useful when yous want to examination a detail scenario between the customer and the server.

iperf3 is a small but useful tool, that can be quickly installed on the customer and the server to test various network aspects and applications.

Source: https://linoxide.com/install-iperf-test-network-speed-bandwidth/

Posted by: mirandareliblese47.blogspot.com

0 Response to "How To Install Iperf3 On Linux"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel