Re: [Lsr] SID et al. in Re: I-D Action: draft-ietf-ospf-sr-yang-25.txt

Acee Lindem <acee.ietf@gmail.com> Sun, 07 January 2024 21:41 UTC

Return-Path: <acee.ietf@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 7B052C14F5FA; Sun, 7 Jan 2024 13:41:31 -0800 (PST)
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, RCVD_IN_DNSWL_BLOCKED=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 IMW9LGxcFAX4; Sun, 7 Jan 2024 13:41:27 -0800 (PST)
Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) (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 B4C7EC14F5EF; Sun, 7 Jan 2024 13:41:27 -0800 (PST)
Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-783182d4a0aso93792585a.2; Sun, 07 Jan 2024 13:41:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704663686; x=1705268486; darn=ietf.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EzKiMOc7jPB8Jbbvy/7Svv5XlAleLFOeZ8Us5mktWCY=; b=IH9mThY4rUVg+xACMOr6tkEmwyrU9uJHoxZ8ItJVnXqA+BfzmuxxDr9EeyYCyxN0WW WUzNJu19CsLyCdBOQ8OlzIvyubNdjMM78iBAjfw255aKK4ApV7uT1BUFzNtl+8qQYU7C 5Qbp6x2KXG6WrE50VF6JHk9biXxauZUViDf2zIJYX8uHled3xsWHVOVIeo/BLLosCtoT q3ZZKW6JXw9nSEH6csdSSHE2UsucR5chrbrUeWjsI2GtA6wzxgGskv00vV272Qni4wUO J5Oe+EcwDf+lrtjlWMqM9/P//AmJsiBudTFbyNQ88ZUlDMNaxSMX0BHjiqM7YwyWUeXP uhOQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704663686; x=1705268486; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EzKiMOc7jPB8Jbbvy/7Svv5XlAleLFOeZ8Us5mktWCY=; b=fuBC44Rhf+Pq57roAx74GFMhPISee5NWsK94fZgx6ASIzkHrOaGRMTGgGw9mXu+6vJ 5OScy8mpGu+dOuO7gKg98KkOyLCuVHHLofkbFuerbbL7/GYJVfqGbG1+psiuNEcshYnj hgKYGkEMM7rT2QIPuxbWVz3pqoYwToU75BBXBF5uV+smZ4RaUg6C4XSfFwaYDvQ834OJ UnKJHQ7QWKH84nZwceQoMl97ExiYta0NLlBSYsfKDl9+zBJNq2QEUWqMjY66aL02f++J jd5W9rv3hmolv65GX9XRwWLkkfzpAsFZKqkf1uL73XfJ/KXRCpXD3bHNezvWKlN1I0XP mqeQ==
X-Gm-Message-State: AOJu0Yxr6XrbO2xatbAUIWYNliRefM4JeLxQ5bFeursEgPcH9rfyDuX+ QIii44dP7ZvM580kpHdafGrKcOXGhPg=
X-Google-Smtp-Source: AGHT+IFswSxkAcbeQX1KIFf4va0Vsm8rrmGtt1WTGo/3TY/x79jAZvVUK9RqHCx/oK3q95kk2Vfhvg==
X-Received: by 2002:a05:620a:1a22:b0:783:247b:a6cf with SMTP id bk34-20020a05620a1a2200b00783247ba6cfmr341076qkb.9.1704663686379; Sun, 07 Jan 2024 13:41:26 -0800 (PST)
Received: from smtpclient.apple ([136.54.28.118]) by smtp.gmail.com with ESMTPSA id i21-20020ae9ee15000000b0077f103c8ad6sm2201434qkg.82.2024.01.07.13.41.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Jan 2024 13:41:26 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\))
From: Acee Lindem <acee.ietf@gmail.com>
In-Reply-To: <VI1PR07MB3181B445760AACEA246A6985A061A@VI1PR07MB3181.eurprd07.prod.outlook.com>
Date: Sun, 07 Jan 2024 16:41:15 -0500
Cc: "lsr@ietf.org" <lsr@ietf.org>, "lsr-chairs@ietf.org" <lsr-chairs@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <3374F3C0-594C-4CEB-AE96-A567DCEAA855@gmail.com>
References: <170302207374.56422.2365753109627818944@ietfa.amsl.com> <VI1PR07MB3181806E2E103590EC8EB857A062A@VI1PR07MB3181.eurprd07.prod.outlook.com> <VI1PR07MB3181B445760AACEA246A6985A061A@VI1PR07MB3181.eurprd07.prod.outlook.com>
To: tom petch <ietfc@btconnect.com>
X-Mailer: Apple Mail (2.3731.700.6)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsr/yKfS689TAgcF-xrvCmCJiXpF_-I>
Subject: Re: [Lsr] SID et al. in Re: I-D Action: draft-ietf-ospf-sr-yang-25.txt
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: Sun, 07 Jan 2024 21:41:31 -0000

