Re: [dhcwg] [ntpwg] Fwd: New Version Notification for draft-ogud-dhc-udp-time-option-01.txt

Olafur Gudmundsson <ogud@ogud.com> Mon, 02 December 2013 15:31 UTC

Return-Path: <ogud@ogud.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 02DC81A1F62 for <dhcwg@ietfa.amsl.com>; Mon, 2 Dec 2013 07:31:58 -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, RCVD_IN_DNSWL_NONE=-0.0001] 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 toHOVHjAOUp6 for <dhcwg@ietfa.amsl.com>; Mon, 2 Dec 2013 07:31:55 -0800 (PST)
Received: from smtp98.ord1c.emailsrvr.com (smtp98.ord1c.emailsrvr.com [108.166.43.98]) by ietfa.amsl.com (Postfix) with ESMTP id AB06B1A1F65 for <dhcwg@ietf.org>; Mon, 2 Dec 2013 07:31:55 -0800 (PST)
Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp5.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 495C11B00B1; Mon, 2 Dec 2013 10:31:53 -0500 (EST)
X-Virus-Scanned: OK
Received: by smtp5.relay.ord1c.emailsrvr.com (Authenticated sender: ogud-AT-ogud.com) with ESMTPSA id BB2DA1B00B2; Mon, 2 Dec 2013 10:31:52 -0500 (EST)
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Olafur Gudmundsson <ogud@ogud.com>
In-Reply-To: <529CA616.3010402@ntp.org>
Date: Mon, 02 Dec 2013 10:31:50 -0500
Content-Transfer-Encoding: quoted-printable
Message-Id: <D82E52A5-F0CF-4A0A-AE1B-0440CAAC8CE7@ogud.com>
References: <20131202044734.B78E0406060@ip-64-139-1-69.sjc.megapath.net> <529C1A31.2080900@ntp.org> <258D838F-F4BA-45D2-AA41-BB05E3AB147C@ogud.com> <529CA616.3010402@ntp.org>
To: mayer@ntp.org
X-Mailer: Apple Mail (2.1510)
Cc: NTP Working Group <ntpwg@lists.ntp.org>, "dhcwg@ietf.org WG" <dhcwg@ietf.org>, Hal Murray <hmurray@megapathdsl.net>, Ted Lemon <ted.lemon@nominum.com>, Bernie Volz <volz@cisco.com>
Subject: Re: [dhcwg] [ntpwg] Fwd: New Version Notification for draft-ogud-dhc-udp-time-option-01.txt
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Dec 2013 15:31:58 -0000

On Dec 2, 2013, at 10:24 AM, Danny Mayer <mayer@ntp.org> wrote:

