Re: [Softwires] 4rd-U complement - e2e transparency to IPv4 TOS

Satoru Matsushima <satoru.matsushima@gmail.com> Mon, 17 October 2011 15:27 UTC

Return-Path: <satoru.matsushima@gmail.com>
X-Original-To: softwires@ietfa.amsl.com
Delivered-To: softwires@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 51FA921F8C2D for <softwires@ietfa.amsl.com>; Mon, 17 Oct 2011 08:27:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.549
X-Spam-Level:
X-Spam-Status: No, score=-3.549 tagged_above=-999 required=5 tests=[AWL=0.050, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jCEEDWBKAHgm for <softwires@ietfa.amsl.com>; Mon, 17 Oct 2011 08:27:53 -0700 (PDT)
Received: from mail-qy0-f179.google.com (mail-qy0-f179.google.com [209.85.216.179]) by ietfa.amsl.com (Postfix) with ESMTP id 458FD21F8BB2 for <softwires@ietf.org>; Mon, 17 Oct 2011 08:27:53 -0700 (PDT)
Received: by qyk31 with SMTP id 31so1093060qyk.10 for <softwires@ietf.org>; Mon, 17 Oct 2011 08:27:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=BqOilnN0Q8pEFreoWrmUa2lHSJnj0MbB1seenu7kEl8=; b=lbOna/xo34ZkRUaqq60Qc/E9NyLwOecqeXO9mTaT7M8cF7JznDMtESr/tCqcRTVvk5 HaHSKRW1NRu/rdKGm7DdsdBFGnzbCj6RsUG7ZYfbf5jE5ScGAOtWl4ol7O6Bv4U11loB aHIZ78BbN6VcHwj8h4DhsAurpVyq/xvQNCE58=
Received: by 10.68.74.33 with SMTP id q1mr38826336pbv.71.1318865272364; Mon, 17 Oct 2011 08:27:52 -0700 (PDT)
Received: from [192.168.10.54] (softbank221038132005.bbtec.net. [221.38.132.5]) by mx.google.com with ESMTPS id y4sm56652666pbe.4.2011.10.17.08.27.48 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Oct 2011 08:27:50 -0700 (PDT)
Mime-Version: 1.0 (Apple Message framework v1251.1)
Content-Type: text/plain; charset="iso-8859-1"
From: Satoru Matsushima <satoru.matsushima@gmail.com>
In-Reply-To: <CAFUBMqVbZ7uTvHRpQDV1Y1eN9hJZ2tofzNvAM0hFHCrWZ_mA6g@mail.gmail.com>
Date: Tue, 18 Oct 2011 00:27:45 +0900
Content-Transfer-Encoding: quoted-printable
Message-Id: <596276A4-1C63-4A92-90FA-BC958DFB2053@gmail.com>
References: <85015B23-C124-43DB-913D-3829B895C2A9@laposte.net> <83A72484-7A54-4A30-AF9B-5FC9D97A9E14@gmail.com> <CAFUBMqWrw8e7sO80U74Q+UvJwW_sqxZZnnwTo7jhyayFBn5_Mg@mail.gmail.com> <6668E2F8-EEBA-4AF3-8110-2B0B43D3BC3E@gmail.com> <CAFUBMqVbZ7uTvHRpQDV1Y1eN9hJZ2tofzNvAM0hFHCrWZ_mA6g@mail.gmail.com>
To: Maoke <fibrib@gmail.com>
X-Mailer: Apple Mail (2.1251.1)
Cc: Softwires WG <softwires@ietf.org>
Subject: Re: [Softwires] 4rd-U complement - e2e transparency to IPv4 TOS
X-BeenThere: softwires@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: softwires wg discussion list <softwires.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/softwires>, <mailto:softwires-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/softwires>
List-Post: <mailto:softwires@ietf.org>
List-Help: <mailto:softwires-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/softwires>, <mailto:softwires-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Oct 2011 15:27:54 -0000

On 2011/10/17, at 23:46, Maoke wrote:

> hi Satoru-san,
> 
> 2011/10/17 Satoru Matsushima <satoru.matsushima@gmail.com>
> Hi Maoke-san,
> 
> On 2011/10/17, at 22:30, Maoke wrote:
> 
> > hi Satoru-san,
> >
> > may i understand that, as Remi's proposal is applied for the double translation case, TTL being translated to IPv6 Hop Limit is enough? as is stated in RFC6145, translator is a "router" and therefore the behavior should not be as same as the virtual link. right?
> 
> If so, just double translation is enough for that.
>  
> it sounds nice. what i would like to have is a consistent header processing for single/double translations and encapsulation.

I think that encapsulation and double translation can't be consistent to processing packet at all.

>  
> can we keep the TTL of IPv4 in the IPv6 header (plus fragment header but not anything more unless really necessary)?
>  
> can i understand that the following requirements are exclusive to each other: (a) we want to keep TTL changed in the IPv6 domain as the behavior of translation; (b) we want to keep TTL not changed until leaving the IPv6 domain as the behavior of encapsulation (4rd-U)? 

I think that these are exclusive.


>  
> RFC6145 has defined TTL<->HopLimit translation. then how about using another reserved bit, say EF, in the fragment header for indicating the mode? if EF = 1, it is encapsulation mode, and therefore the HopLimit in the base header keeps unchanged untile being translated back to IPv4; if EF = 0, it is translation mode, and the HopLimit in the base header will decrease 1 for each hop. btw, previously i suggest using one of the reserved bits for the DF (e.g., the one before MF) instead of the first bit of the identification in the ipv6 fragement header, in order to avoid ambiguity caused by an IPv6 host in the single translation.

It seems that adding new semantics more. Very creative, but is it really needed even we already have both encaps and translation? When you want to define more new semantics, it would be better you define new protocol number for 4rd-U.


>  
> thus i'd like to suggest that one as follows, based on Remi's complement, where E is the indicator of encapsulation mode. copying TOS in the fragment header is fine because it doesn't impact the IPv6 dst (of single translation) getting the original IPv4 src's relative identification.
>  
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |Vers=6 |   TrafClass   |            Flow Label                 |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |         Payload Length        |Next Header=44 |   Hop Limit   |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |                                                               |
>        +                                                               +
>        |                                                               |
>        +                  IPv6 Source Address                          +
>        |                                                               |
>        +                                                               +
>        |                                                               |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |                                                               |
>        +                                                               +
>        |                                                               |
>        +                IPv6 Destination Address                       +
>        |                                                               |
>        +                                                               +
>        |                                                               |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |  Next Header  |   Reserved    | IPv6  Fragment Offset   |E|D|M|
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |      0        |     TOS       |       IPv4 Identification     |
>        +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>        |                        IPv4 Payload                           |
>        |                                                               |
> unfortunately, however, even we free the first bit of IPv6 identification in the fragment header, we cannot put the TTL here (before the TOS) because traversing different paths may cause inconsistant IPv6 identification values in fragments of the same datagram and disable reassemble at the IPv6 dst (in the single translation mode).
>  
> the problem of EF in fragment header is, it requires that the implementation process fragment header before descreasing the HopLimit. is it feasible?
>  
> how do you think?

IMHO, I'm not sure it is good idea to change the semantics of the IPv6 fragment. If a router receives 4rd-U packets, which router doesn't understand 4rd-U, processing these packets as fragmented packets could cause problem that sounds buffer exhaust attack. And I also think that if we need to add new semantics even we can utilize IPv6 fragment, it would be better to define new protocol number for 4rd-U. However, I don't think that we need to request to define it, because existing encapsulation and translation can be utilized for each appropriate situation.

cheers,
--satoru


>  
> cheers,
> maoke
>  
> cheers,
> --satoru
> 
> > regards,
> > maoke
> > 2011/10/17 Satoru Matsushima <satoru.matsushima@gmail.com>
> > Hi Remi-san,
> >
> > > With this added, I believe that 4rd-U is a real progress over previously proposed Double translation and Encapsulation.
> > > It can make IMHO a valuable unified standard.
> >
> > Not enough. The original TTL value in IPv4 header must be carried.
> >
> > cheers,
> > --satoru
> >
> >
> > On 2011/10/17, at 21:36, Rémi Després wrote:
> >
> > > Hi Satoru-san,
> > >
> > > Thank you for identifying a limitation of the 4rd-U
> > > You are right, as currently specified, "it doesn't support diff-serv tunneling model, pipe and short-pipe".
> > > All these need e2e transparency to the IPv4 Type of Service.
> > >
> > > Fortunately, this is easy to fix: in the Identification field of the IPv6 Fragment header, copy not only the DF bits but also the IPv4 TOS.
> > >
> > > The proposed 4r-U packet format becomes:
> > >
> > >
> > >   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >   |Vers=6 |   TrafClass   |            Flow Label                 |
> > >   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >   |         Payload Length        |Next Header=44 |   Hop Limit   |
> > >   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >   |                                                               |
> > >   +                                                               +
> > >   |                                                               |
> > >   +                  IPv6 Source Address                          +
> > >   |                                                               |
> > >   +                                                               +
> > >   |                                                               |
> > >   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >   |                                                               |
> > >   +                                                               +
> > >   |                                                               |
> > >   +                IPv6 Destination Address                       +
> > >   |                                                               |
> > >   +                                                               +
> > >   |                                                               |
> > >   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >   |  Next Header  |    Reserved   | IPv6  Fragment Offset   | 0 |M|
> > >   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >   |D|      0      |    IPv4 TOS   |       IPv4 Identification     |
> > >   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> > >   |                        IPv4 Payload                           |
> > >   |                                                               |
> > >
> > > With this added, I believe that 4rd-U is a real progress over previously proposed Double translation and Encapsulation.
> > > It can make IMHO a valuable unified standard.
> > >
> > > Yet, I may have missed something else.
> > > New justified objections are therefore most welcome..
> > >
> > >
> > > Regards,
> > > RD
> >
> > _______________________________________________
> > Softwires mailing list
> > Softwires@ietf.org
> > https://www.ietf.org/mailman/listinfo/softwires
> >
> 
>