Re: [netmod] Justification for decimal64 over string for floating point values in geo location data?

"Rob Wilton (rwilton)" <rwilton@cisco.com> Thu, 09 July 2020 10:27 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F1F883A0818 for <netmod@ietfa.amsl.com>; Thu, 9 Jul 2020 03:27:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.598
X-Spam-Level:
X-Spam-Status: No, score=-14.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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 header.b=c0911wsO; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=JarB8gY1
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 r3HGt5PpnsJk for <netmod@ietfa.amsl.com>; Thu, 9 Jul 2020 03:27:35 -0700 (PDT)
Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4C9253A0817 for <netmod@ietf.org>; Thu, 9 Jul 2020 03:27:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1831; q=dns/txt; s=iport; t=1594290455; x=1595500055; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=f7wmK2chfdBcwHYD15tA6B5BbNqk/nU2vTBgKIQrl1E=; b=c0911wsOnPx+7EpVoX+sHYbjNycXa3qxxJM2v/YZTV3871TFOj8YWnZ8 xsnlOCaK4Z7KG3jL36Au+ntRHKgfuS+bXkWPT6AS+gRhSbSy1AmJ7S8yb 9uL093ntBaMqh4oGD7GR9x2oSLfyi9XiQpKdlBfal+dqaX6k5Q2QwkBrX 0=;
IronPort-PHdr: =?us-ascii?q?9a23=3A4BWzGxN7WYctSiitFjYl6mtXPHoupqn0MwgJ65?= =?us-ascii?q?Eul7NJdOG58o//OFDEvK493l3AVoLR8LdZjevIvrr7WHARp5qM4zgOc51JAh?= =?us-ascii?q?kCj8he3wktG9WMBkCzKvn2Jzc7E8JPWB4AnTm7PEFZFdy4awjUpXu/vjwbER?= =?us-ascii?q?L1Lk9oIOXrF5TJjtimkey/qNXfZgxSj2+7ZrV/ZBy9sQTWsJwQho1vT8R5yh?= =?us-ascii?q?bArnZSPepMwmY9LlOIlBG67cC1r5M=3D?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AKAADp7wZf/49dJa1dAxkBAQEBAQE?= =?us-ascii?q?BAQEBAQEBAQEBAQESAQEBAQEBAQEBAQEBQIE3AwEBAQEBCwGBUVEHb1gvLAq?= =?us-ascii?q?HbwONTphbgS6BJQNVCwEBAQwBAR8OAgQBAYRNAoIVAiQ1CA0BAgMBAQsBAQU?= =?us-ascii?q?BAQECAQYEbYVbDIVvAQEBAQMSKAYBATcBCwICAgEIDgIBBAEBAR4FCxsXHQg?= =?us-ascii?q?CBA4FCBqDBYJLAy4BA6A8AoE5iGF0gTSDAQEBBYUkGIIOAwYFgTMBgmmKBRq?= =?us-ascii?q?BQT+BVIIfLj6BBIM7HyaDAoIttRcKgl6ZcIJziTOSfh2wKgIEAgQFAg4BAQW?= =?us-ascii?q?BVAE4gVdwFYMkUBcCDYFIjFY3gzoziiN0NwIGCAEBAwl8jhQBgRABAQ?=
X-IronPort-AV: E=Sophos;i="5.75,331,1589241600"; d="scan'208";a="521277985"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 09 Jul 2020 10:27:34 +0000
Received: from XCH-RCD-001.cisco.com (xch-rcd-001.cisco.com [173.37.102.11]) by rcdn-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id 069ARYNF016245 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 9 Jul 2020 10:27:34 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-RCD-001.cisco.com (173.37.102.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 9 Jul 2020 05:27:34 -0500
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.1497.2; Thu, 9 Jul 2020 06:27:32 -0400
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.1497.2 via Frontend Transport; Thu, 9 Jul 2020 05:27:32 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XdIpK6U+M5x7zkxsifzjViYi0RIuP8vFJKitD6gsQxhQHE2LYVJMPUTgrZNN0rPYG7B8w17YP9BxCjfOSa1n0ijZFcfKO0FenvnUco2EW3K9YS2zfZjCmVcV3f9Il+xLDakUxqT7xRb3UdRzLy2shtTdzKcNgxO/syPa3zU2DBjhiqWYvWr59rrK+sO3mgDOC//ROl7qB6VVdSoMGiSCIUrVGL0iy1a0u8PzSbeGyDGqysl7vI11YvKRiWb+rshEf1oGiuFDj6OClUC49NI7kI1ad3zp6LaKsLsvkKXFWzmK6lck9nUrBD4kGJdX5UWpJrqfLIPM0Md/yOziR3E5xA==
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=Jt51UTTMzkk4hi/CZ6zZmiVz9YTrGd38xevr4hWn3yM=; b=FVwI/0j5KT7rjv3zE2N30k7Qm3S2ZGncMEp4KCzAaLZQRpDwMDyKk+Jq8UlohO3sSf1ZtiULUcmNqDZ2AY2BmneUqcTCveSGahUPsM/9E4jpuGKc4s3Z0B73r/Yc2qTtssWjbbNlb3/3zfxOdnxcfIF4PaBQNqPIQZWxzcvK2ih3KNb6686t7R0spYhsYcSPGfRbJX+exbyX60fa2ewvzaUbJlEfhdnFeEEvDilibgah5zKwhWVCbOrUoGIBTeV1/N9RCK0uWbHXEZFvcZJEchDqAsmftUQCK48mQ3gnsCW/Z8M16ykznCJG1zVginr9FHpnlUO0NWKi39TU78tcIA==
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=Jt51UTTMzkk4hi/CZ6zZmiVz9YTrGd38xevr4hWn3yM=; b=JarB8gY1tAoqI22CbxUjk5+3F7Bmsh+opix8l/8lkXqn0ABJVxfv/N8XqTReAHYdAbilf0pnzey7y7Nway8UNB+XW7GqhHp3S7ZU5DTy0Enbhulckkfhd7ib21SSFe57Bya5WsioOYogGhxLzHc5KMD4iv8g2T0RJRTeCWnQsIA=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (2603:10b6:208:190::17) by MN2PR11MB4533.namprd11.prod.outlook.com (2603:10b6:208:264::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Thu, 9 Jul 2020 10:27:28 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::e9d4:79b5:aef1:be18]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::e9d4:79b5:aef1:be18%5]) with mapi id 15.20.3174.022; Thu, 9 Jul 2020 10:27:28 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: Christian Hopps <chopps@chopps.org>, NetMod WG <netmod@ietf.org>
Thread-Topic: [netmod] Justification for decimal64 over string for floating point values in geo location data?
Thread-Index: AQHWVE64+Qz8HStWdUef/vPPn4qbG6j7+dcAgAHeZJCAAA0rAIAAAt2QgAAKlACAAAbYIA==
Date: Thu, 9 Jul 2020 10:27:28 +0000
Message-ID: <MN2PR11MB436684083586D889151223FDB5640@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <B548C4B4-2A97-4736-A6B2-358D1491D125@chopps.org> <20200707112450.wrttuprwrdr3nl5i@anna.jacobs.jacobs-university.de> <MN2PR11MB43660673154F85137B23C03BB5670@MN2PR11MB4366.namprd11.prod.outlook.com> <20200708164412.qbstkblscn4yxis6@anna.jacobs.jacobs-university.de> <MN2PR11MB4366A8C7ABA6A38496040DF1B5670@MN2PR11MB4366.namprd11.prod.outlook.com> <20200708173218.o24s3ls64s37hwrj@anna.jacobs.jacobs-university.de>
In-Reply-To: <20200708173218.o24s3ls64s37hwrj@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: jacobs-university.de; dkim=none (message not signed) header.d=none;jacobs-university.de; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [82.15.79.32]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 143e6054-acd1-4e01-fd29-08d823f2ae59
x-ms-traffictypediagnostic: MN2PR11MB4533:
x-microsoft-antispam-prvs: <MN2PR11MB45339627F25DB5C25C7622E5B5640@MN2PR11MB4533.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Ijyt0IEBq2fGjcRmlH6jj3/6+LgtFHj5U1dYcQssW/xSFCLglxsJsApXiQtFxxvk/XRBNdCE35U3v/AI55WrKi/igatZTbqYXzvaLBHY8jBpzKHHv7FkJ25F/ZAbn+YCIorSR6ot0nZIUT6+U99D+qRw1ZUgUtOao1kiGjAu7CviFUEgJR4+Jd1k0oqfmKaPqIrNjACRmiJ2r/5yn+dtmwJxv9D0NPz59xYz96RDdp3TvQcKki5ZRksmSis0HTK/JtPj8UblAYZB3U5jgGTNqdk73sNaISftSXaIhyOOiCdeLIY/hYoTQOLCGnJLtvQJJIe8vsJkWe0U5nJ4H5IJcOc8iXL0VhsElUn3KXtYcOiZnAb6Rqc5d9+Y+P/mP7WNaGxHZ+REOR/PtXfSwbHvtQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR11MB4366.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(376002)(366004)(396003)(39860400002)(346002)(136003)(83080400001)(76116006)(66946007)(5660300002)(54906003)(7696005)(86362001)(52536014)(53546011)(6506007)(6916009)(316002)(66446008)(478600001)(9686003)(83380400001)(8936002)(71200400001)(66476007)(64756008)(26005)(66556008)(55016002)(186003)(4326008)(2906002)(8676002)(33656002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: UEciKN+mnbEsOr8gLo4AANHbUufZea2mwq29paa6PdiEOlyiQ8ro46AB9qevtZvieA3aht4lXgeYiIuzdlCeRAILcjJfIhN5imfP2uBjrTCRI3OUmiSZZXNSYP4SM3VqseR2YBBYuxZSIPJNDDzB0uR8s6yZbFipjlxg5JY5sPfleKI4lJSFMSaezsbxrlKwjOG5IpOHBHmjD+qb15J3zglClETGFxjYe969bmVsCCtMG/N2rKgkN2as/JE4DhIYr+CYcLvKqSu20eA+jYSbooU2FL4ZGIJwqjf+KKXmioRXqsL8S85QzSRTbW4nPS3xphdDenNUZWaXKrlG7CGVyYNPLAtkgO9WwFqOArlhjeMLEP0fNPhkaqnRzW1XTitLDLLkOapGT7bxXlRMEFx2oXaWAIASO9u12YP1k6Jg+XnGPxMoWW1YGu+SAS3Wtbcoib4YOaEf434AGybpNjyrHBJp+/WTLCLVWHEAgXUU7Sk=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MN2PR11MB4366.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 143e6054-acd1-4e01-fd29-08d823f2ae59
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2020 10:27:28.6316 (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: UNgsVVywCwE50CzAEVf8JVNxn2be5U2r5KrBNR82udbFQP0SD/zNWLOJQmsNVIgPty2ah8XfYwg1a/VW1BKsKw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4533
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.11, xch-rcd-001.cisco.com
X-Outbound-Node: rcdn-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/8Eqvhea2YZAIfVD-6MK7pMQ3bqc>
Subject: Re: [netmod] Justification for decimal64 over string for floating point values in geo location data?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Jul 2020 10:27:37 -0000


> -----Original Message-----
> From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
> Sent: 08 July 2020 18:32
> To: Rob Wilton (rwilton) <rwilton@cisco.com>
> Cc: Christian Hopps <chopps@chopps.org>rg>; NetMod WG <netmod@ietf.org>
> Subject: Re: [netmod] Justification for decimal64 over string for floating
> point values in geo location data?
> 
> On Wed, Jul 08, 2020 at 04:53:52PM +0000, Rob Wilton (rwilton) wrote:
> >
> >
> > > -----Original Message-----
> > > From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
> > > Sent: 08 July 2020 17:44
> > > To: Rob Wilton (rwilton) <rwilton@cisco.com>
> > > Cc: Christian Hopps <chopps@chopps.org>rg>; NetMod WG <netmod@ietf.org>
> > > Subject: Re: [netmod] Justification for decimal64 over string for
> floating
> > > point values in geo location data?
> > >
> > > unknown precision != arbitrary precision
> > [RW]
> >
> > I agree.  But don't follow the point that you are making.  Please can
> you clarify.
> >
> 
> To me
> 
>    type string;
>    pattern "[0-9]+(\.[0-9]+)?";
> 
> means unknown precision - everybody implements what seems convenient.
[RW] 

Ah, Okay.  Yes, I agree.  I think that there are already too many types that get encoded as a string in YANG.

My suggestion was to consider for the next version of YANG to potentially add two new native YANG types:
 - Binary float and binary double native YANG types, possibly restricted to operational values only.
 - A new arbitrary-precision-decimal native YANG type.

Regards,
Rob


> 
> /js
> 
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>