Re: [core] Comments about draft-dijk-core-groupcomm-bis-00

Esko Dijk <esko.dijk@iotconsultancy.nl> Thu, 17 October 2019 15:15 UTC

Return-Path: <esko.dijk@iotconsultancy.nl>
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 3715912004C; Thu, 17 Oct 2019 08:15:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.889
X-Spam-Level:
X-Spam-Status: No, score=-1.889 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=iotconsultancynl.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 tiqVrSNXxddN; Thu, 17 Oct 2019 08:15:31 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130125.outbound.protection.outlook.com [40.107.13.125]) (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 CB84612006B; Thu, 17 Oct 2019 08:15:27 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jGFSXlsdxksmMOIu78TW4VTgDlZl6oClYyv2nkM5p95JM5KTnEORk6BaaHb0AkvI0NmwaaPY6h9oHEDWPNEb5K/jXieRUkBy+opL3iJBZfHPg0t2spaUHRkn5lPV4tHYsNmWHhKdWnx95eb7N4VeBSxDWACrTgO4QPlX5tlbikMaFYWnaPvhWn79N4v1gBw3qkQ36vGnF0jBJpMXFkkESTppizXu4mBEXWWlnBoeXM8DI2+GvQ+7HJDEFd/tDqta/yk53rpPyePXx/jQmHMj1QnXCIe2fqEq8bfoL0Gvox0uabwlNN51gRZViysVI78BO6XsGO66qQjB5RHnjdzbOQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uHwsCIaas2td8+qLu3YXN5idtWSlin2kzyifIo9n+XE=; b=OmfEi84Vh8AwQn7GpCs0n4WpzUl/WWJnajqX2+yZeX1AnJd/uAWLMMaEmr4/iI6StA4+XpOOBQwxdWt/43PQsr7hdkVK0EPMInOnSsRuwGg39+lc9DTAoHChbxsHNMT/O/IMLgHWH3WeXJt8scGT/yB1utrCWh/gum8ntXtcq4qRNTX/RKU7U8GLKWLZOnruv6Jas3HHySiDhKU0o01qWamZTJZfZ3XxfXtukdBVw1pUt6sf63mvLKQjQTYpKLW+2ZklpxZ89XwImrORjIxl1/vHuOWORrMSVlvRYdJGuXiiHI0slctxYpLyml2bNUZGdTVL11OitVgmNgz7dsYkcA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=iotconsultancy.nl; dmarc=pass action=none header.from=iotconsultancy.nl; dkim=pass header.d=iotconsultancy.nl; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iotconsultancynl.onmicrosoft.com; s=selector2-iotconsultancynl-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=uHwsCIaas2td8+qLu3YXN5idtWSlin2kzyifIo9n+XE=; b=EZyh7KA7P8mAXy71vcNjI/wHlFoeYau2/JxWt+J78imgltYWxg7uX3uoBtRdJ8FRf65nk3KzpDQcxbMa6G2B0C/AX6xJu1gFNtU/rHM8Li7dGPR5qQjpvB33d0SaGBhUwh3RQ+7uPY1bBeeO9e6b8N2jE6AlAh3fVQKXXZp0/Vo=
Received: from HE1P190MB0284.EURP190.PROD.OUTLOOK.COM (10.160.71.29) by HE1P190MB0538.EURP190.PROD.OUTLOOK.COM (10.160.49.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.16; Thu, 17 Oct 2019 15:15:23 +0000
Received: from HE1P190MB0284.EURP190.PROD.OUTLOOK.COM ([fe80::104f:4380:78b6:ff62]) by HE1P190MB0284.EURP190.PROD.OUTLOOK.COM ([fe80::104f:4380:78b6:ff62%4]) with mapi id 15.20.2347.023; Thu, 17 Oct 2019 15:15:23 +0000
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: Jim Schaad <ietf@augustcellars.com>, "draft-dijk-core-groupcomm-bis@ietf.org" <draft-dijk-core-groupcomm-bis@ietf.org>
CC: "core@ietf.org" <core@ietf.org>
Thread-Topic: Comments about draft-dijk-core-groupcomm-bis-00
Thread-Index: AdUUNPLwUpqoK9aaSuCnTZIzn4sN5xvXIYFA
Date: Thu, 17 Oct 2019 15:15:22 +0000
Message-ID: <HE1P190MB0284B8741D207046880E8193FD6D0@HE1P190MB0284.EURP190.PROD.OUTLOOK.COM>
References: <017f01d515a6$ed172890$c74579b0$@augustcellars.com>
In-Reply-To: <017f01d515a6$ed172890$c74579b0$@augustcellars.com>
Accept-Language: en-US, nl-NL
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=esko.dijk@iotconsultancy.nl;
x-originating-ip: [2001:1c02:3102:5a00:482c:f8a4:50bd:1216]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: b93a0c53-3a55-4a1d-9671-08d75314d4e4
x-ms-traffictypediagnostic: HE1P190MB0538:
x-microsoft-antispam-prvs: <HE1P190MB05388F44136B48708995E6F4FD6D0@HE1P190MB0538.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 01930B2BA8
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(346002)(39830400003)(376002)(366004)(136003)(396003)(13464003)(189003)(199004)(52536014)(71190400001)(6116002)(5660300002)(14444005)(256004)(6246003)(64756008)(9686003)(2906002)(71200400001)(25786009)(508600001)(66556008)(30864003)(66446008)(66476007)(66946007)(76116006)(76176011)(99286004)(53546011)(7696005)(102836004)(6506007)(7736002)(305945005)(81166006)(446003)(2501003)(81156014)(229853002)(74316002)(55016002)(316002)(33656002)(110136005)(6436002)(8676002)(8936002)(476003)(4326008)(86362001)(44832011)(4743002)(486006)(186003)(46003)(11346002)(14454004); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1P190MB0538; H:HE1P190MB0284.EURP190.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: iotconsultancy.nl does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: or5+l7NRatsofM2xoii1eevHYraCur3KRPb5RpSyx+BomZQO92C6lx9cwJUcO1q8VXRsPj5OOax1axUcIG0BTzHjJVj82ltuZGf33gI9Sa9B6SIEIQkhWTNDSRYrmkcmtsbovkO87FGqSmCxzVYuCFU1Jsqf0dsNz04leOzOLNiX9HumEeKsb3tP2IyEj32MMZg9VRzYDmCqhFIITFq+ICUftJJYcblObR8E8iJ/O7stikcg+1RR1dDEqbRSsZGtJZJP83v1g57rhMaTZze9SYc82FfRjLUeawGeOP3Ps9ygapEYUzXfzOBOMvX1FQ4CXREn44yzKq+eFGIYJoCCxu6NXJyaWEDmqRCbPdR6l7qRUrXTyjNWDJZL4wrRWxR52Y367+tucXJsm8nlzJzpgNeYbQ1jgJHJ7v+Drzcrby8=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: iotconsultancy.nl
X-MS-Exchange-CrossTenant-Network-Message-Id: b93a0c53-3a55-4a1d-9671-08d75314d4e4
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Oct 2019 15:15:22.9118 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 58bbf628-15d2-46bc-820b-863b6774d44b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: +fcrnDuMcJcttUUXTpJc4meGZa0pmqcvr7V5bpu/1O5JzPvciN4xCVwrL6BgkMOvpneoQFgSmeN+168sBnH0e7e1qjrkDZSfsURirEbKjLE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1P190MB0538
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/qB6e7wg3CC75yQMWGAmnp2DGiYg>
Subject: Re: [core] Comments about draft-dijk-core-groupcomm-bis-00
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 17 Oct 2019 15:15:35 -0000

Hello Jim,

Thanks again for your review. Below the responses of the groupcomm-bis authors ("[GC]") on your review comments. Some of these were already addressed in the -01 version. Others will be worked on for the -02 version.

Esko

-----Original Message-----
From: Jim Schaad <ietf@augustcellars.com> 
Sent: Wednesday, May 29, 2019 00:45
To: draft-dijk-core-groupcomm-bis@ietf.org
Cc: ace@ietf.org
Subject: Comments about draft-dijk-core-groupcomm-bis-00 

Comments on this draft.

1.  I have an existential problem with this document.  This is a standards track document that is claiming to do an update to an experimental draft.
However, this is something that I would not expect to be done and it is not clear just what the updates to that document are and how one would make
edits to that document in order to apply the updates.   My general
expectation for an experimental document is that it would be 1) declared a failure and killed, 2) declare a partial success and updated for a new experiment (and thus a new experimental document) or 3) declare a resounding success then replaced with either a standards or information document.  

