Re: [core] Aligning groupcomm-proxy and mutlicast-notifications

Esko Dijk <esko.dijk@iotconsultancy.nl> Tue, 17 November 2020 13:12 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 4B1093A104A; Tue, 17 Nov 2020 05:12:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=iotconsultancy.nl
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 D9U3hCQk__8W; Tue, 17 Nov 2020 05:12:00 -0800 (PST)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2108.outbound.protection.outlook.com [40.107.20.108]) (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 E58F93A1072; Tue, 17 Nov 2020 05:11:58 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e00DPMAqrlFJQJVS/74txC6uKHuoMu97n7zwl7/nNYsJmf5Ds4vBRPM7xzFfsZL5vUiS692FXJLbcbLWwhPsftHfwnC6jDtqYoymLJpdUJ4pLX0AvffJSA7klsqMUt1KuNVdtWsBZ5XIHdmkAx4iLsmDI5xDwK8x5mxyMWHXLj6x2ZLfa3BgHsHQVbH6m8tNDhpk4BDHF++uJ9QjAcNDckabKsVbyFzDANkMYdW3o7/etUc1IZV4MOsI1A2Ffu3W5aIFO8Ra5W7XjzGev4k94MwiIGCIxE+3EPmbqCGNRQZZ8H3njk/ClJ5bqjLeVEYYp2yBhfHMZS18b+qO4Q5Glw==
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=qHGjuILOyymcEvTGS14AKAi351E9SZPU0AVg7BDVaCY=; b=dFIiyVFAqlh3YzZd3AjrAtJU0/s6x+yyfceCfuGJFu0Pc+YzK3jaKSmxn0x3P2l31CIecLSCJlH3v64LBElg/5vig6S5XPhkxf2rgDK0cndc0D/MtmRGItQVBYk7REmfamchuVcKFWuQU4Sfjgp7FZThzbLrOVZEqziupbOh05/ahH3qxdHobNcsPvAYbCCp0XnEln4pKd4Q5O/b81r1YIZwdPJxp++hMRqfmd63Bk9s3M8KS64WHd5CKNvV+6f+NQCHUegLczHXc/GOQLrocWNkl+pXe3B21o2+GjVmzM0tu+8lfz6OrpNDfIo+ClKDERP3vWAi2RhkQLyIqdveVA==
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=iotconsultancy.nl; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qHGjuILOyymcEvTGS14AKAi351E9SZPU0AVg7BDVaCY=; b=OrTwBP98dLjWX+vYD8nvnCyfEdM35zrOqNLSwQn//zcwz2yIHwxW4cgzbnpbthDIh5Rsx7iHaLAEuVkgKVR1YdEduMIiLzdNUTtU0CyFqiMxByWclVgXMWwM/I3gjyoTgzUyS0jcfluvEY4B4HG5ij7vaQnTwQu+T4AC9e+vpjo=
Received: from AM8P190MB0979.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1d3::8) by AM9P190MB1123.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:271::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3564.25; Tue, 17 Nov 2020 13:11:55 +0000
Received: from AM8P190MB0979.EURP190.PROD.OUTLOOK.COM ([fe80::b0bf:bd8a:de8f:55fa]) by AM8P190MB0979.EURP190.PROD.OUTLOOK.COM ([fe80::b0bf:bd8a:de8f:55fa%5]) with mapi id 15.20.3564.028; Tue, 17 Nov 2020 13:11:55 +0000
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: "Christian M. Amsüss" <christian@amsuess.com>, "draft-tiloca-core-groupcomm-proxy@ietf.org" <draft-tiloca-core-groupcomm-proxy@ietf.org>
CC: Core WG mailing list <core@ietf.org>
Thread-Topic: Aligning groupcomm-proxy and mutlicast-notifications
Thread-Index: AQHWvMlxnySWq+fjv0Kz7WycfqkXoKnMRS9Q
Date: Tue, 17 Nov 2020 13:11:55 +0000
Message-ID: <AM8P190MB09799ECAA6ABAEA1056F9A67FDE20@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
References: <20201117100702.GA2838739@hephaistos.amsuess.com>
In-Reply-To: <20201117100702.GA2838739@hephaistos.amsuess.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: amsuess.com; dkim=none (message not signed) header.d=none;amsuess.com; dmarc=none action=none header.from=iotconsultancy.nl;
x-originating-ip: [2001:1c02:3103:f000:f468:4e0f:12c6:19f7]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 88d1dd61-efb1-4abb-525d-08d88afa5bb6
x-ms-traffictypediagnostic: AM9P190MB1123:
x-microsoft-antispam-prvs: <AM9P190MB112387E403798DAEA80573A9FDE20@AM9P190MB1123.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 0MTcjQsirf1XfB8UbUnjH8EatyYW/se6TjkzRr9c6ZIfmeO/CKvYrfKjXzJBfdF3rC33XqCDdGcfktTBYAaIKnpxaIUn/b02ptEG6UPQJi7sAQBtic4oygNu+uf1sxJ6KjNjKsimXI8e1qqqgJ4bydMi90Thy6C0zCwc1zV9K/717jmETQJfEllcqLDkFILf2qni18dz1/DDAk0yu/daEUzBP87odRBM0meugeBj2ks7Dsovg8hh5KMcPW2wJmTUM3+WCLd3XdxykZVAZoe1cncOdETcs0rz2W/LUsmqP1EG51ZJvHvoohui1z979v3ghlnLUrugElAiUWnbXSIeMvuh1XN2Okez7uh8mKGF20dHHwUCW1lu6j2IAYcKUIdch0TrzTs32Rr9dI/2phfGKw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8P190MB0979.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(376002)(346002)(136003)(366004)(396003)(39830400003)(33656002)(478600001)(86362001)(66574015)(83380400001)(55016002)(2906002)(53546011)(5660300002)(186003)(66946007)(66556008)(64756008)(76116006)(66476007)(52536014)(9686003)(66446008)(15650500001)(71200400001)(44832011)(6506007)(110136005)(966005)(316002)(7696005)(8676002)(8936002)(4326008); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: eQmmWA2DH7rMEksOIe9mSpFGvgcgPHYRNNs99dCP+epBBIn1a/fGTHVTa1etxz2RP/n0xfhgTzWNrBPVsUz5ojSG0o0iLvGCRAU6ViNORSOleHdlZp1XohT7mBfV+j1IdLMEJ3bfv7ZQoYcwS6FsIZQKmN73J9RX/lmzMlBkg4IvfAMSg49tftPcTkW+1BGt0FQ7m8KAkEsc3r7UKax+NcpDNBiDccXf0cD/CklHlv3EJ55gUrKdvqR0GYQONKaRtgUlMFSAgdq4HhuLix0meupNQZv0S599H6pU54f1V1KJExemXmH0XaiaG8JnNntBw/cn7npLn/hPGAPk5s6FqwBTkZgGpkPteaGnEWCILjGrD5f0iQOEzjLri1MAoFxE3GQLs86H9hRQ1O2klT60pRw9Fz2ifXm97HZ2vrOP+Kfchkfj2nfUFTuzYLj4X58c3jykTgqlkUSAyl8lz6Vd635rhnOL8n5d08bfeOiDbJN4hnzsU3jeefPuELph9U1uudisrX6z2r8Ncn5NquRczKt+Qq/N3rLtb5Ti+0DdBzek6t+Ua7UL6hDpSIv8X+scecWJbD8J7fRwok2FzDtwoRAGKVZChTZiwqKcfZPLsARqPZw/Blrz2XHYyerO+kbgOhagn+RKrOvpcCzsk2Cf7z20eb4FJ1ENGTTBP3sCcy0SKK4kwsXcHwkqbeMb8a8Dmlr1zMhoVX5woqE8yWPzgw==
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-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM8P190MB0979.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: 88d1dd61-efb1-4abb-525d-08d88afa5bb6
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Nov 2020 13:11:55.7111 (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: ZZO7YZnuXNoT4voqc4Cy9IrfnlD0k3hbLyIVUQ9UL+LfsF3OMSgSdMAcDKtN1bab5M2kObm+gOipOzde6eKXW8EPX25ALezqL43vuDc4Zng=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1123
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/Roc9_CIGwupJHJvsS2UMjgMxk2A>
Subject: Re: [core] Aligning groupcomm-proxy and mutlicast-notifications
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: Tue, 17 Nov 2020 13:12:02 -0000

Hello Christian,

Yes there's some similarity in the options. In draft-groupcomm-proxy only a forward-proxy is considered, which means the client is explicitly aware of the protocol used by the proxy. (Encoded in either the Proxy-Uri or Proxy-Scheme option.)
For this reason there was no need to include scheme information in the Response-Forwarding option as the client would already know this.

In case the scheme information is encoded in a compact form (e.g. a single CBOR uint as in multicast-notifications) it could still be included in the Option format I think, if that would help the alignment and re-use of the Option for multiple use cases.

Reverse proxies might also be considered for groupcomm-proxy; see also Section 8.4 in RFC 8075. Thinking out loud, there could be a proxy server that is designed like this:
* regular resources /resm maps to a multicast CoAP request being executed
* client that invokes a method on /resm without using 'Multicast-Signaling' Option gets an error back and a 'Multicast-Signaling' Option in the response to indicate that this is needed.
* client can invoke a method on /resm with 'Multicast-Signaling' Option to let the proxy work. Multiple responses will come back to the client. 
* the proxy may have selected the multicast group to send to by itself, based on choice of /resm by the client.

Or a variation on above:
* proxy selects the multicast group and resource based on the URI path, i.e. it is embedded in the URI, similar to Section 5 of RFC 8075 .  This can work towards HTTP clients but also towards CoAP clients.  (For the latter: if for some reason they can't use the forward-proxy function of CoAP e.g. because their library / API doesn't support it.)

Esko

-----Original Message-----
From: Christian M. Amsüss <christian@amsuess.com> 
Sent: Tuesday, November 17, 2020 11:07
To: draft-tiloca-core-groupcomm-proxy@ietf.org
Cc: Core WG mailing list <core@ietf.org>
Subject: Aligning groupcomm-proxy and mutlicast-notifications

Hello Marco and Esko,

from today's CoRE meeting I've seen that the Response-Forwarding option
has a similar structure as multicast-notifications' tp_info /
Listen-To-Multicast-Responses option.

Both share that they encode a host address (and possibly port) that
isn't typically a name but really an address, and that the underlying
protocol may not be fully understood by the client behind the proxy.

The latter is not in groupcomm-proxy as it is now, but may make sense:
All the client needs to know is that the host of the resource *is*
actually a multicast address, not how that precisely works. (It may even
take that information from somewhere else if the authority component is
a host name which the client can't resolve). What makes this a bit
tricky is that we don't have any other multicast-capable transport, but
I imagine we could have.

A related component that could play a role in the alignment is how the
address is then encoded when contacting the host directly through the
proxy. Unless the proxy is reverse (which is AFAIK not discussed at all,
and may be worth discussing on its own), if the client still wants to
use the proxy, it needs to set Proxy-Scheme: "coap" and Uri-Host:
"2001:db8::1" from the data received as srv_info =
[#6.260(h"20010db8...1")]. The information that goes into Proxy-Scheme
would currently be hardcoded; if something like multicast-notifications'
tp_info is used, that would be looked up from there. (Granted, when
follow-up requests are used, even a client that knows the tp_info is
mapped, but at least that could be an easy extension).

Anything we come up with here that works for both our use cases might
also be suitable for CRIs[1], which could then be a reusable component
in converting back and forth between (Proxy-Scheme, Uri-Host) and
something that contains binary IP addresses.

BR
c

[1]: https://tools.ietf.org/html/draft-ietf-core-href-03

-- 
To use raw power is to make yourself infinitely vulnerable to greater powers.
  -- Bene Gesserit axiom