AWS Time Sync, now with (limited) PTP support

I happened across this the other day and thought I’d pass it along:

(I worry this makes me sound like an Amazon shill. In actuality, using AWS makes me tear my hair out most of the time, but this one bit is kind of cool.)

It’s only in limited regions, and on limited instance types (for now?), but AWS is starting to support PTP with its existing Time Sync service. For grins I spun up the cheapest compatible instance in Malaysia, compiled the driver, and chrony saw it as a stratum 0 PHC source. It is indeed pretty stable:

chronyc> sources
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
#* PHC0                          0   0   377     1    +25ns[  +27ns] +/- 5031ns
^- sgsin3-ntp-002.aaplimg.c>     1  10   377   368    -36ms[  -36ms] +/-   39ms
^- 144.126.242.176               2  10   377   24m   -748us[ -744us] +/- 9011us
chronyc> tracking
Reference ID    : 50484330 (PHC0)
Stratum         : 1
Ref time (UTC)  : Tue Oct 29 02:49:05 2024
System time     : 0.000000003 seconds fast of NTP time
Last offset     : +0.000000009 seconds
RMS offset      : 0.000000012 seconds
Frequency       : 1.484 ppm fast
Residual freq   : +0.000 ppm
Skew            : 0.004 ppm
Root delay      : 0.000010000 seconds
Root dispersion : 0.000001281 seconds
Update interval : 1.0 seconds
Leap status     : Normal

Incidentally, it seems that this makes me the only public stratum 1 NTP server in Malaysia?

It would be interesting if they continue to roll this out globally, because there are some regions that seem like they could benefit from having more/any stratum 1s available. A major downside is that AWS bandwidth is outrageously expensive, so I currently have this new instance in the pool at 512kbps since I’ll pay $0.108/GB for outbound traffic. (I actually added a cheap VPS to the pool pointing at this AWS instance with a greater bandwidth setting to try to soak up some of the traffic. There were only three IPv4 servers when I started, and I’m not sure how reliably the pool bandwidth proportioning works when there are fewer than 4 instances to go around.)

I’m not sure there’s a need for dozens of people to do the same, but I thought I’d pass this along because I can’t be the only person here to whom this is interesting.

2 Likes

Where does aws get their time from though? Safe to assume they’re highly accurate?

They don’t provide copious details, but an earlier Time Sync blog post described “a fleet of redundant satellite-connected and atomic clocks in each region.”

In their blog post about PTP support, they reference “GPS-disciplined reference clocks” being “within microseconds of UTC.”

1 Like