Iperf3: How to Specify the Amount of Data to be Transmitted

Assalamulaikum.
I need to test my server to server connection with 1gb data transfer. Below is the command

Server IP: 10.200.200.5
Client IP: 10.200.200.4

On Server, run
iperf -s

On client, run
iperf3 -c 10.200.200.5 -n 1G
or
iperf3 -c 10.200.200.5 -n 1024M

Example on client:

With the default buffer size of 8KB:

iperf3 -c 10.200.200.5 -n 1024M
------------------------------------------------------------
Client connecting to 10.200.200.5, TCP port 5201
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 10.200.200.4 port 56565 connected with 10.200.200.5 port 5201
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.5 sec  1.00 GBytes  8.20 Gbits/sec 

Wit the the same value for the -n option but with -l 32K

iperf3 -c 10.200.200.5 -n 1024M -l 32K
------------------------------------------------------------
Client connecting to 10.200.200.5, TCP port 5201
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[  3] local 10.200.200.4 port 56568 connected with 10.200.200.5 port 5201
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.5 sec  1.00 GBytes  8.17 Gbits/sec

wassalam..

This entry was posted in Linux and tagged , . Bookmark the permalink.