Re: [Idr] Routing directorate QA review of draft-ietf-idr-ext-opt-param-04

Enke Chen <enkechen@cisco.com> Mon, 27 June 2016 17:27 UTC

Return-Path: <enkechen@cisco.com>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 23ED012D893; Mon, 27 Jun 2016 10:27:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -15.947
X-Spam-Level:
X-Spam-Status: No, score=-15.947 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cxn_jQ24qRIN; Mon, 27 Jun 2016 10:27:07 -0700 (PDT)
Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 34E2812D898; Mon, 27 Jun 2016 10:26:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2984; q=dns/txt; s=iport; t=1467048419; x=1468258019; h=subject:to:references:cc:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=lFmlUqlFR0sSbYtkQk+djp/61T5gjYg0VED5vSAV6TU=; b=RezsShDDls4dpB3kACYYf7eyjXDxl+q9THk9sdK0t468isHOYloKfSC8 +QTwpRnwFrbBIKadlMXAl78Nyw1w9rrwpt0r4doJ2ylic8/RLBHfQKT/e s5yqoDgcGrXdUEX+7eTKbbQniVlRrYtBwlPUYKDEHSNseXKdUsdzwyBOn o=;
X-IronPort-AV: E=Sophos;i="5.26,537,1459814400"; d="scan'208";a="122373048"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Jun 2016 17:26:58 +0000
Received: from [10.24.116.194] ([10.24.116.194]) by rcdn-core-7.cisco.com (8.14.5/8.14.5) with ESMTP id u5RHQvk0028226; Mon, 27 Jun 2016 17:26:57 GMT
To: "John G. Scudder" <jgs@juniper.net>
References: <m8h688tnbwxkug7d8u82j25c.1466634873538@email.android.com> <952977D8-B35A-4C1A-8526-9D616BD0F0B6@juniper.net> <cb0f8e65-5ec8-8820-3078-f0a20ecf5d41@cisco.com>
From: Enke Chen <enkechen@cisco.com>
Message-ID: <3068e8e2-32e1-5899-cd62-6f7412b04192@cisco.com>
Date: Mon, 27 Jun 2016 10:26:57 -0700
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.0
MIME-Version: 1.0
In-Reply-To: <cb0f8e65-5ec8-8820-3078-f0a20ecf5d41@cisco.com>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/0yg-Q5CY0CDotuNpNRd819BGl3U>
Cc: "idr@ietf.org" <idr@ietf.org>, "rtg-dir@ietf.org" <rtg-dir@ietf.org>, "draft-ietf-idr-ext-opt-param@ietf.org" <draft-ietf-idr-ext-opt-param@ietf.org>, "Bocci, Matthew (Nokia - GB)" <matthew.bocci@nokia.com>, Susan Hares <shares@ndzh.com>
Subject: Re: [Idr] Routing directorate QA review of draft-ietf-idr-ext-opt-param-04
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr/>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 27 Jun 2016 17:27:10 -0000

Hi, John:

I now remember the reason for having 0xFF there.  It was something that we discussed years ago.

It was something like: since the actual length is larger than 255 and there is only one octet,
we just go with the largest possible value 255.  (The value does not matter once the real length
field is reached.)

Thanks.  -- Enke

On 6/24/16 3:29 PM, Enke Chen wrote:
> Hi, John:
> 
> Please see below.
> 
> On 6/24/16 11:43 AM, John G. Scudder wrote:
>> Hi Matthew and all,
>>
>> Thanks for the review. Some comments below.
>>
>>> From: "Bocci, Matthew (Nokia - GB)" <matthew.bocci@nokia.com>
>>> Date: 6/21/2016 6:10 AM (GMT-05:00)
>>> To: idr@ietf.org, Susan Hares <shares@ndzh.com>, jgs@juniper.net, rtg-dir@ietf.org, draft-ietf-idr-ext-opt-param@ietf.org
>>> Subject: [Idr] Routing directorate QA review of	draft-ietf-idr-ext-opt-param-04
>> ...
>>
>>> Minor Issues:
>>>
>>>  
>>>
>>> 1) Section 2, Protocol Extensions.
>>>
>>> You have labelled the existing Length and Type fields as 0xFF. I assume the meaning of the second is still 'Type' since that is
>>>
>>> what any implementation would reasonably interpret it as, and that is the registry you are using a code point from. So it
>>>
>>> might be better to say in the text above the figure at the top of page 3 that the length and type fields in [RFC4271]
>>>
>>> are set to 0xFF.
>>
>> Is your proposal to use the diagram verbatim from 4271, but say in the prose that the type and length are 0xFF? I'm fine with whatever seems clearer to folks.
>>
>>> Also, you don't explicitly define what a receiver should do with the length field if the type is 0xFF. Does it ignore it,
>>>
>>> or does it check that it is 0xFF and treat the OPEN message as malformed if it is < 0xFF?
>>
>> This is a good question, and TBH I don't recall why we specified a value for the legacy length field instead of simply saying it should be ignored.
>> Maybe Enke remembers? Right now I'm inclined to say it should be ignored on receipt, but I'm open to discussion. I guess even if we make that change we can still spec it be sent as 0xFF, for purposes of debuggability, but this is not a big deal.
>>
> 
> Here is what RFC 4271 says about the "Optional Parameters Length": 
> 
>          This 1-octet unsigned integer indicates the total length of the
>          Optional Parameters field in octets.  If the value of this
>          field is zero, no Optional Parameters are present.
> 
> If the "Optional Parameters Length" field is 0, then the Optional Parameters
> will not be parsed and thus the new length field would not be reached.
> 
> I am not sure, but that might be the reason that we have it as 0xFF.
> 
> It needs to be at least 1 for the "Parm. Type" field to be parsed.  Once the
> "Parm. type" is parsed, and if its value is 0xFF, then the two-octet length
> field follows.  The procedure is more than just "ignoring" the field. 
> 
> Thanks.  -- Enke
>