Re: [core] draft-hartke-t2trg-coral-reef

Klaus Hartke <hartke@projectcool.de> Tue, 16 July 2019 17:50 UTC

Return-Path: <hartke@projectcool.de>
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 1785D120BB7; Tue, 16 Jul 2019 10:50:04 -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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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 Vt98vtUktMZZ; Tue, 16 Jul 2019 10:50:02 -0700 (PDT)
Received: from wp382.webpack.hosteurope.de (wp382.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8597::]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE21A120BB2; Tue, 16 Jul 2019 10:50:01 -0700 (PDT)
Received: from mail-qk1-f180.google.com ([209.85.222.180]); authenticated by wp382.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1hnRaQ-0001X7-Fj; Tue, 16 Jul 2019 19:49:58 +0200
Received: by mail-qk1-f180.google.com with SMTP id d15so15275986qkl.4; Tue, 16 Jul 2019 10:49:58 -0700 (PDT)
X-Gm-Message-State: APjAAAWqHU+P2JwhhMFly45cwilUf0S35ce7MOYKRGqpLRfueNfeURj1 Ep08xG8FjPu4I39J6YmDvOamzV/DtufAWDpRhjA=
X-Google-Smtp-Source: APXvYqxPLAQ7n7PYGaooddbBW3fkLYrYeJWHmoGj4RX7UGgjj70YAfEFhQZre9BNxpeT7BrUF6XnBS78sogYuC2sp0k=
X-Received: by 2002:ae9:eb87:: with SMTP id b129mr21649600qkg.453.1563299397451; Tue, 16 Jul 2019 10:49:57 -0700 (PDT)
MIME-Version: 1.0
References: <020801d53bf2$ae4353b0$0ac9fb10$@augustcellars.com>
In-Reply-To: <020801d53bf2$ae4353b0$0ac9fb10$@augustcellars.com>
From: Klaus Hartke <hartke@projectcool.de>
Date: Tue, 16 Jul 2019 19:49:21 +0200
X-Gmail-Original-Message-ID: <CAAzbHvbVxCw9aAUCW_h2inppzsDtJy0yRSSkHgeUR1iiQ8OKHg@mail.gmail.com>
Message-ID: <CAAzbHvbVxCw9aAUCW_h2inppzsDtJy0yRSSkHgeUR1iiQ8OKHg@mail.gmail.com>
To: Jim Schaad <ietf@augustcellars.com>
Cc: draft-hartke-t2trg-coral-reef@ietf.org, core <core@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-bounce-key: webpack.hosteurope.de; hartke@projectcool.de; 1563299401; bb1748fb;
X-HE-SMSGID: 1hnRaQ-0001X7-Fj
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/rVa_U-Dyg2DkSUshNgoxPtX7YNU>
Subject: Re: [core] draft-hartke-t2trg-coral-reef
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, 16 Jul 2019 17:50:04 -0000

Hi Jim!

> Looking at doing more implementation work on this

❤️️:heart:

> 1.  Looking at section 5.2.5 - "Create Resource Registration"  I am going to
> assume that you are keeping the same command line as what the current
> document does, but I wonder if a better way to do it would be to use the
> following as a resource
>
> #using <http:/coreapps.org/reef#>
> rd-unit <coap://[2001:db8:4::1]/> [
> ep "node1"
> domain "Floor 1"
> lt 3600
> et "LightBar"
> rd-item <light/left> [rt "light" ct 0]
> rd-item <light/middle> [rt "light" ct 0]
> rd-item<light/middle> [rt "light" ct 0]
> ]
>
> This has the advantage that all of the query parameters are moved into the
> content which is going to make things easier to have new unknown items show
> up.  I would think that it is just fine to restrict this to a single
> rd-unit, but for third party registration it might be reasonable to allow
> multiple rd-units to occur in a single body.
>
> 2.  A registration update could then have either the same as the content in
> 1 - or just an array of rd-items.  In the first case the attributes
> associated with the endpoint would replaced - except for the ep and domain
> attributes, in the second case just the items associated with it would be
> replaced.

Moving query parameters into the content to make it easier to have new
unknown items seems like a good idea.

I'd have a more general question though: What are really trying to
model in our resource directories? Is it really that interesting to
model CoAP servers and the CoAP resources hosted by them? Or wouldn't
it be much more useful to model light bulbs, light switches and living
rooms, or coffee machines, coffee orders and coffee cups -- how they
relate to each other and how they can be interacted with using CoAP?

(See <https://mailarchive.ietf.org/arch/msg/t2trg/Q186viXtj0-r9vWEge31yuUm35c>
for related thoughts.)

> 3.  If the CoRAL format is used, are the paging attributes still going to be
> supported to keep the document size down?   Does not say anywhere.

If I remember correctly, there was a discussion on this a while ago
that came to the conclusion that block-wise transfers might be good
enough here. If that's not the case, let's have another discussion.

Klaus