Re: [DNSOP] New draft on delegation revalidation

Shumon Huque <shuque@gmail.com> Sat, 30 May 2020 17:45 UTC

Return-Path: <shuque@gmail.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 B45CA3A0903 for <dnsop@ietfa.amsl.com>; Sat, 30 May 2020 10:45:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 5VENQ-CQvenj for <dnsop@ietfa.amsl.com>; Sat, 30 May 2020 10:45:53 -0700 (PDT)
Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A5B803A08FF for <dnsop@ietf.org>; Sat, 30 May 2020 10:45:52 -0700 (PDT)
Received: by mail-ej1-x636.google.com with SMTP id mb16so5253865ejb.4 for <dnsop@ietf.org>; Sat, 30 May 2020 10:45:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=l4u+KVwf/r6xbe/PXSNgHpIJ697TTCBh0CQUzUdKx4Q=; b=qf8tSI/l/QIGYehOgMoiC8GjxTo/2EWM/GBaQ1PE2EivzlYWWhMzgiiT84oUT1XKtL +8uK7ufvkGmxCn4XIvVITdC1HnUt/xe20tEcd302qEANKzawcmZMXgMUmgxdDk653MFU c+490z15Y4VFG74npnEdGj7bRFplnM6qHQkVSTPlUtqSgOWJpVmwaXrYDfeIJtLrSIr6 U3x35UqrXaSHXkj8FmY4NcOCwepg5vKz9ZIejmjC2QZQEXrAfEMFwuSRmMXoMm/gQ2gW i7y12utx58+TZH8N3Ay9non2OWuM8M0gnR9/Foe/6HGc/cARpAwbzYpI4VqlosIkVx5X 99vQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l4u+KVwf/r6xbe/PXSNgHpIJ697TTCBh0CQUzUdKx4Q=; b=kb7d6SWSsaTbvbK1jSGWGapA43/gkQMCAbK3d5QJx1t/No40iG0kZh845aHbUgQg+q LdskhsGRoLqsNXSj0I0jsGUswOK7/W9PNEnO07LoNqUH8XIarqDXRtmkk9wSMpxqIJzE JXAYj9oyFiKDK5PGmBKucanzNlp9sMI9kcnsFerN5/QkHklqgyQrAa1fZxNDsQaYr/HV V6BHCiLJiR4l/sAaLODooLJSXicvdKSA18Ak++TgYOeOdpnOrBnw4oYv0sd+fG0Oc2QL 6gH/Q80bXcyHaP6Rjcse0H6Q05sPVz6ohWnVLG2/qIJaVPK9mX3BaYXbNwaiAMDg9Bsw iWeA==
X-Gm-Message-State: AOAM5333WqSfBp27+xzHeI4ZlZ5g0lvXXG4EQGEtO5DL0rB7tuoLlYQb cbts7/rR73j2MoCv/mz2FQPXVineJ2h4qZDsAoI=
X-Google-Smtp-Source: ABdhPJwCbRfZsQ8TY4adF4ttXzencS+Gx74qFqXTEOUq3gFpTdVchZXsDU9dVD+amepq/xWQYSw9QJuZbs8tZ+JmUvg=
X-Received: by 2002:a17:906:4554:: with SMTP id s20mr7085106ejq.241.1590860750036; Sat, 30 May 2020 10:45:50 -0700 (PDT)
MIME-Version: 1.0
References: <CAHPuVdV9eSCLQOqMF0cq8fHcuSZs7nCgjhHMfMoaV5H=ekbtSA@mail.gmail.com> <CAHPuVdX29yLG4VFMLq8ad7wgq2N-L=FfG=f-eBd2F6aP_q6CCg@mail.gmail.com> <0f92991e-991a-f497-9b75-cf924512b0ba@nic.cz> <33141878.RIuage5OGR@linux-9daj> <CAHQ5LGrmE0ErSe1dNW1HJptc37izfdhpvU+gT_egZ6P1v4+ksg@mail.gmail.com>
In-Reply-To: <CAHQ5LGrmE0ErSe1dNW1HJptc37izfdhpvU+gT_egZ6P1v4+ksg@mail.gmail.com>
From: Shumon Huque <shuque@gmail.com>
Date: Sat, 30 May 2020 13:45:38 -0400
Message-ID: <CAHPuVdV9dm5jk=kGGXHLemDXpW3VXHEJHMVGcnCwbxt_7=_G1g@mail.gmail.com>
To: Gavin McCullagh <gmccullagh@gmail.com>
Cc: Paul Vixie <paul@redbarn.org>, "dnsop@ietf.org WG" <dnsop@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e4a3a305a6e121d3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnsop/dXbFrTCA4a-sL92GDkz50slNNL8>
Subject: Re: [DNSOP] New draft on delegation revalidation
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: Sat, 30 May 2020 17:45:56 -0000

On Sat, May 30, 2020 at 1:13 PM Gavin McCullagh <gmccullagh@gmail.com>
wrote:

> Hi,
>
> On Thu, May 28, 2020 at 8:56 AM Paul Vixie <paul@redbarn.org> wrote:
>
>> On Thursday, 28 May 2020 14:38:11 UTC Petr Špaček wrote:
>> > On 25. 05. 20 5:23, Shumon Huque wrote:
>> > > ...
>> > >     Most importantly:
>> > >     - Does the NS affect maximum TTL of _other_ data in the zone?
>> > >
>> > > I think there are probably different views on what should happen here.
>> > > Folks who want very prompt takedown of "bad" domains, will probably
>> > > prefer a complete pruning of the cache at the delegation point at the
>> > > revalidation interval, if the NS set has changed or disappeared. ...
>>
>
> Those last few words seem very critical.  "If the NS set has changed or
> disappeared".
>
>
>> > E.g. if NS TTL was short (say 30 s) and it was used as cap on TTL of all
>> > other records in the zone, then each resolver instance would clear zone
>> > from its cache each 30 seconds. That might cause interesting behavior
>> when
>> > NS TTL is shortened e.g. before NS set change etc.
>> >
>> > I do not know if there really is a problem, I'm just trying to explain
>> why
>> > potential for thundering herd needs to be be seriously analyzed.
>>
>
> I think Petr's point might be that someone could interpret the draft
> (perhaps especially the simple mechanism) to mean that the NS TTL becomes
> an effective cap on the TTL of all records below the zone cut even where
> the NS set has not changed.
>
> If lowering a delegating NS TTL to 300 for a very large zone (or one high
> up the tree) meant a lot of resolvers might expire every record below the
> zone cut every 300 seconds (even unsynchronized), then it seems like
> lowering that TTL could produce a thundering herd.   I think the intent of
> the draft and Shumon's quote above are that a resolver should only expire
> cached subdomain records when the delegating NS changes.   Would it be
> useful to be explicit about that?
>

Gavin - yes, I agree. I was indeed deliberate in my wording about "If the
NS set has changed or disappeared" to avoid creating unnecessary work for
resolvers. This topic is not yet discussed in the draft, but assuming the
draft is adopted and we cover it, we can make it explicit.

One minor other question:
>
>       To revalidate a delegation, the iterative caching DNS resolver
>       will forward the query that triggered revalidation to the
>       nameservers at the closest enclosing zone cut above the
>       revalidation point.
>
> Does "the query that triggered revalidation" refer to the original client
> query which had RD=1?  If so, does this fit with qname minimization?
>

Yeah, good catch. We need to adjust that text slightly to be compatible
with qname minimization, which should be pretty straightforward - it's just
pruning the requisite number of left most labels for the enclosing zone.

Shumon.