Amazon Time Sync Service now supports microsecond-accurate time
aws.amazon.com
aws.amazon.com
In other words, the approximation that time is not relative breaks down at this level of accuracy - there’s literally no value in trying to synchronize things this closely.
So sure, I can go grab 2x 25pF capacitors and load the crystal to ground (series capacitors half the capacitance, so 2x 25pF in series == 12.5pf). Except... what?
Trace-capacitance and on-chip capacitance hasn't been factored in.
Hmmmmm... okay. Does anyone have a picoFarad accurate multimeter? Oh snap, those are expensive.
No, the easiest way to tune a crystal oscillator to its appropriate accuracy is through the use of a ground truth clock, and comparing that ground-truth clock vs the clock. So I make my guess with 2x 9pF capacitors (5pF internal capacitance on the chip x2 pins + 2pF estimated trace capacitance) and measure the result against the ground truth.
Well, to calibrate a 20ppm crystal oscillator means I need a time sync service that has 20ppm accuracy or better. That's ya know: +/- 20 microseconds per second accuracy.
-----------
That's my cheap 60-cent crystal by the way. If you go with a temperature-controlled oven crystal oscillator for better accuracy, you'll need more accuracy to tune that.
In Amazon's case, a network request to synchronize time would take orders of magnitudes longer than microseconds. Is there specialized hardware involved? Or multiple requests to pin down the accuracy?
> ... customers can now access local, GPS-disciplined reference clocks on supported EC2 Instances.
Specialized hardware.
With this level of resolution, multiple observatories can more effectively share and synthesize data; if you know the state of two observatories down to the tens or hundreds of nanoseconds you can do more advanced work with synthetic aperture imaging.
Beyond astronomy my other guess is that PTP or similar tech might be used for high frequency trading; it might also be useful for creating distributed systems; Google's Cloud Spanner uses TrueTime which IIRC is a proprietary equivalent of PTP.
Garden variety NTP time / system time I wouldn’t trust as an oracle for distributed systems but this kind of high precision time is probably suitable for that use.
Consensus example - check out Nezha (https://arxiv.org/abs/2206.03285), they came up with an interesting 'Deadline Ordered Multicast' (DOM) primitive
> DOM follows Liskov's suggestion of "depending on clock synchronization for performance but not for correctness"
Transactions example - look no further than DynamoDB, https://muratbuffalo.blogspot.com/2023/08/distributed-transa...
> In order to relieve your anxiety before you read further, no, correctness does not depend on timestamps, clock synchronization only helps to improve performance, as more accurate clocks result in more successful transactions and a serialization order that complies with real time.