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

Large uploads over your VPN hang while small requests work. What is likely going on?

IntermediateScenarioPerformance, MTU, Latency & Tools
Answer

Situation read → Classic path MTU problem: tunnel overhead reduces effective MTU and ICMP is filtered.

What I'd do →

  1. Test: ping -M do -s 1400 host and reduce size until it passes, finding the real path MTU
  2. Check tracepath host for pmtu
  3. Clamp MSS on the tunnel: iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
  4. Set interface MTU explicitly, for example 1380 on WireGuard
  5. Allow ICMP type 3 code 4 in firewalls

Why → Large packets with DF set are dropped silently when ICMP "fragmentation needed" messages are blocked.

Interview tip → Say "small works, big hangs" is the signature of MTU.

All Networking questions Roadmap: Networking for DevOps

More on Performance, MTU, Latency & Tools