Re: [DNSOP] New Version Notification for draft-pusateri-dnsop-update-timeout-01.txt

Tom Pusateri <pusateri@bangj.com> Fri, 22 February 2019 08:19 UTC

Return-Path: <pusateri@bangj.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 37262126D00 for <dnsop@ietfa.amsl.com>; Fri, 22 Feb 2019 00:19:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_PASS=-0.001] 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 gebj0CrqWT7W for <dnsop@ietfa.amsl.com>; Fri, 22 Feb 2019 00:19:36 -0800 (PST)
Received: from oj.bangj.com (69-77-154-174.static.skybest.com [69.77.154.174]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6E2DA127287 for <dnsop@ietf.org>; Fri, 22 Feb 2019 00:19:36 -0800 (PST)
Received: from [10.10.56.118] (unknown [72.235.180.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by oj.bangj.com (Postfix) with ESMTPSA id 222762826F; Fri, 22 Feb 2019 03:19:33 -0500 (EST)
From: Tom Pusateri <pusateri@bangj.com>
Message-Id: <90229901-37B4-4E03-B9FF-7505860E56BF@bangj.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_7C2F004E-EB31-4D51-AE30-49A0720611CC"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Thu, 21 Feb 2019 22:19:30 -1000
In-Reply-To: <81039A96-9CAB-4EC5-8142-7FD5976A01FE@fugue.com>
Cc: Mark Andrews <marka@isc.org>, Tony Finch <dot@dotat.at>, dnsop <dnsop@ietf.org>, Paul Wouters <paul@nohats.ca>, Joe Abley <jabley@hopcount.ca>, Dick Franks <rwfranks@acm.org>
To: Ted Lemon <mellon@fugue.com>
References: <155053239541.25848.12960190085730298684.idtracker@ietfa.amsl.com> <969D8BA1-6ED3-47E8-AFFD-2BEE8EA3E66B@bangj.com> <alpine.DEB.2.20.1902191219070.766@grey.csi.cam.ac.uk> <0DE33073-93B1-4CF5-B12D-B7266E21E8B2@timwattenberg.de> <alpine.LRH.2.21.1902191715230.30381@bofh.nohats.ca> <1F461BFA-638A-4607-84BD-F8B8597A1114@isc.org> <alpine.LRH.2.21.1902200028210.29865@bofh.nohats.ca> <646C86F6-C10D-43DF-ADE8-19222994E4D1@hopcount.ca> <E41DDEED-DF50-481F-9378-D721C3612643@isc.org> <alpine.DEB.2.20.1902201928250.19193@grey.csi.cam.ac.uk> <9330E97B-76BF-4C6F-8F6F-01349A3E7427@isc.org> <alpine.DEB.2.20.1902211215480.19193@grey.csi.cam.ac.uk> <CAKW6Ri7u5uCwcXgDrovgpEnhZCpkGGDMrxLHxbFVNvnveUPwWA@mail.gmail.com> <382BAB3C-C127-46E1-B931-4717A33BD75A@fugue.com> <4BF142EA-B2FB-4B00-9940-8A70FFEE5F6C@isc.org> <34BC472C-EF14-4872-BAC6-945AC18A7767@fugue.com> <5B21B95D-55D6-4916-8D1B-C921AB9712AA@isc.org> <75CA917D-1A6C-4717-934C-965570DC51C0@fugue.com> <597BB37C-3111-437D-A646-0F6D7A22B86A@isc.org> <81039A96-9CAB-4EC5-8142-7FD5976A01FE@fugue.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/MOn6FgsjANyr6FR9JbW79h8HyMI>
Subject: Re: [DNSOP] New Version Notification for draft-pusateri-dnsop-update-timeout-01.txt
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.29
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: Fri, 22 Feb 2019 08:19:39 -0000


> On Feb 21, 2019, at 1:29 PM, Ted Lemon <mellon@fugue.com> wrote:
> 
> On Feb 21, 2019, at 2:24 PM, Mark Andrews <marka@isc.org <mailto:marka@isc.org>> wrote:
>> Implementation details are beyond the scope of RFCs.
> 
> Indeed they are.  My point is that if you want to be careful of memory usage or disk usage, you can be—there is no need to use a hash.   In essence, requiring us to use a hash is specifying an implementation detail that needn’t be specified: you can in fact implement this using a hash, although I wouldn’t.   It would be nice if I were not required to implement it that way, since I think that’s not actually going to work reliably.
> 
>> Also you mentioned caches which basically will never see these records unless they are queried for.
> 
> 
> I mentioned caches because they are by far the biggest consumers of resources—authoritative name servers have much smaller memory footprints.   I assume the reason you think using hashes is a good idea and not a premature optimization is because you’ve done a lot of work with caching name servers, and are seeing this discussion through that lens.   That’s the wrong lens to be seeing it through.   This is only relevant for authoritative name servers, and in that case, storing the whole RR-to-be-deleted is fine.
> 

I’ve been mostly listening and learning from this discussion which has been great. Thanks for all the input. Let me summarize what I’m hearing and we will open issues to adjust the document.

1. We need a motivational section to explain the purpose better

2. The HASH was my idea to simplify the records by making them all the same. It appears that simplicity in this form was not noticed or not appreciated. :)

3. The HASH algorithm selection was intended to work long term. It was my hope that there would only ever be one algorithm and there would never exist the case when one implementation supported an algorithm that another implementation did not. The HASH algorithm index was only intended to be used if a vulnerability was found in the ONE selected algorithm and it needed replaced. In this case, the old algorithm would be deprecated and everyone would switch to a new single algorithm. I am strongly opposed to having more than one HASH algorithm defined. Not being a security expert and not being able to find any papers proving that I could take an existing algorithm like SHA-256 that was 32 bytes and shorten it to 16 bytes using the first 16 bytes or the last 16 bytes or 16 bytes in the middle, I opted to select an algorithm that was already 16 bytes and proven to have terrific non-collision properties. Since some of the RDATA can be very short (A records), there are cases when there’s not a lot of data from which to base the hash value on. This was another reason to start with a hash like SHAKE128. But from the sounds of it, people prefer SHA-256 and so I will research this more to see about its applicability in this case (if a hash is even needed anymore).

4. We are open to using RDATA instead of a hash. Or we can define RDATA as an algorithm index as Mark suggested and define a hash as another algorithm (now or later if it ever becomes a problem). By adding the record type to the TIMEOUT instance, we have eliminated most uses of the hash already and only in rare cases will it be needed so including large RDATA in the TIMEOUT record should be rare.

5. Storing the TIMEOUT information as resource records seemed like a convenient way to use an existing database to store timeout information across restarts and to synchronize with secondaries. It can certainly be stored in a proprietary database by each authoritative server vendor but allowing them to interoperate seemed like a feature and when they each already have a database that holds resource records, why create another database type? But if the consensus is that the TIMEOUT info shouldn’t be stored in the existing resource record database but instead authoritative servers should create a new database for this info, then that is fine. This document itself can TIMEOUT. :)

Thanks,
Tom