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 →
- Test:
ping -M do -s 1400 hostand reduce size until it passes, finding the real path MTU - Check
tracepath hostforpmtu - Clamp MSS on the tunnel:
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu - Set interface MTU explicitly, for example 1380 on WireGuard
- 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.
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