Re: [core] πŸ”” WGLC draft-ietf-core-coap-tcp-tls

Brian Raymor <Brian.Raymor@microsoft.com> Tue, 28 February 2017 01:39 UTC

Return-Path: <Brian.Raymor@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 A8220129471; Mon, 27 Feb 2017 17:39:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 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=-0.001, 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 g0lAo8ewcV6k; Mon, 27 Feb 2017 17:39:52 -0800 (PST)
Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0133.outbound.protection.outlook.com [104.47.40.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 25AE612944F; Mon, 27 Feb 2017 17:39:52 -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; bh=fut15zuYHvprkYnM/VbXO2UiRIcA5gRCqmDSUXqW1jY=; b=f5dLCe/1Res6BzkDxDlfBGy5X7AWwNpj8R/e+AyvY08YfMLvb8ca+WFUfK5fgZxkKgB+q4WHQGCF3BjFuAHzdkZsgTDMEGkDBs9/TvG8hheNqHAcBgRGyIgi/p5PgTifEk1qRe7sG/p0FOi3FeUMKXAe9XOxG3UlCDnAr47h7Cc=
Received: from CY1PR03MB2380.namprd03.prod.outlook.com (10.167.8.6) by CY1PR03MB2380.namprd03.prod.outlook.com (10.167.8.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Tue, 28 Feb 2017 01:39:50 +0000
Received: from CY1PR03MB2380.namprd03.prod.outlook.com ([10.167.8.6]) by CY1PR03MB2380.namprd03.prod.outlook.com ([10.167.8.6]) with mapi id 15.01.0933.019; Tue, 28 Feb 2017 01:39:50 +0000
From: Brian Raymor <Brian.Raymor@microsoft.com>
To: "Dijk, Esko" <esko.dijk@philips.com>, "core@ietf.org WG" <core@ietf.org>
Thread-Topic: [core] πŸ”” WGLC draft-ietf-core-coap-tcp-tls
Thread-Index: AQHSi4yee9Z5uDeEu0iK64KUh2FUd6F9rjRA
Date: Tue, 28 Feb 2017 01:39:50 +0000
Message-ID: <CY1PR03MB2380CF66BE0E575AA969A5A283560@CY1PR03MB2380.namprd03.prod.outlook.com>
References: <A3E47BC7-5C17-4085-92DE-16BA2B60889B@ericsson.com> <7ecb932aad934f85bd8dbd81af48fd3b@AM3PR90MB0097.MGDPHG.emi.philips.com>
In-Reply-To: <7ecb932aad934f85bd8dbd81af48fd3b@AM3PR90MB0097.MGDPHG.emi.philips.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: philips.com; dkim=none (message not signed) header.d=none;philips.com; dmarc=none action=none header.from=microsoft.com;
x-originating-ip: [174.61.159.182]
x-ms-office365-filtering-correlation-id: 9aa58126-9d7d-457f-4194-08d45f7aafb9
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY1PR03MB2380;
x-microsoft-exchange-diagnostics: 1; CY1PR03MB2380; 7:Nw61j0m8/j54Hl+LovFI5bihJktL8u+ycCHpaYVOWhWz5Tg4zN+QUTBHq5Kyfcv2m1HwLXn+wp3CE6NltxM24M1I1GafefYm5+XQSj2hnEC+UJaSYGmo/vm71atX0qKervVTf7Zz0WC3seOF9F80Q9KW5Sd9vutBg4jIxtJXjo1hSQBjoyi142FrM0MMsb4q9IuuMkFzYNRfkVU5tmNuFeDehaJ86QWTL2V8QCUlUBkY+2KQWvBG0P7fD1PyICrN1asLYCZ3qDzrdcRD/TmHOzK1aI4cZwzCQ2UTpIqoZZn/9dlZ18v1rF7Cu3ouOUtNyif9xmr+wjDuEqd5ZDW19pm6lvSV4AWcE/6bhxn0prA=
x-microsoft-antispam-prvs: <CY1PR03MB2380DF79277D8A7FAB88404283560@CY1PR03MB2380.namprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(190756311086443)(158342451672863)(166708455590820)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(20161123558025)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:CY1PR03MB2380; BCL:0; PCL:0; RULEID:; SRVR:CY1PR03MB2380;
x-forefront-prvs: 0232B30BBC
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39410400002)(39860400002)(39840400002)(39450400003)(51914003)(3280700002)(10090500001)(122556002)(5660300001)(92566002)(53936002)(2906002)(10290500002)(4326007)(7736002)(8936002)(86362001)(86612001)(189998001)(229853002)(81166006)(106116001)(2950100002)(229383001)(3660700001)(76176999)(25786008)(230783001)(6436002)(66066001)(6246003)(33656002)(55016002)(6306002)(54896002)(54906002)(99286003)(5005710100001)(8990500004)(54356999)(38730400002)(77096006)(790700001)(2900100001)(6506006)(7696004)(3846002)(102836003)(74316002)(6116002)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR03MB2380; H:CY1PR03MB2380.namprd03.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY1PR03MB2380CF66BE0E575AA969A5A283560CY1PR03MB2380namp_"
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2017 01:39:50.3724 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2380
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/T-qBrHT5KO0ZUzNLvWwrbLRzTZw>
Cc: "draft-ietf-core-coap-tcp-tls@ietf.org" <draft-ietf-core-coap-tcp-tls@ietf.org>
Subject: Re: [core] πŸ”” WGLC draft-ietf-core-coap-tcp-tls
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
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: Tue, 28 Feb 2017 01:39:53 -0000

Thanks for the questions and feedback. Partial responses below.



** Questions

> β€’ The bi-directionality of connections is mentioned in the draft. Now suppose a CoAP client on host 1 opens a TCP connection

> (as a TCP client) to a TCP server on host 2, in order to send a CoAP request to it. Now the TCP server (host 2) at some point suddenly

> sends a CoAP request (acting itself as a CoAP client) to the TCP client (host 1). However, there is no CoAP server hosted on host 1.

> What should happen now? E.g. is the request simply ignored or is some kind of error message returned?

> β€’ Same question as above can be stated for TLS and Websockets. Is the behavior the same in these cases?

> β€’ Following the above, should the CSM message have an option to indicate a capability of "being a CoAP server" … ?



Carsten's suggestion on a private thread addresses this set of questions:

    "The intention is for the transport to be bidirectional. If there is a CoAP client, it is easy to have a CoAP server that 4.04s every request. Yes, that is worth making explicit."



> β€’ Page 20: Alternative-Address Option - the semantics of including multiple of these options is not defined. Can the receiver pick any of the addresses?

> Or does it need to try the first address first? And then keep trying all alternatives until one succeeds, or not?



Unless Carsten or Hannes (authors of draft-bormann-core-coap-sig-02) have a preference, I would suggest that the addresses are unordered (pick any).

Tracked in https://github.com/core-wg/coap-tcp-tls/issues/115



> β€’ Page 28, Section 6.5: is it correct to conclude that, for Websocket connections, the default Uri-Port value will be 80 if using "coap+ws" scheme

> with its default TCP port, and 443 if using "coaps+ws" scheme with its default TCP port? Just for my understanding.


It depends on the direction. As stated "The default value of the Uri-Port Option is the destination TCP port."



> β€’ Appendix A: Why is the update of Observe [RFC7641] done in the Appendix and not in a main section?

> There must have been a good reason to place it there; but it looks strange since it formally updates RFC 7641.



There was a desire to have a clean separation between the transport itself and the updates to RFC 7641. Carsten suggested

collecting the changes in an Appendix which was adopted. My original preference was to separately update RFC 7641.