[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100330052044.GJ20695@one.firstfloor.org>
Date: Tue, 30 Mar 2010 07:20:44 +0200
From: Andi Kleen <andi@...stfloor.org>
To: "Templin, Fred L" <Fred.L.Templin@...ing.com>
Cc: Eric Dumazet <eric.dumazet@...il.com>,
Rick Jones <rick.jones2@...com>,
"Edgar E. Iglesias" <edgar.iglesias@...il.com>,
Andi Kleen <andi@...stfloor.org>, Glen Turner <gdt@....id.au>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: UDP path MTU discovery
On Mon, Mar 29, 2010 at 04:38:49PM -0700, Templin, Fred L wrote:
> > 1) 4096 bytes UDP messages... well...
> > 2) Using regular TCP for DNS servers... well...
> >
> > I believe some guys were pushing TCPCT (Cookie Transactions) for this
> > case ( http://tools.ietf.org/html/draft-simpson-tcpct-00.html )
> >
> > (That is, using an enhanced TCP for long DNS queries... but not only for
> > DNS...)
>
> IPv4 gets by this by setting DF=0 in the IP header, and
> lets the network fragment the packet if necessary. IPv6 can
> similarly get by this by having the sending host fragment
> the large UDP packet into IPv6 fragments no longer than
> 1280 bytes each.
That's true -- in theory the UDP app unwilling/unable to do proper ptmudisc
could set the path mtu to 1280 + header and still keep path mtu discovery off
and then just fragment.
Drawback would be of course suboptimal network use with too small MTUs
in the common case.
Right now there is no right socket option to set the path mtu. We
have a IP_MTU option, but it only works for getting the MTU.
That's because the PMTU is in the routing cache entry and shared
by multiple sockets. Presumably one could add a special case
with an MTU in the socket overriding the one in the destination entry.
-Andi
--
ak@...ux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists