Hello Julian, My report left out how the MTU gets reduced. Sorry for the extra round. On Thu, 3 Dec 2026, Julian Anastasov wrote:
> You mention inside client, is "r1 -> real-server:443" an UDP > client connection (r1 used as client address) or an UDP tunnel
Neither. The client is on the director's LAN and uses the VIP 10.1.0.1:4433 (NAT). The quoted datagram is made up: UDP from the director's public address to the real server's address, port 443. It matches no IPVS connection, tunnel or socket, so ip_vs_in_icmp() plays no part.
> Is it reduced outside IPVS?
Yes. With ip_vs not loaded at all, the same ICMP still creates the exception ("cache expires 598sec mtu 1000"). ftrace on the director: ipv4_update_pmtu <- __udp4_lib_err <- udp_err <- icmp_socket_deliver <- icmp_unreach <- icmp_rcv udp_err_update_exception(), inlined there, calls ipv4_update_pmtu() before the socket lookup (4c3499f79f8c, "ipv4: udp: Create exceptions before socket matching"). Before that commit an ICMP quoting an Echo Reply did the same through icmp_err(). In NAT mode IPVS only reads the result: dst_mtu() in __ip_vs_get_out_rt(), and ensure_mtu_is_adequate() then sends the client "need to frag (mtu 1000)".
> The real server IPs for NAT and DR forwarding are usually > on LAN (no PMTU discovery to real servers), so a locked value should > work
Measured on Ubuntu 7.0.0-43 (mainline calls the same helper from udp_err() directly), 2 runs each: - Real server on a directly connected LAN: same result as the routed case (route gets "mtu 1000", DF UDP to the VIP gets frag-needed and 0/3 arrive, non-DF and TCP are fine). The ICMP does not have to come from the path to the real server. - "mtu lock 1500" on the director's route to the real server: forged 1000 and 551 are both ignored, for both topologies. Without the lock, the default configuration is affected. If you think a change for NAT/DR is warranted, I can write and test it. If documenting the lock is enough, I have nothing further to add. This was found and tested with AI assistance (Claude), per Documentation/process/coding-assistants.rst. The measurements are from my own lab runs. James Sawyer