Re: [Cbor] Multiple questions with CBOR for DNS

Martine Sophie Lenders <martine.lenders@tu-dresden.de> Thu, 09 November 2023 15:15 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 EFD42C18E53F; Thu, 9 Nov 2023 07:15:36 -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 YEyapdgw9CWJ; Thu, 9 Nov 2023 07:15: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 6EA25C18E53A; Thu, 9 Nov 2023 07:15: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=izzHlKfmqVGoghm8vLkl/75O69coGLTonU4fXzq9C5g=; b=EndNTlqkCKbyzhUol5KTlNigit 9PTH6ODv69V16TRRAksehbCH4wUbmr8gaucI1aO8CIMHTH+fY00vK5AfRtsXceUrhvXSj81Tsnehs kN8RE/rjtIqdStYYGMbG17e2NQKbQ1hBPlTNhSVuK7ES5w3UJAUK2tyGNGE/AH10Wha5woQmksRM6 sbPPoZl7YLjyqjqFIw7zAMIEKEGsyMIpENOM5PysfJOlhdAuUZN49wchMVVA63QcIblYkjRA+qnxD NxnKwn9LX2pmHjQRHfosqk/Hh6XHAaKtWmt1zWtPHyFRuVcq5j+6sVhWUg7uSsIMbwjqvho8zi5zm 2KcuF0vg==;
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 1r16kj-005zNL-49; Thu, 09 Nov 2023 16:15:29 +0100
Received: from [10.100.28.7] (141.30.56.199) 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 16:15:28 +0100
Message-ID: <83a63ff9-e36f-4e82-918b-4294570a6598@tu-dresden.de>
Date: Thu, 09 Nov 2023 16:15:27 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: Carsten Bormann <cabo@tzi.org>
CC: Esko Dijk <esko.dijk@iotconsultancy.nl>, "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> <66bc2b17-888b-440e-9eae-4ea2633f157d@tu-dresden.de> <d1191e0d356248ef83c413469e025d81@msx-l317.msx.ad.zih.tu-dresden.de>
From: Martine Sophie Lenders <martine.lenders@tu-dresden.de>
In-Reply-To: <d1191e0d356248ef83c413469e025d81@msx-l317.msx.ad.zih.tu-dresden.de>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-512"; boundary="------------ms090406080904010407000606"
X-ClientProxiedBy: MSX-L312.msx.ad.zih.tu-dresden.de (172.26.34.112) 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/iNPiOnbn2eK1WgxCXGjhB8-Y9q8>
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:15:37 -0000

Hi Carsten,

On 09.11.23 16:06, Carsten Bormann wrote:
> On Nov 9, 2023, at 15:44, Martine Sophie Lenders <martine.lenders@tu-dresden.de> 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?
> 
> 
> Why is type-spec necessary in this case?

In the current draft, it is not, but if we go for the name component 
route, it will become hard to distinguish between the name for a second 
question or another component of the name for the first. Just 
necessitating at least a type in-between the names would help with that

> 
> Grüße, Carsten
>