Re: [Cbor] [core] draft-ietf-core-sid-05 and draft-ietf-core-yang-cbor-07

Robert Wilton <> Fri, 15 March 2019 17:47 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 7DCA512958B; Fri, 15 Mar 2019 10:47:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id LPk8qtgPEeyl; Fri, 15 Mar 2019 10:47:39 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id CB7CB1277D7; Fri, 15 Mar 2019 10:47:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;; l=1426; q=dns/txt; s=iport; t=1552672058; x=1553881658; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=3lPx2Tw2JkEIxFjXbKx22BzIVTdgbmA3dJZP9lO/i00=; b=Jeich92I9yh2amNqQY2uRyo6/f4Fytru9C3XbWzndSKeUrZEcCd+qyd9 028jubZFr6YrAWGrpmGlCOFwWg2Haqt0b0rW26jL5Eh5Rtss2FhxmkgNP h7xzzANcpDFANL/q66Aa6ndRotchrKFgmU2PAaj189CivD/dROralBLHy 0=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AHAAAX5Itc/xbLJq1kGQEBAQEBAQE?= =?us-ascii?q?BAQEBAQcBAQEBAQGBUwIBAQEBAQsBgWCBF1AzJ4QLiHuMIi2YMYF7DR+ETQK?= =?us-ascii?q?EcjYHDQEBAwEBCQEDAm0cDIVKAQEBAwEjDwEFQQULCQIOCgICJgICVwYBDAY?= =?us-ascii?q?CAQGDHgGBbQgPj3KbZoEvhDABgRWEawWBCyQBi0mBQD+BOIJrgx4ChGuCVwO?= =?us-ascii?q?kSgmHW4tCBhmLDIhEiwWFdYVfh0mBTgMugVYzGggbFYMnghYXg0uFFIU/PwM?= =?us-ascii?q?wjnsBAQ?=
X-IronPort-AV: E=Sophos;i="5.58,482,1544486400"; d="scan'208";a="10709012"
Received: from (HELO ([]) by with ESMTP/TLS/DHE-RSA-SEED-SHA; 15 Mar 2019 17:47:35 +0000
Received: from [] ( []) by (8.15.2/8.15.2) with ESMTP id x2FHlZKf019804; Fri, 15 Mar 2019 17:47:35 GMT
To: Carsten Bormann <>,
Cc: Michael Richardson <>, "" <>, "" <>
References: <21467.1551662213@localhost> <> <>
From: Robert Wilton <>
Message-ID: <>
Date: Fri, 15 Mar 2019 17:47:35 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3
MIME-Version: 1.0
In-Reply-To: <>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <>
Subject: Re: [Cbor] [core] draft-ietf-core-sid-05 and draft-ietf-core-yang-cbor-07
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 15 Mar 2019 17:47:43 -0000

On 15/03/2019 15:42, Carsten Bormann wrote:
> On Mar 15, 2019, at 14:24, Rob Wilton (rwilton) <> wrote:
>> In short, I think that it would be more pragmatic if SIDs are restricted to the non-negative range of the signed 64 bit integer type.  I.e. disallow values from (2^63 through 2^64 - 1).
> SIDs are unsigned integers.  However, there are still languages that have a hard time with those.

I imagine that you may be referring to languages like Java and Python, 
but in my experience, C and C++ also struggle to safely use unsigned 

E.g. and their similar cases.

>    And it helps if all SID deltas fit into a signed 64-bit integer.

This is really the key one for me.

Otherwise, I would guess that many implementations will probably just 
assume that the delta always fits into a signed 64-bit integer and 
potentially fail silently in the future when they hit an 
overflow/underflow condition.

> So maybe limiting SIDs to the (non-negative) range of signed 64-bit integers is a restriction that makes sense.
> has three pull requests, but no issues.
> (This apparently also happens to be the repo for the SID specification.)
> Should we put up the issues there?

I've added the author alias.  Hopefully we'll get an answer.


> Grüße, Carsten
> .