Slashdot Mirror


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?"

12 of 52 comments (clear)

  1. GPSD by agentk · · Score: 5, Informative

    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

  2. Hows about this? by olrs · · Score: 4, Informative

    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

  3. NMEA by Bernaps · · Score: 3, Informative

    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.

  4. Use the standard Unix NTP d�mon: nptd ... by geirt · · Score: 5, Informative
    Use the standard NTP dæmon in RedHat, Debian and other called ntpd

    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
  5. www.ntp.org by hawkfan · · Score: 4, Informative

    ntp.org. Did you even look? There are plenty of gps recievers capable of providing a pps signal to ntpd.

  6. gps+ntp in a box by tim+pickering · · Score: 3, Informative

    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
  7. You need TARDIS by ka9dgx · · Score: 4, Interesting
    If you're in a windows environment, you can use Tardis which supports getting time from NTP AND via GPS.

    --Mike--

  8. Why don't people use the resources at hand? by crath · · Score: 3, Insightful

    How to find the answer to the question the user has posed:

    1. Start your browser. Don't use anything except Internet Explorer, since the answer to this question is so easily found that the asker has demonstrated that they require all the Microsoft hand-holding they can get!
    2. Go to Google.com.
    3. Type "GPS NTP" in the search box and click on the [search] button.
    4. Read the pages pointed to in the resulting links.
    5. Post apology to slashdot, for wasting everyone's time.

    This has to be the lamest question in the history of "Ask Slashdot".

    <Whine>

    The Slashdot moderators are getting as bad as the US Patent Office. After spending many hours searching the web, I've posed much harder questions than this to "Ask Slashdot" and had them rejected.

    For example, "What experiences can people share of building small sound-proof enclosures for their firewall/server kit?" Did you know that there is almost no information posted on the web, or posted to USENET, about this topic? There don't even appear to be any commercial products in this space (except for large and expensive commercial racks) for use by computer hobbiests trying to shoehorn their habit (sorry, I meant hobby) into a home shared with other people.

    Come on moderators, spend a little time thinking about what you accept/reject!

    </Whine>

  9. phk by funky+womble · · Score: 3, Interesting

    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.

  10. How lame.... by CSG_SurferDude · · Score: 3, Insightful

    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)

  11. GPS vs WWV by coyote-san · · Score: 3, Insightful

    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
  12. Appliance by dotslash · · Score: 4, Insightful

    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.