Re: [DNSOP] DNSSEC validation latency

Tony Finch <dot@dotat.at> Mon, 02 December 2013 16:36 UTC

Return-Path: <fanf2@hermes.cam.ac.uk>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 81D991A82E2 for <dnsop@ietfa.amsl.com>; Mon, 2 Dec 2013 08:36:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001] autolearn=ham
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 lwKPeclfNj4I for <dnsop@ietfa.amsl.com>; Mon, 2 Dec 2013 08:36:36 -0800 (PST)
Received: from ppsw-33.csi.cam.ac.uk (ppsw-33.csi.cam.ac.uk [IPv6:2001:630:212:8::e:f33]) by ietfa.amsl.com (Postfix) with ESMTP id DA39B1ACCE5 for <dnsop@ietf.org>; Mon, 2 Dec 2013 08:36:24 -0800 (PST)
X-Cam-AntiVirus: no malware found
X-Cam-ScannerInfo: http://www.cam.ac.uk/cs/email/scanner/
Received: from hermes-2.csi.cam.ac.uk ([131.111.8.54]:48873) by ppsw-33.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.157]:25) with esmtpa (EXTERNAL:fanf2) id 1VnWTu-0005RQ-gv (Exim 4.82_3-c0e5623) (return-path <fanf2@hermes.cam.ac.uk>); Mon, 02 Dec 2013 16:36:22 +0000
Received: from fanf2 by hermes-2.csi.cam.ac.uk (hermes.cam.ac.uk) with local id 1VnWTu-0003Uy-8Q (Exim 4.72) (return-path <fanf2@hermes.cam.ac.uk>); Mon, 02 Dec 2013 16:36:22 +0000
Date: Mon, 02 Dec 2013 16:36:22 +0000
From: Tony Finch <dot@dotat.at>
X-X-Sender: fanf2@hermes-2.csi.cam.ac.uk
To: RRoy Arends <roy@dnss.ec>
In-Reply-To: <D0B8757E-6274-42A7-9C1E-BAE6E9429D26@dnss.ec>
Message-ID: <alpine.LSU.2.00.1312021619030.11548@hermes-2.csi.cam.ac.uk>
References: <alpine.LSU.2.00.1312021200090.24198@hermes-2.csi.cam.ac.uk> <D0B8757E-6274-42A7-9C1E-BAE6E9429D26@dnss.ec>
User-Agent: Alpine 2.00 (LSU 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1870870024-772889147-1386002182=:11548"
Sender: Tony Finch <fanf2@hermes.cam.ac.uk>
Cc: IETF DNSOP WG <dnsop@ietf.org>
Subject: Re: [DNSOP] DNSSEC validation latency
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Mon, 02 Dec 2013 16:36:38 -0000

✅ Roy Arends <roy@dnss.ec> wrote:
>
> > So in the trace above, step (4) is redundant: the resolver already
> > received the DS in step (1).
>
> In this case, yes. However, this is not consistent across all delegation
> points. As an example, UK and ORG.UK are hosted from the same set of
> servers. When asked about, say, nominet.org.uk, these servers will
> happily refer to the proper nameservers, including a DS record for
> nominet.org.uk. However, the validating resolver needs to explicitly ask
> for the org.uk DS record, since it will not show up in any delegation
> response.

Happily, unless there is more than one intermediate zone cut, the resolver
can get the missing DS and DNSKEY RRs in the same round trip it uses to
follow the referral.

But yes, that is a good example of a situation where you have to do
at least a little upwards validation.

> > Furthermore, the presence of the DS in the referral tells the resolver
> > that it will need the DNSKEY RRset in order to validate the answer, so it
> > should send queries (2) and (3) concurrently.
>
> Not necessarily. www.cam.ac.uk might be an unsigned delegation from the
> signed cam.ac.uk, so this might be followed by another query (for the
> www.cam.ac.uk record from the www.cam.ac.uk name servers).

Right, but having got the referral at www.cam.ac.uk and the cam.ac.uk
DNSKEY RRset, we are in the same situation as in my original example, but
one level further down the hierarchy.

> If that succeeds, only then validation makes sense.

Why? Why not validate the chain of referrals as you follow them? The
protocol is designed to support that otherwise it would not include the DS
in the referral.

Tony.
-- 
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/
Forties, Cromarty: East, veering southeast, 4 or 5, occasionally 6 at first.
Rough, becoming slight or moderate. Showers, rain at first. Moderate or good,
occasionally poor at first.