[T2TRG] draft-hartke-t2trg-ciri-00 review

Ari Keränen <ari.keranen@ericsson.com> Mon, 21 January 2019 18:25 UTC

Return-Path: <ari.keranen@ericsson.com>
X-Original-To: t2trg@ietfa.amsl.com
Delivered-To: t2trg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 337F0126BED for <t2trg@ietfa.amsl.com>; Mon, 21 Jan 2019 10:25:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.875
X-Spam-Level:
X-Spam-Status: No, score=-7.875 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-4.553, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=eHmbCO76; dkim=pass (1024-bit key) header.d=ericsson.com header.b=Q7EctSIq
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 HIaNS5jUFcGA for <t2trg@ietfa.amsl.com>; Mon, 21 Jan 2019 10:25:21 -0800 (PST)
Received: from sesbmg22.ericsson.net (sesbmg22.ericsson.net [193.180.251.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6C576130F24 for <T2TRG@irtf.org>; Mon, 21 Jan 2019 10:25:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1548095119; x=1550687119; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=GFMPhltmDAVQGY5qSS34fH9uJCfamXcSr6zHPsNtaNM=; b=eHmbCO76bhvvE7dhSxnaoM3pSySjiwUd+ZdRivFs2/4mltXb/aSLrasKeX2esTIg WoinDkiah6zlXqQL6WiA4VDaEFd/ud9VPzHWFOOkBQzUzbz9o4BHBuVm2XqXN4yO iAVdii/vuZ7BPkqwLt5ZdB7uN2cHRMz4kE2FhnQStkM=;
X-AuditID: c1b4fb30-f93ff7000000355c-31-5c460e8f1bf6
Received: from ESESBMB501.ericsson.se (Unknown_Domain [153.88.183.114]) by sesbmg22.ericsson.net (Symantec Mail Security) with SMTP id EB.8F.13660.F8E064C5; Mon, 21 Jan 2019 19:25:19 +0100 (CET)
Received: from ESESSMR505.ericsson.se (153.88.183.127) by ESESBMB501.ericsson.se (153.88.183.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 21 Jan 2019 19:25:18 +0100
Received: from ESESSMB505.ericsson.se (153.88.183.166) by ESESSMR505.ericsson.se (153.88.183.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 21 Jan 2019 19:25:18 +0100
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESSMB505.ericsson.se (153.88.183.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Mon, 21 Jan 2019 19:25:18 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GFMPhltmDAVQGY5qSS34fH9uJCfamXcSr6zHPsNtaNM=; b=Q7EctSIq2D9wmFkaNyl+OrkgJZMMlFvBXwWVwNcIuR1X/oIiCz5HYxaYbZtDdD4Hg79IVWHB3QtHCTGyL4f3eBbXiRCTVL2wbbA7QXqy8BbbbDFcKT53ZMnc4kxtHnho1IrYIB0jTz+kp8a8EzriOYwjN3O8Nzp1Y/7MJRo8Vio=
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com (20.176.166.145) by HE1PR07MB3209.eurprd07.prod.outlook.com (10.170.246.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.9; Mon, 21 Jan 2019 18:25:17 +0000
Received: from HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::6463:1b56:4aa2:cfd7]) by HE1PR07MB4236.eurprd07.prod.outlook.com ([fe80::6463:1b56:4aa2:cfd7%5]) with mapi id 15.20.1558.014; Mon, 21 Jan 2019 18:25:17 +0000
From: Ari Keränen <ari.keranen@ericsson.com>
To: "draft-hartke-t2trg-ciri@ietf.org" <draft-hartke-t2trg-ciri@ietf.org>
CC: "T2TRG@irtf.org" <T2TRG@irtf.org>
Thread-Topic: draft-hartke-t2trg-ciri-00 review
Thread-Index: AQHUsbaoN2sOHNFPSUOGL+7Ra8iqEA==
Date: Mon, 21 Jan 2019 18:25:17 +0000
Message-ID: <58aa0ae4-b3fe-abf7-9bda-4908ef0b3fd7@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
x-originating-ip: [89.166.49.243]
x-clientproxiedby: HE1PR05CA0386.eurprd05.prod.outlook.com (2603:10a6:7:94::45) To HE1PR07MB4236.eurprd07.prod.outlook.com (2603:10a6:7:9f::17)
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; HE1PR07MB3209; 6:fu1h7Dp/LZjJN5SOAZ+/HzCKAzYv7OFW2aJlShinhdmrC0ux61EyNRcaPAOzlB6Uy5xlwYfrzSNm26YRhuauF8PxV0Ca2y9HAjZgegiHjRsQCWr02Cjm8orcrJPWy9zJQI6ZmUJO9cNf1cnGWVccwxXNJlgHRSv/Gf6kt1R8cCKoVMPpyQeIqH4nAujmFQneY3Nft+qQYpzmnlLteGoxIOjm+VHxArmXlwopsIPsU+o3V6bruq6XyvvZlM+KttaYieA77iZrxGVcoVx+xht1UEG+UCJW3+Etux+NfP34V6mbSyRr7As9CEzLv5kHkDNqN7E0+QxOFwBomcz4Twk0byPXBS8Rc9PVgnz9LETVsVvBUISJWTcHUuiZDIdyk3RApOxqhJPFJMBvJKTsQKPOWyxYjzH5je1ViH2D6CbqQ/h3DFoHU+0dz9bMj80NHVAg0WLKDpBeXiQs001wtBwU5g==; 5:IgaFgLEmo78x6p8hs3OqWfKAA7w+myPub/Mv3T8WZ8j6RMvuraMzuk9sS74S6Gag506sx3oqZh/PAm5ZGN5H3QptMo0bDCP0QFX6yRKVAbUgxfPi/mMNzOBMSX1ugDwoq5XAbvWNDoabEGMUL3CFK7An2QcDaat1miLjZDiHy/ogLi+bbPkX9HKiJ1peBHDQMhf55GntNkU4xL8iz8m7KQ==; 7:8gFgrPbY0VN+e0SEKpY7uSm/hkx5mIR6rQ9EQk0iewXSWpK3GGm6Tn36k02tIKgrgCYHoH36EsM99OYnjL4x9LfJkt6HQLm2OpcKClEJvqqWlgj9Cahc3L0VssjDRDfVDJe0QxesTQAbXS3B5bv+PA==
x-ms-office365-filtering-correlation-id: 66bffc34-a0df-49b9-ad83-08d67fcdcaed
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR07MB3209;
x-ms-traffictypediagnostic: HE1PR07MB3209:
x-microsoft-antispam-prvs: <HE1PR07MB320955396BEAE0D233FFD526859F0@HE1PR07MB3209.eurprd07.prod.outlook.com>
x-forefront-prvs: 0924C6A0D5
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(136003)(396003)(376002)(366004)(43544003)(189003)(199004)(58126008)(386003)(186003)(26005)(106356001)(85202003)(102836004)(316002)(64126003)(2906002)(31696002)(6436002)(105586002)(2351001)(6346003)(6506007)(53936002)(99286004)(486006)(36756003)(31686004)(52116002)(97736004)(2501003)(71200400001)(6116002)(71190400001)(3846002)(86362001)(6512007)(85182001)(6486002)(6916009)(256004)(8676002)(4326008)(14454004)(25786009)(7736002)(2616005)(476003)(5640700003)(65956001)(65806001)(66066001)(478600001)(305945005)(81156014)(8936002)(68736007)(81166006)(65826007); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3209; H:HE1PR07MB4236.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ari.keranen@ericsson.com;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: CZPOFX6Sbj79baqDlMCh+K+Rwr+q5fsAg55/aIHc61Q1hCEys4yBF7Fuyxi+/DTzLi0y3NNkiP+SWweSVaEZ0UGB2zBb3RbiUx+WkM374GzuinNnCYlknjTTHqTJRJTdBnXqTKdyMPfRl+dawrURA7Reh0KoCzCtrhkGCIS99mLmYNGb3F2SCMfJH3F0Lg5miirjhxoigwB6pfUob7+ZN/7YR6oWsKaqNbCzpGt321p00wCCJDokdMNL8YlCBzwShFHsuySezef+m+B7BUOpBm1VGaQAO/hfDm1LcDx3nLaa3M/oPjjOn6DmlI7PUiT3Vewg9HdS4aim/GEYbvlLBcj3pkx7rE9W6WKb0MT/ELHZO4/OGFsw7TaUPx3wultcdoG316UUBs8LWIGUF5XZzf7QkidBsZj5AQTPXHqzYas=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <E36F4AA9F080DA43BB54B0F4670F3DAD@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 66bffc34-a0df-49b9-ad83-08d67fcdcaed
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jan 2019 18:25:16.1646 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3209
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02SbUhTURzGOffu5TpcHZe2P5aUo0GKzRekrCzrg7Y+KCEEEoNa8zbFOW13 igbB8AV8qWZpgpYoMilypFNLM3XmDFQYmgWJH6zp8KUiGeEkpq5td1Hffs9znv/5PwcORYoa uJFUvlZP67RKjYQn4LTkDOpOGPdlKBJstThlcY9J2fx6j3OBkJtMvwl5o8XGu0JcE6Tm0pr8 UloXf/6GIG++w0sWu4VlzydsfAOaEtahEApwMjTNdnLqkIAS4UkEUyNGPivcCN7UdP0T1VWT XFaYCBgcrQzMcHADCVbHVjDWSMCS20OwYhlBt3mT8K/h4XPgrB7j+jkcX4aWJ9s8P5NYCtaH hgAfwLGw+8rFYzPx4HbMESzLYLVm17eB8q2Tgs0i9ttCnAamvgXSzwgfhO0ZM8FeKYZFZzvB vg6DaWSWZDkCNlb2AhUi8C1Y9K4E/Wiw/3QEOgNuRGBp6AwOx4H9sxOxHAXz7fWIDVXwYfLX MOkvBDgTPBUi1p9DMNNm57IDsVC7tBAcLoCNp+PB/GHo781ibS8XetfCG1Bi63+9W30pEsdA z3A8a8vBvtlFsBwNTfUOfmvg+WEw3eLkdCDuCxTB0MzNQnVSkozW5asYpkgr09L6PuT7J+8G PAlDaGPt4gTCFJKECt9SGQoRV1nKlBdOIKBISbjw+6V0hUiYqyy/Q+uKrutKNDQzgQ5RHIlY uCMKU4iwWqmnC2i6mNb9PSWokEgD6k83jGnnGtO/JK8uuzJtI1tZ0yruMcmQ9faDUxV3n30K vfr6+OijgTVvVfm46uz8rtolbzZZYk4erdwz12aH9hpTPR/LErLFK5rs/Y8X2tbfo53B3FH1 TvO6RfpD/EEWVRKntoZ+05eeTpM2Gc9056Skjb48Ym7uCXHp76v0jITD5CkTY0kdo/wDmLA8 RSMDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/t2trg/x30TwkPoF54lWg2H9r_s37e7xqk>
Subject: [T2TRG] draft-hartke-t2trg-ciri-00 review
X-BeenThere: t2trg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IRTF Thing-to-Thing Research Group <t2trg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/t2trg>, <mailto:t2trg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/t2trg/>
List-Post: <mailto:t2trg@irtf.org>
List-Help: <mailto:t2trg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/t2trg>, <mailto:t2trg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Jan 2019 18:25:23 -0000

Hi,

I reviewed the CIRI -00 draft. Overall it looked very good to me but 
here's a few comments/questions.


2.1.  Options

    host.ip
      Specifies the host of the IRI authority as an IPv4 address
      (4 bytes) or an IPv6 address (16 bytes).

Do we need endianess considerations here? Or does CBOR take care of that?


2.2.  Option Sequences

     A sequence of options is considered _well-formed_ if:

Do we need the _emphasis_ here? Maybe in quotes since it's a defined 
term? Unless we want to follow the CDDL convention -- which perhaps 
makes sense. But then it's probably good to have a note along the lines 
of "New terms are introduced in _cursive_." in the terminology section.


     o  a "host.ip" option is followed by a "port" option;

Why is the port option mandatory? No default ports allowed?


3.  CBOR

       ciri = [?(scheme:    1, text),
               ?(host.name: 2, text //
                 host.ip:   3, bytes .size 4 / bytes .size 16),
               ?(port:      4, uint .size 2),
               ?(path.type: 5, path-type),
               *(path:      6, text),
               *(query:     7, text),
               ?(fragment:  8, text)]>

Isn't "text" too permissive type for most (all?) of the components?


Cheers,
Ari