From owner-freebsd-questions Sun Oct 25 10:23:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA02759 for freebsd-questions-outgoing; Sun, 25 Oct 1998 10:23:25 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA02752 for ; Sun, 25 Oct 1998 10:23:21 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.1/8.9.1) id MAA08614; Sun, 25 Oct 1998 12:22:22 -0600 (CST) Date: Sun, 25 Oct 1998 12:22:22 -0600 From: Dan Nelson To: Graeme Tait , Studded , Greg Lehey , FreeBSD Questions Cc: info@boatbooks.com Subject: Re: Time calibration ? Message-ID: <19981025122222.A8447@emsphone.com> References: <3632EBDA.FD5F1529@gorean.org> <363353AE.2772@echidna.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.94.3i In-Reply-To: <363353AE.2772@echidna.com>; from "Graeme Tait" on Sun Oct 25 08:37:02 GMT 1998 X-OS: FreeBSD 2.2.7-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Oct 25), Graeme Tait said: > Studded wrote: > > For instance, Bryce could synch ds9 and voyager as peers, while > > synching each to a stratum 2 server outside of his network. It's > > generally considered rude for an "average user" to synch to a > > stratum 1 server without permission. It's also essentially > > unecessary, as a good stratum 2 server will provide more accuracy > > than any of us will ever need. > > That's my question - what does accurate time matter for in a typical > network, and how accurate is good enough? > > I ask because I'm involved in setting up a web/mail/ftp server, and > was wondering whether to use NTP. I notice quite a few Internet hosts > do not maintain accurate time, and are evidently just running on > their internal clocks, being perhaps a few minutes in error. Why not use NTP? It'll keep you from ever having to worry if your clock is set correctly. Depending on the business you run, your required clock accuracy will vary. At work, for example, our turnaround time for files clients FTP to us depends on the time the file hit our system (files sent after business hours get returned a day later). So we need to make sure that we are accurate to at least a minute or two. Same thing for ISP systems, if your billing changes for peak hours, or if you have to argue with a client about exceeding an hours-per-day agreement. If you are doing anything with Make across multiple machines, you'll probably want accuracy to the second. If you are doing any soft-realtime stuff, or need something to execute simultaneously on two different machines, you'll need sub-second resolution. NTP gives you all this, at the cost of less than 5 minutes of CPU-time per month :) The simplest way to NTP-synch a network is to create one or two NTP servers that synch to the same 2-3 NTP servers, and set them to broadcast NTP packets. Then just run "xntpd -b" on all your other machines and they'll stay synched. It's important to use the same set of sources because NTP never averages times. It determines a "best" time source and uses that. So if you have two NTP broadcast servers, each synched to a different strat-2 server, your other clients might flip-flop between those two servers. -Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message