Re: [dns-privacy] DNS over DTLS

Daniel Kahn Gillmor <dkg@fifthhorseman.net> Fri, 02 December 2016 06:48 UTC

Return-Path: <dkg@fifthhorseman.net>
X-Original-To: dns-privacy@ietfa.amsl.com
Delivered-To: dns-privacy@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8790F129B8F for <dns-privacy@ietfa.amsl.com>; Thu, 1 Dec 2016 22:48:35 -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] 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 3moi4gxLwWst for <dns-privacy@ietfa.amsl.com>; Thu, 1 Dec 2016 22:48:33 -0800 (PST)
Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by ietfa.amsl.com (Postfix) with ESMTP id D8E0B12963E for <dns-privacy@ietf.org>; Thu, 1 Dec 2016 22:48:32 -0800 (PST)
Received: from fifthhorseman.net (unknown [108.58.6.98]) by che.mayfirst.org (Postfix) with ESMTPSA id 90E99F98C; Fri, 2 Dec 2016 01:48:27 -0500 (EST)
Received: by fifthhorseman.net (Postfix, from userid 1000) id D34EB20662; Fri, 2 Dec 2016 01:48:25 -0500 (EST)
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Tariq Saraj <tariqsaraj@gmail.com>, Shane Kerr <shane@time-travellers.org>
In-Reply-To: <CAAdbxro1Cu-MAW+kYe3YE0YPb27TjVPOdLtA_jF=0=OQgmCcHw@mail.gmail.com>
References: <CAAdbxrrgKRvUUgWQUFvxQiwua_DsochdZm83pi_Zgx_wo4-GPg@mail.gmail.com> <20161201150121.5be7b162@pallas.home.time-travellers.org> <CAAdbxro1Cu-MAW+kYe3YE0YPb27TjVPOdLtA_jF=0=OQgmCcHw@mail.gmail.com>
Date: Fri, 02 Dec 2016 01:48:25 -0500
Message-ID: <87h96mvnba.fsf@alice.fifthhorseman.net>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/dns-privacy/DzsmWJO3azcLk_t8bcghNkX53Q8>
Cc: dns-privacy@ietf.org
Subject: Re: [dns-privacy] DNS over DTLS
X-BeenThere: dns-privacy@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: <dns-privacy.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dns-privacy>, <mailto:dns-privacy-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dns-privacy/>
List-Post: <mailto:dns-privacy@ietf.org>
List-Help: <mailto:dns-privacy-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dns-privacy>, <mailto:dns-privacy-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 02 Dec 2016 06:48:35 -0000

On Fri 2016-12-02 01:22:40 -0500, Tariq Saraj wrote:
> Thanks for your detailed reply, the point I am trying to highlight is the
> changes in TCP for DNS which is "TCP out of order packet delivery, i.e. the
> OOOP".

I think you're referring to "out of order processing" for DNS requests
by a recursive resolver.  While necessary for reasonable performance
over TCP, I don't think this approach remediates TCP
head-of-line-blocking.

imagine a client who makes two queries across a TCP connection in rapid
succession, the first for slow.example and the second for fast.example.

many traditional (old, unoptimized) DNS recursive resolvers will try to
find the answer for slow.example before they even start making the
queries needed for fast.example.  they might not even read the second
query from the TCP connection before responding to the first one.

OOOP says that a DNS recursive resolver should read queries as they come
in over TCP, even if it still has responses pending for other queries
from that connection.

IOW, the dns resolution *itself* should not block based on slow DNS
responses from the authoritative servers it queries.

but none of that resolves the problem of TCP head-of-line blocking.  if
one packet carrying a query on one TCP connection gets dropped, the
receiving server can't see any of the rest of the packets until the
earlier packet is re-sent.  (and vice versa for replies going from
recursor to stub)

does this make sense?

         --dkg