Re: [core] CoAP option for Well-Known Uri-Path

Christian Amsüss <christian@amsuess.com> Mon, 20 September 2021 06:30 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 6EB793A11DF for <core@ietfa.amsl.com>; Sun, 19 Sep 2021 23:30:02 -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, 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 dAjRly5zIlrM for <core@ietfa.amsl.com>; Sun, 19 Sep 2021 23:29:58 -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 069853A11DD for <core@ietf.org>; Sun, 19 Sep 2021 23:29:55 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by prometheus.amsuess.com (Postfix) with ESMTPS id B94C4400AD; Mon, 20 Sep 2021 08:29:51 +0200 (CEST)
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 491CFD7; Mon, 20 Sep 2021 08:29:50 +0200 (CEST)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:d6f8:77c2:2f6a:14e7]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id AF4E010A; Mon, 20 Sep 2021 08:29:49 +0200 (CEST)
Received: (nullmailer pid 297219 invoked by uid 1000); Mon, 20 Sep 2021 06:29:48 -0000
Date: Mon, 20 Sep 2021 08:29:48 +0200
From: Christian Amsüss <christian@amsuess.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: core@ietf.org
Message-ID: <YUgqXNZLuTKuYkGP@hephaistos.amsuess.com>
References: <19899.1632082533@localhost>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="UVhvXOejyegZ0wd1"
Content-Disposition: inline
In-Reply-To: <19899.1632082533@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/JxDqIUBoYbd2hTIDcEoXmcRjLY8>
Subject: Re: [core] CoAP option for Well-Known Uri-Path
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: Mon, 20 Sep 2021 06:30:03 -0000

On Sun, Sep 19, 2021 at 04:15:33PM -0400, Michael Richardson wrote:
> Has anyone considered a CoAP-Option that would compress well-known prefixes?
> So, instead of:
>     Uri-Path ".well-known"
>     Uri-Path "brski"
>     Uri-Path "sen"
> 
> one could have:
>     Well-Known-Uri-Path [CBOR-int from to be created .well-known Registry column]
>     Uri-Path "sen"
> 
> Takes some coordination to get it deployed, but in some greenfields we could
> do this now.

I have a rough sketch, presented at [1]. In its minimal form it'd only
be a replacement for Uri-Path (ie. .well-known/brski/sen would need a
point just as any other brski path), but "prepend to actual path"
semantics are feasible at slightly increased processing effort for those
who use it.

Main stopper for further work since May was that I'd like to build it on
SCHC semantically, but if urgency comes to it, the option could just as
well be defined, and the SCHC semantics retconned into it.

BR
c

[1]: https://datatracker.ietf.org/meeting/interim-2021-core-05/session/core

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