Re: [Cbor] Multiple questions with CBOR for DNS

Martine Sophie Lenders <martine.lenders@tu-dresden.de> Thu, 09 November 2023 15:03 UTC

Return-Path: <martine.lenders@tu-dresden.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 098C6C17C8BF; Thu, 9 Nov 2023 07:03:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.407
X-Spam-Level:
X-Spam-Status: No, score=-4.407 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=tu-dresden.de
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 lQ9xhwUs1vy2; Thu, 9 Nov 2023 07:03:32 -0800 (PST)
Received: from mailout4.zih.tu-dresden.de (mailout4.zih.tu-dresden.de [141.30.67.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7220FC170612; Thu, 9 Nov 2023 07:03:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-dresden.de; s=dkim2022; h=Content-Type:In-Reply-To:From:References:CC:To :Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Db/3tn5tkftjBfykcl5xYHgC7D4UTwJLrGa8YDI9FTk=; b=EDZF0fUerlrT16Rvs7u45oAxkS WJprDhcGe4Wj6LHIn+urEU+jcIC0P0/KgUE62ZrczfHMXIOeq8LxKQjsPci/MAEIooV0MTRpnNvLG dbdyfKswoDeB2R9VYFlQHhVatX7I0UY0mF7aqhUHRNHSBiOuLVlyirEILrRO+kNK2u5QdUGTkn6fx aIuiOkt0M6jv/uO/xoOZshv+CPuhYN17EG6vR95M29gLvqIb/OtRqWzgI2QgevLVDDStm+B4Xwlg5 trs4pZwgCameOcWvg/OvDdo5QBBe3Txu9o5MiYiFmsHVvRNYuliHu9VwPE1FQo9kKGXDw4Az6t5B4 Q60KLYRw==;
Received: from [172.26.34.117] (helo=msx.tu-dresden.de) by mailout4.zih.tu-dresden.de with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <martine.lenders@tu-dresden.de>) id 1r16HJ-005qri-HN; Thu, 09 Nov 2023 15:45:05 +0100
Received: from [172.31.5.69] (84.42.221.126) by msx-l317.msx.ad.zih.tu-dresden.de (172.26.34.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Thu, 9 Nov 2023 15:44:53 +0100
Message-ID: <66bc2b17-888b-440e-9eae-4ea2633f157d@tu-dresden.de>
Date: Thu, 09 Nov 2023 15:44:52 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>, Esko Dijk <esko.dijk@iotconsultancy.nl>
CC: "cbor@ietf.org" <cbor@ietf.org>, "draft-lenders-dns-cbor.authors@ietf.org" <draft-lenders-dns-cbor.authors@ietf.org>
References: <90f306d4-d887-43f6-8990-3c39a7ffcb46@tu-dresden.de> <DU0P190MB19784314798812652C9398CFFDAFA@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM> <c36a1e19d66c40009e0abe51f9c2bcf5@msx-l317.msx.ad.zih.tu-dresden.de>
From: Martine Sophie Lenders <martine.lenders@tu-dresden.de>
In-Reply-To: <c36a1e19d66c40009e0abe51f9c2bcf5@msx-l317.msx.ad.zih.tu-dresden.de>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-512"; boundary="------------ms080004060500070000020508"
X-ClientProxiedBy: MSX-L315.msx.ad.zih.tu-dresden.de (172.26.34.115) To msx-l317.msx.ad.zih.tu-dresden.de (172.26.34.117)
X-TUD-Virus-Scanned: mailout4.zih.tu-dresden.de
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/KM8NMwdK0F0o4asvfUsjj307wOM>
Subject: Re: [Cbor] Multiple questions with CBOR for DNS
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: Thu, 09 Nov 2023 15:03:37 -0000

Hi Carsten, Esko,

On 09.11.23 14:44, Esko Dijk wrote:
 > […]
 >
 > So ideally we constrain our CBOR format here to 0 or 1 questions, 
which it can efficiently encode, while keeping some extension option 
open to - in the future, if really needed - be able to add questions. 
So that older versions of a CBOR DNS parser would just ignore the 
additional questions.
 > This may be done via a CBOR tag, or some extra (reserved) items that 
can be added later in a CBOR list; so that we don’t burden today's 
format with extra structure or extra bytes just to support the 
multi-question case.
 > It's a bit like being able to add an "extension" to the format for 
the rare cases that it would be needed as discussed for the CRI format 
in CoRE.
 >
 > Nit in the document: the section 8.2.1 section header should have a 
'+' in it :)
 >

Fixed in Editor's Copy on GitHub.

On 09.11.23 15:18, Carsten Bormann wrote:
> Hi Esko,
> 
>> question-section = [question+]
>>      question = (
>>        name: domain-name,
>>        ? type-spec,
>>      )
> 
> The “+” here actually can be efficiently implemented, as long as domain-name and type-spec don’t overlap.

That raises two questions to me:

(1) Can the necessity of type-spec when the number of `question`s is >1 
somehow expressed in CDDL?
(2) Does CDDL support the extension of rules in a separate document 
(e.g., an update RFC)? This probably goes into a wider discussion. We 
were thinking about this in a different context, where a collegue needed 
to extend the DNS+CBOR format for their own purposes. In a manner which 
should probably not and was never supposed to be covered by the general 
case presented in our draft. Another use case for rule extension in the 
DNS+CBOR scope could be new, future resource record types that could 
benefit from a dedicated format (like we did with `opt-rr`) and need to 
extend the `rr` rule.

> So we can define the question-section to be extensible to multiple questions without additional encoding cost.
> Whether people implement this in the DNS servers of course is a different question.
> 
> Grüße, Carsten

Best
Martine


> 
>