Re: [Idr] Robert Wilton's No Objection on draft-ietf-idr-rfc7752bis-14: (with COMMENT)

Ketan Talaulikar <ketant.ietf@gmail.com> Fri, 17 February 2023 14:18 UTC

Return-Path: <ketant.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 17FEEC151719; Fri, 17 Feb 2023 06:18:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.094
X-Spam-Level:
X-Spam-Status: No, score=-2.094 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5V21hxm0p_z5; Fri, 17 Feb 2023 06:18:49 -0800 (PST)
Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 504C2C151710; Fri, 17 Feb 2023 06:18:49 -0800 (PST)
Received: by mail-ed1-x52d.google.com with SMTP id m17so5320907edc.9; Fri, 17 Feb 2023 06:18:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=G5VgiMp7+gwmqvx2xfrY8oBxUqarzyo6hqWxW+/MdMs=; b=EE8gS0xcYKjuwL7peb9EbAfqBC5KEp+G5sh1iR9/PT/lS9nItwJThPmdevqp+3hGTt mLYAKFajvR9dFuL+ku/AlXLlgnnQhfw3218z39FFzfRFM+gVsGQwTystfidI+lt5gxYH +Bm87x5tfEawuENxXckSWkUBvF2NSIM6R2GXft4uq01rlp0A0JzEw9aTX0+lgYPRtxVt ZFyul7KPDyVkDKTg0ceoqqnffMkO5MqJgRJgzzSwwl0Dx/oHe6nfE1kWQmfNhZ1ASlGQ 9c0TXCju8ZpTYn91S2zSe+zzQUm+dYen16ultKYxi9WZDuYBtSoE1xH734d3bwepCMfZ BEpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G5VgiMp7+gwmqvx2xfrY8oBxUqarzyo6hqWxW+/MdMs=; b=Qygvjom6IljY3vhB5NPrBQcdIe7JNICQXnIqW00yi7Fa/qaV1O4jBwDfbxHD1dCtfr ZtQKNtpcL4gSoXaCaEs3HWYiw84cVu53Ok1Pdn1b71NO90wNKeHcqfzmKBuTcRtdrtHY vVqIJ/GBsnoUQX1EDxTBoghy/5sAoLfbWCg8uOuzMJliRMvEm5IX078HfzJdZqH1fIYJ 7IqbWanLMJNwVq4cOJ3T2jetswwjsbAi8qnLywcLHVqqoyi59baPuwHE6XzJSUw7vnG0 LWbJL0YFmo8HlexFCI6tPvLxmSdKzmp6fCR1cWt0byhkFFvRgkYAgMYC/v3itgJaZLPq Bn3Q==
X-Gm-Message-State: AO0yUKVlbbtn5MLh5qgj9Fvl74FfeM3TULw0AkUaqoT91L3s7UfL2bxV d857IkifNZ0VTK+rbjS8mzEGsfUKf1cB6bHO1/E=
X-Google-Smtp-Source: AK7set9Thfzy9yB55Ctfr58sVNZytD9igA7KjpHZsRikvePRqtkO6TC0RmJZC2pATgWNkQ4YZZ8K5GuyktLQgTuVv5Q=
X-Received: by 2002:a50:cd95:0:b0:4ac:20b:96b7 with SMTP id p21-20020a50cd95000000b004ac020b96b7mr779077edi.8.1676643527174; Fri, 17 Feb 2023 06:18:47 -0800 (PST)
MIME-Version: 1.0
References: <167110933347.47168.7067488022979786336@ietfa.amsl.com> <CAH6gdPz-CV3ThFJ8+iOC+MpbE3cdgPdF99zbhFej507Zh-U3JA@mail.gmail.com> <BY5PR11MB4196C72F9B02D64D989EC4B3B5A19@BY5PR11MB4196.namprd11.prod.outlook.com> <CAH6gdPyY-ehzPkjdT21kH79UFxMEicUjinE1CqoubY8ba1ZYkg@mail.gmail.com> <BY5PR11MB419687071759380EAAA32B60B5A19@BY5PR11MB4196.namprd11.prod.outlook.com>
In-Reply-To: <BY5PR11MB419687071759380EAAA32B60B5A19@BY5PR11MB4196.namprd11.prod.outlook.com>
From: Ketan Talaulikar <ketant.ietf@gmail.com>
Date: Fri, 17 Feb 2023 19:48:35 +0530
Message-ID: <CAH6gdPwekPRYedUwtLADeXUZBzMJds2E4+iq_Tbh54S3oj6UfA@mail.gmail.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
Cc: The IESG <iesg@ietf.org>, "draft-ietf-idr-rfc7752bis@ietf.org" <draft-ietf-idr-rfc7752bis@ietf.org>, "idr-chairs@ietf.org" <idr-chairs@ietf.org>, "idr@ietf.org" <idr@ietf.org>, "shares@ndzh.com" <shares@ndzh.com>, "jhaas@pfrc.org" <jhaas@pfrc.org>, "aretana.ietf@gmail.com" <aretana.ietf@gmail.com>
Content-Type: multipart/alternative; boundary="000000000000da2eb505f4e5fddc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/WzfhH7vIzQppdEbGaDmcdqf7zWM>
Subject: Re: [Idr] Robert Wilton's No Objection on draft-ietf-idr-rfc7752bis-14: (with COMMENT)
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.39
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: Fri, 17 Feb 2023 14:18:53 -0000

