Who's down with NTP?

Interested in time?

A friend of mine is quite interested in accurate time keeping, particular with reference to NTP. You probably know that we got an extra "leap second" added between 31-Dec-2005 and 1-Jan-2006 and he has written a detailed assessment of how the leap second propagated through the NTP network.

The short answer is "not as well as it should have", but I recommend that you look at the lovely graphs.

Your sort of thing right :)

Troy P

While it would greatly disappoint Tufte, I am and probably always will be a sucker for a pretty graph. So cool, and not just because seeing someone stalk a second with such verve makes me feel better about my own obsessive tendencies...

If you're all confused, NTP stands for Network Time Protocol. General computer clocks have a habit of drifting, due to the frequencies they operate under and how the computer creates the illusion that it has a clue what time and day it is. Long ago, a hierarchal system of servers was created so the correct time could trickle down.

Servers on the second level (Strata Two) derive their time from servers on the first level (Strata One). Strata One servers are generally plugged into the real deal -- special clocks which derive their time via timestamps from a satellite which in turn is deriving its info from something akin to an atomic clock.

In other words, if you have your Mac set to automatically keep itself up to date, it pings time.apple.com, which is a (I believe) second-strata server, which has been keeping itself up to date from a server up the chain. The computer you are using to ping Apple's time server would be part of stratum 3. If you wanted and knew how, you could easily suck down the time from a different server(s) (like time.windows.com or clock2.redhat.com -- do a $man ntpdate) or fire up ntpd daemon and set all the computers on your subnet to derive their time from it.

I'm not going to get into the whole "did the NTP network and possibly the protocol fail us in our leap second of need" deally, because it's way above my pay grade. I primarily just find it amusing how much of the infrastructure in my computing experience I take for granted at this point, and it's probably too easy to view the computer as a magic box so long as it's working.

NTP is something I'm aware of and use, and the leap second has been splashed across every news show I've seen lately, yet it never occurred to me that the protocol had to take it into account, let alone that it might have problems doing so. Yay for reminders our technology is not yet indistinguishable from magic.

yummy alcohol posted button Posted by drunkenbatman
    January 02, 2006, at 09:32 AM


Comments (15)




Post a comment



Anonymous comments are allowed, but please enter something for a name.

And do endeavor to appear sane.









Remember personal info?