Interview Prep/Networking/Performance, MTU, Latency & Tools

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 →

  1. Measure RTT, for example 180 ms, and target 1 Gbps: BDP is about 22 MB
  2. Check window scaling: sysctl net.ipv4.tcp_window_scaling and buffers net.ipv4.tcp_rmem and tcp_wmem
  3. Increase max buffers: sysctl -w net.core.rmem_max=33554432
  4. Use parallel streams, or multipart S3 upload
  5. 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.

All Networking questions Roadmap: Networking for DevOps

More on Performance, MTU, Latency & Tools