Return-Path: <cabo@tzi.org>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
	by ietfa.amsl.com (Postfix) with ESMTP id C8BB7C1D6FA9;
	Sat, 22 Feb 2025 09:36:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level: 
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5
	tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_BLOCKED=0.001,
	RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
	RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
	RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=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
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 2-lmN6pxepus; Sat, 22 Feb 2025 09:36:38 -0800 (PST)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.21])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256)
	(No client certificate requested)
	by ietfa.amsl.com (Postfix) with ESMTPS id 671E6C1D4A73;
	Sat, 22 Feb 2025 09:36:33 -0800 (PST)
Received: from [192.168.217.145] (p548dc3ec.dip0.t-ipconnect.de
 [84.141.195.236])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Z0Z1B4FPlzDCcd;
	Sat, 22 Feb 2025 18:36:30 +0100 (CET)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: 
 <CABCOCHQxeV19j=5XHJz4UV3_nLbRHJ904d8GWyxQNdA9e2W_QA@mail.gmail.com>
Date: Sat, 22 Feb 2025 18:36:30 +0100
X-Mao-Original-Outgoing-Id: 761938589.9091361-00ff5cfc81bd6de292c653827762b1c4
Content-Transfer-Encoding: quoted-printable
Message-Id: <71969CDA-5B3C-4160-A474-DA44A47DC7D6@tzi.org>
References: <17877.1740164613@obiwan.sandelman.ca>
 <CABCOCHQxeV19j=5XHJz4UV3_nLbRHJ904d8GWyxQNdA9e2W_QA@mail.gmail.com>
To: Andy Bierman <andy@yumaworks.com>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Message-ID-Hash: DFWUQQZMU34YPAMLQETQASK3SSBZ5J3C
X-Message-ID-Hash: DFWUQQZMU34YPAMLQETQASK3SSBZ5J3C
X-MailFrom: cabo@tzi.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency;
 loop; banned-address; member-moderation; header-match-netconf.ietf.org-0;
 nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size;
 news-moderation; no-subject; digests; suspicious-header
CC: Michael Richardson <mcr+ietf@sandelman.ca>, core <core@ietf.org>,
 CBOR <cbor@ietf.org>, netconf@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: =?utf-8?q?=5Bnetconf=5D_Re=3A_=5Bcore=5D_adding_PEN-based_SID_allocation_to_?=
	=?utf-8?q?RFC9595?=
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: 
 <https://mailarchive.ietf.org/arch/msg/netconf/ylvphqI9fcqe7_3MBkhuMfPn5Qw>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>

Hi Andy,

Apologies for Apple mail not picking up the difference between what you =
wrote and what MCR wrote.
So, one of you said :-):

> Carsten started a thread about PEN-based range assignments (not sure =
where)

I wrote a draft a while ago:

https://www.ietf.org/archive/id/draft-bormann-core-yang-sid-pen-01.html

These are numbers in the 64-bit space.
If you want to get 32-bit numbers for better deltas, we have to be a bit =
more frugal.
(We could still do both a chunk of 32-bit numbers and a wider swatch of =
64-bit numbers at the same time.)

(Let=E2=80=99s say we want to accommodate up to 19 bit PENs, and we want =
to allocate 31 of the 32 bits of 1+4 space, leaving the rest for =
mega-ranges, we=E2=80=99d have 4096 SIDs for each PEN.
Organizations that need more can just get a mega-range.)ef

> - A mini-range could be automatically assigned for PEN
>     20 bits: PEN   + 12 bit SID range  =3D=3D 4096 SIDs per PEN

Yes, but we still need space for mega ranges.

> - A real mega-range must be allocated if 4096 SIDs are not enough or =
2^^20 PENs gets filled up

If there are 2**20 PENs, we=E2=80=99ll have to rethink this.
2**19 is 8 times what we have allocated so far.

> Another alternative is to create a vendor-proprietary FCFS range under =
the
> IETF Mega-Range.   I think that 100K numbers would be plenty for now.
> Or we could create another Mega-Range for this.

We don=E2=80=99t need to do this, because:

> I am thinking about starting an OpenSID (public) mega-range and just =
creating SID files
> for every publicly available YANG module.  netconfcentral.org already =
tracks over 4000 modules.
> IMO the rule that there SHOULD only be one SID assignment for each =
YANG schema node
> is not required and impeding any progress to YANG/CBOR adoption.

That=E2=80=99s what 9254 says: It=E2=80=99s not required, but still =
rather useful.

> One issue that came up was that IANA does not want to manage all the =
mega-ranges.

What do you mean by that?
Manage the mega-ranges (per se) or manage the SIDs inside each =
mega-range?
The point is that the owner of the mega-range does the latter.

> This requires excellent tooling and procedures, neither of which are =
mature yet.
> An automatic PEN range would not need any IANA involvement.

Correct.

> IMO waiting for each "owner" of the YANG module to publish a SID file =
is a non-starter.
> There are no SID files yet and adding them 1 or 2 at a time will take =
a decade.

I like you idea of going ahead and publishing SID files for random =
vendor stuff where the vendor is not doing its homework.
But if they do, they should be in control.

> I've asked for time to present about
> draft-richardson-netmod-atrest-extensions, which is very much a =
drafty-draft.

The main useful idea I see here is submaps. =20
That allows the deltas to be more efficient if you augment a module with =
more than one item.

> In order to let private enterprises do their own extensions, having =
SIDs
> would help. =20

We could also cbor-packed=E2=80=94like table setups for data-item =
internal SID ranges.
Requires more thinking.
Lots of complexity without a clear benefit, though.

> Without SIDs for every module in use the YANG/CBOR encoding is not =
really worth using.
> Any effort to get some SID files out there would help.

Yes!  Let=E2=80=99s

* Fix PYANG to spit out conforming output (or use my tools for making =
the PYANG output conforming)
* Go ahead with the YANG-SID Modules Designated Experts (Michel =
Veillette, Alexander Pelov, Laurent Toutain) and register everything =
that belongs to the IETF
* Do the IEEE thing
* Set up something that enables third-party registrations of SIDs for =
other YANG modules

Now, doing the PEN thing (32, 64, or both) is kind of orthogonal to =
that; I can update my draft to provide a 32-bit range (say, 4000 SIDs =
per PEN) as well in addition to the 64-bit range already in the draft =
(100000 SIDs per PEN).

Gr=C3=BC=C3=9Fe, Carsten

