Sub topic 3
MTU, Routing Control, and Forwarding
Assume you know basic IP subnets, Ethernet and MAC addresses, and how to use a terminal.
MTU, fragmentation, and path MTU
The maximum transmission unit (MTU) is the largest IP packet a link can carry without splitting it. Ethernet commonly uses an MTU of 1500 bytes.
IPv4 routers may fragment a packet when the outgoing link has a smaller MTU. If the packet has the Don't Fragment flag set, the router drops it and sends an ICMP “Fragmentation Needed” message. IPv6 routers do not fragment packets. The sender must discover a suitable size.
The path MTU is the smallest MTU across the complete path. Path MTU discovery uses ICMP messages to help the sender reduce packet size. Firewalls that block these messages can cause connections to stall.
Control plane versus data plane
The control plane learns routes and builds a forwarding table. The data plane handles individual packets using that table. A control-plane failure may prevent new routes from being learned, while the data plane can continue forwarding with existing entries.
Static and dynamic routes
A static route is configured by an administrator. It is predictable and simple, but it does not automatically adapt to a failed link. Dynamic protocols learn routes from other routers:
- Distance-vector protocols exchange reachable networks and costs.
- Link-state protocols distribute link information, then calculate paths locally.
- BGP exchanges reachability between autonomous systems and applies policy.
Metrics and administrative distance
A metric compares routes learned by the same protocol. For example, a protocol might prefer fewer hops or a lower link cost. Administrative distance ranks different route sources. A router might prefer a connected route over a static route, and a static route over an external dynamic route. Exact values depend on the vendor.
The selected route is installed in the FIB. Hardware or optimized software can then forward packets without running the full route-selection process for every packet.
Tracing and debugging forwarding
Start with the local route decision, then inspect each hop:
ip route get 8.8.8.8
traceroute 8.8.8.8
ip route showA missing route, incorrect next hop, blocked ICMP message, or MTU problem can each produce a different symptom. Compare the route on both ends and check whether traceroute stops at one router.
Exercise
A router has a 1500-byte outgoing MTU and receives a 2000-byte IPv4 packet with Don't Fragment set. What happens?
Show answer
The router drops the packet and normally sends ICMP Fragmentation Needed so the sender can reduce its packet size.