Interview Prep/Networking/MTU, routing, packet loss and latency

File copies between two data centers get 50 Mbit/s on a 1 Gbit/s link with no loss.

AdvancedTroubleshootingMTU, routing, packet loss and latency
Answer

Likely causes → Bandwidth-delay product: with 60 ms RTT, a single TCP flow needs ~7.5 MB of window for 1 Gbit/s. Small socket buffers or disabled window scaling cap throughput.

Diagnose →

ss -tin dst <peer>        # check rcv_space, cwnd, rtt
sysctl net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.core.rmem_max
iperf3 -c <peer> -P 1; iperf3 -c <peer> -P 8

Fix → Raise buffer maximums (net.core.rmem_max=67108864, net.ipv4.tcp_rmem="4096 87380 67108864"), try BBR (net.ipv4.tcp_congestion_control=bbr), or use parallel streams.

Prevent → Tune long-fat-network hosts deliberately and benchmark with iperf3 before migrations.

All Networking questions Roadmap: Networking for DevOps

More on MTU, routing, packet loss and latency