Interview Prep/Linux/Performance & the USE Method

How do you measure network throughput and latency between two hosts?

BeginnerProductionPerformance & the USE Method
Answer
iperf3 -s                                  # on server
iperf3 -c 10.0.1.20 -P 4 -t 30             # client, 4 parallel streams
iperf3 -c 10.0.1.20 -u -b 1G               # UDP with loss/jitter
ping -c 20 10.0.1.20                       # RTT
mtr -rwc 100 api.example.com               # per-hop loss and latency
All Linux questions Roadmap: Linux

More on Performance & the USE Method