Re: [core] progressing ietf-core-yang-cbor and ietf-core-sid

"Rob Wilton (rwilton)" <rwilton@cisco.com> Wed, 15 January 2020 15:01 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 C40C6120071 for <core@ietfa.amsl.com>; Wed, 15 Jan 2020 07:01:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-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 header.b=JGjYJXIQ; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=HXERvoZF
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 OfBycO2FXJIc for <core@ietfa.amsl.com>; Wed, 15 Jan 2020 07:01:08 -0800 (PST)
Received: from alln-iport-1.cisco.com (alln-iport-1.cisco.com [173.37.142.88]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BEF2012004A for <core@ietf.org>; Wed, 15 Jan 2020 07:01:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1926; q=dns/txt; s=iport; t=1579100468; x=1580310068; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=kuhUxRkFwBqFjHkwxptAc70OMA23jp/zwIh2choBaPU=; b=JGjYJXIQ0CsrZmBXZIz6zbbdsq4Bo2xWvj/6zBZKeWnRxKZtel8YFT44 qO0hGGFxSlzc2Dsai0GFLi7P2YhWQk3V9CckmvuyOAa0DVMUMXWigiZ/T +Y0CFgivQloNbrgzEXo5LoB+U7urPoz/UkFRrBrGua+c936ojv6Tvd6Ro o=;
IronPort-PHdr: 9a23:GMrEPhKp/Itkye5nMtmcpTVXNCE6p7X5OBIU4ZM7irVIN76u5InmIFeBvad2lFGcW4Ld5roEkOfQv636EU04qZea+DFnEtRXUgMdz8AfngguGsmAXFfkLfr2aCoSF8VZX1gj9Ha+YgBY
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CxAABVKB9e/5FdJa1kGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYF7gVRQBWxYIAQLKgqEBYNGA4p0gl+YDoJSA1QJAQEBDAEBGAsKAgEBhEACF4FoJDgTAgMNAQEEAQEBAgEFBG2FNwyFXgEBAQECAQEBEBERDAEBLAsBBAcEAgEGAg4DBAEBAQICJgICAiULFQgIAgQBDQUIGoMFgkoDDiABAgyKJZBkAoE4iGF1gTKCfwEBBYUfGIINAwaBDiiMGBqBQT+BWIJMPoJkAQGBZYMOMoIsjVeCeZ54CoI4lkuabo5cmwACBAIEBQIOAQEFgWkigVhwFTuCbFAYDYgBDBeDUIUUhT90gSmLJwGBDwEB
X-IronPort-AV: E=Sophos;i="5.70,322,1574121600"; d="scan'208";a="405484144"
Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by alln-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 15 Jan 2020 15:01:04 +0000
Received: from XCH-RCD-004.cisco.com (xch-rcd-004.cisco.com [173.37.102.14]) by rcdn-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id 00FF142w028075 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 15 Jan 2020 15:01:04 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-RCD-004.cisco.com (173.37.102.14) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 15 Jan 2020 09:01:03 -0600
Received: from xhs-aln-001.cisco.com (173.37.135.118) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 15 Jan 2020 10:01:02 -0500
Received: from NAM11-CO1-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 15 Jan 2020 09:01:01 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SHi0BPtJeTaZIkCxEVsYFGCbRY2gy0xNnH5HTSuO0G/2nJj9HYakKBG/rhQcW74xgOnLGM2DBpAwL2tgkJi7BVdogXxdYTPMs9NIbXGGXDCFqbuSg/asQy6qc9u954/TbzR2hxA4kJa+C2QDxMLvY2HWufhRvt9KyGXG1UlUTCtc0OLz0fv5yy93P3wLXDV6jiLvLi6mwJKnFTri+pf/IIHc0XV3ekDS4mbzXZsRGrpWu//d/+CdjGLTAh5fHDM/bwL1/jTDOq856B1pfgXckjCx+y8wT8JFQhQ/ZP8OmlZ/Tyn/rxlSJnBoIkBb0a2eUTYhWf9saRbbWf/lmNBr9Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kuhUxRkFwBqFjHkwxptAc70OMA23jp/zwIh2choBaPU=; b=W7rR9d+0lewHQwdeR5PSU3OHwLJPjvvtwOEjFsfM5yTQkl9UjvCuqUXyoCTLVJOhMyZenrqMxZa3rJzfib5FPdInU1FVCFHbeCfuaozLPI5x0L7mzC6nlEy1h7zRd9j58ifepBI13m+A6lSinmRMSqwYfUblMjFmQZNGbBtAWdLeC9pSCXTjDJ7WPh+v/6aQYMR9yOwJhmkA8v6YUUSm4aslumsklJO8BMnZg2O/VyUVZ/Al2fXlRwdIMdWAL5SOTArCxLYZx7CjKASwZC/APRsksbEdavZzJfGTUJRv1g0teeddIqMvrNgLZ2HOeGyVWtqcj5ufNwPMzkQL5ESuCw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kuhUxRkFwBqFjHkwxptAc70OMA23jp/zwIh2choBaPU=; b=HXERvoZF8YcgQ48AQBPjK/DpEWYMO4vMpx0PsK+LyAwsXwLjtWl5lwOg4cc+0DHIyHMrL4yWyiabQEiLZMq+mn8q0CpXknI0p0yzApOQ6kQKxvAJoduwyHFtdB9W4N7ywVtR0lYPARzIT+9dOZRP2tu+7TDmpwcwZmZ76/N2HDw=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB4205.namprd11.prod.outlook.com (52.135.39.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9; Wed, 15 Jan 2020 15:01:01 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::b9ce:1058:5fa6:44a1]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::b9ce:1058:5fa6:44a1%7]) with mapi id 15.20.2623.018; Wed, 15 Jan 2020 15:01:01 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Carsten Bormann <cabo@tzi.org>, Michael Richardson <mcr+ietf@sandelman.ca>
CC: "core@ietf.org" <core@ietf.org>
Thread-Topic: [core] progressing ietf-core-yang-cbor and ietf-core-sid
Thread-Index: AQHVurUJXZhJjcMJe0u46wy442FB/KfheU0AgAHZe4CAAM9xgIACJ0WAgAI7cgCAAH+BgIAC1zwAgAASRXA=
Date: Wed, 15 Jan 2020 15:01:00 +0000
Message-ID: <MN2PR11MB4366A026E4A16F311E5922BFB5370@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <29380.1565102380@localhost> <BL0PR06MB50428065032ECC2AB3345F619AD70@BL0PR06MB5042.namprd06.prod.outlook.com> <7505.1565633977@localhost> <BL0PR06MB50424C618A704460E4A8F8D99AA90@BL0PR06MB5042.namprd06.prod.outlook.com> <18990.1577231446@localhost> <CAJFkdRyWOfCb4U09rEJ-ZMR3GUuk-rmQ+f3Fs164Mxs8qkeVuw@mail.gmail.com> <22612.1578626081@localhost> <CAJFkdRztFUxdGcdvtTgB=9c-e_BwDAgLTmVPJ+OB8-dgs1sGog@mail.gmail.com> <15754.1578789013@localhost> <CAJFkdRy_3pC37ZxzhTmzqRgWjwDvEFTuhu5Z8+_ktaJgoeOGfg@mail.gmail.com> <6025.1578939111@localhost> <ACA7E58F-A308-457B-846F-E298807DCEC1@tzi.org>
In-Reply-To: <ACA7E58F-A308-457B-846F-E298807DCEC1@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.36]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 69f0bc55-83c4-4fb3-84c2-08d799cbbc23
x-ms-traffictypediagnostic: MN2PR11MB4205:
x-microsoft-antispam-prvs: <MN2PR11MB420558E7F4FF0862AA3B6BFCB5370@MN2PR11MB4205.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:3826;
x-forefront-prvs: 02830F0362
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(376002)(136003)(346002)(396003)(366004)(189003)(199004)(6506007)(53546011)(8936002)(478600001)(5660300002)(9686003)(71200400001)(55016002)(52536014)(186003)(7696005)(86362001)(76116006)(33656002)(4326008)(66476007)(110136005)(316002)(66446008)(64756008)(66946007)(66556008)(26005)(966005)(81166006)(81156014)(2906002)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4205; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 3LAmVO9UA7hjvFxwiWlKSyJXkDH7FbH2IGECUfurw4sOGLJp2O41lyA6eUJ/wl1svzr/uwLH+VbXPWv34p06y8qHurNWGb1eVQMi5UDnYolaQzkUQKpQliR71etJcRx77v+l+oviOYWEK+1dfP3mb47LxUNK6GlDTjRp5JU7bhjzLSrr2DoAtSP9VD7EA4D9V4+zzPvEGkSsDYbhYOtJuqFU0ooxAmgfgWBw8SEYgKypeB1pbSoojzm6nFKoZAy15izzhxUEBtPU3kyRVqchUUlhaqDoVpoSLFmEH6r+n0IivEEcRUANu8xRJB9KfGEc9B9DPJmQk4unMSxKfGGCvNzHFzmSUGKuhWPjSbHqQNKYuAc5A/QLObdp/uFqwe8sVBp8RcItJD7/1zC2RKRxvcsxyyf0BkbXLA1iduvAZt9Yqswhb1XxLyjLtOOeRGL9+zy+DNk0JAyoXzrQpL1MgcS8hERgdwOxbKl6o4UDDVwp1Vc7wwQMHY/Exijfr6osEgYA0zkw0brdIla5QpXptw==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 69f0bc55-83c4-4fb3-84c2-08d799cbbc23
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2020 15:01:00.7920 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: SRvGjRdSrIJ76M9mq1nYkM4phFmMn5tLvCz7blGToOw08UicMHwz/s8gj1OuZc6GPpdmHItch8J/wMYr/YtlKw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4205
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.14, xch-rcd-004.cisco.com
X-Outbound-Node: rcdn-core-9.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/EErOChByv6xfJ2nXcSTe9yIo6cg>
Subject: Re: [core] progressing ietf-core-yang-cbor and ietf-core-sid
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: Wed, 15 Jan 2020 15:01:14 -0000


> -----Original Message-----
> From: core <core-bounces@ietf.org> On Behalf Of Carsten Bormann
> Sent: 15 January 2020 13:35
> To: Michael Richardson <mcr+ietf@sandelman.ca>
> Cc: core@ietf.org
> Subject: Re: [core] progressing ietf-core-yang-cbor and ietf-core-sid
> 
> (No chair hat.)
> 
> On 2020-01-13, at 19:11, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> >
> >  The use of 63-bit unsigned integers allows SIDs to be manipulated
> > more easily  on architectures that might otherwise lack native 64-bit
> unsigned arithmetic.
> >  The loss a single bit of precision is not significant given the size
> > of the  space.
> 
> s/use of/limitation to/     (we have been using them before)
> s/architectures/platforms/  (Java is our main problem here, no?)
[RW] 
I think that it would be awkward for most languages/CPU architectures, anywhere where you could end up with a negative number that is less than 2^63.

Yes, it is possible to write code in C or Java to handle this, but my hunch is that implementations could easily get this wrong (e.g. by just using signed int64 as the type to hold the difference between parent and child SIDs.)

Thanks,
Rob


> s/precision/range/ s/space/remaining space/
> 
> Grüße, Carsten
> 
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core