Re: [Softwires] 6rd RADIUS attribute - grouped attributes

Stefan Winter <stefan.winter@restena.lu> Wed, 21 December 2011 14:10 UTC

Return-Path: <stefan.winter@restena.lu>
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 0389F21F84AA for <softwires@ietfa.amsl.com>; Wed, 21 Dec 2011 06:10:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.149
X-Spam-Level:
X-Spam-Status: No, score=-2.149 tagged_above=-999 required=5 tests=[AWL=-0.150, BAYES_00=-2.599, J_CHICKENPOX_37=0.6]
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 wg6INoKpLdbJ for <softwires@ietfa.amsl.com>; Wed, 21 Dec 2011 06:10:49 -0800 (PST)
Received: from smtprelay.restena.lu (smtprelay.restena.lu [IPv6:2001:a18:1::62]) by ietfa.amsl.com (Postfix) with ESMTP id 3E0DA21F84A8 for <softwires@ietf.org>; Wed, 21 Dec 2011 06:10:49 -0800 (PST)
Received: from smtprelay.restena.lu (localhost [127.0.0.1]) by smtprelay.restena.lu (Postfix) with ESMTP id E9FDB10A08; Wed, 21 Dec 2011 15:10:43 +0100 (CET)
Received: from [IPv6:2001:a18:1:8:2097:ab95:6a35:4b95] (unknown [IPv6:2001:a18:1:8:2097:ab95:6a35:4b95]) by smtprelay.restena.lu (Postfix) with ESMTPS id D6DA310A01; Wed, 21 Dec 2011 15:10:43 +0100 (CET)
Message-ID: <4EF1E94D.2080006@restena.lu>
Date: Wed, 21 Dec 2011 15:12:29 +0100
From: Stefan Winter <stefan.winter@restena.lu>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: Peter Deacon <peterd@iea-software.com>
References: <4EC1BD65.4040205@restena.lu> <4EEB1014.1030307@restena.lu> <5D36713D8A4E7348A7E10DF7437A4B9218583E44@SZXEML506-MBX.china.huawei.com> <4EF047A3.5090906@restena.lu> <4EF08F63.1010600@deployingradius.com> <alpine.WNT.2.00.1112200950300.2472@SMURF> <5D36713D8A4E7348A7E10DF7437A4B9218584374@SZXEML506-MBX.china.huawei.com> <alpine.WNT.2.00.1112201948210.2472@SMURF> <4EF1A65F.9080609@restena.lu> <alpine.WNT.2.00.1112210204010.2472@SMURF>
In-Reply-To: <alpine.WNT.2.00.1112210204010.2472@SMURF>
X-Enigmail-Version: 1.3.4
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="------------enigD68C21658F4B6FEDB87032D3"
X-Virus-Scanned: ClamAV
Cc: softwires@ietf.org, Alan DeKok <aland@deployingradius.com>, GuoDayong <guodayong@huawei.com>
Subject: Re: [Softwires] 6rd RADIUS attribute - grouped attributes
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: Wed, 21 Dec 2011 14:10:50 -0000

Hi,

> I don't think this is correct.  The extensions document describes a
> *data type* 'TLV'.  My suggestion simply leverages this type in the same
> way IPv4 Address and IPv6 prefix type from existing RFCs are already
> being leveraged.
> 
> If you implement extensions RFC in the future your implementation
> supports the TLV data type giving you the ability to encode and decode
> this attribute with configuration dictionaries.  The wire format of
> IPv6-6rd-Configuration was intentionally made to be the same as a TLV.

Ah! I'm just looking at the -04 with this extra context. It's certainly
close. I think there's only one thing which is not inline: 6rdprefixLen
and 6rdPrefix immediately follow each other. In a version
compatible/analogous to the radius-extensions draft, the former would be
of type integer, the latter of type IPv6Address, and each would have its
own (Subtype,SubLen) tuple.

If that were to change, the two approaches are indeed very nicely
aligned. ASCII-art below:

  0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      Type     |    Length     |    SubType    |    SubLen     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   | IPv4MaskLen   |    SubType    |    SubLen     |  Reserved     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  6rdPrefixLen |    SubType    |    SubLen     |               |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+               +
   |                                                               |
   +                                                               +
   |                     6rdPrefix                                 |
   +                                                               +
   |                                                               |
   +               +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |               |   SubType     |    SubLen     |   SubType     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |    SubLen     | 6rdBRIPv4Address                              |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |               |
   +-+-+-+-+-+-+-+-+

Any particular reason why the 6rdPrefixLen and 6rdPrefix are glued into
one blob in -04?

> The compromise allowed someone to *choose* to implement the TLV type
> generically OR a much less flexible parser capable of handling just this
> attribute without having to also support extensions.
> 
> Some vendors already support the TLV concept as it is necessary for
> wimax. It is possible to configure the -04 draft today with just
> configuration in some systems already supporting TLV.

That's quite good to hear. As said above, the only thing I'm wondering
is why there's a glued datatype for prefixlen+preifx in one go.

> My understanding they were not willing to wait for extensions to move
> ahead with the 6rd draft.  In that light my view was something that
> looked like a "TLV" was better than the alternative fixed format.
> 
> If this constraint is invalid and they are willing to wait allowing 6rd
> draft to be dependent on extensions I agree it would certainly be the
> best approach for all concerned.

If you take the ASCII art above and add 16 bits of "reserved" after the
overall length, the rest of the attribute would even be bitwise aligned
with a later extended attribute (the space that an extended-attr would
fill with Extended-Type and Flags. Not sure if that's important or even
helpful for implementers though.

Greetings,

Stefan

-- 
Stefan WINTER
Ingenieur de Recherche
Fondation RESTENA - Réseau Téléinformatique de l'Education Nationale et
de la Recherche
6, rue Richard Coudenhove-Kalergi
L-1359 Luxembourg

Tel: +352 424409 1
Fax: +352 422473