Re: [Doh] DoT and DoH at Cambridge

Tony Finch <dot@dotat.at> Fri, 07 September 2018 14:25 UTC

Return-Path: <dot@dotat.at>
X-Original-To: doh@ietfa.amsl.com
Delivered-To: doh@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9372E130E1F for <doh@ietfa.amsl.com>; Fri, 7 Sep 2018 07:25:09 -0700 (PDT)
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 Tx6Ft8NIgXYS for <doh@ietfa.amsl.com>; Fri, 7 Sep 2018 07:25:07 -0700 (PDT)
Received: from ppsw-31.csi.cam.ac.uk (ppsw-31.csi.cam.ac.uk [131.111.8.131]) (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 A21E3128D68 for <doh@ietf.org>; Fri, 7 Sep 2018 07:25:07 -0700 (PDT)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus
Received: from grey.csi.cam.ac.uk ([131.111.57.57]:44124) by ppsw-31.csi.cam.ac.uk (ppsw.cam.ac.uk [131.111.8.137]:25) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1fyHh3-000h6W-KO (Exim 4.91) (return-path <dot@dotat.at>); Fri, 07 Sep 2018 15:25:05 +0100
Date: Fri, 07 Sep 2018 15:25:05 +0100
From: Tony Finch <dot@dotat.at>
To: bert hubert <bert.hubert@powerdns.com>
cc: doh@ietf.org, Erik Kline <ek=40google.com@dmarc.ietf.org>
In-Reply-To: <alpine.DEB.2.20.1809061334470.5965@grey.csi.cam.ac.uk>
Message-ID: <alpine.DEB.2.20.1809071454270.5965@grey.csi.cam.ac.uk>
References: <alpine.DEB.2.20.1809061011520.5965@grey.csi.cam.ac.uk> <CAAedzxpM=+TtH0wEyePWXLFKtgeFxkYpYyvCjz+aeG6PLrzV2g@mail.gmail.com> <alpine.DEB.2.20.1809061116410.5965@grey.csi.cam.ac.uk> <20180906114152.GB13373@server.ds9a.nl> <alpine.DEB.2.20.1809061334470.5965@grey.csi.cam.ac.uk>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/doh/DR_vCyY5tASqcPLUe1NXyA2oUVU>
Subject: Re: [Doh] DoT and DoH at Cambridge
X-BeenThere: doh@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DNS Over HTTPS <doh.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/doh>, <mailto:doh-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/doh/>
List-Post: <mailto:doh@ietf.org>
List-Help: <mailto:doh-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/doh>, <mailto:doh-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 07 Sep 2018 14:25:10 -0000

I have been looking at a few more details of how DNS-over-TLS is being
used on my servers.

I have configured BIND with a 5 second idle connection timeout, because I
don't want to stress it with too many concurrent sessions. (I don't know
if I am being too pessimistic here.)

I'm getting on average 2.5 queries per connection; my WiFi clients are
IPv4 only, and Android appears to be clever enough to mostly avoid wasted
queries for AAAA when it lacks IPv6, so I guess a dual-stack network would
see more queries per connection.

I've set a 1 day TLS session cache lifetime (the Mozilla recommendation).
I'm seeing about 44% of connections are resumed sessions, which suggests
that it would be beneficial to hold connections open longer, if I was less
worried about that.

I've disabled session tickets, since I don't have a good way to manage the
ticket keys. (This is also what Mozilla recommends.)

One of my colleagues (David McBride) configured Unbound to use DoT;
it does one query per connection and does not resume TLS sessions, so it
looks quite different in the logs!

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Rockall, Malin, Hebrides, Bailey: Mainly northwest at first in Malin and
Hebrides, otherwise cyclonic, 4 or 5, occasionally 6 in Rockall. Slight or
moderate in east Malin and east Hebrides, moderate throughout elsewhere. Rain
or showers. Moderate or good.