How to install and use iPerf3 to measure bandwidth

How to install and use Iperf3 to measure bandwidth

This article will tell you how to install and use iPerf3 to measure bandwidth.

iPerf3 is a tool to measure of the maximum achievable bandwidth on IP or networks.

It supports tuning of various parameters related to timing, buffers and protocols (TCP, UDP, SCTP with IPv4 and IPv6).

For each test it reports the bandwidth, loss, and other parameters.

iPerf3 is a new implementation that shares no code with the original iPerf and also is not backwards compatible.

How to install iPerf3 on Centos / RHEL 6, 7, 8

## Centos / RHEL 6 / 7
# yum install epel-release
# yum update
# yum install iperf3

## Centos 8 / RHEL 8
# dnf install iperf3

How to install iPerf3 on Ubuntu

## Ubuntu
# apt-get install iperf3

How to use iPerf3 to test Client Transfer / TX bandwidth (Server Receiver / RX bandwidth)

On server A (iPerf3 Server) that listening connection and use port 8443

# firewall-cmd --add-port=8443/tcp
# firewall-cmd --reload

Example output

[root@serverdiary ~]# firewall-cmd --add-port=8443/tcp
success
[root@serverdiary ~]# firewall-cmd --reload
success

Start Iperf3 on server A (iPerf3 Server) and listen on port 8443 TCP

# iperf3 -s -p 8443

On server B (iPerf3 Client), start test as client with command

# iperf3 -c ip_of_server_A -p 8443

Example result on Server A (Iperf3 Server) as Receiver

Iperf3 server receive test RX
Iperf3 server receive test RX

Example result on Iperf3 Client as Sender

Iperf3 client as sender test TX
Iperf3 client as sender test TX

How to use Iperf3 to test Client Download / RX bandwidth (Server Transfer / TX bandwidth)

Server listening command is not different

# iperf3 -s -p 8443

On server B (Iperf Client), start bandwidth test as client with command

# iperf3 -c 78.47.95.217 -p 8443 -R

Example result on Server A (Iperf3 Server) as Sender

Iperf3 server as sender test TX
Iperf3 server as sender test TX

Example result on Iperf3 Client as Receiver

Iperf3 client as receiver test RX
Iperf3 client as receiver test RX

ServerDiary

ServerDiary

Leave a Reply

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