Networking & Protocols (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
Network MTU (Maximum Transmission Unit) and Path MTU Discovery (PMTUD).
senior Levelnetworking-protocolsAdvanced Internals
In Simple Words:
- MTU: Maximum packet size in bytes that can be transmitted over a physical link without fragmentation (standard Ethernet MTU = 1500 bytes; AWS Jumbo Frames = 9001 bytes).
- Path MTU Discovery (PMTUD): Senders set the
DF(Don't Fragment) bit in the IP header. If a router along the route has a smaller MTU (e.g. 1420 bytes for a VPN tunnel), it drops the packet and sends back an ICMPFragmentation Neededmessage. - Black Hole Routers: If a broken firewall blocks ICMP messages, the sender never knows its packets are too large, causing mysterious TCP connections that hang during large file transfers!