Re: [Cbor] Fwd: New Version Notification for draft-lenders-dns-cbor-03.txt

Christian Amsüss <christian@amsuess.com> Mon, 24 July 2023 10:28 UTC

Return-Path: <christian@amsuess.com>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2DFEFC15107E; Mon, 24 Jul 2023 03:28:38 -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_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 UvqfxpMjNoTs; Mon, 24 Jul 2023 03:28:35 -0700 (PDT)
Received: from smtp.akis.at (smtp.akis.at [IPv6:2a02:b18:500:a515::f455]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B2A5C15107C; Mon, 24 Jul 2023 03:28:29 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com ([IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd]) by smtp.akis.at (8.17.1/8.17.1) with ESMTPS id 36OAS94k078070 (version=TLSv1.2 cipher=ECDHE-ECDSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jul 2023 12:28:09 +0200 (CEST) (envelope-from christian@amsuess.com)
X-Authentication-Warning: smtp.akis.at: Host [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bd] claimed to be poseidon-mailhub.amsuess.com
Received: from poseidon-mailbox.amsuess.com (hermes.lan [10.13.13.254]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 0EF9C25C8F; Mon, 24 Jul 2023 12:28:09 +0200 (CEST)
Received: from hephaistos.amsuess.com (hephaistos.lan [IPv6:2a02:b18:c13b:8010::32b]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id C14092650D; Mon, 24 Jul 2023 12:28:08 +0200 (CEST)
Received: (nullmailer pid 29696 invoked by uid 1000); Mon, 24 Jul 2023 10:28:08 -0000
Date: Mon, 24 Jul 2023 12:28:08 +0200
From: Christian Amsüss <christian@amsuess.com>
To: Martine Sophie Lenders <m.lenders@fu-berlin.de>, draft-ietf-core-href@ietf.org
Cc: "cbor@ietf.org" <cbor@ietf.org>
Message-ID: <ZL5SOAPhT9oikHY2@hephaistos.amsuess.com>
References: <168898969977.52843.1363777272561442345@ietfa.amsl.com> <fa09ce7d-6281-7770-2d9f-3bf087bbe420@fu-berlin.de>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="FnYF+IXb7dNXuJK3"
Content-Disposition: inline
In-Reply-To: <fa09ce7d-6281-7770-2d9f-3bf087bbe420@fu-berlin.de>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/JOHCCBOzC46PrSq-61MMev--mpU>
Subject: Re: [Cbor] Fwd: New Version Notification for draft-lenders-dns-cbor-03.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Jul 2023 10:28:38 -0000

Hello Martine,
hello Carsten and Henk (for item 1),

On Mon, Jul 10, 2023 at 04:24:52PM +0200, Martine Sophie Lenders wrote:
> FYI! Only some minimal changes, but hopefully after IETF 117 there will be
> more activity in this draft.

I've read through the document, and have a few questions and comments:

1. `domain-name = tstr .regexp "([^.]+\.)*[^.]+"`: A current draft in
   CoRE, draft-ietf-core-href, also deals with host names encoded in
   CBOR, but picks a different representation:

   host-name   = (*text) ; lowercase, NFC labels

   That is, rather than expressing some.hostname.example.com as
   `"some.hostname.example.com"`, it goes for `"some", "hostname",
   "example", "com"`, which is shorter by 1 byte in this example as long
   as host-name is not put into an aray. Admittedly, for lengths below
   24, or when individual components exceed the 24 threshold, those
   numbers change.

   Note that having the host-name components directly in rr (without an
   array) is still unambiguous w/rt optional components: After the last
   string item, the second integer is record-type if there are more than
   2 CBOR items remaining, otherwise it's int typed rrdata. For the
   encoding in dns-query, I think it's unambiguous as well (but I'm a
   bit confused by the plurals in names).

   One benefit of encoding the name this way is that a dot (".")
   character can be expressed as part of a name component. Such names
   are rare when DNS is used to resolve a URI (because while URIs can do
   percent encoding of dots, those do not survive URI normalization),
   but can occur in service names of DNS-SD.

   Aligning the documents might help implementations reduce duplication,
   and is also more in line with how names are encoded in DNS messages;
   has such an encoding been considered?

   If it has and it was chosen not to go that way: The choice to go with
   semantically split name in core-href was, to my understanding,
   motivated in part by alignment with how DNS represents names. If the
   representation of DNS messages we have in CBOR does *not* go that
   way, core-href's approach would be the odd one out.

2. "if the DNS transport can not ensure the prevention of DNS response
   spoofing": With the current stance of dns-over-coap toward unprotected
   requests, do we still need the transaction ID?

   There is already a lot of optionality for a message recipient to
   process. Having a field there that merely serves as stopgap measure
   for an already discouraged mode of operation seems to be too much to
   me.

3. "If an index in the packing table is referenced with shared item
   reference": Is this just restating how packed CBOR works when using
   tag 113? Maybe this and the later packing table discussion has been
   resolved in packed -09.

4. Are the packing tables pre-populated with any values? ("_coap._udp."
   and ".com" would come to mind). If so, is the 1 in `;packed=1`
   intended to serve as an extension point that dispatches the values of
   the table?

BR
Christian
(as individual)

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