[dtn] BPv7 CDDL and CBOR tagging

Brian Sipos <BSipos@rkf-eng.com> Wed, 03 April 2019 19:14 UTC

Return-Path: <BSipos@rkf-eng.com>
X-Original-To: dtn@ietfa.amsl.com
Delivered-To: dtn@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E22D2120166 for <dtn@ietfa.amsl.com>; Wed, 3 Apr 2019 12:14:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rkfeng.onmicrosoft.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 XBFDj9Q-k9dX for <dtn@ietfa.amsl.com>; Wed, 3 Apr 2019 12:14:31 -0700 (PDT)
Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730083.outbound.protection.outlook.com [40.107.73.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EC91F120168 for <dtn@ietf.org>; Wed, 3 Apr 2019 12:14:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rkfeng.onmicrosoft.com; s=selector1-rkfeng-com0i; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RK0UT3FANmwEbn5XrGcWa78tenfUccdp8QATEPK3pAs=; b=cIPRmYcPQAItNCwvZbk+hWBbPW/PJYLaqDyFatyf/xAFVLpA+9Esf2Bsf3syUCoIwQRNYKtG6CmXqoFm5IiY4M1chnEXFMd+PoCbBNHCrR6XKj5L71CVF4rFMjyR57keK0F5/cCl5UpQvlccHFCPVQcudwthXbATfKbWBZnTzZs=
Received: from CY4PR1301MB2039.namprd13.prod.outlook.com (10.171.240.14) by CY4PR1301MB2184.namprd13.prod.outlook.com (10.171.220.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1771.11; Wed, 3 Apr 2019 19:14:26 +0000
Received: from CY4PR1301MB2039.namprd13.prod.outlook.com ([fe80::c72:6b85:66ca:845c]) by CY4PR1301MB2039.namprd13.prod.outlook.com ([fe80::c72:6b85:66ca:845c%3]) with mapi id 15.20.1771.007; Wed, 3 Apr 2019 19:14:26 +0000
From: Brian Sipos <BSipos@rkf-eng.com>
To: "dtn@ietf.org" <dtn@ietf.org>, Scott Burleigh <scott.c.burleigh@jpl.nasa.gov>
Thread-Topic: BPv7 CDDL and CBOR tagging
Thread-Index: AQHU6cwkKjg/bVi0S06SSCrlH9F6SA==
Date: Wed, 03 Apr 2019 19:14:26 +0000
Message-ID: <CY4PR1301MB20399B0DD6B59D2D566257379F570@CY4PR1301MB2039.namprd13.prod.outlook.com>
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=BSipos@rkf-eng.com;
x-originating-ip: [38.100.63.114]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 73ef302b-d26b-4d09-858d-08d6b86896af
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(7021145)(8989299)(4534185)(7022145)(4603075)(4627221)(201702281549075)(8990200)(7048125)(7024125)(7027125)(7023125)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:CY4PR1301MB2184;
x-ms-traffictypediagnostic: CY4PR1301MB2184:
x-ms-exchange-purlcount: 2
x-microsoft-antispam-prvs: <CY4PR1301MB2184854565A413F143F8C5879F570@CY4PR1301MB2184.namprd13.prod.outlook.com>
x-forefront-prvs: 0996D1900D
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(346002)(39830400003)(136003)(189003)(199004)(110136005)(316002)(53936002)(106356001)(2906002)(7696005)(55016002)(966005)(74316002)(6306002)(25786009)(54896002)(236005)(5660300002)(6116002)(3846002)(66066001)(52536014)(9686003)(71200400001)(6506007)(80792005)(102836004)(105586002)(86362001)(19627405001)(26005)(8936002)(14454004)(8676002)(606006)(186003)(476003)(68736007)(2501003)(71190400001)(33656002)(81156014)(256004)(81166006)(508600001)(105004)(7736002)(486006)(14444005)(99286004)(72206003)(97736004)(6436002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR1301MB2184; H:CY4PR1301MB2039.namprd13.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: rkf-eng.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: iweIAqLw0bEVQENpE4bAc1sEt6+0eR8hTrKr/hrflmFeiFpMLMCkAOVCrPVWXmd6McU77zKjT0AtaUqA7u4aeMuZ0XgQ+63DW1gOT8Ird7pAUxAWLlhM3HSIO4omNLvkZwZQ69FNbLUQhBKBYXHflZvH804EnBzR839Cu0ExLfCAuVzxZNWAWb0yjl+fJFIrcP04VlnwJjrU7Lho6gXNZGVQirjBSsEDEO+QoZa+SxLgDn80rBa7CY/BkUjBtwTBgAOtPsxOvZQfCd9+ISyIXsGZVTleXdqP+Tn7br4ZjVKLbdgY9HdRAaLqh4urztSsnv2p/VfTjZHQD/Xc+7E2Il0kqvceAYUtYFxvAMY0J+P9qfh1jZqt8hAA3oXG9lmL0PbJfktOr8PzQeDl01vtC0bM9wAEB0ifstuu5B7uD6A=
Content-Type: multipart/alternative; boundary="_000_CY4PR1301MB20399B0DD6B59D2D566257379F570CY4PR1301MB2039_"
MIME-Version: 1.0
X-OriginatorOrg: rkf-eng.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 73ef302b-d26b-4d09-858d-08d6b86896af
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Apr 2019 19:14:26.1457 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 4ed8b15b-911f-42bc-8524-d89148858535
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1301MB2184
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/QqkhOsyogwVPhBfpPC3MohIjg4M>
Subject: [dtn] BPv7 CDDL and CBOR tagging
X-BeenThere: dtn@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Delay Tolerant Networking \(DTN\) discussion list at the IETF." <dtn.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dtn>, <mailto:dtn-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dtn/>
List-Post: <mailto:dtn@ietf.org>
List-Help: <mailto:dtn-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dtn>, <mailto:dtn-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 03 Apr 2019 19:14:34 -0000

This is addressed mostly to Scott B, but also to the WG for discussion,

The CBOR Data Definition Language (CDDL) has now advanced to the "Submitted to IESG" state, and appears to have been refined since the BPv7 Appendix B [1] was originally written. I would like to update the Appendix B to:

  1.  Fix some typos:
     *   The type "dtn-time" should allow negative values so type "int" instead of "uint"
     *   A disconnect between the "canonical-block" definition and the "extension-block" and "payload-block" uses (which are just canonical-block type with value restrictions, probably using ".within").
  2.  Indicate some likely places where CBOR tags can be used to augment encoded bundles for troubleshooting. In my mind, the reasonable tag sites are:
     *   Tagging the whole bundle as "#6.55799(bundle) as a sentinel for content-type-scanning tools.
     *   Tagging the "block-type-specific-data" as "encoded-cbor = #6.24(bstr)" when it is in fact CBOR.

Additionally, there was a question brought up to the WG in November 2018 about the almost-typical-but-not-quite use of URIs in the EID encoding. In my first read-through of the draft (having not had direct experience with RFC 5050 implementation), I thought that the EID was an actual URI rather than a compressed form of a small subset of URIs in the "dtn" and "ipn" schemes. I see the value in having a compressed form for some specialized URIs, but there is currently no way to encode as an EID something which is 'just a URI'. Is the intent here that "all EIDs are URIs" but not "all URIs are EIDs"? Is there any value in having an EID code for "just a URI" or is prohibiting a generic URI intentional?

Thanks,
Brian S.

[1]: https://tools.ietf.org/html/draft-ietf-dtn-bpbis-12#appendix-B
[2]: https://tools.ietf.org/html/draft-ietf-cbor-cddl-08#section-3.9