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

Dave Thaler <dthaler@microsoft.com> Mon, 21 January 2019 20:11 UTC

Return-Path: <dthaler@microsoft.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 380F112872C for <t2trg@ietfa.amsl.com>; Mon, 21 Jan 2019 12:11:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.554
X-Spam-Level:
X-Spam-Status: No, score=-6.554 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.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 YuYpoQ06YHx6 for <t2trg@ietfa.amsl.com>; Mon, 21 Jan 2019 12:11:21 -0800 (PST)
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-eopbgr780113.outbound.protection.outlook.com [40.107.78.113]) (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 EEFAD130FDC for <T2TRG@irtf.org>; Mon, 21 Jan 2019 12:11:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xGeXB6F/sV3xYbTeYNOJzWoClJ7nqfkto7Y7C2P+CyI=; b=aJ434SB5CsxxouxrKfZTFQIeAoLyMzyAVs3v4gMWWE+erB6ApZjS4ZxSaftsqPQtQMerDlGFjcOMp/cGmbSlfaMf75rd/oeGe8mT+S0118bcA6F7mZpuoYqONYKdtLpejGNysh/eMaXV0HnliGmdS6P3C4760uehOTb50D7rkHA=
Received: from CY4PR21MB0168.namprd21.prod.outlook.com (10.173.192.150) by CY4PR21MB0184.namprd21.prod.outlook.com (10.173.193.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1558.6; Mon, 21 Jan 2019 20:11:19 +0000
Received: from CY4PR21MB0168.namprd21.prod.outlook.com ([fe80::a170:a2b7:8ea1:b401]) by CY4PR21MB0168.namprd21.prod.outlook.com ([fe80::a170:a2b7:8ea1:b401%2]) with mapi id 15.20.1558.014; Mon, 21 Jan 2019 20:11:19 +0000
From: Dave Thaler <dthaler@microsoft.com>
To: Ari Keränen <ari.keranen@ericsson.com>, "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+7Ra8iqEKW6JRwQ
Date: Mon, 21 Jan 2019 20:11:19 +0000
Message-ID: <CY4PR21MB0168C83AF295761F73FCDF7FA39F0@CY4PR21MB0168.namprd21.prod.outlook.com>
References: <58aa0ae4-b3fe-abf7-9bda-4908ef0b3fd7@ericsson.com>
In-Reply-To: <58aa0ae4-b3fe-abf7-9bda-4908ef0b3fd7@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=True; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Owner=dthaler@ntdev.microsoft.com; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2019-01-21T20:11:18.0854603Z; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=General; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Application=Microsoft Azure Information Protection; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=04f88b43-f968-4329-b49f-0a56036ab66b; MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Extended_MSFT_Method=Automatic
x-originating-ip: [73.59.106.235]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; CY4PR21MB0184; 6:zoH9k5vJUc4YF5gHvZwcf84Hg+9vLV/wu8q/uQ9C9iPbQEu1471xsiBzbrfFge/Ci1Y/g8y2iYkSBonxB5eIfSzKAob3ryaLjK+P42fNNa18rYfEPXpAt3LbGsK4M4lc2a0sajCNCh4WUe7u40yeYCZFFcS/lQPuHVRfYgi6soZp/n2o+AtWYeT5zUbdgiMSWUTlfnFTF2wLSvYPGxjcTVthH6lFK4uhujVdY2KVEe0VysvNzX8ilCy4WlvOxJk1FWU1oC4MjYtULQ5HlVdVnJ2Q9Ik+O6M+qo1bOP7BaCnTRmSYnr2jpM2ZtO4ydIMo1xk8h99x+GhcB2UhoL63Tv1G4dMd9aHFl/YOZZSpiAU2GEBOYg9wCKcBNw4MxM2atlcdzCTJD11W8Xna3NAKh+jvSTzRExC+VojLDS0WAX6FGeQ/Qxd4ErVrs3Q8BPDz1iGLCPZAmrLpJxpZKiy3vg==; 5:ZWfu70oDFnXj3dGRJIqtF6MPUyOi4eJ7Vsg+RoIEEd3XgSazPRlpDccWY79szGyn6694dlaOF/K1n/1zOQsawMkWZN2w+DwsUukRlnEHeTpO/zegjBwKPAGAdXqfG5qarTdXB/qEWroyCRTuJvklP0MqUJ/lBMCJWvae+AXuMg8jjNepwCgA9hjAZYWx9tLjACQ3UfOyUevy/7XnZs9m/Q==; 7:UZIvBoPbfQlApTm9Yyyb7zYkhizTo/jI/IqBPotEtN0w4Y2bbEi/3sVRK84eeJpXxlU937X1ILfqgP6QA1C79SyoXqpEKP8IrLadb22eYA+cE/O+QqSAg5aIV4djQHHq6lRGYOf0ll/l/aXUkd5lfQ==
x-ms-office365-filtering-correlation-id: 185302ca-bf50-4ab2-69dc-08d67fdc9b5b
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7193020); SRVR:CY4PR21MB0184;
x-ms-traffictypediagnostic: CY4PR21MB0184:
x-ms-exchange-purlcount: 1
authentication-results: spf=none (sender IP is ) smtp.mailfrom=dthaler@microsoft.com;
x-microsoft-antispam-prvs: <CY4PR21MB01846E3EB564AD8C8CA551BAA39F0@CY4PR21MB0184.namprd21.prod.outlook.com>
x-forefront-prvs: 0924C6A0D5
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(366004)(376002)(136003)(346002)(396003)(13464003)(199004)(189003)(69234005)(43544003)(966005)(14454004)(186003)(110136005)(68736007)(229853002)(2501003)(76176011)(478600001)(66066001)(10090500001)(6506007)(66574012)(53546011)(9686003)(10290500003)(71200400001)(97736004)(486006)(8936002)(71190400001)(476003)(446003)(81166006)(81156014)(8990500004)(6306002)(8676002)(11346002)(3846002)(55016002)(6116002)(25786009)(14444005)(256004)(2906002)(106356001)(99286004)(53936002)(7736002)(305945005)(7696005)(4326008)(105586002)(33656002)(102836004)(22452003)(26005)(316002)(86612001)(74316002)(86362001)(6436002)(6246003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR21MB0184; H:CY4PR21MB0168.namprd21.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: Rg22NfqccA+iLC9kUlAb1I1qoX1F6+tthsi051N7tALmLpF5tZT6eVgAfdQkMSkE8vgedPNEuqotBGmDg3xb3wkWa5dzb9MbtYQsihkBKRpHhextMdYZellQ8yg2mihm4kLAc8bPcOc5Hc+R2D+eiMbQE/v7dYk7AWaKJ/c7i8/qmYSLCVUL+ackhxgYCOHcxdQuvIJ/lfU4IPoBLICm8BJ6m8HXjkLIFjaM3DUTLJzhMn+mhYJSMl5EWDcKPipsEjiTqPNtiGCjHMTgFx4UHTrrvSSJCEtowhK11UoLQCpZAYOMkMGN6uHZMuiOONYMROp0rENX2GezcG2sDSw+JZri3TxQ7s6HNb8FwCqwI83u0Wh3Kh2LMO1aJbAUHxu9ZqQYQEIJCexQwG5EliHn8+lM/F7fJCnd6MYMqJ93fa0=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 185302ca-bf50-4ab2-69dc-08d67fdc9b5b
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jan 2019 20:11:19.4224 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR21MB0184
Archived-At: <https://mailarchive.ietf.org/arch/msg/t2trg/Ouc7etM0DSDeaVpRifs-p5aGkrs>
Subject: Re: [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 20:11:24 -0000

FYI, the IRI WG intended to update RFC 3987 and shut down because it could not reach
consensus on IRIs.  In particular, RFC 3987 does not match what major implementations
(i.e. browsers) actually do, and so there's a major incompatibility between current practice
and what RFC 3987 does.  There does exist at least one RFC 3987 implementation out there
in Windows WinRT APIs though, but I don't know if there's others.   In practice, the
recommendation from the internationalization community in the IETF tends to be to not
use IRIs.   That is, protocols should only ever put URIs (not IRIs) on the wire, and conversion
from internationalized strings to/from URIs is done at the UI layer.

With that in mind, the case for using IRIs (as opposed to URIs) in Constrained Restful
Environments seems to not have much real-world applicability since it goes against
the internationalization guidance.

It's fine for a research project, which T2TRG is allowed to do, but may not be very useful
in practice, from what I've seen.

Dave

P.S.: An example of one incompatibility between RFC 3987 and what is widely implemented
in browsers, is how percent encoding is interpreted.  In RFC 3987 it's percent-encoded UTF-8,
whereas in implementations it's percent-encoded in whatever the charset is of the document
(or whatever) you got the IRI out of, which may or may not be UTF-8.   Again this is just one
of many examples.

-----Original Message-----
From: T2TRG <t2trg-bounces@irtf.org> On Behalf Of Ari Keränen
Sent: Monday, January 21, 2019 10:25 AM
To: draft-hartke-t2trg-ciri@ietf.org
Cc: T2TRG@irtf.org
Subject: [T2TRG] draft-hartke-t2trg-ciri-00 review

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
_______________________________________________
T2TRG mailing list
T2TRG@irtf.org
https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.irtf.org%2Fmailman%2Flistinfo%2Ft2trg&amp;data=02%7C01%7Cdthaler%40microsoft.com%7C8840ed3d4dce47e1bc6208d67fcdd224%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C1%7C636836919304296169&amp;sdata=7HFctjFUzx0n8M03K7bSeWeFFYJ5TRpxINcWq%2Byadks%3D&amp;reserved=0