Concepts / TCP connections

TCP connections

MSS clamping

Also called clamp-mss-to-pmtu, TCPMSS

A router lowering the MSS in TCP SYNs to what its small link carries.

The router lowers the MSS written in the SYN
The router lowers the MSS written in the SYN

The router in front of the small link rewrites the MSS option as the SYN passes, so both ends only send segments that fit. No ICMP message is needed, but it helps TCP only.

MSS clamping is a router lowering the MSS option in the TCP SYNs passing through it to what its small link carries. The ends then never send a segment too big for the path, with no ICMP needed. VPN gateways and PPPoE routers do it routinely; on Linux it is the iptables target TCPMSS --clamp-mss-to-pmtu. It helps TCP only.

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