TCP connections
MSS clamping
A router lowering the MSS in TCP SYNs to what its small link carries.
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.
Read next
- MSS The most TCP data per packet, announced in the SYN: the link's MTU minus 40 bytes of headers.
- Path MTU discovery Learning the largest packet a whole path carries, from the routers' ICMP messages.
- VPN Packets wrapped, encrypted, in UDP to a VPN server, which unwraps them on the far side.
- IPsec Encryption at the IP layer: IKE agrees keys between two gateways, ESP carries their traffic encrypted.