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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Softwires mailing list [email protected] https://www.ietf.org/mailman/listinfo/softwires
