[core] draft-ietf-core-resource-directory: discovering transport identifiers
Dave Thaler <dthaler@microsoft.com> Fri, 02 June 2017 16:58 UTC
Return-Path: <dthaler@microsoft.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 11F881293DA for <core@ietfa.amsl.com>; Fri, 2 Jun 2017 09:58:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.801
X-Spam-Level:
X-Spam-Status: No, score=-4.801 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham 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 2vmo-arhr-0h for <core@ietfa.amsl.com>; Fri, 2 Jun 2017 09:58:33 -0700 (PDT)
Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0112.outbound.protection.outlook.com [104.47.36.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 591EC127B57 for <core@ietf.org>; Fri, 2 Jun 2017 09:58:33 -0700 (PDT)
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; bh=8qA1SMdkgPPbjn8ApsxnSS170y+a9t1Ag4Vhh1JkUiE=; b=ReCsPQYTh/Jl3iiFKcV88mSXEg6bf1PEhNSCncBuD9h2bSLjIRsWPqUh+MPG4MDhEtrWQPwICXFunIHeeGVkZmDFAkF9WZ7n2FzGLVyS2NtgCfKHZEcznOtmxud3bHYLGBHfMovoekX5MaPSgb481vazHqyJJgVUFd8p2tBvWdk=
Received: from CY1PR03MB2265.namprd03.prod.outlook.com (10.166.207.17) by CY1PR03MB2265.namprd03.prod.outlook.com (10.166.207.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Fri, 2 Jun 2017 16:58:30 +0000
Received: from CY1PR03MB2265.namprd03.prod.outlook.com ([10.166.207.17]) by CY1PR03MB2265.namprd03.prod.outlook.com ([10.166.207.17]) with mapi id 15.01.1124.020; Fri, 2 Jun 2017 16:58:30 +0000
From: Dave Thaler <dthaler@microsoft.com>
To: "core@ietf.org" <core@ietf.org>
Thread-Topic: draft-ietf-core-resource-directory: discovering transport identifiers
Thread-Index: AdLbwOd4BHSZ8738QD+9ohmFokQkkQ==
Date: Fri, 02 Jun 2017 16:58:29 +0000
Message-ID: <CY1PR03MB22659420C1138FC53CB70D4FA3F70@CY1PR03MB2265.namprd03.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=microsoft.com;
x-originating-ip: [2001:4898:80e8:d::3fe]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; CY1PR03MB2265; 7:zd7E2y/5eNiaCd9ki+/9mpJGMH0ny4AvOrwlFnqxlJNGYnz34yWZ8aSUQVLT+2Z4tzVCblpeN2aLTonNeIjV98fdbeKcvmvgZEoiYGVFRV6r8Epun2/O49aI+lk+EQXF70ielBUI3FuoLP6pyG49ukv6X8mwYTJjZ/oJZlEPvlXfzzIiIRR67XyO+KFBzlCvQDIqIh0i3axObOv0DY3slznjrHs1iSV4V3Uhi+miQgt4rIAj0mBM8FfzwzUKLZj6W0QFyoyRD95Hdo5G6s7FJ1PCEr2k6PUPAIset6gwSjJosR8V6r0SvY4aeEkbTPK5hAwqvcrlYzrKcGJn4GI2X7qrmVeIbSllZd6SynJ0xKQ=
x-ms-traffictypediagnostic: CY1PR03MB2265:
x-ms-office365-filtering-correlation-id: ed104794-f422-4d89-d977-08d4a9d89865
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081); SRVR:CY1PR03MB2265;
x-microsoft-antispam-prvs: <CY1PR03MB2265802A7387CED362A0D938A3F70@CY1PR03MB2265.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(150554046322364)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(61425038)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(61426038)(61427038)(6041248)(20161123558100)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2265; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2265;
x-forefront-prvs: 03264AEA72
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39860400002)(39840400002)(39410400002)(39400400002)(39450400003)(1730700003)(230783001)(5630700001)(86362001)(33656002)(6916009)(6506006)(5005710100001)(2501003)(2906002)(5660300001)(8990500004)(68736007)(77096006)(189998001)(6436002)(7696004)(478600001)(14454004)(50986999)(54356999)(54896002)(2351001)(10090500001)(122556002)(38730400002)(10290500003)(6116002)(7736002)(55016002)(2900100001)(102836003)(6306002)(25786009)(8676002)(110136004)(81166006)(5640700003)(9686003)(3660700001)(53936002)(3280700002)(86612001)(8936002)(790700001)(74316002)(99286003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB2265; H:CY1PR03MB2265.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY1PR03MB22659420C1138FC53CB70D4FA3F70CY1PR03MB2265namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jun 2017 16:58:29.8532 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2265
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/EjLs9En7BScB2SaNkEe6VvdH2Lo>
Subject: [core] draft-ietf-core-resource-directory: discovering transport identifiers
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
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: Fri, 02 Jun 2017 16:58:44 -0000
Let's say a resource server exposes a "/sensors/temperature" resource it wants to publish in an RD. That resource is accessible over (say) the OCF protocol at the app layer. The server supports the OCF protocol over (say) some or all of: coap, coaps, http, and https (and I note that the draft explicitly allows for http in the last sentence of section 1). The server supports coap over some or all of: udp, tcp, and websockets. The server supports each of those over both IPv4 and IPv6. The server has multiple IPv4 and IPv6 addresses, e.g., on two different subnets, (and let's say the server has no resolvable DNS name, so it cannot put a hostname in a URI). So presumably everything needed to learn the protocol stack and endpoint identifier (e.g., port number, path, whatever) at each layer must be published in the RD. But the draft only mentions application/link-format and a single "con" URI which section 5.4.1 fills in with a coap URI. In contrast, draft-ietf-core-coap-tcp-tls-09 sections 7.3 and 7.4 implies that ws(s) URIs are required in addition in order to express that the coap URI is reachable via websockets. Section 7.2 of that draft doesn't even say how to express that it's reachable over TCP, nor does it explain how to know whether the port number is the UDP or the TCP port number (since they could be different), when the server supports both. As such, the RD draft doesn't seem to be sufficient to support multiple transports. And the same argument for why draft-ietf-core-coap-tcp-tls changed to not put the transport in the scheme would argue for the main "con" parameter to be, in my example, the "ocf:" URI (not "coap:") since coap and http are simply two transports that get to the exact same resource. It seems to me that to really solve the RD problem, you need a tree of con URIs, since it seems the approach is to have a URI for each layer of the stack, and a client has to be able to discover the entire stack. Am I missing something? It would be helpful to add a full example into the RD draft to show a registration for resource over multiple transport stacks. Dave