[Cbor] Multiple questions with CBOR for DNS

Martine Sophie Lenders <martine.lenders@tu-dresden.de> Wed, 08 November 2023 14:02 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 41559C17C889; Wed, 8 Nov 2023 06:02:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 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_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 KvPP_RmOnVnv; Wed, 8 Nov 2023 06:02:36 -0800 (PST)
Received: from mailout3.zih.tu-dresden.de (mailout3.zih.tu-dresden.de [141.30.67.74]) (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 A04A1C17C897; Wed, 8 Nov 2023 06:02:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-dresden.de; s=dkim2022; h=Content-Type:Subject:From:CC:To: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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=e0QdntHZh90HYXDLEH+YuV2ER4OwDET9smfC3nrjMUI=; b=mpDZ1fVz+N+dvxffyj34hoDmjh TP8ppZT6JvWaRtJn64dBZUmh/iaEpBlqNFJwdUWzP0W/93JClKt9FveocMW4RVc5BKBTuIrPvMCAx iznGSUltzi/lBmSzfPy89EFgDIDWrH0Hre0H1xe61VsLLXWq480qmmRQAbGUV18Up5ADBvEJxRfx1 trgyZdBgPHK+N7hdA5wbwBGiLNgEMnV4IeCGhY49EgTuoW7XVOEVDX91pdk1XbA1QYrvbXUdqANtj 14lOnXqN+Ri4O3PIKM7buCwsD2gDvxE2W+NZ3xXFVvchWubDkZ3AAA/wyFa6YV4ob7sL5H3JL16qp lZNLWdUA==;
Received: from [172.26.34.117] (helo=msx.tu-dresden.de) by mailout3.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 1r0ikZ-005Mpr-07; Wed, 08 Nov 2023 14:37:43 +0100
Received: from [31.133.152.146] (31.133.152.146) 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; Wed, 8 Nov 2023 14:37:34 +0100
Message-ID: <90f306d4-d887-43f6-8990-3c39a7ffcb46@tu-dresden.de>
Date: Wed, 08 Nov 2023 14:37:28 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: "cbor@ietf.org" <cbor@ietf.org>
CC: "draft-lenders-dns-cbor.authors@ietf.org" <draft-lenders-dns-cbor.authors@ietf.org>, esko.dijk@iotconsultancy.nl
From: Martine Sophie Lenders <martine.lenders@tu-dresden.de>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-512"; boundary="------------ms070803090305060904060308"
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: mailout3.zih.tu-dresden.de
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/PZOD8bR2UHHA7R6RHGsYAb25Z0w>
Subject: [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: Wed, 08 Nov 2023 14:02:41 -0000

Hi all,

Esko talked yesterday about the potential requirements of having two 
questions in a DNS message. I think this could be achieved with a small 
extension to the existing definition that makes the question section an 
alternating list of names an type-specs (each pair of those being one 
question):

     question-section = [question+]
     question = (
       name: domain-name,
       ? type-spec,
     )

The only caveat I see is, that if we go with the componified domain name 
definition I presented yesterday, that at least a record type needs to 
be provided when more than one question is used. Otherwise, the 
compontents of names of different questions will become hard to keep 
apart by a parser.

Alternatively, we can go for a list of list in the question (each of the 
inner lists being a question). This has two caveats, however. (1) The 
question section will be harder to distinguish from the other sections 
in the response (given that it is optional, this is important). (2) We 
add at least 1 extra byte for the very rare (and by most resolvers not 
accepted) case that someone wants to have more than one questions.

Best
Martine