Re: [core] Fwd: New Version Notification for draft-djamaa-core-proactive-rd-discovery-00.txt

Christian Amsüss <christian@amsuess.com> Tue, 09 April 2019 09:41 UTC

Return-Path: <christian@amsuess.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 0AF8C1203CD for <core@ietfa.amsl.com>; Tue, 9 Apr 2019 02:41:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 JELvod5LN9kw for <core@ietfa.amsl.com>; Tue, 9 Apr 2019 02:41:25 -0700 (PDT)
Received: from prometheus.amsuess.com (alt.prometheus.amsuess.com [IPv6:2a01:4f8:190:3064::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 49B031202DB for <core@ietf.org>; Tue, 9 Apr 2019 02:41:25 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by prometheus.amsuess.com (Postfix) with ESMTPS id 40C1743819; Tue, 9 Apr 2019 11:41:23 +0200 (CEST)
Received: from poseidon-mailbox.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 1BA0026; Tue, 9 Apr 2019 11:41:22 +0200 (CEST)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:8877:7422:b795:852a]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id AF55874; Tue, 9 Apr 2019 11:41:21 +0200 (CEST)
Received: (nullmailer pid 349 invoked by uid 1000); Tue, 09 Apr 2019 09:41:13 -0000
Date: Tue, 09 Apr 2019 11:41:13 +0200
From: Christian Amsüss <christian@amsuess.com>
To: Badis Djamaa <badis.djamaa@gmail.com>
Cc: ali yachir <a_yachir@yahoo.fr>, core@ietf.org
Message-ID: <20190409094112.GA15632@hephaistos.amsuess.com>
References: <155413839109.17114.2318273093661309081.idtracker@ietfa.amsl.com> <CAPm4LDSHAPZ+9OeRD0tZbLK2MNpdcHnAv+pgfS159xr=pMFHxg@mail.gmail.com> <20190402054015.GA22410@hephaistos.amsuess.com> <CAPm4LDSgrrGi_i4u7nC_QB6NZtm=hi3GtmofJX7qhtdHW1knzQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="45Z9DzgjV8m4Oswq"
Content-Disposition: inline
In-Reply-To: <CAPm4LDSgrrGi_i4u7nC_QB6NZtm=hi3GtmofJX7qhtdHW1knzQ@mail.gmail.com>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/qcxZy3269b-kwECZvomItgBF6PI>
Subject: Re: [core] Fwd: New Version Notification for draft-djamaa-core-proactive-rd-discovery-00.txt
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, 09 Apr 2019 09:41:28 -0000

Hello Badis,

some replies inline:

On Tue, Apr 02, 2019 at 08:42:19PM +0200, Badis Djamaa wrote:
>  The text in the RD draft seems to indicate that the "(6LBR) can act
>  as a resource directory". Thus, the 6LBR address can be announced in
>  the ABRO and confirmation of RD function can be done by unicasting
>  "coap://[6LBR]/.well-known/core?rt=core.rd*".

That is exactly how contacting an RD via the 6LBR works; however, the
6LBR may only host the .well-known part of the RD but not the
registration and lookup resources. (This comment's main purpose was to
highlight alternatives to the "inconvenien[ce] of imposing that the RD
be physically integrated" with the 6LBR.)

>   Otherwise, how would the RD be announced to the 6LBR (not mentioned in
>   the RD draft )?

That is out of scope for the RD document, but I'd assume it would happen
about the same way the 6LBR is configured to send ND options, or how a
DHCP server is configured to send a particular option.

>    In the current version, the rd template value may be assumed a
>    default location, for instance, "core-rd". The Location-URI
>    Template would be then /core-rd/ep where ep comes from the RD's
>    "ep" attribute contained in the registration request, which is
>    unique per RD. Another possibility is to locate the posted RD
>    resource under well-known/core/ep at each device.
>   What is your take on this?

Anything outside /.well-known/ should not be fixed by specifications
according to RFC7320.

I don't have any concrete suggestions yet as to where those updates
should ideally go to.


> * The DA generation process looks like every device is supposed to be a
> >   simple RD (that may be only capable of accepting a single
> >   registration, which is that of the actual ID), that is then
> >   replicated.
> >
> >   Maintaining such replication seems to me to be quite a task for small
> >   nodes, especially if they're supposed to use the registration update
> >   interface and thus remember locations for each sub-PRD they registered
> >   to (though I'm not sure what is intended here, "SHOULD only contain
> >   the content and parameters that have been changed" seems to imply
> >   registration update, while 4.1.1 describes the registration interface
> >   which can't rely on previous registrations).
>
>   True, but DA is only generated by the RD and forwarded using CoAP Group
>   Communication. Devices do no replication tasks. Also, very
>   constrained devices (section 5.2 of RD), may simply ignore the
>   received DA (see section 3)

OK, that was not fully clear to me before, especially with the open
question about the registration location.

>   Also, the current version of PRD does not use a separate resource
>   update interface. Both the first registration (which doesn't rely on
>   previous registrations) and periodic updates sent by RDs (relying on
>   previous registrations) use the registration interface. The
>   difference is that in the latter, the optional unchanged parameters
>   and payload are not POSTed. Processing of the received DA, for both
>   cases, is specified in section 4.1.2.

As this is all intended for multicast and nodes joining the network, how
can there be a difference between a first registration and periodic
updates, which may arrive at devices that haev not seen the first
registration?

> >   The document may benefit from exploring alternatives here (even if
> >   only to confirm the conclusion that the approach taken is the right
> >   one), like using the Simple Registration interface (would answer the
> >   question ad 4.1.1) or setting the announcements up as nontraditional
> >   responses[1] (eg. notifications about an unspoken request to GET
> >   /.well-known/core?rt=core.rd. I can't tell whether that'd even be a
> >   good idea, that's yet to be seen).
>
>   [...] Nontraditional Responses (NR) need the devices to be aware of the RD
>   location.

Not necessarily; the NR could contain all the necessary request details
as in [1].

[1]: https://tools.ietf.org/html/draft-bormann-core-responses-00#section-2

> > * [...] whether there is anything in particular about RD announcements
> > in it as compared to general link announcments.
> 
> Thank you for this suggestion, we will consider it in future versions. Can you
>  please indicate some key services that need to be announced.

That very much depends on the particular use case, but if there is
anything that most devices joining the network would query right after
having discovered the RD, that would be it.

For example, in a setup that uses tiloca-core-oscore-discovery[2], it
might make sense to not only send the RD's data but also the links to
the most frequently joined join resources. (Not that the frequency of
group members joining would be likely to warrant this, but if it were
frequent enough that proactive-rd made sense, sending those links to
join resources proactively would just make as much sense.)

[2]: https://tools.ietf.org/html/draft-tiloca-core-oscore-discovery-02

Best regards
Christian

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