Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Server system date synchronizaion
Date: Sat, 27 Apr 2013 15:07:13
Message-Id: 517BE95A.2070707@gmail.com
In Reply to: Re: [gentoo-user] Server system date synchronizaion by Nick Khamis
1 On 26/04/2013 23:28, Nick Khamis wrote:
2 > On 4/26/13, Alan McKinnon <alan.mckinnon@×××××.com> wrote:
3 >> On 26/04/2013 19:11, Nick Khamis wrote:
4 >>>>>>> Thank you so much for your response, and I totally understand the
5 >>>>>>> effort vs. benefit challenge. However, is it really that much
6 >>>>>>> trouble/unstable to setup our own ntp
7 >>>>>>> server that syncs with our local isp, and have our internal network
8 >>>>>>> sync
9 >>>>>>> on it?
10 >>>>>
11 >>>>>
12 >>>>> No, it's not THAT much effort. You can get by with installing ntpd on
13 >>>>> a
14 >>>>> single machine, pointing it at the upstream time server and pointing
15 >>>>> all
16 >>>>> your clients to it. It's clearly recorded in the config file, you
17 >>>>> can't
18 >>>>> go wrong.
19 >>>>>
20 >>>>> It's understanding how this weird thing called time works that is the
21 >>>>> issue. Take for example leap seconds..... urggggggggggg...
22 >>>>>
23 >>>>> The basic question I suppose is why do you want to do it this way?
24 >>>>> What
25 >>>>> do you feel you will gain by doing it yourself?
26 >>>>>
27 >>>>>
28 >>>>> --
29 >>>>> Alan McKinnon
30 >>>>> alan.mckinnon@×××××.com
31 >>>>>
32 >>>>>
33 >>>>>
34 >>> Hello Alan,
35 >>>
36 >>> Thank you so much for your time. Our voip cluster time always vary for
37 >>> some reason....
38 >>> And with long distance, that could mean upwards to a dollar a call.
39 >>
40 >>
41 >> Ah, OK. That changes things quite a bit. I have a little bit of
42 >> experience with that - I work for a large ISP, we have a large VOIP
43 >> department and we run a stratum 2 time server that serves most of the
44 >> country.
45 >>
46 >> First things first: you can't just stick any old upstream ntp server in
47 >> your config and walk away. You are then reliant on the quality of that
48 >> upstream, and far too often other time servers operate on a "good
49 >> enough" policy - if it's accurate to about a second, it's good enough
50 >> (and for desktop users i.e. most ISP clients, it is good enough).
51 >>
52 >> I don't know how big your operation is, if you have budget I suggest you
53 >> invest in a proper master time source that is GPS-driven. We have a
54 >> Symmetricom (http://www.symmetricom.com) but it's a mature market with
55 >> several vendors. Shop around, prices are less than you'd expect (about
56 >> the same as a decent mid-range server and much less than Cisco's
57 >> routers...)
58 >>
59 >> Weather can get in the way, so back up the device with a decent second
60 >> upstream. I have a good one available run by the Science and Technology
61 >> Research part of the Dept of Trade and Industry and the third option is
62 >> all the other big ISPs around.
63 >>
64 >> Depending on your accuracy needs you could get away without the GPS unit
65 >> and just use a good upstream, but I'd fight for the budget for it - tell
66 >> management it puts control of billing back in your hands, they always
67 >> fall for that one :-)
68 >>
69 >> So the summary would be that I reckon ntpd will do what you want as long
70 >> as you chose good reliable time sources. With that in hand, the config
71 >> is easy as rather well documented. Shout here ont he list if you need a
72 >> hand with this when you come to deployment time
73 >>
74 >>
75 >>
76 >>
77 >> --
78 >> Alan McKinnon
79 >> alan.mckinnon@×××××.com
80 >>
81 >>
82 >>
83 >
84 > Any suggestions for a "reliable", use that word cautiously ntp server.
85 > Requests are coming from canada. Was there not a project that dealt
86 > with setting up a network across the globe just for serving up NTP
87 > services? Did that marvelous idea die out?
88
89 Isn't that what pool.ntp.org does?
90
91 As for reliable, I'm not familiar with how Canada has set itself up, but
92 most Western governments have a "Science and Technology" department or
93 NGO and most run time servers to serve the local scientific community.
94 They might not let you sync to their server (stratum 1 providers are
95 touchy) but someone will sync to it, and they in turn may provide a free
96 time service.
97
98 Start by Googling "stratum 1 time server Canada" and see where that
99 takes you. Really, this stuff isn't hard and you will be up and running
100 in no time. The hard part is when *you* provide a public service and
101 need to pay attention to the insane amount of detail inherent in this
102 subject.
103
104
105 --
106 Alan McKinnon
107 alan.mckinnon@×××××.com