Re: [DNSOP] I-D Action: draft-ietf-dnsop-dns-capture-format-05.txt

Jim Hague <jim@sinodun.com> Wed, 28 February 2018 17:22 UTC

Return-Path: <jim@sinodun.com>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B66712D7F1 for <dnsop@ietfa.amsl.com>; Wed, 28 Feb 2018 09:22:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6mTIzGJ8U2Lv for <dnsop@ietfa.amsl.com>; Wed, 28 Feb 2018 09:21:59 -0800 (PST)
Received: from balrog.mythic-beasts.com (balrog.mythic-beasts.com [IPv6:2a00:1098:0:82:1000:0:2:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3DF3E1242F5 for <dnsop@ietf.org>; Wed, 28 Feb 2018 09:21:59 -0800 (PST)
Received: from [2001:b98:204:102:fff1::11] (port=62972 helo=Jims-iMac.local) by balrog.mythic-beasts.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jim@sinodun.com>) id 1er5QT-0001O4-KE; Wed, 28 Feb 2018 17:21:57 +0000
From: Jim Hague <jim@sinodun.com>
To: Richard Gibson <richard.j.gibson@oracle.com>, Sara Dickinson <sara@sinodun.com>, IETF DNSOP WG <dnsop@ietf.org>
References: <151930246857.21149.14743687777831082425@ietfa.amsl.com> <522CCFCA-F01F-4D68-A7FB-D14B0F14C07D@sinodun.com> <2a60a875-0f5a-3586-097d-12ec711af5cf@oracle.com>
Organization: Sinodun Internet Technologies Ltd.
Message-ID: <376b9d26-edc0-f521-be2e-7ed278850abc@sinodun.com>
Date: Wed, 28 Feb 2018 17:21:55 +0000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0
MIME-Version: 1.0
In-Reply-To: <2a60a875-0f5a-3586-097d-12ec711af5cf@oracle.com>
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
X-BlackCat-Spam-Score: 0
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/vEvvpbwuHrMz5CbC9jWSb0M0fr4>
Subject: Re: [DNSOP] I-D Action: draft-ietf-dnsop-dns-capture-format-05.txt
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Feb 2018 17:22:01 -0000

On 28/02/2018 06:36, Richard Gibson wrote:
> Thank you so much for the changes, I am confident that this format is
> now in a state where my organization could build on top of it to suit
> our needs.

Thanks for the feedback. Much appreciated!
> * Section 6.2.1 and 7.5.3.4: At minimum, RR field "ttl" should be
> optional in order to accommodate aggregation of resolver responses in
> which that field is decremented over time. But probably "rdata-index"
> should be optional as well.

We anticipated possibly doing this if anyone asked. We'll certainly go
back over that.

> * Section 7.1: Negative integer map keys are concise, but they come with
> the potential for interoperability-hostile collisions. I think the
> document should encourage restricting their use to tightly-controlled
> closed systems, and then additionally propose a particular namespacing
> pattern (e.g., "{namespaceName}-{keyName}") for use of
> implementation-specific /string/ keys in other cases.

We'll discuss this. We absolutely meant for negative keys to be
restricted to closed systems. Allowing string keys in addition is an
interesting idea; off the cuff, I wonder whether folk will want to pay
the file space penalty.

> Further, it should explicitly reserve positive integer keys for future standardized
> extensions to the C-DNS format.

That is absolutely the intention. We'll add some text making that clear.

> * Section 7.4.1: Why is BlockParameters an array instead of a map?

That's a typo. It should be a map, as it is in the CDDL.

> * Section 7.4.1.1: StorageParameters fields "opcodes" and "rrtypes"
> could be defined better... are they values /recorded/ (i.e., that were
> actually observed) or values that are /recordable/ (i.e., that the
> collection application was looking for)? And shouldn't they be optional
> (in either case, but *especially* the latter, lest implementations write
> out every possible rrtype value).

The intention is that they should be /recordable/ values - in line with
the rest of the StorageParameters fields, they let a reader distinguish
values that aren't present because the writer didn't understand them and
values not present because they didn't occur in the data stream. And
yes, we're thinking implementations should explicitly write each opcode
and rrtype they understand. And possibly should treat opcodes and
rrtypes they don't understand as malformed. The thinking here is that
if, say, an rrtype the writer does not know how to decode contains a
compressed label, it's not going to be correctly handled, and we should
not be recording potentially known-broken data in the file as not malformed.

> * Section 7.5.3: It's very good that the BlockTables "ip-address" items
> can be truncated by prefix length, but we have actually run into cases
> that call for /variable/ truncation (i.e., more precision in some
> subnets than in others), especially true given that a single table holds
> both client and server address data. What would you think about
> representing addresses not as direct byte strings, but rather as
> variable-length arrays or maps—index 0 encoding the prefix as a byte
> string, and optional index 1 (when present) encoding a prefix-length
> override? Or, if the extra size per address is too much, at least
> allowing such representations via polymorphism (byte string for default
> prefix-length, array/map for non-default)?

Variable truncation is a use case I for one was not anticipating. We'll
discuss this. Allowing an address to be a bstr OR an array or map with
optional prefix sounds an interesting idea.

> * Section 7.5.3.2: QueryResponseSignature field "qr-transport-flags"
> seems to reserve 1 bit /each/ for UDP, TCP, TLS, and DTLS, but it seems
> to me that UDP is mutually exclusive with TCP and that TLS is mutually
> exclusive with DTLS. Couldn't that data be represented in two bits (one
> in which 0 ⇒ UDP and 1 ⇒ TCP, the other in which 0 ⇒ plain-text and 1 ⇒
> TLS)?

We need to clarify the language. qr-transport-flags is a single bit
IPv4/v6, a 4 bit number indicating the protocol, and a final single bit
indicating the presence of trailing data in the query. The protocol
values are (currently) UDP=0, TCP=1, TLS=2, DTLS=3. We did consider a
UDP/TCP bit and a !TLS/TLS bit, but felt this (a) might imply a closer
connection between TLS and DTLS than is the case, and (b) would not
easily extend to possible future schemes like DOH and DNS over QUIC. So
we went for a number with sufficient range to add another 12 options
before trouble happens. We considered breaking the number out to a
separate integer, but felt that this was likely, in practice, to be
unnecessary and so space efficiency considerations took precedence.
-- 
Jim Hague - jim@sinodun.com          Never trust a computer you can't lift.