Concepts / TCP connections

TCP connections

MSS

Also called maximum segment size

The most TCP data per packet, announced in the SYN: the link's MTU minus 40 bytes of headers.

MSS is the MTU minus 40 bytes of headers
MSS is the MTU minus 40 bytes of headers

On a 1500-byte link, 20 bytes of IP header and 20 of TCP header leave 1460 for data. Each side announces the figure for its own link in its SYN, and neither knows about a smaller link in the middle.

MSS (maximum segment size) is the most TCP data one packet may carry. Each side announces its own in its SYN: its link's MTU minus 40 bytes of IPv4 and TCP headers, so 1460 on a 1500-byte link. Each side only knows its own link, so a smaller link in the middle is found later by path MTU discovery, or handled in advance by MSS clamping.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab