Re: [dhcwg] Re: [ntpwg] Network Time Protocol (NTP) Options for DHCPv6

Danny Mayer <mayer@ntp.org> Tue, 27 November 2007 14:07 UTC

Return-path: <dhcwg-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ix15v-0003Gh-86; Tue, 27 Nov 2007 09:07:23 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1Ix15u-0003F0-AT for dhcwg@ietf.org; Tue, 27 Nov 2007 09:07:22 -0500
Received: from exchdev.pega.com ([198.22.153.35] helo=exchdev.rpega.com) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1Ix15t-0001YI-Pk for dhcwg@ietf.org; Tue, 27 Nov 2007 09:07:22 -0500
Received: from [10.60.98.36] ([10.60.98.36]) by exchdev.rpega.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 27 Nov 2007 09:07:21 -0500
Message-ID: <474C23F2.9060301@ntp.org>
Date: Tue, 27 Nov 2007 09:04:34 -0500
From: Danny Mayer <mayer@ntp.org>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: "David W. Hankins" <David_Hankins@isc.org>
Subject: Re: [dhcwg] Re: [ntpwg] Network Time Protocol (NTP) Options for DHCPv6
References: <4733482A.7020302@sun.com> <A05118C6DF9320488C77F3D5459B17B70634E4E5@xmb-ams-333.emea.cisco.com> <473D0C34.4030507@ntp.org> <1195185173.26090.4.camel@uma> <474114E3.9040309@ntp.org> <474198BA.3000109@sun.com> <1195484306.9159.13.camel@uma> <4741D057.4070703@ntp.org> <20071119232225.GJ14750@isc.org> <47479E84.8080309@ntp.org> <20071126184216.GG24311@isc.org>
In-Reply-To: <20071126184216.GG24311@isc.org>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 27 Nov 2007 14:07:21.0183 (UTC) FILETIME=[D3B65EF0:01C830FE]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: b4a0a5f5992e2a4954405484e7717d8c
Cc: "ntpwg@lists.ntp.org" <ntpwg@lists.ntp.org>, DHC WG <dhcwg@ietf.org>
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: dhcwg.ietf.org
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
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>
Errors-To: dhcwg-bounces@ietf.org

David W. Hankins wrote:
> On Fri, Nov 23, 2007 at 10:46:12PM -0500, Danny Mayer wrote:
>> That's currently the situation with the reference implementation of
>> ntpd. It gets its configuration information and doesn't go back. You can
> 
> You can classify this as an ntpd problem, or a system integration
> problem.
> 

It's an ntpd problem though we have several methods of updating the
server using ntpdc and ntpq.

> In the former, you might want to accept a HUP sometimes.  In the
> latter, all the tools to restart the daemon are already available.
> 
> Whichever one you choose, you'll still get the job done.  If ntpd
> accepts HUPs, maybe you can optimize 'keeping your clock synched'
> across reconfiguration events.
> 

We really do *not* want to use HUP since that causes a restart and
that's a bad idea for ntpd which is designed to be long-running. It
frequently takes several hours for it to settle now into a stable state
and disciplining the clock. A HUP would disrupt this. Rereading the
configuration file is not straightforward either as you could well be
changing its operational behavior and not just changing server settings.
For what you are talking about with the DHCP provided NTP server
addresses you really only need something like ntpdc -c "add server ..."
comands.

>> now. So for the DHCP client to have an influence on what it uses for
>> servers it either needs to use ntpdc, send private mode 7 NTP packets,
>> restart ntpd, or have some sort of interface for ntpd to get updated
>> values from the DHCP client.
> 
> The client itself has no need to do this.  The operating system's
> configuration management system which accepts DHCP input needs to
> solve this problem.

Sorry, that's what I meant.

> For ISC, we call this "dhclient-script", and although we package
> several examples with our software I know of no actual operating
> systems that use them...they all cook their own scripts that
> integrate with their configuration management.
> 
> Still, it is trivial;
> 
> 	if [ x$new_ntp_servers != x$old_ntp_servers ] ; then
> 		rewrite_ntp_conf()
> 		rcntp force-reload
> 	fi
> 
>> Well, if ntpd can poke the DHCP client for new values, presumably it can
>> request new values from the DHCP server to pass back to ntpd. That's not
>> even defined.
> 
> Presently, all the poking is in the opposite direction.  What I was
> referring to here is that there are Server->Client messages that can
> suggest the client needs to update its config, rather than wait for
> the usual lease renewal timer to expire.

If the address provided by DHCP is not providing NTP service ntpd will
drop it. So in this case it has no recourse.

Danny

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