Re: [Cbor] Fwd: New Version Notification for draft-lenders-dns-cbor-03.txt
Martine Sophie Lenders <m.lenders@fu-berlin.de> Mon, 24 July 2023 18:12 UTC
Return-Path: <mlenders@zedat.fu-berlin.de>
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 D919BC151B03; Mon, 24 Jul 2023 11:12:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.194
X-Spam-Level:
X-Spam-Status: No, score=-4.194 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 Ddi3pN6f2jPL; Mon, 24 Jul 2023 11:12:31 -0700 (PDT)
Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) (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 9B518C14CF17; Mon, 24 Jul 2023 11:12:29 -0700 (PDT)
Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.95) with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (envelope-from <mlenders@zedat.fu-berlin.de>) id 1qO02l-00496c-0E; Mon, 24 Jul 2023 20:12:27 +0200
Received: from dhcp-88a4.meeting.ietf.org ([31.133.136.164]) by inpost2.zedat.fu-berlin.de (Exim 4.95) with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (envelope-from <m.lenders@fu-berlin.de>) id 1qO02k-002Hpu-8E; Mon, 24 Jul 2023 20:12:26 +0200
Message-ID: <faaf4cfe-348e-b9d8-707a-07936e9ca807@fu-berlin.de>
Date: Mon, 24 Jul 2023 11:12:21 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Christian Amsüss <christian@amsuess.com>, draft-ietf-core-href@ietf.org
Cc: "cbor@ietf.org" <cbor@ietf.org>, draft-lenders-dns-cbor@ietf.org
References: <168898969977.52843.1363777272561442345@ietfa.amsl.com> <fa09ce7d-6281-7770-2d9f-3bf087bbe420@fu-berlin.de> <ZL5SOAPhT9oikHY2@hephaistos.amsuess.com>
From: Martine Sophie Lenders <m.lenders@fu-berlin.de>
Autocrypt: addr=m.lenders@fu-berlin.de; keydata= xsFNBGDso7IBEADGJRHw9WPIiLpHpqA9+lHqTPM9ydRG1E4QSjKrJjWzk63HE1SUEnrHR/1a gQqktn6Q3Zx0ezeQdaE/09AiKPnLKLwX/KQNINe1RzADakj3CjwGApPIox7D19VJ+qqNAPZm u/DXBRehLzjJlCfbIkkijCZP6A2okYrhpmm8i0ZD6koH3BChpdut9R2dsSPGt5ZKG6J18z+j h0Ond0vqNdPwRVa6zF8XyYE3q76OqmZHS3FOp2KX2Yl0Mw2AYvqsnbzLKSm64gv0wvZm+jED 1LQAhnFGEIJ/1B8o2jAzmr414w9iMalMA2RcIsw4sDIJE45/9gweJv+/u2Ocy+vbbIwdBB7c hE1lcghTEIBZqNHxCAEmxcX//IPSt4TmX2AIdT1rNYl9uZ3F23DTqAfnNx7ZBj7/51EGB/ip +M7Gxy+HM9O0Ob18TkT3Q7alaOmu36EhpaJ29x0o+IdWlUxFSByYMKoGvyZatZtME8fkUg8q jLk5uaQ7TvdFhjjhgsvy0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0Ad10NUP1Hj2QkLiC6Ijsv4fEKL/J5Pc6P5pLL91wk1mSVIy pWqt5Ox+c9cGetpw7ELiSFoVKlbUfsScmT7Q38cagQap2E79VgWKVlervEWnbRQZAX6lEOQI RLEkV5dM1Re9p0jeF4x1EJ7IJRlRBMLw8OtaLKIwr22aFNMKnzslzDDXOx4vVjYRINoYwJRw 99Gmkgg2p9swEL2uhRULRt6/34xkW3FNkequRsRNCUJuCK1xvg385MzOAhHF6qN78whMgdJO GLCOOg39mtakpwwilGSuztODkV4hTidwHLK96FBpy9Sd+Z9kfTdBFjeqhFJzre2pwgsc9Vdy gIJxmVgtlvWqC9s=
In-Reply-To: <ZL5SOAPhT9oikHY2@hephaistos.amsuess.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------0X1uYy2UXGAqcFfzL6jYUmF3"
X-Original-Sender: m.lenders@fu-berlin.de
X-Originating-IP: 31.133.136.164
X-ZEDAT-Hint: PAO
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/boi6wRv6kg0LREagm6zW0tbwec0>
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 18:12:33 -0000
Hi Christian, Replies inline below. On 24.07.23 12:28, Christian Amsüss wrote: > 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. In general, this sounds like an interesting idea. ~24-25 is, from our studies of IXP and (consumer-grade) IoT traffic, the median for the length of names, with the mean being around 26. But ideally, for the constrained IoT, it should be lower… > 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). Where did you see those plurals? > 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. In general, as stated above, I like the idea. Especially, since this could make de- and encoding easier with DNS wire (just mask tstr type identifier in the delimiter bytes). However, with your later mail below, I am not sure if it is more hassle than it is worth in the scope of DNS when using CBOR packed. But maybe we can find a nice solution that can serve both. On 24.07.23 13:37, Christian Amsüss wrote: > On Mon, Jul 24, 2023 at 01:16:42PM +0200, Carsten Bormann wrote: >> On 24. Jul 2023, at 12:28, Christian Amsüss <christian@amsuess.com> wrote: >>> >>> 4. Are the packing tables pre-populated with any values? ("_coap._udp." >>> and ".com" would come to mind). >> >> (Or the corresponding arrays, if DNS names are carried in parsed form…) > > With the parsed form, that may actually prove to be difficult to use. > > It'd work if arrays are used, because then > > [0, 1, 2, ["_coap", "_udp", "example", "com"], 4, 5] > > can become > > [0, 1, 2, tag-prefix:coap-udp(tag-suffix:com("example")), 4, 5] > > but if the parsed form is used in-line (as it is done with CRIs), > > [0, 1, 2, "_coap", _udp", "example", "com", 4, 5] > > is not that obviously compressible because we have neither infix > expansion like > > tag-infix:coap-udp([[0, 1, 2], tag-infix:com([["example"], [4, 5])]) > > nor generic concatenation like > > tag-chain([[0, 1, 2], tag-immediate:coap-udp, ["example"], tag-immediate:com]) > 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. Yeah, with the direction draft-ietf-core-dns-over-coap is currently going, the DNS transaction ID might indeed not be necessary anymore. > 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. I think, when that sentence was written, the concept of common tables, as presented in -09, did not exist yet and it was meant to define the behavior for a single table. I will take a look at the current state of draft-ietf-cbor-packed and will come back to that. > 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? There are plans to explore this (see last point on my last slide for the meeting today [1]). I really like the idea of using the number in the media type parameter for the extension point! (It will mean however, that we might need a bit more content-format numbers than originally expected.) Best regards Martine > BR > Christian > (as individual) > [1] https://datatracker.ietf.org/meeting/117/materials/slides-117-cbor-a-concise-binary-object-representation-cbor-of-dns-messages
- [Cbor] Fwd: New Version Notification for draft-le… Martine Sophie Lenders
- Re: [Cbor] Fwd: New Version Notification for draf… Christian Amsüss
- Re: [Cbor] New Version Notification for draft-len… Carsten Bormann
- Re: [Cbor] New Version Notification for draft-len… Christian Amsüss
- Re: [Cbor] Fwd: New Version Notification for draf… Martine Sophie Lenders
- Re: [Cbor] New Version Notification for draft-len… Carsten Bormann
- Re: [Cbor] Fwd: New Version Notification for draf… Christian Amsüss
- [Cbor] Concatenation musings (was: New Version No… Christian Amsüss
- Re: [Cbor] Concatenation musings (was: New Versio… Carsten Bormann
- Re: [Cbor] Concatenation musings (was: New Versio… Christian Amsüss
- Re: [Cbor] Fwd: New Version Notification for draf… Martine Sophie Lenders
- Re: [Cbor] New Version Notification for draft-len… Carsten Bormann
- Re: [Cbor] New Version Notification for draft-len… Martine Sophie Lenders