Hi Rob,

Thanks for your helpful suggestions. Putting together your suggestions with
what is currently in the document and was discussed with Lars, we get the
following:

To compare NLRIs with unknown TLVs, all TLVs within the NLRI MUST be
ordered in ascending order by TLV Type. If there are multiple TLVs of the
same type within a single NLRI, then the TLVs sharing the same type MUST be
first in ascending order based on the length field followed by ascending
order based on the value field. Comparison of the value fields is performed
by treating the entire field as opaque binary data and ordered
lexicographically (i.e., treating each byte of binary data as a symbol to
compare, with the symbols ordered by their numerical value).

Does that work?

Thanks,
Ketan


On Fri, Feb 17, 2023 at 6:37 PM Rob Wilton (rwilton) <rwilton@cisco.com>
wrote:

> Hi Ketan,
>
>
>
>
>
>
>
> *From:* Ketan Talaulikar <ketant.ietf@gmail.com>
> *Sent:* 17 February 2023 12:01
> *To:* Rob Wilton (rwilton) <rwilton@cisco.com>
> *Cc:* The IESG <iesg@ietf.org>; draft-ietf-idr-rfc7752bis@ietf.org;
> idr-chairs@ietf.org; idr@ietf.org; shares@ndzh.com; jhaas@pfrc.org;
> aretana.ietf@gmail.com
> *Subject:* Re: Robert Wilton's No Objection on
> draft-ietf-idr-rfc7752bis-14: (with COMMENT)
>
>
>
> Hi Rob,
>
>
>
> Indeed, this is the equivalent of memcmp. Don't both memcmp and strcmp
> follow lexicographical order in comparison?
>
> *[Rob Wilton (rwilton)] *
>
> *As per,  *Lexicographic order - Wikipedia
> <https://en.wikipedia.org/wiki/Lexicographic_order>, *if you want
> lexicographical ordering then I think that you should define what the
> symbols are (if they are not characters), and what the ordering of these
> symbols are.*
>
>
>
>
>
> The difference is about strcmp terminating on '\0' while memcmp doesn't?
>
> *[Rob Wilton (rwilton)] *
>
> *That’s not my main objection to the text.  In the case of string
> comparison, the symbols being compared are characters (since a string is a
> sequence of characters).  In the case of binary, I think that the symbols
> being compared needs to be clarified.*
>
>
>
>
>
>
>
> I am open to any suggestions to better clarify this in the spec.
>
>
>
> *[Rob Wilton (rwilton)]*
>
> *Perhaps something along the lines of:*
>
>
>
>
> *Comparison of the value fields is performed by treating the entire field
> as opaque binary data, ordered lexicographically (i.e., treating each byte*
>
> *of binary data as a symbol to compare, with the symbols ordered by their*
>
> *numerical value).  If two value fields compare identically up to the
> length*
>
> *of the shorter value field, then the shorter length value field is
> ordered*
>
> *before the longer length value field.*
>
>
>
> Regards,
>
> Rob
>
>
>
> Thanks,
>
> Ketan
>
>
>
>
>
> On Fri, Feb 17, 2023 at 5:17 PM Rob Wilton (rwilton) <rwilton@cisco.com>
> wrote:
>
> Hi Ketan,
>
>
>
> It is unclear to me what you mean by “treating the entire field as opaque
> binary data and ordered lexicographically”.  I.e., I think that it is
> poorly defined and potentially risks different implementations interpreting
> this in different ways.
>
>
>
> My guess is that the ordering that you are intending here is equivalent to
> what memcmp() would give you, but I wouldn’t interpret that as a
> lexicographical ordering.
>
> Regards,
>
> Rob
>
>
>
>
>
> *From:* Ketan Talaulikar <ketant.ietf@gmail.com>
> *Sent:* 17 February 2023 11:23
> *To:* Rob Wilton (rwilton) <rwilton@cisco.com>
> *Cc:* The IESG <iesg@ietf.org>; draft-ietf-idr-rfc7752bis@ietf.org;
> idr-chairs@ietf.org; idr@ietf.org; shares@ndzh.com; jhaas@pfrc.org;
> aretana.ietf@gmail.com
> *Subject:* Re: Robert Wilton's No Objection on
> draft-ietf-idr-rfc7752bis-14: (with COMMENT)
>
>
>
> Hi Rob,
>
>
>
> My apologies for the delay in responding back to this one. Thanks for your
> review and comments.
>
>
>
> Please check inline below for responses.
>
>
>
> On Thu, Dec 15, 2022 at 6:32 PM Robert Wilton via Datatracker <
> noreply@ietf.org> wrote:
>
> Robert Wilton has entered the following ballot position for
> draft-ietf-idr-rfc7752bis-14: No Objection
>
> When responding, please keep the subject line intact and reply to all
> email addresses included in the To and CC lines. (Feel free to cut this
> introductory paragraph, however.)
>
>
> Please refer to
> https://www.ietf.org/about/groups/iesg/statements/handling-ballot-positions/
> for more information about how to handle DISCUSS and COMMENT positions.
>
>
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-idr-rfc7752bis/
>
>
>
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
>
> Hi,
>
> Thanks for this update to RFC 7752.  I've been short of time this week, and
> hence I'm somewhat relying on the responsible AD and OPSDIR review (thanks
> Gyan!).
>
> I did have a couple of minor comments:
>
> On:
>    To compare NLRIs with unknown TLVs, all TLVs within the NLRI MUST be
>    ordered in ascending order by TLV Type.  If there are multiple TLVs
>    of the same type within a single NLRI, then the TLVs sharing the same
>    type MUST be in ascending order based on the value field.  Comparison
>    of the value fields is performed by treating the entire field as
>    opaque binary data and ordered lexicographically.
>
> I'm not convinced that lexicographical comparison of binary data is that
> well-defined, since it is generally applied to strings, so I this could
> potentially be stated more clearly.
>
>
>
> KT> Not sure if it is limited to strings as in printable characters. This
> text was arrived at during the Shepherd review with Jeff Haas. Refer
> https://mailarchive.ietf.org/arch/msg/idr/4kGNJJsNIYNpOwgU7Rx2r0ZvrsI/
>
>
>
>
> It also wasn't obvious to me why BGP-LS Attribute TLVs SHOULD be ordered,
> but
> are allowed to be unordered.  I.e., if sending them unordered doesn't
> break
> interop then is it really a 'should' rather than a 'SHOULD'?
>
>
>
> KT> As part of this bis work, we came to know of implementations that
> enforced the ordering of TLVs that was meant only for the NLRI also for the
> BGP-LS attribute. If unordered, the update was declared malformed. Hence
> the recommendation to do the ordering - it also has other benefits from an
> operational/ease of use. The MUST NOT was to ensure that we address those
> interop issues with early implementations.
>
>
>
> Thanks,
>
> Ketan
>
>
>
>
> Regards,
> Rob
>
>