The Thorny Problem of Keeping the Internet's Time
newyorker.com
newyorker.com
Our units of temporal measurement, from seconds on up to months, are so complicated, asymmetrical and disjunctive so as to make coherent mental reckoning in time all but impossible. Indeed, had some tyrannical god contrived to enslave our minds to time, to make it all but impossible for us to escape subjection to sodden routines and unpleasant surprises, he could hardly have done better than handing down our present system. It is like a set of trapezoidal building blocks, with no vertical or horizontal surfaces, like a language in which the simplest thought demands ornate constructions, useless particles and lengthy circumlocutions. Unlike the more successful patterns of language and science, which enable us to face experience boldly or at least level-headedly, our system of temporal calculation silently and persistently encourages our terror of time. ... It is as though architects had to measure length in feet, width in meters and height in ells; as though basic instruction manuals demanded a knowledge of five different languages. It is no wonder then that we often look into our own immediate past or future, last Tuesday or a week from Sunday, with feelings of helpless confusion. ... --Robert Grudin, 'Time and the Art of Living'.
What's bad is that there's no real thought given to interplanetary time. It's alluded to occasionally in SF, but there are no RFCs etc about it.
Earth has UTC. Mars will presumably have MTC. What about things wandering about? How will that be mapped?
More importantly, what happens to timestamps, GUIDs, etc?
https://webcache.googleusercontent.com/search?q=cache:pyKjMo... (forgive the cache but a postscript file is more easily viewed this way in the browser).
[0] https://harelang.org/blog/2022-08-01-martian-time-in-hare/
If UTC doesn't work on Mars, it's false advertising, and we should really change the name.
I think it’s important to realize that the precisions we use for everyday time measurement are absolutely ludicrous. If you tell a physicist you can get seven significant figures of a value on a common household device, you’ll be laughed out of the room, and yet you know when a new year starts down to the second (1 : 3 × 10⁷) and don’t think much about it. Hell, you can have that to the millisecond (ten figures) if you care to, although it starts to get mildly tricky to actually use the result. This is the kind of precision that usually requires tens of thousands (in the former case) to millions (in the latter one) of dollars in equipment, knowledge of all kinds of tricky physical effects, and a trip to your country’s metrology institute for calibration. At best.
It’s a marvel that time measurement allows us to get away with a small collection of historical and convenience hacks here.
I mean, it would work in the sense that you could use it to count time, but the units wouldn't have any practical relation to the planet's rotation.
There is a time standard that theoretically covers both Earth and Mars, along with the rest of the solar system: Barycentric Coordinate Time (TCB): https://en.wikipedia.org/wiki/Barycentric_Coordinate_Time But to achieve a singular, shared reference clock you have to give up everything else TAI advocates believe is important in a time standard.
The most interesting issue regarding Mars is that time elapses slightly faster on Mars than on Earth due to relativistic time dilation (according to https://space.stackexchange.com/a/33592, by 0.17 seconds per year). Conversion between Mars and Earth calendars will eventually have to take that into account, possibly with some kind of leap second mechanism.
Overall, I don’t think it will be too much different than what we already do on earth with regard to different calendars and timezones. The one novel aspect will be the difference in length of day.
Regarding a common solar system time, there is BCT and BDT [0][1]. Astronomers already have to deal with that. Another interesting webpage about time scales is [2][3].
[0] https://en.wikipedia.org/wiki/Barycentric_Coordinate_Time
[1] https://en.wikipedia.org/wiki/Barycentric_Dynamical_Time
It makes me think there should be a CompSci history class taught in college.
Coders who contribute to it, she said, should feel proud enough to declare, “Everyone uses the software, it’s in everything, and I wrote it!” It’s striking how few people know Mills’s name, given how many know the pseudonym of whoever created Bitcoin."
I never heard of Mill before, and am just glad to have read and known this critical man and technology to internet infrastructure.I was a little sad to read that Mills in fact lives in Delaware, not Nebraska. I always had a sneaking suspicion that this comic was NTP-related.
It's a podcast I've really been enjoying for a few years now. It used to be a little more technical (as the name, corecursive, kinda implies), but found a niche in interviewing people more about the people than the tech they're knowledgeable about, which is also very pleasant. Anyway, I encourage you to listen to both an early and a recent episode to find out if you like it.
Also: Olson timezone database and its various maintainers. Paul Eggert is the current maintainer, I think. Arthur David Olson could be interesting as well.
I'd guess the capitalized "Sun" was a pun, for the Sun Microsystems computers that still ran much of the Internet. For example: https://www.sunmanagers.org/1992/1188.html
https://www.youtube.com/watch?v=-5wpm-gesOY
Note that the common-sense notion that time intervals are fixed fails when relativistic concepts are introduced. Atomic clocks get out of sync due to being in different relativistic frames (satellites vs. ground, for example). Hence designating a 'universal time' is always going to be somewhat arbitrary.
I check via time.gov, and it’s often off by .5-.8s which just seems kinda insane to me. On my phone it’s always accurate to around .01s.
I think I have a guess as to why though. The bios clock might not save milliseconds[0]. So whenever I turn the computer on in the morning, it’s always not synced to the second. And windows just doesn’t care? Even if it’s off by 900ms and I manually go in and try to resync it often won’t bother. I have to manually change it to something blatantly wrong, then resync. And only then will it will finally be accurate to to .01s.
This seemingly default level of imprecision to nearly 1 full second is very surprising to me. I’m curious if that affects anything.
[0] not 100% certain about this. Maybe I just have insane second-per-day drift. I’ve seen the computer be off by as much as 1.3s, which doesn’t quite match my theory, but that error is enough to resync on its own.
I do not know how many Linux distributions enable by default a ntpd daemon, but I have always enabled it on any computer running Linux or FreeBSD.
When a ntpd is active, it adjusts continuously the local clock based on comparisons with NTP servers, so the time cannot be wrong by more than a few milliseconds. Therefore the error becomes 100 to 1000 times less than without ntpd.
The time differences between computers using NTP on the same LAN are smaller, usually of a few hundred microseconds. For even better synchronization within a LAN, the Precision Time Protocol must be used.
> The systemd-timesyncd service implements SNTP only. This minimalistic service will step the system clock for large offsets or slowly adjust it for smaller deltas. Complex use cases that require full NTP support (and where SNTP is not sufficient) are not covered by systemd-timesyncd.
Not sure if it's available on Windows: `ntpd -g` can perform a big update on first check. https://serverfault.com/a/16513/513049
I was going to mention ntpdate, but in searching I've learned it's been deprecated for a decade, since September 2012, https://serverfault.com/a/16513/513049.
It's always fascinating how certain individuals can really push things forward in a much greater way than you'd think. NTP changed a lot of what's possible online and in software, by giving a reliable more centralized timing solution for much of the world (still to this day).
But talking to some actual experts in the field (like Dr. Matsakis), it's fascinating some of the additional problems you encounter when Internet, LAN, and even GPS connectivity can't be guaranteed, but you still need many devices with microsecond-level accuracy for long periods of time.
You’re welcome.