Every TCP connection begins with two strangers exchanging a four-byte number that looks like a deal and is not one. The Maximum Segment Size option is the Internet's most misread handshake: it is a one-way declaration of what the sender of the option is prepared to receive, not a bargain over a shared packet size. RFC 9293 defines it that way. RFC 879 said so in 1983 while noting the option was “often mistakenly called a negotiation.” RFC 6691 later corrected how the number should be counted. Each direction carries its own limit, and neither endpoint—nor any option between them—can make the path promise more than it knows.

The short version

  • TCP MSS is a SYN-only announcement of the largest TCP data payload its sender can receive in a single segment. Each direction can carry a different value without either side disagreeing.
  • RFC 6691 clarified that receivers should advertise reassembly capacity without pre-subtracting option space, while senders account for the headers actually present when constructing each packet.

Two SYNs, two receiving boundaries

The option looks like a tiny negotiation. It shows up while the connection is being built, it carries a number, and the peer is expected to respect it. Yet the word “negotiation” grants the exchange an authority it never had. When host A sends an MSS option, A is describing A's receive side. When host B replies with its own, B is describing B's receive side. The two values may differ without any disagreement, because they govern opposite flows.

The wire format leaves barely enough room for ambiguity: Kind 2, Length 4, then a 16-bit value. RFC 9293 defines that value as the maximum receive segment size at the endpoint that sends the option. It may appear in an initial connection request with SYN set, and it must not appear in ordinary later segments. The option therefore installs a constraint at the moment the endpoints create connection state. It is not a stream of revised capacity reports.

What the number measures matters just as much. MSS counts TCP data octets, excluding the TCP and IP headers. It is not an IP datagram size, not an interface MTU, not an application write size, and not a promise that the path can carry a packet of some total length. A sender treats the peer's announcement as one limit on payload. It must still account for the route and for the headers it actually places around that payload.

That division of labour was already the heart of RFC 879 in 1983. The document described the MSS announcement as a statement from data receiver to data sender—I can accept TCP segments carrying up to this much data—at a time when hosts, gateways, reassembly limits and variable header lengths made a single universal packet number especially tempting, and especially misleading.

Why 536 became a default, not a law of the path

RFC 879 worked through the default IPv4 arithmetic. Every host was required to reassemble a 576-octet IPv4 datagram. Subtract the minimum 20-octet IPv4 header and the minimum 20-octet TCP header, and 536 octets remain for TCP data. That relationship supplied the familiar default MSS for the case where no option was sent at all.

The arithmetic was a compatibility floor built from specified minima. It did not establish that every real path ran a 576-octet MTU, that Ethernet fixed a universal answer, or that a receiver announcing 536 had measured anything between itself and its peer. The receiver described what it could accept under the protocol's default assumptions. The sender still held local knowledge about the first hop, and might acquire further path information through mechanisms entirely outside the MSS option.

The historical discussion exposed a layering problem. IP controlled datagram size and fragmentation; TCP controlled segment payload; both protocols could carry options that changed header length. If TCP treated an MSS as a complete packet budget, it would fuse a receive capability with assumptions about headers and routes that belonged elsewhere. If IP and TCP shared nothing at all, the sender could build packets that blew past a known limit. The answer was not to grant one layer omniscience. It was to define precisely what each number meant, then require the sender to combine the constraints at transmission time.

That distinction also keeps MSS cleanly separate from path MTU discovery. PMTUD tries to learn a property of a route, and can change as the route changes. MSS is exchanged with an endpoint at connection opening and describes that endpoint's receiving limit. A sender may choose a smaller payload because of path information, but the smaller choice does not prove the receiver's advertised capacity moved.

The correction about options

Variable headers produced a persistent implementation error. Suppose a receiver can reassemble an IP datagram containing a certain amount of TCP data when minimum headers are used. It might be tempted to subtract anticipated TCP timestamps, IP options or other header space before advertising its MSS. That feels conservative. It actually puts packet-construction accounting in the wrong half of the exchange.

RFC 6691 clarified the rule. The receiver should announce the largest TCP payload it can reassemble, measured under the definition of MSS. It should not shrink that advertisement merely because packets might later carry IP or TCP options. When the sender constructs an actual packet, the sender trims that packet's data as needed to accommodate the headers actually present within the applicable IP maximum.

The two decisions happen on different clocks. The receiver makes a durable statement during the SYN exchange about its payload capacity. The sender makes repeated packet-level decisions using the peer's statement, current header lengths and its own size constraints. Reserving hypothetical option space inside the advertised MSS would bake one anticipated packet shape into a connection-wide receive limit, and could needlessly cut payload even when those options never appear.

Nor does a large offer allocate anything by itself. The endpoint's implementation and buffers determine what it can safely announce. The peer remains constrained by congestion control, path limits and its own sending policy. An MSS of 8,000 does not license 8,000 data octets on a path that only supports smaller packets, and an MSS of 1,460 does not certify that every hop accepts a 1,500-octet IPv4 packet.

A boundary that middleboxes can rewrite but not discover

Operational networks sometimes alter MSS values in SYN packets—to accommodate tunnels, or to dodge oversized packets on paths where discovery is unreliable. The mechanism can be useful in a given deployment, but its semantics stay exact: rewriting the option changes the receive constraint presented to the peer. It does not turn MSS into an authenticated measurement of the path.

That matters for diagnosis. Seeing an MSS value in a trace proves only that a value was carried at the observation point. It may reflect the endpoint's original announcement or an intermediary's rewrite. It does not reveal every downstream MTU, show whether later packets used the full allowance, or explain why a smaller segment was chosen. The evidence is local to the packet, the direction, the connection opening and the observation point.

The current TCP specification still lists MSS among the mandatory options. That continuity is not evidence that the Internet converged on one segment size. Read across the three RFCs, it shows something better: a stable vocabulary for asymmetric limits and layered knowledge.

The historical lesson is therefore less about one famous number than about disciplined authority. The receiver states what it can accept. The sender decides what it can safely emit after combining that statement with its own path and header knowledge. Neither side, and no four-byte option between them, can make the path promise more than it knows.

What operators should distinguish

An observed MSS should be recorded with direction and vantage point. The SYN from each endpoint describes that endpoint's receive side, and a middlebox may modify the value before a later observer sees it. Packet captures should therefore separate four things: original endpoint capability, presented constraint, actual payload sizes, and independently measured path limits.

Triggers for investigation include asymmetric announcements, a value that changes across observation points, payloads consistently smaller than both advertised limits, and loss concentrated near a size boundary. None of these observations names a cause on its own. They point the next check toward endpoint policy, encapsulation overhead, path-size discovery or an intermediary rewrite—without treating MSS as a universal diagnosis.

Sources