[GC] After some discussion this was now resolved in -01 by obsoleting RFC 7390. Any relevant content that needs to be kept will be copied over into the new draft.

2.  You are claiming to update RFC 7641, but it is not clear to me what is being updated and just what the implications of doing this update are.  As an example of the types of thing that should be clarified are:
*  If a server does not return a response, should it setup to do a later observe operation?

[GC] The specific update to 7641 will be written more explicitly in -02. If a server does not return a response due to an error status in the request, then the server will not add the client to the observers list following RFC 7641. This case is not specified in our draft currently; this seems already covered by 7641.
If the server suppresses the first success response 2.xx ; and then adds the client to the observers list - that would be possible per the current text ,but strange. If a client wants to observe a resource value then the server better not suppress the response with that value. (This could be something to add).

*  More information on how correlation should be done with responses.  As an example, if you do unary observe and the response is routed through a proxy, there are no problems as long as the responses are not later re-routed through a new proxy.  However for multicast, if you have two different servers on the far side of a proxy how does one distinguish between the two of them if everything is coming through a single proxy?

[GC] The use of a proxy is now described in -01, section 2.2.3. (Independent of whether an Observe option is included or not.) Current statement is that a proxy SHOULD NOT process a multicast CoAP request due to these issues, unless a specific set of proxy capabilities can be ensured.

