What happens if a router receives a packet larger than the Next Hop's MTU (e.g., 1500 bytes vs 1400 bytes) and the 'Don't Fragment' (DF) flag is set?
- A The router automatically fragments the oversized packet into two smaller segments and forwards them independently to the destination for reassembly by the client.
- B The router drops the packet and transmits an ICMPv4/v6 'Packet Too Big' message back to the sender, which is then used by the host to perform 'Path MTU Discovery' (PMTUD).
- C The router applies a high-speed, lossy compression algorithm to the packet contents to ensure that the physical payload size fits within the constraints of the next hop.
- D The router ignores the flag and attempts to force the entire packet through the interface, which typically results in a hardware-level network crash or a cascading routing failure.
A router cannot send a packet larger than its interface allows (the MTU). While routers can 'fragment' packets by splitting them into smaller pieces, this is computationally expensive and can be exploited for security attacks. Modern systems prefer to set the 'Don't Fragment' (DF) flag. If the packet is too big, the router drops it and tells the sender 'Hey, this path only handles 1400 bytes'. The sender then shrinks its outgoing packets to fit perfectly. This process, Path MTU Discovery (PMTUD), ensures maximum efficiency by sending the largest possible packets without the overhead and risks of fragmentation. However, if 'ICMP' messages are blocked by a firewall, the sender will never get the 'too big' message, leading to mysterious 'hanging' connections.
One system design question a day, with spaced repetition so the ones you miss come back.
Get the appRelated questions
- What is the downside of enabling 'Sticky Sessions' (Session Affinity) on a Load Balancer?
- In WebRTC (P2P Mesh), why is a STUN server required?
- What is the fundamental difference between a Network Switch and a Router?
- In Cloud Networking (AWS), what is the limitation of VPC Peering compared to a Transit Gateway?
- Which protocol is ideal for real-time multiplayer gaming positions or Voice over IP (VoIP), and why?
- What is the purpose of the 'Time To Live' (TTL) field in an IP packet?