On 02/28/2018 12:21 PM, Jim Hague wrote:
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.
The cost of interoperability. An understandable concern for raw files, but repetitions of the same string keys would compress extremely well.
* 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.
Especially in our closed system, I don't see us keeping current another list of supported RR types. So we'd probably leave the array empty, violating the spirit of the spec if not the letter of it. But on the plus side, the size of the complete list in CBOR was smaller than I anticipated—less than 100 bytes.
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.
I sure hope that no new types violate RFC 3597 section 4. The problems with corrupted data in captures pale in comparison to the problems with corrupted data in live messages.
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.
Thank you, that explanation greatly clears things up and the reasoning is sensible. I would recommend updating the text to something like "Bit 1-4. Transport. 0000 = plain-text UDP, 0001 = plain-text TCP, 0010 = TLS [over TCP?], 0011 = DTLS [over UDP?]" (with a note in Section 7.2 that bit sequences are presented in descending significance).

_______________________________________________
DNSOP mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/dnsop

Reply via email to