From: Tore Anderson <tore@fud.no>
To: "Maciej Żenczykowski" <maze@google.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>,
Tom Herbert <therbert@google.com>
Subject: Re: [PATCH net-next] ipv6: RTAX_FEATURE_ALLFRAG causes inefficient TCP segment sizing
Date: Wed, 25 Apr 2012 13:49:19 +0200 [thread overview]
Message-ID: <4b7a2708fd4545ac65cfef6561e7f02a@greed.fud.no> (raw)
In-Reply-To: <CANP3RGeV9Z2z3i4GYyupU2tBVbL-4nX2-h2e8MP=PP4WE2s9qw@mail.gmail.com>
* Maciej Żenczykowski
>> I think you forgot to include the explanation why. :-)
>
> I did try, I just didn't do a very good job.
Oh, because of IPv6-in-IPv4 tunnel encap overhead, I get it now.
>> I suppose. This would be invisible to IPv6, though - the
>> fragmentation and
>> reassembly happens at a lower layer than IPv6. Same as ATM for
>> example. Situation is
>> described by RFC 2460:
>
> It would be invisible (*), and you probably wouldn't really need the
> frag header in the ipv6 packet,
> but it would still be desirable to have ipv6 already have packets
> smaller than ipv4
> mtu - 20, rather than have to frag/unfrag at the tunnel endpoint.
> Since it is always more efficient to have fragmented correctly in the
> first place.
>
> (*) Would it be legal for a tunnel endpoint to support ipv6 packets
> up
> to 1280 bytes in size
> but still send back a 'packet to big please use 1K mtu' message?
I don't think this is a valid thing to do - either the tunnel server
would
forward the packet through the tunnel (fragmenting the underlaying IPv4
if
necessary), and *not* send back a ICMPv6 PTB error at the same time,
OR: it
would need to drop the packet and *do* send back the ICMPv6 PTB. Not
both
at the same time.
However, if it is going to drop the large packets and reply with the
PTB, it
will cause a blackhole with current Linux, because if it get the PTB
with
MTU=1000, it will include the frag header, but *not* reduce the actual
packet
size. And since this is pure IPv6 routing, the tunnel server will not
be able
to fragment the IPv6 packets, since IPv6 routers don't do that (the
presense
of the Fragmentation header does not change this fact).
So the tunnel routers pretty much *must* support an IPv6 MTU of 1280,
either
by ensuring the outer IPv4 MTU is 1300 or larger, or by performing IPv4
fragmentation and reassembly "under the hood".
I don't think it is worth while (or even appropriate) for the Linux
IPv6 stack
to try to optimize for this.
Tore
next prev parent reply other threads:[~2012-04-25 11:49 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 17:37 [PATCH net-next] ipv6: RTAX_FEATURE_ALLFRAG causes inefficient TCP segment sizing Eric Dumazet
2012-04-24 19:49 ` Maciej Żenczykowski
2012-04-24 20:10 ` Eric Dumazet
2012-04-24 21:50 ` Maciej Żenczykowski
2012-04-24 21:51 ` Maciej Żenczykowski
2012-04-25 5:32 ` Eric Dumazet
2012-04-25 7:34 ` Maciej Żenczykowski
2012-04-25 9:20 ` Tore Anderson
2012-04-25 9:38 ` Eric Dumazet
2012-04-25 9:51 ` Tore Anderson
2012-04-25 9:52 ` Maciej Żenczykowski
2012-04-25 10:02 ` Eric Dumazet
2012-04-25 18:39 ` David Miller
2012-04-25 9:48 ` Maciej Żenczykowski
2012-04-25 10:04 ` Tore Anderson
2012-04-25 10:15 ` Eric Dumazet
2012-04-25 10:30 ` Maciej Żenczykowski
2012-04-25 10:44 ` Eric Dumazet
2012-04-26 10:32 ` Tore Anderson
2012-04-25 10:45 ` Tore Anderson
2012-04-25 11:02 ` Maciej Żenczykowski
2012-04-25 11:49 ` Tore Anderson [this message]
2012-04-25 11:55 ` Maciej Żenczykowski
2012-04-27 4:03 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4b7a2708fd4545ac65cfef6561e7f02a@greed.fud.no \
--to=tore@fud.no \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=maze@google.com \
--cc=netdev@vger.kernel.org \
--cc=therbert@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).