Iperf3

installation

sudo apt install iperf3 -y

test tcp speed/throughput

start server on serverA(server mode)

iperf3 -s -p [default port 5201]

start server on serverB(client mode)

iperf3 -c <ip of serverA> -p [serverA port]

test udp speed/throughput

start server on serverA(server mode)

same with tcp

iperf3 -s -p [default port 5201]

use -u option on client side

start server on serverB(client mode)

iperf3 -c <ip of serverA> -u -p [serverA port]

more client options

number of parallel client threads

Pass the -P option

set time in seconds to transmit for (default 10 secs)

Pass the -t option

examples

run on serverA

iperf3 -s

run on serverB

iperf3 -c x -P 3 -t 30