3.  The introduction does not acknowledge that the same thing can be done via pub-sub.  It is ok to declare this out of scope but it needs to be done in up front in the introduction (and probably also in the abstract).

[GC] The scope section 1.1 now mentions pub-sub, in -01. The abstract already mentions the UDP/IP-multicast transport scope so there's no need to list other approaches there that are not in scope.

4.  I am not sure that it makes sense to say one should be familiar with terms from Group OSCORE as one would expect this to be from the general to the specific for terminology not the other way around.

[GC] We have removed such a reader requirement.
In fact, before current Section 4, the only related terms used in the text are: “security context to decrypt and/or verify group messages”, in current Section 2.1.1;  “OSCORE group” and “cryptographic material”, in current Section 2.1.4. It should be fair to expect any potential reader to grasp them for understanding that section.

5.  In section 2.1.1 - you should state that the centralized directory would be pre-configured in the device.

[GC] In -01 we have moved the use cases to Appendix A; and added to A.1.1 this: “This requires that the address of the central directory is either preconfigured in each device or configured during operation using a protocol.”
(For example, draft-resource-directory defines the RDAO option to distribute an RD address via ND data.)

6. In section 2.1.1 - Do we have any set of properties that are commonly defined for doing this?  Services in the form of resources are easy to understand but I don't know how to do this easily.

[GC] In -01 some pointers to relevant specifications are added; RFC 6690/7252. Using CoRE Link Format attributes a single resource can be hosted on a CoAP server that represents the device, i.e. a single service which provides descriptors for the hosting device itself. It could be a “root” resource that has specific services of the devices as sub-resources. How this is exactly chosen is currently not defined by IETF; each compatible ecosystem of connected IoT devices could have its own method.

7. In section 2.3 - It would make sense to distinguish between the cases of announcing a software update is available and actually distributing the software update by multicast.

[GC] In -01 the following was added:
   Prior to multicast software update, the group
   of recipients can be separately notified that there is new software
   available and coming, using the above network-wide or group
   notification.
The phrase “above … notification” refers to the new use case A.2.4, “Network-wide / Group Notification”. Now the notification could also be sent by unicast to target devices, but this is not mentioned currently.

8. Section 3.1.1 - It should potentially be stated here, but definitely somewhere that for non-secure groups membership in the group is defined by an endpoint and not by a central endpoint.  This is important in terms of somebody "attacking" a non-secure group.

[GC] In -01 Section 2.1.3 this is now stated:
   For unsecure group communication, any CoAP endpoint may become a
   group member at any time: there is no (central) configuring entity
   that needs to provide the security material for the group.  This
   means that group creation and membership cannot be tightly
   controlled.

9.  Section 3.1.2 - It would make sense to point to group naming as part of a directory as well as being for DNS.  

[GC] Do you mean to include a reference to for example draft-ietf-core-resource-directory (Appendix A)? This describes registering groups including group name as RD entries. In -01 Section 2.1.2 this reference is now included. Perhaps the text should be more specific about the format of the group name that RD uses.

