How do you test bandwidth between two hosts?
AdvancedConceptCommand-Line Tools & Diagnostics
Answer
# server
iperf3 -s
# client: 4 parallel streams for 30 seconds, then reverse direction
iperf3 -c 10.0.1.5 -P 4 -t 30
iperf3 -c 10.0.1.5 -R
iperf3 -c 10.0.1.5 -u -b 500M # UDP, shows jitter and loss
Test between same-AZ, cross-AZ and cross-region instances; single streams are limited by TCP window and instance flow limits (AWS limits a single flow to about 5 Gbps, or 10 Gbps inside a cluster placement group).
More on Command-Line Tools & Diagnostics
How do you check if a remote port is open?BeginnerHow do you list listening ports and the processes that own them?BeginnerWhat does `ping` tell you and what does it not?BeginnerHow does traceroute work and how do you read the output?BeginnerWhat is mtr and why is it better than traceroute?IntermediateHow do you query DNS with dig and read the answer?Beginner