Interview Prep/Networking/Command-Line Tools & Diagnostics

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).

All Networking questions Roadmap: Networking for DevOps

More on Command-Line Tools & Diagnostics