I'm copying the ccamp list since this is a CCAMP WG document. My opinion is that the padding should not be included in the sub-TLV length since this is stated explicitly in RFC 3630.
Hi all,
We have seen a minor interop problem with the Interface Switching Capability Descriptor sub-tlv length value (defined in the
draft-ietf-ccamp-ospf-gmpls-extensions draft). In short, we are setting the length so as to not include the pad bytes in the structure, and another vendor is expecting the pad bytes to be included. As explained below, the specifications are slightly ambiguous - can it be clarified what should be filled out in the length value please?
RFC 3630 Section 2.3.2 states that "The TLV is padded to four-octet
alignment; padding is not included in the length field (so a three octet
value would have a length of three, but the total size of the TLV would be
eight octets)." this would support the argument that the length should be
unpadded.
However, draft-ietf-ccamp-ospf-gmpls-extensions-12, section 1.4 describes
the Interface Switching Capability Descriptor which states " The length is
the length of value field" and then shows the padding of the Switching
Capability field as part of the value field. This would support the
argument that the padding for this TLV should be included in the length
field.
So which argument is correct, and can this be made explicit in the next
version of draft-ietf-ccamp-ospf-gmpls-extensions?
Thanks
Oli
P.S. Apologies if this has already been resolved by the list - my searching didn't turn up anything.