Feeding GPS Time to a Private NTP Server?
farrellj asks: "I have a customer that wants to be able to sychronise time on hundreds of servers that are spread all across the continental US and Hawaii. He was using publicly accessable NTP servers, but would rather have his own server that is not dependant on outside servers, and not have to worry about NTP based attacks. You can get a good quality and accurate time from GPS, so he looked at using a GPS reciever hooked up to a machine in his server room, but none of the GPS software out there seem to be able to just pull out the time, and then feed it to an NTP server. Has anyone tried to do this before, or know of a program that will read at GPS reciever and feed it to a NTP server process?"
How to find the answer to the question the user has posed:
This has to be the lamest question in the history of "Ask Slashdot".
<Whine>
</Whine>
Note to Editors: For "ask Slashdot" posts, please at least TRY to do a "google" on the question to see if it is lame or not.
(Modded down as irrelevant/troll/slam on the editors)
LongTail SSH Brute Force analysis tool is here!
While it's true that GPS units can be used as a time standard, it's not the best solution to this problem. GPS uses satellites the power is very limited and you can't use them indoors.
A much better solution is to use a standard shortwave receiver that can pick up the digital time signal from WWV. That signal is much stronger and can probably be picked up inside most buildings (perhaps with a simple antenna) in most of the country. That's why this is the signal used by desktop "atomic clocks." You might be able to use one of them as a time source, but I would suggest checking the NTP documentation for recommendations for hardware that supports PPS signals. There's also some websites describing DIY radio receiver hardware.
The downside of this approach is that there's a propogation delay in the ground signal. GPS should give you the current time accurate to microseconds, while the radio delay may be in the milliseconds. (Ground waves are closer to a signal down a wire than a signal through free space, so the prop speed is well under 'c'.) This should not be an issue except for the most demanding uses.
For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken
There are a number of purpose built systems that are designed as highly accurate NTP stratum 1 servers, with GPS input.
These are rack-mountable 1u servers designed for service provider environments. I have deployed several such systems.
Have a look at TrueTime" for an example.
Some of these systems are Linux/ntpd/gpsd based, but come with support and in a turn-key format with Web based GUI.