Re: [Idr] AD Review of draft-ietf-idr-ext-opt-param-09

Alvaro Retana <aretana.ietf@gmail.com> Mon, 22 March 2021 21:15 UTC

Return-Path: <aretana.ietf@gmail.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 A2AAF3A1227; Mon, 22 Mar 2021 14:15:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.198
X-Spam-Level:
X-Spam-Status: No, score=-0.198 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 1rp7aqr4lPGi; Mon, 22 Mar 2021 14:15:52 -0700 (PDT)
Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 15FA23A1222; Mon, 22 Mar 2021 14:15:52 -0700 (PDT)
Received: by mail-ej1-x62f.google.com with SMTP id u21so5662377ejo.13; Mon, 22 Mar 2021 14:15:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc:content-transfer-encoding; bh=Rd3y+0mbnsFjIbt1QlfdlMAkpYKgPjRh8f+4/qeVbGE=; b=HlwaatgUQqXR8F6NCya2QJPH86ObnZROC8x2mDWgHVZIBxjp1eFRuxHo2zbAuc7689 miXb/jU3LfMsr1pTw/QpoqtUewDAkrWTQgzs8EnV1Os+NW45Vi4bh3HhuLeVlZhibfRs Gaw1U7yKlUDXaM+Jf5Hvt2FB11QvW0MSyo7wOb7WzH6j7+OiWTqO1cEj+uAaUXbXvoqQ 1LCIRQyvIK0SmSY16ZuxXcYEUwkQbfu+rvfqI4bUszOsUzvww2LdE8cESIiVqCpi9qDy T6cctRbQ1yKrX4ofC32woQ+aVd9afgv9zKO4VTz4IkdRRE/aZ6D3GRbqrg6GMdD+s+xf AsKA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc:content-transfer-encoding; bh=Rd3y+0mbnsFjIbt1QlfdlMAkpYKgPjRh8f+4/qeVbGE=; b=oJVorIoE1n0/Xs/7e7BpO25AgUoznU5qGPfD7dU4u1XMBqqAKzrpZg3P0y7DlV5K8d LTAbpWBhT4f+2fnJhURtj+Mk6beOLGWt8hzWiR8ZUbUbSceSK4rxukWd3yMzcqgH97Il q6Fzj8EPsPahh85UJccm+pZgzxX4ig8Rxap6BtkWCVgdQpcQ9WzXUCRWyTZedTuaeIvw oKqrwTnrIFMoqRprAYQjCX6V7vOrIAMdZQ8hadgh6w4vfOdl0Iv+vavmSxupN80hQOcl dcrLsCNU0RYJfiBySMQrB++CJiuh2BgsuH1XhOsI3DzHjOS3vuNfMGVWtlbidUBuHSzo L0dA==
X-Gm-Message-State: AOAM5317xWVEMZD94+KIN4JJXQurqavPxWOxWwg39jw4tBlo4WCwSZWg exM7l3Cd5zfKwP+DvNpFqMGcESs4UiLF6I8RgpA=
X-Google-Smtp-Source: ABdhPJxg1lAU4GiYebIoAog9tYXpjxycngMOpp+4bdxDaAQvgP9mTnGDkAw6jkXJalbdVY34qRWQoL2Aw8ZLL6uKuKw=
X-Received: by 2002:a17:906:1113:: with SMTP id h19mr1665396eja.478.1616447744409; Mon, 22 Mar 2021 14:15:44 -0700 (PDT)
Received: from 1058052472880 named unknown by gmailapi.google.com with HTTPREST; Mon, 22 Mar 2021 14:15:43 -0700
From: Alvaro Retana <aretana.ietf@gmail.com>
In-Reply-To: <862CFB7E-DB91-49DE-87B7-B68F94BBA406@juniper.net>
References: <CAMMESsw3eVnfiJ8RQ4GSSzp4b1T2n6hm-nSZ6xuyK9XCMb1pAg@mail.gmail.com> <862CFB7E-DB91-49DE-87B7-B68F94BBA406@juniper.net>
MIME-Version: 1.0
Date: Mon, 22 Mar 2021 14:15:43 -0700
Message-ID: <CAMMESszRZKtnW-qW6kSjn5njgQayZdtNSbL=YJr8VAKVu2XX4A@mail.gmail.com>
To: John Scudder <jgs@juniper.net>
Cc: Hares Susan <shares@ndzh.com>, "draft-ietf-idr-ext-opt-param@ietf.org" <draft-ietf-idr-ext-opt-param@ietf.org>, "idr-chairs@ietf.org" <idr-chairs@ietf.org>, IDR List <idr@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/lXlLgDOHmtnu1ZpAknp9E9pYCwY>
Subject: Re: [Idr] AD Review of draft-ietf-idr-ext-opt-param-09
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.29
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, 22 Mar 2021 21:15:54 -0000

