Why does a transfer across regions seem slow even with plenty of bandwidth?
IntermediateScenarioPerformance, MTU, Latency & Tools
Answer
Situation read → Bandwidth-delay product: long RTT needs a large TCP window.
What I'd do →
- Measure RTT, for example 180 ms, and target 1 Gbps: BDP is about 22 MB
- Check window scaling:
sysctl net.ipv4.tcp_window_scalingand buffersnet.ipv4.tcp_rmemandtcp_wmem - Increase max buffers:
sysctl -w net.core.rmem_max=33554432 - Use parallel streams, or multipart S3 upload
- Consider BBR:
sysctl -w net.ipv4.tcp_congestion_control=bbr
Why → A sender can have only a window of unacknowledged data in flight; small windows waste a long pipe.
Interview tip → Say BDP equals bandwidth times RTT.
More on Performance, MTU, Latency & Tools
Latency, bandwidth and throughput: what is the difference and why does it matter?BeginnerWhen do you use ping, traceroute and mtr?BeginnerWhat is MTU and what is the usual value?BeginnerHow do you check what is listening on a port and who is connected?BeginnerHow do you measure where time goes in a slow HTTP request?BeginnerWhat does tcpdump do and what are the first filters you use?Beginner