Re: [dhcwg] DDNS-DHCP [6]: Relationship between DNS TTL and DHCP lease length

Bruce Campbell <bc-namedroppers@vicious.dropbear.id.au> Mon, 23 June 2003 14:20 UTC

Received: from www1.ietf.org (ietf.org [132.151.1.19] (may be forged)) by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA22207 for <dhcwg-archive@odin.ietf.org>; Mon, 23 Jun 2003 10:20:56 -0400 (EDT)
Received: (from exim@localhost) by www1.ietf.org (8.11.6/8.11.6) id h5NEKTU10403 for dhcwg-archive@odin.ietf.org; Mon, 23 Jun 2003 10:20:29 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19USBJ-0002hi-R6 for dhcwg-web-archive@optimus.ietf.org; Mon, 23 Jun 2003 10:20:29 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA22168 for <dhcwg-web-archive@ietf.org>; Mon, 23 Jun 2003 10:20:26 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19USBH-0002TC-00 for dhcwg-web-archive@ietf.org; Mon, 23 Jun 2003 10:20:27 -0400
Received: from ietf.org ([132.151.1.19] helo=optimus.ietf.org) by ietf-mx with esmtp (Exim 4.12) id 19USBC-0002T8-00 for dhcwg-web-archive@ietf.org; Mon, 23 Jun 2003 10:20:22 -0400
Received: from localhost.localdomain ([127.0.0.1] helo=www1.ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19USAr-0002gE-PV; Mon, 23 Jun 2003 10:20:01 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by optimus.ietf.org with esmtp (Exim 4.20) id 19US6i-0002Z8-S6 for dhcwg@optimus.ietf.org; Mon, 23 Jun 2003 10:15:59 -0400
Received: from ietf-mx (ietf-mx.ietf.org [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA21993 for <dhcwg@ietf.org>; Mon, 23 Jun 2003 10:15:26 -0400 (EDT)
Received: from ietf-mx ([132.151.6.1]) by ietf-mx with esmtp (Exim 4.12) id 19US6R-0002SR-00 for dhcwg@ietf.org; Mon, 23 Jun 2003 10:15:27 -0400
Received: from birch.ripe.net ([193.0.1.96]) by ietf-mx with esmtp (Exim 4.12) id 19US6G-0002SK-00 for dhcwg@ietf.org; Mon, 23 Jun 2003 10:15:16 -0400
Received: from x22.ripe.net (x22.ripe.net [193.0.1.22]) by birch.ripe.net (8.12.9/8.11.6) with ESMTP id h5NEEJRT029442; Mon, 23 Jun 2003 16:14:19 +0200
Date: Mon, 23 Jun 2003 16:14:19 +0200
From: Bruce Campbell <bc-namedroppers@vicious.dropbear.id.au>
X-X-Sender: bc@x22.ripe.net
To: namedroppers@ops.ietf.org
cc: dhcwg@ietf.org
Subject: Re: [dhcwg] DDNS-DHCP [6]: Relationship between DNS TTL and DHCP lease length
In-Reply-To: <20030620224347.48646.qmail@cr.yp.to>
Message-ID: <Pine.LNX.4.44.0306231420410.611-100000@x45.ripe.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"
Sender: dhcwg-admin@ietf.org
Errors-To: dhcwg-admin@ietf.org
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.0.12
Precedence: bulk
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Id: <dhcwg.ietf.org>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>

On 20 Jun 2003, D. J. Bernstein wrote:

> Ted Lemon writes:
> > What's your experience with this - do you have any measurements about what
> > happens in practice as the time to die approaches?
>
> Clients throw the record away shortly after the time-to-die, and ask for
> new data when they need it, exactly as desired.

So far, its server-specific, and the information about the exact time for
ttd to take effect isn't transferrable via AXFR ( which can only transfer
offsets via TTL ).

What do clients see from tinydns?  Eg, for a record of 'dying.example.com'
which should expire at T+1500, would it be:

  Client A requesting 'dying.example.com' at time T receives:
	dying.example.com 1500  IN A 192.168.1.2

  Client B requesting 'dying.example.com' at time T+100 receives:
	dying.example.com 1400	IN A 192.168.1.2

?

So, Client A and Client B have _nearly_ the same RR set, just with
different TTLs.  The end effect is that both Client A and Client B will
drop the record from their cache at the appropriate time.  This is good,
right?

So, the next question is, since Client A and Client B received different
(authoritative) responses, does that mean that there were different
versions of the zone 'example.com' at time T and T+100 ?

If yes, there were different versions of the zone at T and T+100, then the
SOA serial needs to be updated, with the consequent flurry of AXFR
requests from the 'example.com' slaves when they noticed the SOA having
changed.

If no, there were not different versions of the zone (and no SOA serial
change) at T and T+100, then we run into problems with the 'example.com'
slaves giving different TTL values for 'dying.example.com' depending on
when they retrieved the zone.

( This space left blank for an 'AXFR is bad, use rsync' comment )

> > we were concerned that if you do something like this, the effect is
> > going to be a refresh storm as the time to die gets closer
>
> Please define ``refresh storm.'' Do you describe TTL-0 records as
> causing ``refresh storms''?

Section 3.4.2 of Vixies 1996 draft (related to implementation of
time-to-die) has the wording:

   3.4.2 - TTL Half Life

   Each time an RR's expiry reaches half of its previous value, that RR's
   TTL will be reduced to half of its previous value, until the TTL reaches
   a value less than or equal to sixty (60), i.e., one minute of real time,

   <snip>

   Whenever the TTL is automatically reduced by this process, the zone will
   be considered ``changed'' for the purpose of automatic SOA SERIAL
   increment (see [UPDATE 3.6]) and real time zone slave notification (see
   [NOTIFY]).


You could probably do wording such that the only time an SOA serial change
occurs (due to TTL/TTD behaviour) is when an SOA request comes in (so the
version of the zone on your non-time-to-die-internal-magic slave is
correct), but you've still got the problem of differing clients getting
differing versions of RRs in the zone without SOA serial change, which is
not a good precedent.

--==--
Bruce.



_______________________________________________
dhcwg mailing list
dhcwg@ietf.org
https://www1.ietf.org/mailman/listinfo/dhcwg