On March 22, 2021 at 4:14:55 PM, John Scudder wrote:


John:

Hi!

I'm just replying to this piece -- I'll take a look at the diffs soon.



> > 78 2. Protocol Extensions
> > ...
> > 83 In the event that the length of Optional Parameters in the BGP OPEN
> > 84 message does not exceed 255, the encodings of the base BGP
> > 85 specification [RFC4271] MUST be used without alteration. However, an
> > 86 implementation MUST be prepared to accept an OPEN message that uses
> > 87 the encoding of this specification for Optional Parameters of any
> > 88 length.
> >
> > [major] "MUST be prepared to accept an OPEN message...of any length."
> >
> > The OPEN message is not covered by rfc8654, so the length is still
> > limited to 4k...which means that the full Extended OP length/Parameter
> > Length cannot be used.
>
> I’m inclined to leave this alone. I mean, we could go into that nuance, but
> then if some future specification extends the OPEN, do we have to go back
> and update this spec too? Better to leave it alone, I think. It is genuinely
> obvious, IMO, that you can’t encode more than the enclosing PDU format
> supports.

Can we at least take out "of any length"?  As you say, if someone else
changes the size of the OPEN message, the enclosing PDU will still
limit the size -- and it won't be "of any length".

BTW, now that I'm reading this again (and the next paragraph from
-10), I think the second sentence above is not needed at all (and how
can "MUST be prepared" be enforced anyway?).

OLD>
   In the event that the length of Optional Parameters in the BGP OPEN
   message does not exceed 255, the encodings of the base BGP
   specification [RFC4271] MUST be used without alteration.  However, an
   implementation MUST be prepared to accept an OPEN message that uses
   the encoding of this specification for Optional Parameters of any
   length.

   However, if the length of Optional Parameters in the BGP OPEN message
   does exceed 255, the OPEN message MUST be encoded according to the
   procedure below.

NEW>
   In the event that the length of Optional Parameters in the BGP OPEN
   message does not exceed 255, the encodings of the base BGP
   specification [RFC4271] MUST be used without alteration.

   However, if the length of Optional Parameters in the BGP OPEN message
   does exceed 255, the OPEN message MUST be encoded according to the
   procedure below.



> > Besides clarifying that, I think that new OPEN Message Error subcodes
> > are needed for the cases where the length is invalid. This type of
> > error is possible in the non-extended version of the OPEN too -- I
> > guess rfc4271 just assumed that this error would never happen.
>
> RFC 4271 left a lot to be desired in terms of nuanced error codes. I agree
> that we could introduce a subcode called something like “optional parameter
> field length mismatch” to be sent if the optional parameters length exceeds
> the unconsumed OPEN length. However, I’m disinclined to do it in this
> document, because it’s a pre-existing problem, it exists with the
> non-extended encoding as well, so any fix for it should really fix both
> cases. As such, it seems a funny fit for this doc.

As I said in my reply to Jeff, I'm ok with that not being included in
this document.


Thanks!

Alvaro.