144 points · by bretthoerner · 9y ago · 59 comments
It's kinda neat they're using a link local address.
In some scenarios handling DST might not be necessary then!
It wouldn't work for a tv schedule though, since what is broadcasted still uses actual time. ;)
Outside of North America and Europe, there aren't as many public NTP servers as there should be. For example, according to http://www.pool.ntp.org/zone/south-america, South America has less than 50 NTP servers.
It would be awesome if the large, widely-distributed providers (not just AWS with CloudFront, but also Akami, Cloudflare, etc.) provided public, Stratum-1 NTP servers at their POPs.
You generally do not want to mix "smearing" and "non-smearing" time servers.
Apple's one is also available at time.asia.apple.com and time.euro.apple.com
The servers your datacenter provide are probably clients of other NTP servers, so the quality and availability of NTP servers near your datacenter is still really important.
(You can gain a little accuracy if your timeserver itself is running its main clock (the one that drives the CPU and all the busses) off of a precision frequency reference, be it GPSDO or atomic clock, but that's a separate discussion)
Oh, and if you're using NTP and not directly connected to a precision timesource (not over the network), you may as well give up on that level of precision anyhow. For that you need PTP.
High accuracy time is a fascinating domain. It’s this weird mix of general relativity, hardware, and anthropology. Cesium atoms and satellites vs calendars vs astronomy: who wins? :)
Point being: more organizations making high accuracy time available to more folks is a good thing!
As far as who wins for a long time now it has been astronomers. The fact that Google and Amazon are doing leap smearing is a nice sign that the tide may be turning. It is very rare that you see organizations supporting leap seconds during big standards discussions that are not astronomers.
I am really curious to know what atomic frequency standards they are using. There is something a little suspicious about the wording. I have a feeling they mean "we use GPSDOs" and there are no atomic frequency standards physically located in each regional datacenter.
I'm also a little surprised to see that the remote clock is stratum 4. It would be interesting to see how they are distributing the time between their clocks.
If someone from amazon reads this it would be neat if you posted some more details about your setup.
If you take it at face value, the TrueTime API is implementable on top of any clock synchronization protocol. It's just coincidentally true that if you're close to a stratum 0-equivalent clock, your skew will be low. In terms of implementation, TrueTime daemons essentially also use Marzullo's algorithm to estimate timestamps, just like NTP.
What am I missing?
Time is important and hard. I doubt that customers who really need precise time would walk away from their ghetto solutions with no SLA because when something like this craps out, it's almost always a circus.
But hey, when time precision and accuracy is a bonus not a requirement for your AWS instance then 'free local NTP server!'
Something like eg Google Spanner relies on atomic clocks - it's a combination of hardware and software that enable the use of wallclock time.
100ms? 10ms? 1ms? 100us?
Finra (Financial Industry Regulatory Authority) requires <50ms
MiFID II (EU centric) HFT requirement can be as low as 100 microseconds accuracy, or 0.1ms.