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

"Jakob Heitz (jheitz)" <jheitz@cisco.com> Sun, 26 June 2016 23:39 UTC

Return-Path: <jheitz@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 DAE0112D0D1; Sun, 26 Jun 2016 16:39: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 gLF2gpJxJ5H8; Sun, 26 Jun 2016 16:39:09 -0700 (PDT)
Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 42A4B12D1A5; Sun, 26 Jun 2016 16:39:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3659; q=dns/txt; s=iport; t=1466984348; x=1468193948; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=t6LCCN2701xtcnftfx0AzSy/TvvhYHLFlim9k65hJQw=; b=J8R6VaOHJJZKJcaS+RcMS8oVLmnkptagK/CLguKTBpzbE7q8uZFrtjer 45Q3qEcXpHSck5d9sTaIBiCy1irPKv2TB0CRwZCSdb9rawM7fuxyfIhr9 U6lzUgnz8CEuDGinvGxlD3ciE4oNG8XG1BpM8FjIo4thL9KI+CCSWJJpz c=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0D7AQCwZnBX/5ldJa1bgz5WfQa6KIF7FwuFdgKBJjgUAQEBAQEBAWUnhEwBAQEEAQEBNzQLDAQCAQgRAwEBAQEeCQcnCxQJCAIEAQ0FCIgoDscrAQEBAQEBAQEBAQEBAQEBAQEBAQEBFwWGKIRNihsFmQEBji+BcIRUiGePfgEeNoNwbohZfwEBAQ
X-IronPort-AV: E=Sophos;i="5.26,534,1459814400"; d="scan'208";a="117469328"
Received: from rcdn-core-2.cisco.com ([173.37.93.153]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2016 23:39:07 +0000
Received: from XCH-ALN-004.cisco.com (xch-aln-004.cisco.com [173.36.7.14]) by rcdn-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id u5QNd6GT015599 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sun, 26 Jun 2016 23:39:07 GMT
Received: from xch-aln-014.cisco.com (173.36.7.24) by XCH-ALN-004.cisco.com (173.36.7.14) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 26 Jun 2016 18:39:06 -0500
Received: from xch-aln-014.cisco.com ([173.36.7.24]) by XCH-ALN-014.cisco.com ([173.36.7.24]) with mapi id 15.00.1210.000; Sun, 26 Jun 2016 18:39:06 -0500
From: "Jakob Heitz (jheitz)" <jheitz@cisco.com>
To: "Enke Chen (enkechen)" <enkechen@cisco.com>, "John G. Scudder" <jgs@juniper.net>
Thread-Topic: [Idr] Routing directorate QA review of draft-ietf-idr-ext-opt-param-04
Thread-Index: AQHRzmgGBv3fZ5fA9ES7A4n0pFWtDZ/8Z5yQ
Date: Sun, 26 Jun 2016 23:39:06 +0000
Message-ID: <56a07f338f5d4a1f8dfd539040b1002e@XCH-ALN-014.cisco.com>
References: <m8h688tnbwxkug7d8u82j25c.1466634873538@email.android.com> <952977D8-B35A-4C1A-8526-9D616BD0F0B6@juniper.net> <cb0f8e65-5ec8-8820-3078-f0a20ecf5d41@cisco.com>
In-Reply-To: <cb0f8e65-5ec8-8820-3078-f0a20ecf5d41@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.24.91.214]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/k5Ol5j8h8ydw84LXHj4fSqcN-O4>
Cc: "Bocci, Matthew (Nokia - GB)" <matthew.bocci@nokia.com>, "idr@ietf.org" <idr@ietf.org>, Susan Hares <shares@ndzh.com>, "draft-ietf-idr-ext-opt-param@ietf.org" <draft-ietf-idr-ext-opt-param@ietf.org>, "rtg-dir@ietf.org" <rtg-dir@ietf.org>
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: Sun, 26 Jun 2016 23:39:11 -0000

How about:

"An optional parameter with parameter type of 0xFF MUST NOT appear in the
list of optional parameters other than in first place and if it does appear,
then the optional parameters length MUST be 0xFF."

There is really no reason to entertain other combinations and I don't
want to have to write code to handle them.

Thanks,
jakob.

> -----Original Message-----
> From: Idr [mailto:idr-bounces@ietf.org] On Behalf Of Enke Chen (enkechen)
> Sent: Friday, June 24, 2016 3:29 PM
> To: John G. Scudder <jgs@juniper.net>
> Cc: idr@ietf.org; rtg-dir@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
> 
> 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
> 
> _______________________________________________
> Idr mailing list
> Idr@ietf.org
> https://www.ietf.org/mailman/listinfo/idr