10.  Section 3.1.3 - One of the things that I had a problem with when implementation group broadcast was trying to decide which of the different local groups should be used for an IPv6 multicast address.  A number of these different groups are defined for CoAP and a discussion of the differences or a pointer to the differences would be useful.

[GC] Do you mean here the choice of different IPv6 scopes for a given multicast group ID? There’s a choice between link-local, realm-local, admin-local, site-local or global depending on the scope/propagation requirements. This choice needs to be made for application groups (like ff1X::Y) as well as for the general “All CoAP Nodes” address ff0X::fd that can be used for discovery. RFC7252 Section 12.8 states for the “All CoaP Nodes” address:
    CoAP needs the Link-Local and Site-Local scopes only
but I don’t think this is necessarily the case. For 6LoWPAN networks, Realm-Local is also useful. Admin-local can also be used in specific configured deployments. So we could add more discussion or guidelines for using the different scopes - would that be useful?

11. Section 3.2.1 - Another issue to highlight with tokens is that in the unicast case, the response is expected to come in on the same connection it was sent on.  Thus two different connections can re-use the same token without any problems.  That is not true for multicast as the connection it comes it on will, by definition, not be the one it was sent on.

[GC] CoAP defines a client as a single CoAP endpoint, so one client uses a single UDP source port to send its requests. (Sending on another port makes it another CoAP client, per RFC 7252.) So multiple CoAP clients (using different UDP source ports on the same host) can re-use the same token without any problems. Any CoAP response sent by a server goes back to the specific CoAP client that sent it.
We added some text in -01 section 2.2.1 about additional UDP port matching, but this needs to be updated since CoAP already solves it in the way indicated above.  The details may be not obvious at first due to CoAP’s definition of “client” which goes against the intuition that people have of a single client on a host that may use multiple UDP source ports.
So effectively the CoAP specified “only match on Token” for multicast means match both on Token and UDP destination port of the response. And the latter then allows Token reuse across multiple CoAP clients.

12. Section 3.2.1 - Might want to mention the use of Accept as one way to think about server response delay as you at least know that you are expecting a response from the server if you have received an accept.

[GC] This sounds like a new usage of Accept to tell the server “don’t suppress the response”. However the No-Response option in RFC 7967 can be used to indicate exactly this. Suppression of response only plays a role if there’s nothing of interest to return by the server (which may be a 2.xx without payload, or a 4.xx or 5.xx - “interest” is also depending on application context) .  The Accept option doesn’t work in the scope of these status codes, it tells something about content-formats so only scoped to the case that some content/payload is returned. It tells something about that payload and the preferred format. So seems not ideal as a way to control response suppression.
So with current defined specs, the server would by default return a response with a payload (conforming to the Accept Option if that was included in the request) if there’s something non-empty to return to the client. And a No-Response Option can be added to ensure that also empty 2.xx responses (e.g. a zero-length resource) or error responses are returned to the client. This is normally only done when the client knows through application context that the server could be suppressing , or is normally suppressing, these responses.

13. Section 3.2.3 - Need to talk about multicast messages, proxies and caching of results.

[GC] In the -01 update, we took over the RFC 7390 text on proxy use. That is a “SHOULD NOT” requirement on multicast operation by a proxy (see also a previous related reply)

14. Section 3.2.5 - Does RFC7641 define behavior about receiving a "duplicate" observer request?  Would you reply a second time or not? 

[GC] A duplicate observe request is handled using standard CoAP deduplication, that is, based on Message ID - defined for both unicast and multicast in RFC 7252. Now assuming that the request had a different MID: then in addition RFC 7641 (4.1) defines that a new request for a same resource, by the same client, using the same Token as an already active observe registration, does not lead to a new entry in the observers table. Rather, the existing entry is updated. Of course the response is sent again in this case with the latest resource value included, since a GET + Observe always has the same behaviour as a regular GET request.

15. Section 6.1 - next to last paragraph - /values does not/values, but does not/

[GC] Now fixed in -01, in current Section 5.1.

16. Section 6.2 - Should have a consideration about the speed of re-keying vs the frequency of joins/leaves.

[GC] We have added such considerations in -01, in current Section 5.2.1.

Jim