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?"
I use Remco Treeffkorn's GPSD to read data off of GPS devices in my tracking library (libtracking-- see interreality.org)
http://russnelson.com/gpsd/
VOS/Interreality project: www.interreality.org
This is the result of a quick googleing. Have you looked at this type of product? http://www.lantronix.com/products/nts/ntpe1_tr1/in dex.html
Buy a Serial Data GPSAnd Grep the detail from the output.
Little Program can easily be found on google (search NMEA GPS).
List of Progs
Here is a simple one
Two Standard Exist for the GPS Output NMEA. Most can provide this information via RS232
Less Than 20 Char to read from the Port. Automatically received once per second. Parse the data with PERL/AWK/SED/JAVA/C it's very simple.
Ntpd supports many GPS reference clocks directly, so you don't need any special software to "pull out the time, and then feed it to an NTP server".
RFC1925
ntp.org. Did you even look? There are plenty of gps recievers capable of providing a pps signal to ntpd.
http://www.endruntechnologies.com/
they have boxes that sync off of either gps or cdma (for those places where you can't get a good view of the sky). the gps model with the stock oscillator can go several hours without satellites before it drifts too far and only needs a single satellite rather than a full multi-sat lock to sync its clock. upgraded oscillators are available for better and longer term stability. we use the gps version at our observatory to provide ~1 ms time over the network via ntp and ~10 us or better time via the PPS and kPPS outputs. we looked into hooking external gps receivers to PCs running ntpd via serial and PPS, but these praecis boxes are a much easier to configure and maintain solution to the problem and likely more robust as well.
tim
hiding in shadows / i hear you coming closer / you will explode soon -- a quake haiku
--Mike--
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>
no images due to a disk crash, but this has interesting information about high-precision NTP from GPS on FreeBSD, including an excellent trick to reduce jitter introduced by the usual low-quality PC xtal.
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.