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

Peter Deacon <peterd@iea-software.com> Wed, 21 December 2011 10:49 UTC

Return-Path: <peterd@iea-software.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 033A221F84AA for <softwires@ietfa.amsl.com>; Wed, 21 Dec 2011 02:49:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
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 A1-4G7SePsiO for <softwires@ietfa.amsl.com>; Wed, 21 Dec 2011 02:49:31 -0800 (PST)
Received: from aspen.internal.iea-software.com (remote.iea-software.com [70.89.142.196]) by ietfa.amsl.com (Postfix) with ESMTP id 5392F21F84A8 for <softwires@ietf.org>; Wed, 21 Dec 2011 02:49:31 -0800 (PST)
Received: from SMURF (unverified [10.0.3.195]) by aspen.internal.iea-software.com (Rockliffe SMTPRA 7.0.6) with ESMTP id <B0005781876@aspen.internal.iea-software.com>; Wed, 21 Dec 2011 02:49:30 -0800
Date: Wed, 21 Dec 2011 02:49:27 -0800
From: Peter Deacon <peterd@iea-software.com>
To: Stefan Winter <stefan.winter@restena.lu>
In-Reply-To: <4EF1A65F.9080609@restena.lu>
Message-ID: <alpine.WNT.2.00.1112210204010.2472@SMURF>
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>
User-Agent: Alpine 2.00 (WNT 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
X-Mailman-Approved-At: Tue, 03 Jan 2012 08:09:36 -0800
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 10:49:32 -0000

On Wed, 21 Dec 2011, Stefan Winter wrote:

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

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

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.

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.


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.

regards,
Peter