On Apr 30, 2011, at 11:14 PM, Randy Bush wrote:

>> Most of the messages in the protocol are nice and small messages, but
>> the error-report message can be of arbitrary size since it can have
>> trailing diagnostic text...
>> 
>> Can we specify a maximum value for length of this message?  A cache
>> implementation can send a huge amount of diagnostic text in an
>> error-report message and have it still be  a valid message for the
>> router to parse...  It should be capped at a few K.
> 
> the longest non-error pdu is pdu 6, the ipv6 pdu.  this limits the max
> size error pdu to a fairly small size.


Even with a restriction on the size of the arbitrary text, that statement is 
not completely true. An Error PDU can be sent for another Error PDU, ad 
infinitum; these could apply to error types 0 and 1. Maybe add to section 5.9 
"An Error Report PDU MUST NOT be sent for an Error Report PDU.".

To answer the initial request, it seems reasonable to specify "the length of 
the Arbitrary Text of Error Diagnostic Message MUST NOT be longer than 200 
octets". That keeps the length of the entire PDU under the semi-magic 256 
octets for the current version of the protocol and yet gives bloviators such as 
myself plenty of room in our error messages.

--Paul Hoffman

_______________________________________________
sidr mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/sidr

Reply via email to