Re: [core] I-D Action: draft-ietf-core-sid-05.txt

Robert Wilton <rwilton@cisco.com> Thu, 20 December 2018 14:40 UTC

Return-Path: <rwilton@cisco.com>
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 4632A12894E; Thu, 20 Dec 2018 06:40:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.565
X-Spam-Level:
X-Spam-Status: No, score=-14.565 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.065, 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: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F7QGr9IR3Y1c; Thu, 20 Dec 2018 06:40:53 -0800 (PST)
Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6396A1277CC; Thu, 20 Dec 2018 06:40:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2971; q=dns/txt; s=iport; t=1545316851; x=1546526451; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=F026c1+Se4d/JgUnUreyauqFeX+qopJnKxayOjU1GFI=; b=UAhQQYOHt9rk2hOS6FPZmymal+7WwHBKocr8Aoz8+n0V06/Uug8XVbje zwf1oYQ2AIzy9PXtLCzLn0jNyHrto7zK96QplW7X2Kn0gqBA6f5DKQAb3 hW0E4sXtwTjlbeh3UEt//AVDDs0iIfTM4dZsueonaSaEnHrSSiuOyhdZK Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0ADAADMqBtc/xbLJq1aChkBAQEBAQEBAQEBAQEHAQEBAQEBgVEEAQEBAQELAYJpcBIng32IGV+MfAgll12Bew0YC4RJAoMONAkNAQMBAQIBAQJtHAyFPQEBBAEBIQ8BBTYbCxgCAiYCAicwBwwGAgEBgx4BggEPp2CBL4QxAg5AP4RpgQuLS4FAP4E4DIJfgx4BAQIBARaBHAWDLoJXAolHl3YJhxGKTgYYgV9NhFKDC4dUiU2Ee4RHhn6BRjgogS4zGggbFRohgmwJgh4XiF6FPz8DMIwbgkwBAQ
X-IronPort-AV: E=Sophos;i="5.56,377,1539648000"; d="scan'208";a="8939900"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Dec 2018 14:40:49 +0000
Received: from [10.63.23.68] (dhcp-ensft1-uk-vla370-10-63-23-68.cisco.com [10.63.23.68]) by aer-core-2.cisco.com (8.15.2/8.15.2) with ESMTP id wBKEenKv020417; Thu, 20 Dec 2018 14:40:50 GMT
To: core@ietf.org, draft-ietf-core-sid@ietf.org
References: <154522486568.14754.12136677357051268505@ietfa.amsl.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <ee917a6c-5780-d5f0-5c60-1ae168d28e11@cisco.com>
Date: Thu, 20 Dec 2018 14:40:49 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3
MIME-Version: 1.0
In-Reply-To: <154522486568.14754.12136677357051268505@ietfa.amsl.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-Outbound-SMTP-Client: 10.63.23.68, dhcp-ensft1-uk-vla370-10-63-23-68.cisco.com
X-Outbound-Node: aer-core-2.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/ubBPYp7Oyyj5Kng8HvuW9BMfs74>
Subject: Re: [core] I-D Action: draft-ietf-core-sid-05.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 20 Dec 2018 14:40:55 -0000

Hi,

I've raised this previously, but I'm not sure whether there was any 
discussion or conclusion, or perhaps I missed it:

SIDs are currently defined to be 64 bit unsigned numbers, but I think 
that it would be better to limit these to the positive part of signed 64 
bit integers instead.  This still allows a very large range of SIDs to 
be allocated but I think will make it easier for normal programming 
languages to handle:

1) Both Python and JVM based languages don't naturally handle unsigned 
64 bit integers.  It is pragmatically likely that those implementations 
will probably choose to use a signed 64 bit integer instead to represent 
SIDs, breaking interoperability.

2) The SIDs in the YANG CBOR encoded as deltas to the parent SID.  If 
the parent has a small SID (e.g . 1), and the child has a large SID 
(e.g. 2^64-1) then the delta will end up as a large negative number 
(2^64 - 2) that cannot be represented in C's signed 64 bit integer, 
making that difficult to handle as well.

Hence, given signed integer maths is expected to be performed on SIDs, 
it would be safer and easier to define them within the range of values 
that can be represented by a signed 64 integer.

Thanks,
Rob


On 19/12/2018 13:07, internet-drafts@ietf.org wrote:
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the Constrained RESTful Environments WG of the IETF.
>
>          Title           : YANG Schema Item iDentifier (SID)
>          Authors         : Michel Veillette
>                            Alexander Pelov
>                            Ivaylo Petrov
> 	Filename        : draft-ietf-core-sid-05.txt
> 	Pages           : 26
> 	Date            : 2018-12-19
>
> Abstract:
>     YANG Schema Item iDentifiers (SID) are globally unique 64-bit
>     unsigned numbers used to identify YANG items.  This document defines
>     the semantics, the registration, and assignment processes of SIDs.
>     To enable the implementation of these processes, this document also
>     defines a file format used to persist and publish assigned SIDs.
>
>
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-ietf-core-sid/
>
> There are also htmlized versions available at:
> https://tools.ietf.org/html/draft-ietf-core-sid-05
> https://datatracker.ietf.org/doc/html/draft-ietf-core-sid-05
>
> A diff from the previous version is available at:
> https://www.ietf.org/rfcdiff?url2=draft-ietf-core-sid-05
>
>
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at tools.ietf.org.
>
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
>
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core
> .
>