> On 12/2/2013 8:47 AM, Olafur Gudmundsson wrote:
>> 
>> On Dec 2, 2013, at 12:27 AM, Danny Mayer <mayer@ntp.org> wrote:
>> 
>>> On 12/1/2013 11:47 PM, Hal Murray wrote:
>>>> Does DNS using DNSSEC return a specific error code for time-invalid?  Or just 
>>>> a generic didn't-work?
>>>> 
>>>> How close does the time have to be for DNSSEC to work?
>>>> 
>>> 
>>> That's a question that should be asked in the dnsext WG mailing list
>>> (though technically the Working Group is now closed). Olafur and I
>>> (apart from Ted who is IETF area director) are probably the only ones on
>>> these lists who participate in that mailing list. Olafur was one of the
>>> cochairs of the DNS ext working group.
>>> 
>>> The document does not describe the DNSSEC requirements for accurate time
>>> and probably should so that it can be assessed in that light.
>>> The ones I know about are RRSIG inception time and expiration time and
>>> then there are certificate expiration date-times.
>>> 
>>> The proposal seems to suggest that a timestamp in 64-bit time_t be
>>> distributed by DHCP. I'm not sure why not a NTP timestamp instead.
>>> However most systems running a DNS server is likely to have a static
>>> address in the first place and that is what DHCP distributes as
>>> nameservers to query. Since they use static addresses do they
>>> participate in DHCP services at all? And who says that the DHCP server
>>> itself has accurate time?
>>> 
>> 
>> Danny, Thanks for the kind introduction 
>> 
>> The reason for time_t is the dhcp-client can feed that directly into following call:
>> 	 settimeofday(const struct timeval *tp, const struct timezone *tzp)
>> 
>> If there is better construct I wold be happy to update the draft with that. 
>> 
>> Be careful when you say "most systems running a DNS server" 
>> are you talking about resolver or authoritative server.  
>> 
> 
> I actually mostly meant resolvers and authorative servers are really no
> different in the sense being discussed here.
> 
>> In the second case you are right they are static and frequently well provisioned with good bandwidth, and 
>> at boot time the system has good idea why the current time is, but for all practical purposes unless they are signing
>> on the fly they do not need accurate time. 
>> 
>> ON THE OTHER HAND, resolvers and X.509 certificate checking is distributed and can take 
>> place on any device. As I said in another message DNS resolution is being pushed to the edge 
>> as devices that migrate between networks cannot count on the "local resolvers" to be "DNSSEC ready" 
>> 
> I doubt that the number of "local resolvers" used by the general
> populace that can support DNSSEC reach even .1% today, never mind
> whether the server has it enabled.
> 

Chrome and Firefox have DNSSEC validation libraries in testing. 
Once they turn that on the numbers will jump. 
X.509 cert checks happen on edge devices today in large numbers. 
This is not just for DNSSEC this is for any device that wants to do time check before NTP can finish. 


>> You are right we can not count on the DHCP server to have good time, thus any DHCP server answering 
>> with the proposed option would need to make sure it has "decent current time", that is the reason I say in the
>> draft that the time should be within 10 minutes. 
>> When playing with cheap home routers I discovered that the devices can easily drift an hour a day, if NTP is not
>> invoked regularly, most of these devices just use 'ntpdate' and frequently run it from startup script once. 
>> 
>>>> Could this problem be solved by setting up a bank of NTP servers at well 
>>>> known IP Addresses?  Say, one next to each root DNS server.  If you tried to 
>>>> do that, I'd expect a serious problem would be overload because idiots would 
>>>> try to use them for normal NTP use rather than just getting off the ground.  
>>>> It might be possible to discourage that by making them return crappy time.
>>>> 
>>> 
>>> No, it would just overwhelm them. See the NIST time servers for an
>>> example of heavy load.
>>> 
>>>> 
>>>> ted.lemon@nominum.com said:
>>>>> As for the home router use model, it may be that what you really want is for
>>>>> the home router to query for an FQDN-only DHCP option from the ISP DHCP
>>>>> server, and then resolve that FQDN and respond to DHCP clients on the
>>>>> homenet with an IP address.   Since the FQDN is not hard-coded, and the IP
>>>>> address is (one hopes) resolved either at query time or when its TTL
>>>>> expires, this ought to prevent a repeat of the firmware burn-in incident. 
>>>> 
>>>> Most ISPs already provide DNS servers for their customers.  How do their IP 
>>>> address get setup in home routers?  Could NTP servers piggyback on that 
>>>> mechanism if ISPs also provided NTP servers?
>>> 
>>> I wish they would provide NTP services in the same way. Unfortunately
>>> although most ISP's will have NTP servers they do not usually tell their
>>> customers about them and they certainly do not provide authenticated
>>> packets like autokey.
>>> 
>>> Danny
>> 
>> Will a hotel network provide NTP server, and would you trust it? 
>> Will a coffee shop provide NTP server ??? 
>> 
> 
> I would consider them no better than the ISP's. They only provide basic
> services and almost certainly not NTP. But then how many applications
> out there will demand DNSSEC authenticated information? Generally there
> is no API to specify that from an application. When this gets into
> browser software and banks give DNSSEC authenticated addresses then it
> might take off.
> 
> Danny
> 
See above, 

	Olafur