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

Ketan Talaulikar <ketant.ietf@gmail.com> Tue, 21 February 2023 06:34 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 72A82C14CF1B; Mon, 20 Feb 2023 22:34: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 zZlG_XcOtR-N; Mon, 20 Feb 2023 22:34:49 -0800 (PST)
Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 3421BC14CF1C; Mon, 20 Feb 2023 22:34:32 -0800 (PST)
Received: by mail-ed1-x533.google.com with SMTP id ck15so14112205edb.0; Mon, 20 Feb 2023 22:34:32 -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=gHK9ZmWCuBXERh5kPNSpAzZs42odCM49SOJKgifkG8w=; b=BDlxXXToNtV3wuCvAn67hQx1gsCo+olglMEIRQB0luEJDoRNYtlSzyObI+knLDdspJ vcX5pqZUXAwdNW9dIvSyoijjJN2VdZx8dCKc4haH+bSjhfGTLOipNcwXSQgfpqDimoTO FTiBVJ0LgspSc1SX/Sn72yOYAD7ZFcxnz5Ifd1IWYqp0HJ1EezIPzDYl+80FsZD66gEJ KZIxrIsik7ndHHGdcuGeL+xOjDfvbJf3tsfgPjAoUUqrDgo5CQMx98Hq05pkUEgcVSyg zZ5TYFcLuTCAf5y9gH3XTzfdvRlQ6fHR3IAcIxgZb96TGcVHjKhXRq0OjIMIeUF4wtzh JSaA==
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=gHK9ZmWCuBXERh5kPNSpAzZs42odCM49SOJKgifkG8w=; b=Bb+RSIr47a5iLsmEVuSbXaw4ehFUYdv6mfJuSudoktzL90joeKjT/nirRE3BnxBye1 sFZh0gCCmAa4Lnh5/DhcVXpTBIzBiu5Fcxl1H9Y+irGlr9wB0dT0mPupvf+pxC0lhFL9 nayQhIglq5Rsaw02UvnJLMfyqb848uxd+63aeJtFI9dHUNh6Q00Wn6pgZS3RNeyWLjbV 9aCdJM+6mXuePEhJnZwVmvf84vK3dqjlwITColXYba0zFNpOnITlTyKSyryiLFZ2K66Y pykpCJ7Ze3FApIyl9HV2Bk8Rb8+Wb2s+FGRJxUM+stPZhv1RiZr5+K25QeyVxW8flI9Q 3v7A==
X-Gm-Message-State: AO0yUKVcTpj1+ls//QFb4xnGPUvliTYq4q/q4/TstiQqSXUm0qE7uH67 lXXjt3TkhkkNjzvfjr42I5ihsUb++MZoHaRWvxc=
X-Google-Smtp-Source: AK7set+NqAVnxcdEd7GizR3Hnbj6lkGPoPq0knc2UK7moFE+jXhF771CUbBwd9oaTdfx7R4nwMmxGNM+V63KvEcwIA4=
X-Received: by 2002:a17:906:869a:b0:879:9c05:f5fb with SMTP id g26-20020a170906869a00b008799c05f5fbmr5333811ejx.5.1676961270723; Mon, 20 Feb 2023 22:34:30 -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> <CAH6gdPwekPRYedUwtLADeXUZBzMJds2E4+iq_Tbh54S3oj6UfA@mail.gmail.com>
In-Reply-To: <CAH6gdPwekPRYedUwtLADeXUZBzMJds2E4+iq_Tbh54S3oj6UfA@mail.gmail.com>
From: Ketan Talaulikar <ketant.ietf@gmail.com>
Date: Tue, 21 Feb 2023 12:04:19 +0530
Message-ID: <CAH6gdPwek5RyLuKnKPEVFPdzKMpaf_WdsVc8wdNRAm_+dKWm1w@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="000000000000d7fa8805f52ff863"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/DDrbIdTg7phN-CoNUHhZSYqNDPA>
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: Tue, 21 Feb 2023 06:34:53 -0000

Hi Rob,

The update with the changes as discussed below has been posted:
https://datatracker.ietf.org/doc/html/draft-ietf-idr-rfc7752bis-16

Thanks,
Ketan


On Fri, Feb 17, 2023 at 7:48 PM Ketan Talaulikar <ketant.ietf@gmail.com>
wrote:

> 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
>>
>>