What is Path MTU Discovery and what is an MSS clamp?
AdvancedConceptKubernetes, Containers, MTU & Performance Basics
Answer
Senders set the Don't Fragment bit; a router that cannot forward the packet returns ICMP "fragmentation needed" with its MTU, and the sender lowers its segment size. If ICMP is filtered, the sender never learns and the connection black-holes.
MSS clamping rewrites the TCP MSS option during the handshake so endpoints never send too-large segments:
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
More on Kubernetes, Containers, MTU & Performance Basics
What are the basic Kubernetes networking rules?BeginnerWhat are the Service types in Kubernetes?BeginnerWhat is the difference between a Service and an Ingress?BeginnerHow does kube-proxy implement Services?AdvancedHow does DNS work for Services and pods in Kubernetes?IntermediateWhat is a CNI plugin and how do the main ones differ?Intermediate