Re: [Lsr] ietf-ospf@2019-10-17.yang: questions

Renato Westphal <renatowestphal@gmail.com> Fri, 30 September 2022 14:34 UTC

Return-Path: <renatowestphal@gmail.com>
X-Original-To: lsr@ietfa.amsl.com
Delivered-To: lsr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2652BC1522C7; Fri, 30 Sep 2022 07:34:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, T_SCC_BODY_TEXT_LINE=-0.01, 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 O0wRfzbeh2OE; Fri, 30 Sep 2022 07:34:43 -0700 (PDT)
Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (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 53BD7C1522C1; Fri, 30 Sep 2022 07:34:43 -0700 (PDT)
Received: by mail-pj1-x1031.google.com with SMTP id u12so4468522pjj.1; Fri, 30 Sep 2022 07:34:43 -0700 (PDT)
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; bh=DbqtewhrX+iw1/XgQ7QRvSqzaBoCxuhzQXwaYY998rA=; b=K/e46xIG5RqS46EkZExFRTbU29Pgkb6/tOsdUkmXsrBD9Go7JSfmsUcqoD9ILqHATP vBGddIqjQyeEsqHC4i3VSr4PtDmDUWF3R7J3yqkDmCkeVQEbXYxHPaBVDP5kx+/moARt ZvHaFU5HYshc+t2o0aU6tLeAWfrPU/rRIERmEPf6jXaTpPgFheVpqBxiGLLn+55vY2Lt +gfXHPhQB3oQp1zc13ePBRhvoglGAmp0N00X+Q4XAuMwFAkRFheNFY2lD17W6jDfr1Y7 timpg/iw0iCA3Mm5qmf8IXjCbhzzaMCCMuTVdyF+e7jN3D/1EAyBND3OvC7lXBZW0CpT mKvQ==
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; bh=DbqtewhrX+iw1/XgQ7QRvSqzaBoCxuhzQXwaYY998rA=; b=1gD/Vqo7I5PPpo1h7juohK1BzRFYhRw1684xQfaL8/+mf3Noy6oQZwPRZ2OCwUaLsW L22kvEkeF8blAblr62KIB+1Wl7TTmPFTKClernD8pS9caY2eaTdi6WeWH26sqvz7pAPZ BpP2NI3D1Xy02kXvzIxirA/O8HgDvyq7IVuEh3jD6Ghrh7yD2PAT8xZpDK82SxXnYrLh +br47S3D1rwiV+9cvffVJlwXqVm8i3NIquIV8ZGp/uVDosClAHk0oXnmwVE9eXgq6LE8 L71D78hRCfe/+PJUNpTwShGv4HEXjfo5mcs9/VqFrbXJ6jUM64KvC214WGEBnVyJmABZ eavw==
X-Gm-Message-State: ACrzQf34KGxjX2kI192Bdz4Ja7SNABtnkb7CX8catLn++4oNgoEk9u05 oiHRLNLa4yYFJNj0O6PeoLoIzv225UimOmQjBgA=
X-Google-Smtp-Source: AMsMyM6IApcQhdbqM6zl0DFDUotng++24vqCXoIZp7N+s5KBUdqlNoGkTLMLsoL9twcSaNm4B0Istyy0wFmi/xf/oMM=
X-Received: by 2002:a17:903:2683:b0:17c:6ecc:d03 with SMTP id jf3-20020a170903268300b0017c6ecc0d03mr3446044plb.151.1664548482706; Fri, 30 Sep 2022 07:34:42 -0700 (PDT)
MIME-Version: 1.0
References: <CAChaegntR+bM_oxdcNnNcAXmeqfX28e_d2Z3H9VxMFMDzfDwmA@mail.gmail.com> <9A36E5B4-F043-4495-96D1-CA5DBC9C799E@cisco.com> <CAChaeg=5xvM6ve8WxYB6OUHOfTu7tWf74fehH_=tEJsoBexzyw@mail.gmail.com> <717DBA51-29BF-48F3-BD28-FDEB1A8DF1D5@cisco.com> <CAChaegnz8temCFw98iVxdRuTC_byfxeHvi4-aLL+6ZdnGNV01g@mail.gmail.com> <4A13D46D-3CAA-46B3-9FD2-B964FCCB3143@cisco.com>
In-Reply-To: <4A13D46D-3CAA-46B3-9FD2-B964FCCB3143@cisco.com>
From: Renato Westphal <renatowestphal@gmail.com>
Date: Fri, 30 Sep 2022 11:34:30 -0300
Message-ID: <CAChaegmuuGBqTVoqRMzvF1a7j8F0=CsYYmHRoxEV4xZkPoo9Ag@mail.gmail.com>
To: "Acee Lindem (acee)" <acee@cisco.com>
Cc: "draft-ietf-ospf-yang@ietf.org" <draft-ietf-ospf-yang@ietf.org>, "lsr@ietf.org" <lsr@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000005f34a05e9e5e5e6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsr/WCjXW7wcSnnRzL0L_K8jYog_LoY>
Subject: Re: [Lsr] ietf-ospf@2019-10-17.yang: questions
X-BeenThere: lsr@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Link State Routing Working Group <lsr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lsr>, <mailto:lsr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lsr/>
List-Post: <mailto:lsr@ietf.org>
List-Help: <mailto:lsr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lsr>, <mailto:lsr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Sep 2022 14:34:47 -0000

Em sex., 30 de set. de 2022 às 11:21, Acee Lindem (acee) <acee@cisco.com>
escreveu:

> Hi Renato,
>
> Thanks - see inline.
>
> On 9/30/22, 10:14 AM, "Renato Westphal" <renatowestphal@gmail.com> wrote:
>
>     Hi Acee,
>
>     Em sex., 30 de set. de 2022 às 09:32, Acee Lindem (acee) <
> acee@cisco.com>
>     escreveu:
>
>     > Hi Renato,
>     >
>     >
>     >
>     > *From: *Renato Westphal <renatowestphal@gmail.com>
>     > *Date: *Thursday, September 29, 2022 at 7:56 PM
>     > *To: *Acee Lindem <acee@cisco.com>
>     > *Cc: *"draft-ietf-ospf-yang@ietf.org" <draft-ietf-ospf-yang@ietf.org>,
> "
>     > lsr@ietf.org" <lsr@ietf.org>
>     > *Subject: *Re: ietf-ospf@2019-10-17.yang: questions
>     >
>     >
>     >
>     > Hi Acee,
>     >
>     > Thanks for your response. Please see my inline comments below.
>     >
>     >
>     >
>     > Em qua., 7 de set. de 2022 às 18:05, Acee Lindem (acee) <
> acee@cisco.com>
>     > escreveu:
>     >
>     > Thanks for you comments. However, at this point in the cycle, we’re
> not
>     > going to make any additions to the model since it is has already been
>     > through the complete review cycle. We will however fix things that
> are
>     > broken.
>     >
>     >
>     >
>     > Understood. I only have a couple of additional comments for things
> that
>     > might be worth fixing before the RFC is released:
>     >
>     >
>     > 1.
>     >
> /ietf-routing:routing/control-plane-protocols/control-plane-protocol/ietf-ospf:ospf/areas/area/interfaces/interface/interface-id
>     >
>     > This leaf's type should be u32 and not u16.
>     >
>     >
>     >
>     > Ack.
>     >
>     >
>     >
>     > 2.
>     >
> /ietf-routing:routing/control-plane-protocols/control-plane-protocol/ietf-ospf:ospf/database/as-scope-lsa-type/as-scope-lsas/as-scope-lsa/ospfv3/body/intra-area-prefix/prefixes/prefix/metric
>     >
>     > This leaf's type should be u16 and not "ospf-metric" (u32).
>     >
>     >
>     >
>     > No – ospf-metric type is correct with the range limiting the metric
> to 24
>     > bits.
>     >
>
>     While uint32 isn't a problem per-se, using uint16 would be more precise
>     since the Metric field of Intra-Area-Prefix LSAs is 16-bits wide. The
>     "metric" leaf of Router-LSAs uses uint16 for instance. Only Summary and
>     External LSAs need 24-bit wide metrics. But I think it's ok to leave
> it as
>     it is.
>
> See https://www.rfc-editor.org/rfc/rfc5340.html#appendix-A.4.5


I was referring to Intra (and not Inter) Area-Prefix-LSAs (section A.4.10).
I found this problem using a strongly-typed programming language that
doesn't accept implicit type conversions.


>
>
>
>     >
>     >
>     > 3. While the "lls" feature is present in the model, the
>     > "ospfv2-lsa-option" base identity is missing an identity for the
> L-Bit
>     > specified by RFC 5613. While that could be added via augmentation, I
> think
>     > it would make sense to have an "l-bit" identity as part of the base
> model
>
>
> Also, I'm considering the next-hop list change to keyless you suggested.
> If it is not too late as I thought of a case where next-hop address is not
> unique. That case being parallel equal-cost unnumbered links between two
> OSPF routers where the routers use the same borrowed loopback address for
> all the parallel links, Sigh...
>

Indeed. If it's not too late I think it would be a good change.

Best Regards,
-- 
Renato Westphal