Network Time Syncronization via GPS? 63
TrAvELAr asks: "I run a rather large network for a research company and I have been tasked with a project to ensure that the time is accurate on all of our studies. Right now, I am using the time service built into Windows 2000 to sync all of our workstations with one of our servers. My problem lies in the fact that I can't prove that the time on my server is accurate. Because of the nature of our research, our network is not allowed to access the internet, thus ruling out synchronization to NIST and other time servers. I've been toying around with the idea of syncing it via GPS. I've done some research on the net and found a couple of places that offer packages for this at a fairly high price. I believe that this is something that I could do myself if I could find the right interface software. Has anyone out there had any experience with this type of project? I would appreciate any feedback/suggestions from anyone out there who has implemented/maintained a similar system."
Use ntp. Period. (Score:3, Informative)
Windows net time
Real synching of clocks can be done with NTP [ntp.org], the network time protocol. And yes, it can sync one computer's time to GPS...
Read the FAQ [udel.edu] for more information... and the newsgroup comp.protocols.time.ntp [google.com] is read by many helpful people! .
Re:Use ntp. Period. (Score:1)
Re:Use ntp. Period. (Score:1)
> Real synching of clocks can be done with NTP
ntp is good, and the ntp.org [ntp.org] site is good, too. also good is that NT has an NTP client as part of the NT Server Resource Kit. Microsoft has an article about this on TechNet [microsoft.com].> [ntp.org], the network time protocol. And yes, it
> can sync one computer's time to GPS...
This in combination with some external software to drive your internal NTP server should keep all of your nodes on the correct time.
Re:Use ntp. Period. (Score:1)
Rather, he is talking about the windows time service, which is Microsoft's implementation of SNTP. This is part of win2k and winxp.
It works well enough for most uses although for something like what's trying to do, I would use ntpd on the master Windows box since it is much, much more flexible and configurabel and just use windows time service to keep the rest synchronized to that.
Re:Use ntp. Period. (Score:2)
Win2k does NTP... Oh, I did not know that, I thought that was a new feature of Windows-for-toddlers (XP)
Nevertheless... there is (/was not long a go) a thread on comp.protocols.time.ntp talking about why WiXP's sntp seems to be severly broken! ([click] [google.com])
Re:Use ntp. Period. (Score:1)
They are bad, bud not *that* bad...
Re:Use ntp. Period. (Score:1)
He is likely not talking about 'net time
Clueless. (Score:2)
- A.P.
Just get a Shortwave reciever..... (Score:3, Informative)
Here is one from NIST, detailing differnt ways (you could always use a modem, the cheap route):http://www.boulder.nist.gov/timefreq/genera l/pdf/834.pdf [nist.gov]
And here is a German company that makes a ISA card:http://www.quancom.de/quancom/quancom01.nsf/
Re:Just get a Shortwave reciever..... (Score:1)
I also have a Garmin Etrex GPS linked up to my car machine: it is very easy to parse the NMEA sentences with the correct time. Make sure that the receiver can get reception: my gps is fine near the window. Take a look at Peter Bennett's site [vancouver-webpages.com] for NMEA information.
There are probably inexpensive alternatives. (Score:1)
http://www.simplyradios.com/acatalog/rev99193.h
Re:There are probably inexpensive alternatives. (Score:1)
There are low cost stand alone timeservers... (Score:1)
Radio waves? (Score:1)
Time Sync on the cheap... (Score:1)
The other machines could have wireless cards too, but alter the driver such that it can't do anything but listen for this one signal, and can't actually send any data or recieve anything but the ping.
This way you get the security of non-connected machines, but the accuracy of a clock synched over the internet, and it'll set you back a couple hundred dollars at the most.
Re:Time Sync on the cheap... (Score:1)
Re:Time Sync on the cheap... (Score:2)
Re:Time Sync on the cheap... (Score:2)
Uh-huh. No. -- autocracy
you are a complete idiot. -- AC
Moron -- AC
Excellent rebuttals, folks. Whoever said the art of conversation was dead?
Use a dedicated radio NIST time receiver (Score:1)
NIST used to have a modem dial-in time server, but I'm not sure of its whereabouts as of late.
Re:Use the W32Time service (Score:1)
A Real Trusted Time Source: an NTS box (Score:2, Informative)
We run a secure datacentre and provide a Stratum-1 time source using a Lantronix Network Time Server (CoBox-NTP-E1) [about $1,500.]. It is a network-attached device with an IP that broadcasts the time to a second level time server. It has an attached cable that goes to a GPS antenna that receives the signal. The only problem with these devices is that the antenna obviously has to be _outside_ of the computer room to get a good signal, which can be a problem with some people who have already sealed up their Lampertz bunkers!
Anyways, it works great, no signal drift, and, as a previous poster mentioned, NTP is a MUST to ensure that the signals on all the Windows domains, firewalls, switches and anything else looking at the Stratum-2 server don't drift in their own merry direction with periodic "violent" recorrections to the correct time.
There are 3 excellent white papers from SUN detailing how NTP works, which is much more complex than you might initially think. See:
http://www.sun.com/blueprints/0701/NTP.pdf
http://www.sun.com/blueprints/0801/NTPpt2.pdf
http://www.sun.com/blueprints/0901/NTPpt3.pdf
for good info on how to do this properly. Lots of fun!
-wjc.
Possible alternative (Score:2)
It sounds like you are looking for something that can be done cheaper...
You MAY be able to use an ordinary handheld GPS receiver as a Timeserver. Many handhelds come with a NMEA (National Maritime Electronics Association) interface that allows you to interface with your computer or the navigational systems on a boat or aircraft.
I believe you can get the protocol specs at www.nmea.org, if not google for it. Once you have the specs, it shouldn't be that difficult to write a program to set the clock on your timeserver in C or Perl!
dedicated NTP servers (Score:1)
Some of their boxes have modems to dial direct to a phone line NIST has set up for the purpose, to check other NTP servers to compare times (not really useful to you).
I have also seen, but lack links for, similar boxes with atomic clocks right in the case, likely in the same price range.
Lantronix CoBox E1 (Score:3, Informative)
It's relatively inexpensive (~$1500 w/GPS antenna and cable last time I checked) and seems to work well.
The best way to set this particular box up is to have ntp running on a regular server, and have that server get it's updates from this box while other clients get their update from the server. This unit doesn't seem to scale well to provide a time source for a lot of clients.
If you're really paranoid, you could simultaneously set up a system to check NIST signals for time and then let GPS and NIST duke it out in your ntp server.
Re:Lantronix CoBox E1 (Score:2)
From the sounds of it, that would actually make your system time less accurate. NIST will tell you themselves that there's generally +/- 0.5 second error when you try to poll their servers over the internet. They actually reccomend that you use their dial-in modem line for die-hard time synch since the lag over the phone lines is both smaller and more predictable.
GPS time, on the other hand, is about as accurate as technology allows without having a bank of cesium clocks in the building with you. If GPS weren't gobs better than a good mechanical chronometer, it'd be worthless to the military and probably wouldn't have even been launched. Wars have been won or lost, empires risen or fallen all because one side had more accurate timepieces. Hell, the USNO's and NIST's clocks are probably just as important if not more important to national defense than our nuclear arsenal.
Now, do you really think that the time given by GPS can somehow be made more accurate by polling some ground station hundreds of miles away across a network of patchwork links where terms like "latency" and "signal lag" are more of a guessing game than a science?
A cheaper solution? (Score:2, Informative)
Re:A cheaper solution? (Score:1)
http://store.exit.com/store/item.html?sku=GPSCL
Cheap GPS solution (Score:2, Informative)
How much accuracy do you need?
Every GPS on the market with a serial port outputs NMEA format messages (well, almost all, check before you buy). Those messages contain the current time in nice easy-to-read ANSI text.
Here's an example:
$GPGGA,162245.00,4842.6942,N,11342.9476,W,1,05,
The second field there is the time HHMMSS.SS. Here's a link to the NMEA protocol:
http://www.starlinkdgps.com/manuals/invictaprot
If you need more accuracy than that, you could get a GPS with a 1PPS output - the Motorola Oncore series comes to mind. Prices are pretty cheap, though not as cheap as your average consumer model. Tie the 1PPS output to a serial port's DTR line and write a small driver to read the value. Latency of that driver is the prime determinate of your accuracy at that point.
Call NIST (modem, not internet) (Score:2)
NIST has an Acutomated Computer Time Service (ACTS) [nist.gov] that you can call with a 300-9600 baud modem. (The full data is only available at 1200B or higher.)
If a modem is also out, you may be still be able to use this by setting up a special-purpose system that has a modem, but all network services are disabled except NTP. Delete the binaries for all other network services, seal it in a plywood box, and it will be hard to distinguish from one of the GPS or wireless time servers.
As a worst case scenario, once a week call 303 449 7111 (NIST phone service for WWV), set your watch, then walk into the computer room to set the time server's time.
Delorme EarthMate Time Sync (Score:2, Informative)
http://www.floatingdoghead.net/source
The TractorBeam program with my mod to serial.c for the 2.2.19 kernel is posted there. This is free hackware under the GPL. It works in conjunction with the affordable Delorme EarthMate GPS receiver.
I have not worked on this code for over a year, so I'm a little rusty on it. I never tested what happens when DST kicks in, but as I remember, all computations are done in regards to UTC, so it may be a non-issue. I keep my firewall set to UTC as a matter of course. This program (and the associated kernel module) keep the clock swings within a couple of mS. You may need to apply a delta correction if you are concerned with absolute synchronization. When I wrote this, I was more concerned with eliminating drift as much as possible, and not in attaining absolute time sync.
Cheers.
Re:Delorme EarthMate Time Sync (Score:2)
2 of many options... (Score:2, Informative)
2 years ago I wrote a small C program to synchronize a Windows PC to a Trimble [trimble.com] GPS: easy. A RS232 library, a quick look at the Trimble communication protocol and it was done in under 4 hours.
Last week I've been synching my SGIs using ntp (Network Time Protocol) [udel.edu] and I saw in the documentation that it can also synch to a GPS. Didn't look at the details though, but probably through the serial port. And ntp is free.
Here's a blatant Dr. Who reference: (Score:2)
I use a program called "Tardis 2000" [demon.co.uk] from H. C. Mingham-Smith, Ltd. [demon.co.uk] in Berkshire, England. It's shareware, so you can use it now; for the honest, it only costs $20. It will interface with a standard NMEA GPS (which most are), so you can solve your problem for the cost of the software and a $200 commodity consumer GPS with a serial cable. (I'd suggest you get one with an external antenna option.) Heck, it'll even run as an NT/2000 service, so you don't get clutter in your system tray.
(According to it, my clock drift is 4.703 seconds per day, based on time signals from tick.usno.navy.mil -- do you need thousandths-of-a-second accuracy? I sure don't! I think it shows the general precision of a computer's clock, though.)
The GPS time units I suspect you've looked at are paired with, I believe, a disciplined frequency standard. IIRC, it's nothing much more than an oven-regulated quartz crystal and a huge price tag. Yes, they are extraordinarily accurate and precise, but the clock drift that'll occur between your workstations' time synchronizations will completely negate the ridiculous accuracy of such a device. Don't waste your money, if you need "precise time, accurate to ±1 second," then you're set for about $220 to $250.
Besides, I love the name -- it's so perfectly appropriate.
How about using RF? (Score:1)
Andy
Get silly, use OCR+CCD+an autosetting clock (Score:1)
This method will work when you have no line of sight to the sky for GPS and no network access or modem access.
I've been thinking of doing this with an array of devices. Monitor voltmeters or something. Useful when you want extreme optical isolation!
t.
Why not try a serial port and a RF clock? (Score:3, Informative)
Now that I think about it, I might get one of these for myself, and stop relying on NTP.
Look into Ultralink (Score:1)
So... (Score:2)
Re:So... (Score:3, Insightful)
If something is connected to the Internet, it is a major vulnerability. Period. What would happen if a 'sploit for NTP was out and someone used it against the bridge machine? Your entire network of vulnerable information is now potentially compromised...
Paranoid approach? Sure. Vital to provide every possible safeguard against loss/compromise of sensitive information? Absolutely...
Re:So... (Score:2)
Re:So... (Score:2)
After all, "higher in the food chain" means they eat him if he's too slow.
Re:So... (Score:2)
Re:So... (Score:2)
Mostly what I'm saying, though, is that if The Powers That Be decree that the interface cannot be pink, then I don't care how good the Barbie GPS receiver might be -- it'll either have to be painted or another way found. It's a constraint upon the solution.
Re:So... (Score:2)
I don't suppose you've seen the root hole in NTPd?
I don't suppose you believe that was the only root hole to exist in that package, and all possible future holes in the NTP protocol and implementations have since been fixed?
Re:So... (Score:2)
Re:So... (Score:2)
A GPS installation with the receiving antenna shielded from terrestial transmitters but with a clear view of the sky would be much more difficult to successfully attack without physical access directly to the antenna. You might be able to block my reception of the time code, but not spoof the wrong time with any degree of success.
While I'm not aware of any non-military receivers taking advatange of the feature, DoD receivers have anti-spoofing protection specifically designed to safe-guard against interference, jamming and falsified signals.
In our case, we have two GPS receivers, one in the central US, one on the west coast, they communicate with each other using authenticated NTP on a private WAN.
Re:So... (Score:2)
Re:So... (Score:2)
Depends on the precision and accuracy you want. (Score:2)
First, you need to get the receiver in a place where it can see a big portion of the sky. A window in a building may be enough to get the time and keep it synced, but that's about it. The roof is a better place.
Second, if you get one of the real expensive GPS receivers, you get better precision and an antenna you can put on the roof, but you're paying through the nose (compared to $150).
hope this helps.
Re:Depends on the precision and accuracy you want. (Score:2)
The magellan does not need to be outdoors for a good time signal. 3 + sats in view are not nessary for a time signal. I get a signal when I am within 5 feet of the window in my office.
Cheap GPS can be inaccurate (Score:2)
However, I'm told that cheap GPS units often have feeble processors with pretty lousy software that gives low priority to some things that really ought to be important. I seem to recall mention on the navigation mailing list that some units have errors of as much as 4 seconds on their LCD time displays.
I guess that the moral is you should be careful what you buy. If I were going to go the GPS route, I'd hook my shiny new Garmin up to the serial port of a machine running NTP to a level-1 or level-2 server. Then I'd whip up a little test program that compared the NMEA time to the NTP-synced time. If it was accurate over a period of several days, then I'd trust the setup. If not, I'd return the damned thing and try another.
PCI Cards (Score:2, Informative)
seems like it would be cheaper not to mention easyer. no cables to run or hook up and less software to configure.
doing it via gps would be a cool hack though.
For real Time Sync. (Score:2, Informative)
Check out http://www.analogx.com/contents/download/network/a ts.htm [analogx.com], the program can get it's time from you, the NIST servers (i.e. use a laptop to get the time from the internet and then use it's corrected time to set the time on your primary server.) or from your GPS solution.
You need multiple time sources (Score:2)
I consider this article from Dave Mills [google.com] must reading.
Also, if you go to google and search [google.com] all articles in comp.protocols.time.ntp from 2001/12/31 to 2002/01/05 you'll notice a lot of threads about the GPS bug that bit many.
Imagine your entire network going ape shit setting their clocks to some insane value and what that would have on, for example, audit records on your databases...
Depending on the size of the network... (Score:2)
All current versions of cisco IOS do NTP. If you have serveral routers, tell them all to do NTP. I tell all my boxes that their ntp server is their default router to make life easy. The problem is they will need a time source and you said you can't connect the net. If you have a big cisco router, you may be able to hook a GPS clock up to it. You could hook up another server that gets its time from GPS or WWV or dialing into the US navy or temporary connection to the net and using ntpdate. The routers will help smooth out the time jumps and the other server will keep the time within a second.
The serial NMEA sequences out of most GPS recivers are not very good and tend to cause NTP to drift. Motorola used to make a GPS reciver just for time but they no longer make it. If your looking at just using any GPS, the $160 Garmin GPS 17 [garmin.com] can be mounted on a pole outside and has RS-232 out. If your more into raw electronic modules, their GPS 25 has a 1hz signal out.
I've got two solaris servers at work that I use ntpdate to force a time update using cron. One drifts 2 seconds a day and the other
Remember lighting likes antennas. GPS antennas tend to work better in out of the way places than WWV antennas. A GPS antenna will work with just a 45 degree cone view of the sky.
Easy solution, depending on policies... (Score:1)