UDP path MTU discovery

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Glen Turner
Date: Thursday, March 25, 2010 - 5:02 pm

[This is a second attempt to report this bug.]

Path MTU Discovery for UDP underperforms for IPv4 and fails
for IPv6 in Linux for transactional services like DHCP and
RADIUS running on jumbo frame interfaces.

These servers send packets with exponential back-off. UDP
Path MTU Discovery probes for the path MTU each time the
application sends a packet. So if you start with a high
enough interface MTU then the server application backoff
times get huge and the client gives up before the path
MTU is discovered.

This differs from TCP, where it is the kernel -- and not
the application -- which organises retransmission. On
receiving a ICMP Fragmentation Needed the kernel can
immediately re-probe the path MTU wiht no waiting for
an exponential timer to expire.

In IPv4 there is a work-around for the server, turn off
Path MTU Discovery and allow routers to fragment the packet
as needed. Looking at the code for the various transactional
servers (ISC DHCP, FreeRADIUS, RADIATOR, radsecproxy) they
all disable Path MTU Discovery on Linux. This workaround has
the side effect of hiding the problem, misleading people into
thinking that UDP Path MTU Discovery actually works for these
transactional servers.

In IPv6 routers do not fragment packets, so there is no work
around. Transactional servers which use UDP over IPv6 encounter
exponential backoffs within the application and the client
abandons the transaction. There is no way for the server to
know that the packet was lost due to Path MTU Discovery and
to immediately re-transmit it (without an exponential penalty)
so that the MTU can be probed again.

This can be viewed as a flaw in the RFC and in the sockets API
for which IPv6 has removed the common work-around.

Thank you, Glen

-- 
 Glen Turner
 www.gdt.id.au/~gdt

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
UDP path MTU discovery, Glen Turner, (Thu Mar 25, 5:02 pm)
Re: UDP path MTU discovery, Rick Jones, (Thu Mar 25, 5:53 pm)
Re: UDP path MTU discovery, David Miller, (Thu Mar 25, 8:24 pm)
Re: UDP path MTU discovery, David Miller, (Thu Mar 25, 8:26 pm)
Re: UDP path MTU discovery, Rick Jones, (Fri Mar 26, 10:48 am)
Re: UDP path MTU discovery, Andi Kleen, (Sun Mar 28, 1:41 am)
Re: UDP path MTU discovery, Andi Kleen, (Sun Mar 28, 1:50 am)
Re: UDP path MTU discovery, Rick Jones, (Mon Mar 29, 10:01 am)
Re: UDP path MTU discovery, Andi Kleen, (Mon Mar 29, 1:14 pm)
Re: UDP path MTU discovery, Rick Jones, (Mon Mar 29, 1:25 pm)
Re: UDP path MTU discovery, Edgar E. Iglesias, (Mon Mar 29, 1:50 pm)
Re: UDP path MTU discovery, Rick Jones, (Mon Mar 29, 2:01 pm)
Re: UDP path MTU discovery, Eric Dumazet, (Mon Mar 29, 2:29 pm)
RE: UDP path MTU discovery, Templin, Fred L, (Mon Mar 29, 4:38 pm)
Re: UDP path MTU discovery, Andi Kleen, (Mon Mar 29, 10:20 pm)
Re: UDP path MTU discovery, Eric Dumazet, (Mon Mar 29, 11:06 pm)
Re: UDP path MTU discovery, Edgar E. Iglesias, (Mon Mar 29, 11:16 pm)
Re: UDP path MTU discovery, Andi Kleen, (Mon Mar 29, 11:16 pm)
Re: UDP path MTU discovery II, Andi Kleen, (Mon Mar 29, 11:17 pm)
Re: UDP path MTU discovery, Andi Kleen, (Mon Mar 29, 11:19 pm)
Re: UDP path MTU discovery, Edgar E. Iglesias, (Tue Mar 30, 1:20 am)
Re: UDP path MTU discovery, Andi Kleen, (Tue Mar 30, 7:12 am)
RE: UDP path MTU discovery, Templin, Fred L, (Tue Mar 30, 8:58 am)
Re: UDP path MTU discovery, Andi Kleen, (Tue Mar 30, 9:06 am)
Re: UDP path MTU discovery, Edgar E. Iglesias, (Tue Mar 30, 3:04 pm)
Re: UDP path MTU discovery, Glen Turner, (Wed Mar 31, 4:42 pm)
Re: UDP path MTU discovery, Glen Turner, (Wed Mar 31, 4:43 pm)
Re: UDP path MTU discovery, Hagen Paul Pfeifer, (Wed Mar 31, 4:51 pm)
Re: UDP path MTU discovery, Glen Turner, (Wed Mar 31, 4:57 pm)
Re: UDP path MTU discovery, Rick Jones, (Wed Mar 31, 5:06 pm)
Re: UDP path MTU discovery, Andi Kleen, (Wed Mar 31, 5:55 pm)
Re: UDP path MTU discovery, Andi Kleen, (Wed Mar 31, 5:57 pm)
Re: UDP path MTU discovery, Glen Turner, (Thu Apr 1, 10:41 pm)
Re: UDP path MTU discovery, Andi Kleen, (Sun Apr 4, 3:25 am)