Re: [core] Lars Eggert's Discuss on draft-ietf-core-sid-22: (with DISCUSS and COMMENT)

Carsten Bormann <cabo@tzi.org> Fri, 27 October 2023 13:31 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 993E3C14CE4B; Fri, 27 Oct 2023 06:31:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.907
X-Spam-Level:
X-Spam-Status: No, score=-6.907 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 muwVh4suI0GD; Fri, 27 Oct 2023 06:31:06 -0700 (PDT)
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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88FAEC14CE22; Fri, 27 Oct 2023 06:31:02 -0700 (PDT)
Received: from eduroam-pool10-182.wlan.uni-bremen.de (eduroam-pool10-182.wlan.uni-bremen.de [134.102.90.181]) (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 4SH3TJ5vP4zDCcX; Fri, 27 Oct 2023 15:31:00 +0200 (CEST)
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: <169832632311.59761.11389369756506251047@ietfa.amsl.com>
Date: Fri, 27 Oct 2023 15:31:00 +0200
Cc: The IESG <iesg@ietf.org>, draft-ietf-core-sid@ietf.org, core-chairs@ietf.org, core@ietf.org, jaime@iki.fi
X-Mao-Original-Outgoing-Id: 720106260.326647-cc540a839297e4a8e84256fcd29a9ec2
Content-Transfer-Encoding: quoted-printable
Message-Id: <741CCABE-B350-4626-B6DF-9928988553C3@tzi.org>
References: <169832632311.59761.11389369756506251047@ietfa.amsl.com>
To: Lars Eggert <lars@eggert.org>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/QUH5Up_zmVYr3MBJyCEXmB-rRe8>
Subject: Re: [core] Lars Eggert's Discuss on draft-ietf-core-sid-22: (with DISCUSS and COMMENT)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Oct 2023 13:31:10 -0000

Hi Lars,

I’d like to pick up a few comments that address the size of SID ranges (see below).

First, while you are correct that the range 0..2^63-1 is huge,
let me also point out that some SIDs are “better" than others.
In particular, the deltas for SIDs below 65536 can always be encoded in 16 bits.
So the idea of the allocations below was to give the IETF modules some prime real estate.

PYANG isn’t quite up to the task yet, but I get on the order of <20_000 SIDs from the YANG modules that rsync from rsync.ietf.org::everything-ftp/yang and seem to be from published RFCs and Internet-Drafts (not all of which will make it), and some <12000 more from the IANA-published modules.
(We probably should sort these allocations into yearly bins and do some projection on when we’ll hit 60_000.)

Since there is an actual economic cost for all the specification creation work that ultimately leads to each SID being consumed, I think that 1_000_000 is quite comfortably above that 60_000.

We wanted to put up a bit of the good space (5536 SIDs) and some overflow (34464 SIDs) for the experimental space.

I think we can allocate some more space (out of 100000 to 999999) for "RFC required” now, so modules can explicitly opt for allocating 4-byte ranges in order to conserve 2-byte space (the actual hit will be much lower than 2 bytes per item because of the YANG-CBOR SID delta encoding).

Grüße, Carsten

> On 2023-10-26, at 15:18, Lars Eggert via Datatracker <noreply@ietf.org> wrote:
> 
> ## Comments
> 
> ### Section 6.3.3, paragraph 3
> ```
>     The initial entry in this registry is allocated to IANA:
> 
>     +=============+=========+============+===================+==========+
>     | Entry Point | Size    | Allocation | Organization      | URL   |
>     |             |         |            | name              |       |
>     +=============+=========+============+===================+==========+
>     | 0           | 1000000 | Public     | IANA              | iana.org |
>     +-------------+---------+------------+-------------------+----------+
> ```
> I would have expected the initial allocation to IANA (and the regions
> defined within) to be MUCH larger, given the overall size of the
> namespace.
> 
> ### Section 6.4.2, paragraph 11
> ```
>     +=============+=========+==========================+
>     | Entry Point | Size    | IANA policy              |
>     +=============+=========+==========================+
>     | 0           | 1,000   | IESG Approval            |
>     +-------------+---------+--------------------------+
>     | 1,000       | 59,000  | RFC Required             |
>     +-------------+---------+--------------------------+
>     | 60,000      | 40,000  | Experimental/Private use |
>     +-------------+---------+--------------------------+
>     | 100,000     | 900,000 | Reserved                 |
>     +-------------+---------+--------------------------+
> ```
> These seem very small as well, given the overall size of the namespace.