[core] Re: Review of draft-ietf-core-coap-pubsub-16
Jaime Jiménez <jaime@iki.fi> Tue, 04 February 2025 15:48 UTC
Return-Path: <jaime@iki.fi>
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 7429CC14F68F for <core@ietfa.amsl.com>; Tue, 4 Feb 2025 07:48:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.123
X-Spam-Level:
X-Spam-Status: No, score=-1.123 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NEUTRAL=0.779, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=messagingengine.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AHEfyKSY7DaL for <core@ietfa.amsl.com>; Tue, 4 Feb 2025 07:48:17 -0800 (PST)
Received: from fforwardh-a3-smtp.messagingengine.com (fforwardh-a3-smtp.messagingengine.com [103.168.172.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 631D1C14F61C for <core@ietf.org>; Tue, 4 Feb 2025 07:48:16 -0800 (PST)
Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfforwardh.phl.internal (Postfix) with ESMTP id A781E29202A6; Tue, 4 Feb 2025 10:48:15 -0500 (EST)
Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Tue, 04 Feb 2025 10:48:15 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1738684095; x=1738770495; bh=Z8rEOd3qAplwctotpB2vCc0QAJHXbHlpDAP iRa+AguY=; b=B101qhu2d95OjUkCKyaQGlyAxk0Jc9VIzpd7WUlnI2P0hvu4KH0 zQfoYSptPI6KW7yCk0ivBK1p0ShHJU8QXogZIrvTk6+SACKyBtxDVIQ+ExTlkuiY w8tdXyq6x/fAsAiVP63Rr0A3444TqhGsj9N5BWkdN/uDgkIQCdOtV0xqA9jFUG6Z t4oSI+ce05K/8ltgkeMZcHwc865gq0zNJclCIt3PVmdond0aFFEWwwWaWZaP/Ru7 iBeDnbXCfu/KXIAL4eOBL0XgG/ZBgwWICw3MXtE3KfsUSabXc/xZVbJES3dVqrG1 3JIXp4ODc9IZMncity64hPzUd27icEsObfA==
X-ME-Sender: <xms:vzaiZ7coLdujHUBFCbcMv8c9Fe-9rSBvYQNdZbSEMcMIksLU1bga7w> <xme:vzaiZxPceGcZkyR7sRyXP0fFWgo9XegAJf4MQwvYmh2NzG2G7Zv1jn4Y50njmIkpj 7NCsCHXywi1ekfcTQ>
X-ME-Received: <xmr:vzaiZ0geE_cllebWvl_rsfxGE1vc8Wofc4OQ7Yj-QKT20KVRTq2EXqjKWiNKvDqnDi-IbhoO-jaAdCvUSlw5YmVFklAhxk0l1sI>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvtdelvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenogfuuhhsphgvtghtffhomhgrihhnucdlgeelmdenucfjughr pegtkfffgggfuffvfhfhvegjsegrtderredtvdejnecuhfhrohhmpeflrghimhgvucflih hmrohnvgiiuceojhgrihhmvgesihhkihdrfhhiqeenucggtffrrghtthgvrhhnpeehuddt gfefveehteekgfeikeffteekvdeifeekvdefgfeggfefffeuteekteduvdenucffohhmrg hinhepghhithhhuhgsrdhiohdpihgvthhfrdhorhhgnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomhepjhgrihhmvgesihhkihdrfhhipdhnsggprh gtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegtohhrvgesihgv thhfrdhorhhgpdhrtghpthhtohepvghskhhordguihhjkhesihhothgtohhnshhulhhtrg hntgihrdhnlh
X-ME-Proxy: <xmx:vzaiZ88AnP-lOYoNPGw8AlkDVNzOgVIxB-WXNk7AeMIfFNB_H_6BbA> <xmx:vzaiZ3sWPnvqLjZw5HQYTFg_4h1sGIvo9VKDGZtRecRg7F1PRuZTUg> <xmx:vzaiZ7Gw7CVIsTft9kMap0EItnmQDHFca6PXLPL-XhGCRqzrOfAllw> <xmx:vzaiZ-PST6BCjTKWmPKTJuOPJqce70y-yM3wTFRAsJL-hN5DkBTuGA> <xmx:vzaiZ4OJaUXu6MKC1p0B3y7gSS3GCRr8_FyXrT5TdeCMOWeRfWBwNA> <xmx:vzaiZw5YidSgoK-9t0EXGd0LjEdMdZPR4ivmk29xkS8uU8s6cpSKaqInT4BS>
Feedback-ID: iabf94414:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Feb 2025 10:48:14 -0500 (EST)
Content-Type: multipart/alternative; boundary="------------7hhpGbH1WB0fv0HAb0rsWKLK"
Message-ID: <f551ca28-4f36-4a7e-817f-887a8adac674@fastmail.com>
Date: Tue, 04 Feb 2025 17:48:12 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: core@ietf.org
References: <DU0P190MB19784E3915EF205FF25D5179FDF52@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
Content-Language: en-US
From: Jaime Jiménez <jaime@iki.fi>
In-Reply-To: <DU0P190MB19784E3915EF205FF25D5179FDF52@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
Message-ID-Hash: E5NR6T6Q75V6CILKJB2XTKD7KNPSHCCL
X-Message-ID-Hash: E5NR6T6Q75V6CILKJB2XTKD7KNPSHCCL
X-MailFrom: jaime@iki.fi
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-core.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [core] Re: Review of draft-ietf-core-coap-pubsub-16
List-Id: "Constrained RESTful Environments (CoRE) Working Group list" <core.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/TlSUkG7PaenaIrgy3hB7xnDhAtw>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Owner: <mailto:core-owner@ietf.org>
List-Post: <mailto:core@ietf.org>
List-Subscribe: <mailto:core-join@ietf.org>
List-Unsubscribe: <mailto:core-leave@ietf.org>
Thank you Esko! * *I tried to address your review in the current editor version which I plan to upload as v17 https://core-wg.github.io/coap-pubsub/draft-ietf-core-coap-pubsub.html* 1. consistency of terminology - variations of a term are often used. Should we try to unify that? This makes reviewing and proposing text updates easier. Is there a reason to keep both the terms "topic resource" and "topic-configuration resource"? It can be confusing at times. For example I couldn't find "topic resource" in figure 3. If there is no reason to keep both terms, we could use the shorter "topic resource" only. Whatever the outcome, we also need to add "topic resource" to the Terminology words list I think. Going forward, I will assume the spelling as listed in the Terminology section will be the preferred spelling of terms, e.g. “pub/sub” instead of “pub-sub” and “topic collection” instead of “topic-collection”. * Good point, "topic resource" and "topic-configuration resource" are used interchangeably. Figure 3 uses topic configuration resource as term. As long as people understand that topic resources are used for configuration and are not the thing you subscribe to (that is topic-data) I would be happy to use "topic resource". We can simply use "pubsub" but I think "topic collection" makes more sense than the dashed one. Unless someone has a better suggestion I will also leave the following: - "CoAP Pubsub topic configuration Parameters" IANA registry - "core.ps.conf" for the topic resource. * 2. CBOR RFC terminology should be added as ‘required knowledge’ in the Terminology section including link to the CBOR RFC. * Do we use RFC8949 terminology? We use the word "encode" but not "encoder". In any case we also have a normative ref to STD94 already, is that not enough? *3. Section 2.3.1 example discovers an unsecured broker - this goes against document's own recommendations? Let's change to a secured (coaps) broker being discovered – to show the typical case. *should be coaps, good catch! * 4. Section 2.3.4 example: What use is discovering the topic-data resource in this way? It can't be determined based on this result, which topic(s) these resources are linked to. It is confusing - either remove the example or explain why/when used. (Moving out to an Appendix is also an option if this discovery is typically not used but still good to show for some reason.) * Here I am thinking that links may contain other attributes that could be of use to better understand the type of topic-data you can subscribe to. For example in IANA you have resource types that provide more information like "rt=oic.d.switch" and the like that could be used to further filter down relevant data sources. I would prefer to keep it there for the doc structure and readability but I can move it to appendix if you still think is not relevant. * 5. If the "initialize" field is set to "true" when creating a topic, the broker should create the initial published value. But it's too vague what this value is. I think the spec needs to define a formal default value for this, such that observing clients can clearly recognize this as the "initial published value". Two possible solutions are for example: 1) zero-length (empty) payload with Content-Format TBD606. This has the benefit that it for sure doesn't clash with any other C-Fs that publishers might use. 2) zero-length (empty) payload without an explicit Content-Format. That is, a subscribing client would get this zero-length representation without an associated Content-Format Option in the CoAP resonse. This means “indeterminate” per RFC 7252 5.10.3. * I agree and I will add more details to the topic properties and to the creating a topic section. Case 1) does not apply to every topic-data, you can have ct=112 or others as well. So I would suggest to use option 2). * 6. Address the "TODO DELETE" item* I think I uploaded a 10 minute old version at the time to the datatracker by mistake sorry! https://author-tools.ietf.org/api/iddiff?doc_1=draft-ietf-core-coap-pubsub&url_2=https://core-wg.github.io/coap-pubsub/draft-ietf-core-coap-pubsub.txt Regards, Jaime On 3.2.2025 15.01, Esko Dijk wrote: > > Hello Jaime / WG, > > Here is a quick initial review of draft-ietf-core-coap-pubsub-16. I > plan to do a more complete review later on (Shepherd review), after > these first findings are addressed. > > My list of review comments: > > 1. consistency of terminology - variations of a term are often used. > Should we try to unify that? This makes reviewing and proposing text > updates easier. > > Is there a reason to keep both the terms "topic resource" and > "topic-configuration resource"? It can be confusing at times. > > For example I couldn't find "topic resource" in figure 3. If there is > no reason to keep both terms, we could use the shorter "topic > resource" only. > > Whatever the outcome, we also need to add "topic resource" to the > Terminology words list I think. > > Going forward, I will assume the spelling as listed in the Terminology > section will be the preferred spelling of terms, e.g. “pub/sub” > instead of “pub-sub” and “topic collection” instead of “topic-collection”. > > 2. CBOR RFC terminology should be added as ‘required knowledge’ in the > Terminology section including link to the CBOR RFC. > > 3. Section 2.3.1 example discovers an unsecured broker - this goes > against document's own recommendations? Let's change to a secured > (coaps) broker being discovered – to show the typical case. > > 4. Section 2.3.4 example: What use is discovering the topic-data > resource in this way? > > It can't be determined based on this result, which topic(s) these > resources are linked to. It is confusing - either remove the example > or explain why/when used. > > (Moving out to an Appendix is also an option if this discovery is > typically not used but still good to show for some reason.) > > 5. If the "initialize" field is set to "true" when creating a topic, > the broker should create the initial published value. But it's too > vague what this value is. > > I think the spec needs to define a formal default value for this, > such that observing clients can clearly recognize this as the "initial > published value". > > Two possible solutions are for example: > > 1) zero-length (empty) payload with Content-Format TBD606. This has > the benefit that it for sure doesn't clash with any other C-Fs that > publishers might use. > > 2) zero-length (empty) payload without an explicit > Content-Format. That is, a subscribing client would get this > zero-length representation without an associated Content-Format Option > in the CoAP resonse. This means “indeterminate” per RFC 7252 5.10.3. > > 6. Address the "TODO DELETE" item > > Regards, > -- Jaime Jiménez
- [core] Review of draft-ietf-core-coap-pubsub-16 Esko Dijk
- [core] Re: Review of draft-ietf-core-coap-pubsub-… Jaime Jiménez
- [core] Re: Review of draft-ietf-core-coap-pubsub-… Esko Dijk
- [core] Re: Review of draft-ietf-core-coap-pubsub-… Carsten Bormann