Hi Tom, 

> On Jan 2, 2024, at 06:11, tom petch <ietfc@btconnect.com> wrote:
> 
> a) I think that the treatment of SID index/label in this I-D needs more explanation.
> 
> The I-D rightly says that this is either a 3-octet index or 4-octet label but fails to say how the three octets are mapped into a YANG type uint32.  The information is in RFC8665 but it took me a while to find it.  I think that it needs repeating in this I-D with a reference to RFC8665.
> 
> Slightly harder is where to put this.  I think that it needs to be in the YANG module as a description. Trouble is, there are lots of uint32 where this is relevant.  Now if SID were a YANG derived type .....

Unfortunately, this SID Value/Label encoding was set in IS-IS initially and migrated to OSPF. I was never happy with these encodings but the chefs in the kitchen were set on them. We can’t fix this  in the YANG model as it is what it is. I’ll update the descriptions. 




> 
> b) the I-D does not use the same name for bits as RFC8665 does.  Where this happens, then I think there should be an explanation e.g.
> identity lo-bit
> description ' this bit is referred to as the L-flag in RFC8665 section 5.

I’ll change the definitions to -flag and -flags. The -bit and -bits is a holdover from when we were using YANG type bits. 


> 
> c) section 1.1 is out of date
> 
> d) CODE BEGINS 
> I think better as a new paragraph for ease of reference; I see this as common practive
> 
> e) leaf mt-id
> if the only valid values are 0 to 127, then this could use a YANG range to reflect that

I’m pretty confident that this range (set in RFC 4915) will never change. However, since this is “config false” data, it is better to not constrain it and return it even if it is incorrect. This is currently an area of discussion in the NETMOD WG. 



> 
> f) range-size
> likewise if this must be greater than zero, thrm the YANG could reflect that. It could  even be a derived type to avoid repetition

Same as the above.

Thanks,
Acee




> 
> Tom Petch
> 
> 
> From: Lsr <lsr-bounces@ietf.org> on behalf of internet-drafts@ietf.org <internet-drafts@ietf.org>
> Sent: 19 December 2023 21:41
> To: i-d-announce@ietf.org
> Cc: lsr@ietf.org
> Subject: [Lsr] I-D Action: draft-ietf-ospf-sr-yang-25.txt
> 
> Internet-Draft draft-ietf-ospf-sr-yang-25.txt is now available. It is a work
> item of the Link State Routing (LSR) WG of the IETF.
> 
>   Title:   A YANG Data Model for OSPF Segment Routing for the MPLS Data Plane
>   Authors: Yingzhen Qu
>            Acee Lindem
>            Jeffrey Zhang
>            Ing-Wher Chen
>   Name:    draft-ietf-ospf-sr-yang-25.txt
>   Pages:   46
>   Dates:   2023-12-19
> 
> Abstract:
> 
>   This document defines a YANG data module that can be used to
>   configure and manage OSPF Extensions for Segment Routing for the MPLS
>   data plane.
> 
> The IETF datatracker status page for this Internet-Draft is:
> https://datatracker.ietf.org/doc/draft-ietf-ospf-sr-yang/
> 
> There is also an HTML version available at:
> https://www.ietf.org/archive/id/draft-ietf-ospf-sr-yang-25.html
> 
> A diff from the previous version is available at:
> https://author-tools.ietf.org/iddiff?url2=draft-ietf-ospf-sr-yang-25
> 
> Internet-Drafts are also available by rsync at:
> rsync.ietf.org::internet-drafts
> 
> 
> _______________________________________________
> Lsr mailing list
> Lsr@ietf.org
> https://www.ietf.org/mailman/listinfo/lsr
> 
> _______________________________________________
> Lsr mailing list
> Lsr@ietf.org
> https://www.ietf.org/mailman/listinfo/lsr