Hits : 4105
Last Edit: 20170930

iPerf3 :: Notes


iPerf3 is a tool for active measurements of the maximum achievable bandwidth on IP networks

https://iperf.fr


Contents






box A 



centos6

Installation


# yum -y install iperf3

Version


# iperf3 -v

iperf 3.0.12


box B 



centos7

Installation



# yum -y install iperf3

Version


# iperf3 -v
iperf 3.1.7

Optional features available: CPU affinity setting, IPv6 flow label, TCP congestion algorithm setting, sendfile / zerocopy, socket pacing


Testing


box A ( client aka source )

# iperf3 -c  IP_ADDRESS_box_B -t 600



box B ( server aka destination )


# iperf3 -4 -s



Output



box B

# iperf3 -4 -s
-----------------------------------------------------------
Server listening on 5201                                   
-----------------------------------------------------------

Accepted connection from IP_ADDRESS_box_A, port 55944 
[  5] local IP_ADDRESS_box_B port 5201 connected to  IP_ADDRESS_box_A port 55946
[ ID] Interval           Transfer     Bandwidth     
[  5]   0.00-1.00   sec  1.36 MBytes  11.4 Mbits/sec
[  5]   1.00-2.00   sec  2.34 MBytes  19.7 Mbits/sec
[  5]   2.00-3.00   sec  2.28 MBytes  19.1 Mbits/sec
...
...
...
[  5] 161.00-162.00 sec  5.28 MBytes  44.3 Mbits/sec
[  5] 162.00-163.00 sec  5.28 MBytes  44.3 Mbits/sec
[  5] 163.00-163.69 sec  3.72 MBytes  45.0 Mbits/sec
^C
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-163.69 sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-163.69 sec  1.02 GBytes  53.4 Mbits/sec                  receiver



box A

# iperf3 -c IP_ADDRESS_box_B -t 600

Connecting to host IP_ADDRESS_box_B, port 5201                                                             
[  4] local IP_ADDRESS_box_A port 55946 connected to IP_ADDRESS_box_B port 5201                              

[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd                                        
[  4]   0.00-1.00   sec  1.71 MBytes  14.4 Mbits/sec    8    135 KBytes                                 
[  4]   1.00-2.00   sec  2.34 MBytes  19.6 Mbits/sec    7    113 KBytes                                 
[  4]   2.00-3.00   sec  2.35 MBytes  19.7 Mbits/sec    0    121 KBytes                                 
...
...
...
[  4] 161.00-162.00 sec  5.36 MBytes  44.9 Mbits/sec    0    277 KBytes
[  4] 162.00-163.00 sec  5.42 MBytes  45.4 Mbits/sec    0    278 KBytes
[  4] 162.00-163.00 sec  5.42 MBytes  45.4 Mbits/sec    0    278 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-163.00 sec  1.02 GBytes  53.7 Mbits/sec  1534             sender
[  4]   0.00-163.00 sec  0.00 Bytes  0.00 bits/sec                  receiver
iperf3: error - the server has terminated



Firewall


box B

(all ports)

# iptables -I INPUT -s IP_ADDRESS_box_A -j ACCEPT



or

# iptables -I INPUT -p tcp -s IP_ADDRESS_box_A --dport 5201 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT