Re: PMTUD and MTU < 1280

Mark Andrews <marka@isc.org> Tue, 26 July 2011 02:58 UTC

Return-Path: <marka@isc.org>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F2E8121F8C21 for <ipv6@ietfa.amsl.com>; Mon, 25 Jul 2011 19:58:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.604
X-Spam-Level:
X-Spam-Status: No, score=-2.604 tagged_above=-999 required=5 tests=[AWL=-0.005, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V0yzUhvEVlKe for <ipv6@ietfa.amsl.com>; Mon, 25 Jul 2011 19:58:41 -0700 (PDT)
Received: from mx.ams1.isc.org (mx.ams1.isc.org [IPv6:2001:500:60::65]) by ietfa.amsl.com (Postfix) with ESMTP id 01D8021F8C20 for <ipv6@ietf.org>; Mon, 25 Jul 2011 19:58:40 -0700 (PDT)
Received: from bikeshed.isc.org (bikeshed.isc.org [IPv6:2001:4f8:3:d::19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "bikeshed.isc.org", Issuer "ISC CA" (verified OK)) by mx.ams1.isc.org (Postfix) with ESMTPS id 8B8725F999B; Tue, 26 Jul 2011 02:58:26 +0000 (UTC) (envelope-from marka@isc.org)
Received: from drugs.dv.isc.org (unknown [IPv6:2001:470:1f00:820:6233:4bff:fe01:7585]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by bikeshed.isc.org (Postfix) with ESMTPSA id 7AE2B216C88; Tue, 26 Jul 2011 02:57:54 +0000 (UTC) (envelope-from marka@isc.org)
Received: from drugs.dv.isc.org (localhost [127.0.0.1]) by drugs.dv.isc.org (Postfix) with ESMTP id 97231122A4CD; Tue, 26 Jul 2011 12:57:51 +1000 (EST)
To: Dan Wing <dwing@cisco.com>
From: Mark Andrews <marka@isc.org>
References: <264DF4B8-A7F3-4DB3-B58D-BBAC2A48B470@gmail.com> <A3E346FA-E5A4-4755-9D35-08CB10494424@apple.com> <01d201cc48e1$0784d8d0$168e8a70$@com> <010826E2-D6DF-488D-B5C4-CE14E47C7EE7@free.fr> <04db01cc4acf$d9074600$8b15d200$@com> <98B94666-CD24-4D1A-B25F-F6238CC3708E@laposte.net> <071801cc4afb$b3ead4a0$1bc07de0$@com>
Subject: Re: PMTUD and MTU < 1280
In-reply-to: Your message of "Mon, 25 Jul 2011 14:50:19 -0400." <071801cc4afb$b3ead4a0$1bc07de0$@com>
Date: Tue, 26 Jul 2011 12:57:51 +1000
Message-Id: <20110726025751.97231122A4CD@drugs.dv.isc.org>
Cc: 'RJ Atkinson' <rja.lists@gmail.com>, 'Rémi Després' <despres.remi@laposte.net>, ipv6@ietf.org
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ipv6>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jul 2011 02:58:42 -0000

In message <071801cc4afb$b3ead4a0$1bc07de0$@com>, "Dan Wing" writes:
> > -----Original Message-----
> > From: R=E9mi Despr=E9s [mailto:despres.remi@laposte.net]
> > Sent: Monday, July 25, 2011 1:43 PM
> > To: Dan Wing
> > Cc: 'james woodyatt'; 'RJ Atkinson'; ipv6@ietf.org
> > Subject: Re: PMTUD and MTU < 1280
> > =
> 
> > Dan,
> > =
> 
> > 1.
> > The point I wanted to check is just, slightly reformulated):
> > "May a simple IPv6 host have no support of packet-reassembly, and
> > simply accept packets up to 1280 octets."
> 
> The earlier part of this thread was talking about sending; you're
> now bringing up receiving.
> 
> IMO, if the packet came from IPv4, and that IPv4 network had a small
> MTU (e.g., 576) causing fragmentation, then such an IPv6 receiver
> will be unable to receive the packet.
>
> > In my understanding, the answer should be yes.
> > - This doesn't depend on whether sources know or not whether their
> > destinations are IPv6 or IPv4 only.
> > - If the destination happens to be IPv6, current RFC's don't permit
> > intermediate nodes to refuse 1280 packets as being too big.
> > =
> 
> > 2.
> > How sources can be sure to have e2e transparency in IPv6 is a different
> > question, but IMHO an important one.
> > =
> 
> > For instance, if a destination address is obtained from the DNS in a
> > AAAA, with no A for the same URL  and without any well-known prefix
> > indicating that there is an embedded-IPv4-address, I hope the source
> > can be guaranteed that e2e transparency won't be broken?
> 
> I don't think so.  DNS64 comes to mind.
> 
> > I won't have time personally to contribute much on this, but the
> > subject would usefully be clarified, IMHO.
> 
> The RFCs are pretty clear, IMO.  Implementers don't want to read
> them all the way.

And there is missing functionality in the API's.

IPV6_USE_MIN_MTU doesn't force a fragment header to be added to
packets less than 1280 octets for example and I'm not aware of any
other API hooks which will do this.  As a result a node still has
to do some parts of path mtu discovery even if it doesn't want to
and it is undesirable for it to do so.

RFC 3542

   This specification defines a mechanism to avoid path MTU discovery by
   sending at the minimum IPv6 MTU [RFC-2460].  If the packet is larger
   than the minimum MTU and this feature has been enabled the IP layer
   will fragment to the minimum MTU.  To control the policy about path
   MTU discovery, applications can use the IPV6_USE_MIN_MTU socket
   option.

A application should be able to send a IPv6/UDP packet, without resorting
to using raw sockets, and not have a PTB be generated as a result.

Mark

> -d
> 
> 
> > Regards,
> > RD
> > =
> 
> > =
> 
> >  Le 25 juil. 2011 =E0 15:36, Dan Wing a =E9crit :
> > =
> 
> > >>>>
> > >>>> ...
> > >>>
> > >>> Its behavior violates the last paragraph of Section 5 of RFC2460.
> > >>
> > >> Violation _only in case_ of "an IPv6 packet that is sent to an IPv4
> > >> destination".
> > >
> > > But how does one determine an IPv6 packet is, or isn't, going
> > > to an IPv4 destination?  I don't think it's possible to determine
> > > if there is an IPv6/IPv4 translator on the path.
> > >
> > > -d
> > >
> > >
> > >> If the destination is IPv6, a PMTU below 1280 remains therefore a
> > >> network failure.
> > >> This authorizes a simple IPv6 host to refuse packets beyond 1280
> > octets
> > >> and to have no support of packet-reassembly.
> > >>
> > >> Right?
> > >>
> > >> Regards,
> > >> RD
> > >>
> > >>
> > >>
> > >>>
> > >>> -d
> > >>>
> > >>>>
> > >>>> --
> > >>>> james woodyatt <jhw@apple.com>
> > >>>> member of technical staff, core os networking
> > >>>>
> > >>>>
> > >>>>
> > >>>> ------------------------------------------------------------------
> > --
> > >>>> IETF IPv6 working group mailing list
> > >>>> ipv6@ietf.org
> > >>>> Administrative Requests:
> > https://www.ietf.org/mailman/listinfo/ipv6
> > >>>> ------------------------------------------------------------------
> > --
> > >>>
> > >>> -------------------------------------------------------------------
> > -
> > >>> IETF IPv6 working group mailing list
> > >>> ipv6@ietf.org
> > >>> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> > >>> -------------------------------------------------------------------
> > -
> > >
> 
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org