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

Stefan Winter <stefan.winter@restena.lu> Wed, 21 December 2011 09:25 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 D8E2321F84D4 for <softwires@ietfa.amsl.com>; Wed, 21 Dec 2011 01:25:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level:
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[AWL=-0.300, 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 6qB5wtwf3Hw3 for <softwires@ietfa.amsl.com>; Wed, 21 Dec 2011 01:25:13 -0800 (PST)
Received: from smtprelay.restena.lu (smtprelay.restena.lu [IPv6:2001:a18:1::62]) by ietfa.amsl.com (Postfix) with ESMTP id 1D21B21F84B8 for <softwires@ietf.org>; Wed, 21 Dec 2011 01:25:13 -0800 (PST)
Received: from smtprelay.restena.lu (localhost [127.0.0.1]) by smtprelay.restena.lu (Postfix) with ESMTP id 290E610A16; Wed, 21 Dec 2011 10:25:11 +0100 (CET)
Received: from [IPv6:2001:a18:1:8:710e:3e63:6b3b:8003] (unknown [IPv6:2001:a18:1:8:710e:3e63:6b3b:8003]) by smtprelay.restena.lu (Postfix) with ESMTPS id 106E810A15; Wed, 21 Dec 2011 10:25:11 +0100 (CET)
Message-ID: <4EF1A65F.9080609@restena.lu>
Date: Wed, 21 Dec 2011 10:26:55 +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>
In-Reply-To: <alpine.WNT.2.00.1112201948210.2472@SMURF>
X-Enigmail-Version: 1.3.4
Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="------------enigE35A15DC25BA5C64CA32EC5B"
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 09:25:14 -0000

Hi,

added softwires cc. This really belongs on the mailing list.

> My understanding there already was agreement on format.  Recommend
> maintaining current -04 format instead of these changes.

I suggested this on the softwires mailing list because it has a number
of advantages. Right now there are at least two drafts which need to
encode structured information.

There is one agreed model how to encode this, it's the extended type TLV.

If both drafts have their own complex encoding, it's double work:
everyone needs to write their own parser for their own attribute. As
time goes by, there will be more drafts needing to encode some complex
information. Consolidation of such complex types into a common format is
a good thing IMHO.

OTOH, using the new TLVs, only one parser needs to be written, *and*
that code is reusable for future attributes with complex encoding needs
with no extra effort.

>> IPv6-6rd-Configuration Attribute
>>  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     | Extended-Type |M|    Flag     |
>> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>> |                            Suboptions                         |
>> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>> Type 245, extended-type TBD.
> 
> Using Extended-Type means you would have to wait for the extensions
> draft to be an RFC in order to be assigned an Extended-Type.

That's right. It is the only drawback. If you choose to go the
custom-encoding way, you avoid a bit of waiting time at the expense of
extra, non-reusable code in every 6rd implementation.

> Compromised solution I originally suggested (Currently
> draft-ietf-softwire-6rd-radius-attrib-04) sought to avoid dependencies
> on other drafts while at the same time providing maximum compatibility
> with existing and future systems.

It requires an implementer to write one parser specifically for the
6rd-attribute, with no code re-use for other attributes that will be
defined in the future. The code needs to be maintained separately from
the a generic extended-attributes parser. That sounds rather
short-sighted to me and goes contrary to the claim of "compatibility
with future systems".

I'm not sure what "compatibility with existing systems" should mean.
Existing systems can't make anything out of the IPv6-6rd-Configuration
attribute, because they can't parse the content. All they can do is
ignore the attribute. They can do that with an extended-type attribute
just as well.

Greetings,

Stefan Winter

> 
>> IPv4MaskLen suboption
>>  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
>> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>> |   sub-Type    |    Length     |   IPv4MaskLen |
>> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>> Subtype 1
> 
>> 6rdPrefix suboption
>>  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
>> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>> |   sub-Type    |    Length     |  6rdPrefixLen |               |
>> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+               +
>> |                                                               |
>> +                      6rdPrefix                                +
>> |                                                               |
>> +                                                               +
>> |                                                               |
>> +                                               +-+-+-+-+-+-+-+-+
>> |                                               |
>> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>> Subtype 2
> 
> Prefix attribute was implemented a decade ago in RFC 3162 2.3. 1-octet
> reserved field before prefix length is required.
> 
> regards,
> Peter


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