Path MTU Discovery
Whenever a connection is about to be established, the three-way handshake opens negotiation, and the segment size used will be set to the minimum of either the smallest MTU of an outgoing interface or the Maximum Segment Size (MSS) announced by the peer. If the remote peer does not announce a MSS, usually the value 536 will be assumed. If path MTU discovery is active, all outgoing PDUs have the IP don’t fragment (DF) option set.
If the ICMP error message “fragmentation needed” is received, this means that a router on the way to the destination needed to fragment the PDU, but was not allowed to do so. Therefore, the router discarded the PDU and sent back the ICMP error. Newer router implementations enclose the needed MSS in the error message. If the needed MSS is not included, the correct MSS must be determined by trial and error.
Because the Internet is a packet switching network, the route a PDU travels along a TCP virtual circuit may change with time. For this reason, RFC 1191 recommends rediscovering the path MTU of an active connection after 10 minutes. Improvements in the route can be noticed only by repeated rediscoveries. Unfortunately, Solaris aggressively tries to rediscover the path MTU every 30 seconds. While this is OK for LAN environments, it is grossly impolite behavior in WANs. Since routes may not change that often, aggressive repetitions of path MTU discovery lead to unnecessary consumption of channel capacity and elongated service times.
Path ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access