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

Maoke <fibrib@gmail.com> Mon, 17 October 2011 14:46 UTC

Return-Path: <fibrib@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 1748D21F8C0E for <softwires@ietfa.amsl.com>; Mon, 17 Oct 2011 07:46:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.276
X-Spam-Level:
X-Spam-Status: No, score=-3.276 tagged_above=-999 required=5 tests=[AWL=0.322, BAYES_00=-2.599, HTML_MESSAGE=0.001, 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 97llEWrO7OFm for <softwires@ietfa.amsl.com>; Mon, 17 Oct 2011 07:46:43 -0700 (PDT)
Received: from mail-qy0-f172.google.com (mail-qy0-f172.google.com [209.85.216.172]) by ietfa.amsl.com (Postfix) with ESMTP id B218B21F8BA8 for <softwires@ietf.org>; Mon, 17 Oct 2011 07:46:42 -0700 (PDT)
Received: by qyk34 with SMTP id 34so986989qyk.10 for <softwires@ietf.org>; Mon, 17 Oct 2011 07:46:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=L8Jloirlc8p0mZKtUFX52aiCWkF42PMA7EuDaFjlab4=; b=wr6I6lw6VtmwpGevyqY2FvOy2kL0NV1aTBJXEtspKca9RnyoY1xDbqPcBGNFi3Go76 eKHQNGgO1ioDuYOHMwI/GDma05W07yifgbVCq8nqV5VRWZYQ58pq+iMaHq/DyatKJUUB W/Z5dXV/F4uB3CFsmO0PVGHjaIoBBWcPOtGrM=
MIME-Version: 1.0
Received: by 10.229.63.169 with SMTP id b41mr4157258qci.145.1318862802112; Mon, 17 Oct 2011 07:46:42 -0700 (PDT)
Received: by 10.229.214.212 with HTTP; Mon, 17 Oct 2011 07:46:41 -0700 (PDT)
In-Reply-To: <6668E2F8-EEBA-4AF3-8110-2B0B43D3BC3E@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>
Date: Mon, 17 Oct 2011 23:46:41 +0900
Message-ID: <CAFUBMqVbZ7uTvHRpQDV1Y1eN9hJZ2tofzNvAM0hFHCrWZ_mA6g@mail.gmail.com>
From: Maoke <fibrib@gmail.com>
To: Satoru Matsushima <satoru.matsushima@gmail.com>
Content-Type: multipart/alternative; boundary="0016e65da6eed3d2a904af7fac85"
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 14:46:44 -0000

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.

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)?

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.

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?

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
> >
>
>