MSS & MTU

  • The largest TCP segment size that a network connected device can receive.
  • Only the payload size, not including header
  • Agreed on TCP handshake.
  • Layer 4
  • The largest data packet that a network-connected device will accept.
  • Layer 3
  • Include TCP and IP headers.
  • Fragmentation: All network routers check the size of each IP packet they receive against the MTU of the next router that will receive the packet. If the packet exceeds the MTU of the next router, the first router breaks the payload into two or more packets, each with its own headers.

When is fragmentation not possible?

In certain cases, packets cannot be fragmented, and therefore they will not be delivered if they exceed the MTU of any router or device along the network path:

  1. Fragmentation is not permitted in IPv6. IPv6 is the latest version of the Internet Protocol, although IPv4 is still widely used. Routers that support IPv6 will drop any IPv6 packets that exceed the MTU, because they cannot be fragmented.
  2. Fragmentation is also not possible when the “Don’t Fragment” flag is activated in a packet’s IP header.

Path MTU discovery

When a packet is dropped, the router sends back ICMP messages to the origin.

References

https://www.cloudflare.com/learning/network-layer/what-is-mss/

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store