Re: [Softwires] Proposed Unified Address Mapping for encapsulation and double-translation

Ole Troan <otroan@employees.org> Thu, 06 October 2011 10:44 UTC

Return-Path: <ichiroumakino@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 2095821F8B91 for <softwires@ietfa.amsl.com>; Thu, 6 Oct 2011 03:44:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.386
X-Spam-Level:
X-Spam-Status: No, score=-3.386 tagged_above=-999 required=5 tests=[AWL=-0.087, BAYES_00=-2.599, MIME_8BIT_HEADER=0.3, 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 NtiK-idlmeud for <softwires@ietfa.amsl.com>; Thu, 6 Oct 2011 03:44:44 -0700 (PDT)
Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by ietfa.amsl.com (Postfix) with ESMTP id 1474D21F8B73 for <softwires@ietf.org>; Thu, 6 Oct 2011 03:44:43 -0700 (PDT)
Received: by wwf22 with SMTP id 22so2826524wwf.13 for <softwires@ietf.org>; Thu, 06 Oct 2011 03:47:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=xU/HRY9NYpBUNKFkKHUN9XWLoM5FXfWYcm1MVLFa0tc=; b=WUZW1j+2H4I4uvHkK75OnGnwXE7961EkP059K+xpq/0tKFgjguKh4Tcq25DpE0ISJG ljlksivpL1xMvL5yugZvxuve2iOQxbXrsjhBLZtg7+4CXKh2HM6BESUCp9Mvt5SuYbsx iCURMinrZaWS2c4ZCE+4DDQotXSptViE3/tnI=
Received: by 10.216.229.84 with SMTP id g62mr805642weq.23.1317898073836; Thu, 06 Oct 2011 03:47:53 -0700 (PDT)
Received: from dhcp-10-61-97-42.cisco.com (64-103-25-233.cisco.com. [64.103.25.233]) by mx.google.com with ESMTPS id n21sm9553307wbp.2.2011.10.06.03.47.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 06 Oct 2011 03:47:52 -0700 (PDT)
Sender: Ole Troan <ichiroumakino@gmail.com>
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Ole Troan <otroan@employees.org>
In-Reply-To: <F259BF79-B3C9-4434-AAC4-9F84B8D9A0FA@laposte.net>
Date: Thu, 06 Oct 2011 06:47:48 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <16C872EF-F79E-4FD8-89B9-21B50129BA70@employees.org>
References: <F259BF79-B3C9-4434-AAC4-9F84B8D9A0FA@laposte.net>
To: Rémi Després <despres.remi@laposte.net>
X-Mailer: Apple Mail (2.1084)
Cc: Softwires-wg <softwires@ietf.org>
Subject: Re: [Softwires] Proposed Unified Address Mapping for encapsulation and double-translation
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: Thu, 06 Oct 2011 10:44:45 -0000

Remi,

[...]

> 2.
> (a)
> The IPv6 Source address of an IPv4 packet from a CE is:
> 
> a1- If the CE has an exclusive or shared IPv4 address:
> 
> <--------- 64 ------------><8 ><------ L >= 32 -------><48-L><8 >
> +-------------+--------+---+---+----------------+------+-----+---+
> | IPv6 prefix |CE index| 0 | V |  IPv4 address  | PSID |  0  | L |
> +-------------+--------+---+---+----------------+------+-----+---+

putting the IPv4 address / port information at the end of the interface identifier will allow for > /64 support.
what's the L?

you suggest that the first subnet of an allocation should be used for this purpose.
the first subnet is convenient to use for e.g. manual addressing (since it allows the :: short hand).
I do wonder if this has to be provisioned. e.g. some deployments may use the first subnet for the link between
CE and PE. (i.e. a /56 - 1 using the PD exclude option is used).

> a2- If the CE has an IPv4 prefix:
> 
> <--------- 64 ------------><8 ><-- L < 32 --><--- 48-L -----><8 >
> +-------------+--------+---+---+-------------+---------------+---+
> | IPv6 prefix |CE index| 0 | V | IPv4 prefix |         0     | L |
> +-------------+--------+---+---+-------------+---------------+---+
> 
> (b)
> V is the mark that characterizes IPv6 packets that are in reality IPv4 packets.
> Its value differs from any permitted value of this octet in IPv6 IIDs  (ref RFC 4291).
> 
> It is understood that, if double Translation coexists with single translation, concerned ISPs may notify their CEs to use the U octet of RFC 6052 instead of V.
> 
> An unambiguous mark is fortunately possible because currently permitted IIDs have in their first octet either bit6 = 0 (the "u" bit"), or bit6 = 1 and bit7= 0 (the "g" bit).
> With V having "u" = 1 (signifying Universal scope) AND "g" = 1, distinction is therefore deterministic.
> 
> The proposed V is = 00000011. 
> (With other values of this octet, other IID formats can be defined in case some would be useful in the future.)
> 
> Note that, if and when a consensus is reached in Softwire, an extension of RFC 4291 will have to be submitted to 6MAN. 

or rather IEEE?
I am not convinced that "V" is needed.
you could even use the IANA OUI if pretty printing was required.

> 
> (c)                                   
> A Destination address from a CE to the outside IPv4 Internet is:
> <--------- 64 ------------>< 8 ><----   32 ----><--- 16 ----><8 >
> +--------------------------+----+---------------+------------+---+
> |     BR subnet prefix     | V  |  IPv4 address |      0     |32 |
> +--------------------------+----+---------------+------------+---+

this is a big change for encapsulation, where prior to this encapsulation means sending to a single destination.
if we also allow for a BR subnet prefix of /128 I'm OK with this (I think).

> 
> Note that if double-translation CEs are notified to use U instead of V, the last octet becomes 0 per RFC  6052.

how would a CE know if it was single or double translating?

e.g we could do:

<--------- 64 ------------><--- 24 ------><----- 32 -------><--8 >
+-------------+--------+---+--------------------+------+-----+---+
| IPv6 prefix |CE index| S | 00-00-5E    |  IPv4 address  | PSID |
+-------------+--------+---+---+----------------+------+-----+---+

we also need to handle the case where IPv6 prefix + CE index > 64. I suggest we then just put as much as the interface identifier that will fit.

cheers,
Ole