33 ms·
A rift in the NTP world
- deelowe 10y agoUgh. Why can't people just act civilized to each other? I can't believe this type of empire building goes on even for projects as auturistic has NTP.
- adekok 10y agoThere are a large percentage of people for whom power games are more important than getting things done. See narcissism, cluster B, etc. Those people are toxic, and removing them from your community makes everything better. If you can't do that, ensure that the only topics of discussion are reality based, and focussed on getting things done. I'm not saying the people here meet those criteria. But it does answer your question.
- okket 10y agoAnd the winner of the battle between NTP (classic) and NTPsec is... chrony https://chrony.tuxfamily.org/comparison.html https://chrony.tuxfamily.org/comparison.html
- xenophonf 10y agoThere's lots of good things chrony does that NTP doesn't and vice versa, but since chrony doesn't support Windows (roughly a third of the server market), I wouldn't claim that it's the clear winner.
- curun1r 10y agoDoesn't Microsoft have their own NTP implementations for use in the Windows world? IIRC, it's called Windows Time Service and it's included with Active Directory. At a previous job, we pointed our in-office linux dev systems at our Windows domain controller and never had any issues with time synchronization. Since this was back in this embrace-and-extend days, I was pleasantly surprised by how interoperable MS was when it came to NTP.
- xenophonf 10y agoI support scientific computing, so depending on the application I will replace w32time with ntpd, which offers better accuracy and built-in support for reference clocks. That said, I didn't realize that the w32time service got a _lot_ better in Windows Server 2016: https://technet.microsoft.com/en-us/windows-server-docs/identity/ad-ds/get-started/windows-time-service/windows-2016-accurate-time https://technet.microsoft.com/en-us/windows-server-docs/iden... It looks like Microsoft added support for NTPv4, and w32time now boasts 1-ms accuracy, which is at least a factor of 10 better than the previous Windows Server release.
- derekp7 10y agoI wonder how much the funding of NTPsec plays into this story? Funding is tied to the need for a project. If a project can claim an exaggerated need, then they can get more funding. So you end up with a conflict of interest when you hear one side's version of of reality.
- gbrown_ 10y agoSeveral years ago, the project's inadequate funding became known in the media and Stenn received partial funding from the Linux Foundation's Core Infrastructure Initiative, which was started after the discovery of how the minimal resources of the OpenSSL project left systems vulnerable to the Heartbleed vulnerability. No no no no. Yes more funding and resources are good for these things but Heartbleed did not come about because of that. It came about to due broken development practices and the developers focusing on adding more features rather than working through the issues people had reported in their bug tracker. The work done in NTPsec echos this in what seems to be a repeat of OpenSSL/ LibreSSL with NTP/ NTPsec. Yes forking is the "easy way out" in these circumstances and it's a shame to see efforts split in such projects but in reality it's often what's needed to get things moving in the right direction.
- falcolas 10y ago> broken development practices and the developers focusing on adding more features rather than working through the issues Both of those problems are easily attributed to a lack of funding. Fulfilling feature requests generates money, fixing bugs does not. When you can only afford to spend 10 hours a week on a project, you're going to end up cutting corners to work around those time limits.
- HedgeMage 10y agoIn the case of Network Time Foundation, the nonprofit wrapper for NTP classic, the problem was largely mismanagement of funding. NTF funded Harlan Stenn's work on NTP, but funded no other developers. It did, however, fund a fundraiser and two part-time administrative staff. The two administrative staff came to one FTE (full-time-equivalent) total, and I forget how much the fundraiser was working. In any case, the org had funded more FTE in overhead than in technical staff. By contrast, the temporary rescue team funded a project-manager-slash-information-security-officer, three developers, and a bright intern who did a great deal of documentation work. Granted, these were not all full-time positions, and I was able to lean on my parent organization for administrative support, so while paperwork was minimal I didn't have to fund it directly. NTPSec's staff has varied over time, but at the time I stepped down to hand the ISO role off to my successor, they had the following funded positions: a project manager, an ISO, two developers, and a sysadmin-slash-developer. (Note: not all of these were full-time positions, and some were funded by third parties rather than by NTPSec directly.) Open source infrastructure software projects, when well run, do not spend over half their resources on non-development work. It's just not responsible. It's how you lose donor confidence, and how you fail to maintain good software engineering practice even when you have the resources to do better. This has been a running theme in open source failures in the last few years: "it will be better if we throw more money at it!". Sometimes this is true: there are developers out there simply burning out for lack of resources and splitting their attention between OSS work and making a living. However, often, there is mismanagement at work, or the project doesn't have a good enough talent pool to pull from to use funds effectively when they do get funds. I love when the problems are purely technical, because it's a clean fix and everyone thanks me and I walk away quietly. When the underlying problems are social, they tend to fester, because nobody really wants to be in the hot seat over the disagreements that happened.
- scandox 10y agoI see the strapline of NTPsec on Github is: "ntpsec/ntpsec: The NTP reference implementation, refactored". So is it or isn't it? A few quotes from ESR from here http://esr.ibiblio.org/?p=6881Interesting http://esr.ibiblio.org/?p=6881Interesting > tossing out as many superannuated features as I could > full of port shims for big-iron Unixes from the Late Cretaceous > I do have an an advantage because I’m very bright and can hold more complex state in my head than most people [speaks to attitude :)] > This differs dramatically from the traditional Unix policy of leaving all porting shims back to the year zero in place because you never know when somebody might want to build your code on some remnant dinosaur workstation or minicomputer from the 1980s. > Yet another important thing to do on an expedition like this is to get permission – or give yourself permission, or fscking take permission – to remove obsolete features in order to reduce code volume, complexity, and attack surface. > Then ntpdc was deprecated, but not removed – the NTP Classic team had developed a culture of never breaking backward compatibility with anything. > I shot ntpdc through the head I don't know the facts in the case at all, but I can imagine if you were the existing maintainer, you'd find this language and attitude incredibly difficult to take. And after all if you're not being paid to work on it, why should you swallow your pride?
- acqq 10y ago>> I shot ntpdc through the head ESR is definitely somebody I wouldn't like to even occur near to any project of mine. As Linus once wrote: "Anybody who thinks that developers don't have huge egos probably haven't ever met a software engineer." Some are a some sigma away even from that. I don't want to analyze most of his views(1) and how they reflect his personality traits, except to suggest that those who consider working with somebody first carefully inform themselves, but at least there's one opinion text that he wrote in 2004 that I really liked: http://www.catb.org/~esr/writings/cups-horror.html http://www.catb.org/~esr/writings/cups-horror.html --------- 1) http://www.catb.org/~esr/guns/ http://www.catb.org/~esr/guns/
- _wmd 10y agoI'm not sure why you're being downvoted, it seems a fairly straightforward statement to make about ESR. When he pops up on a project mailing list, he tends to cause a lot of noise before (in every case I know of) gently fading out again when he doesn't get his own way. It's especially fun (and painful) to watch strongly consensus-driven projects try to cope with his presence, for example when he turned up on the Subversion dev list. He popped up on python-dev a few days back with one of his archetypical shots across the bow: https://mail.python.org/pipermail/python-dev/2017-February/147391.html https://mail.python.org/pipermail/python-dev/2017-February/1... Literally nothing in that message except ego, and what amounts to a promise to ignite some flame wars in the near future, as if any of that information was worth wasting a few hundred peoples' time to read.
- gpvos 10y agoWhat's the status of phk's ntimed? The planned release dates on http://nwtime.org/projects/ntimed/ http://nwtime.org/projects/ntimed/ were quietly shifted from 2016 to 2017 a few weeks ago, and I'm not seeing much happening at http://phk.freebsd.dk/time/ http://phk.freebsd.dk/time/ .
- acqq 10y agoI expected it will be like that as I've read how PHK wrote about it. Whoever comes to some big project sees only the small part of it that he immediately understands, and it appears to him as he can do it "much simpler." Yes he can, if he just does that small part. The problem is, the big projects actually do more. If you don't need the big project, you can use the small simple project too. Everybody has fun making something small. Maintaining something big -- that's the hard part, and we see from the article we comment to, it's again what the "saviors" want to avoid: "[Their plan was] to rescue something, quote unquote, fix it up, and turn it over to a maintenance team."
- scj 10y agoFrom what I understand of ESR's claims, much of the removed functionality is support for older platforms. Unlike NTP Classic, he asserts POSIX and C99. Apparently, this has drastically reduced complexity/size. Of course, I haven't worked on the NTP code. But given the described circumstances, I'm willing to entertain the argument that older features now cost more to maintain than they are worth.
- acqq 10y agoSorry, you fully missed the topic here. There was another "liberator" who did his own, "NTP (minus most of it) from the scratch" effort -- PHK, not ESR. See the posts in the thread please, specifically, the one by gpvos for the link. The problem is, none of these "liberators" actually improves NTP, and none can (by default from their goals) provide a "better" NTP but only a small subset, typically even less tested. And everybody of those gets some funding and a lot of the attention, instead of the real maintainers of the darned NTP. Doing big, widely present and very compatible and long-lived projects is hard. Very hard. And the maintainers should be helped, not blamed.
- bla2 10y agoSearching for additional funding, Stenn contacted the Internet Civil Engineering Institute (ICEI) and began working with two of its representatives, Eric S. Raymond and Susan Sons. Stenn said in a phone interview, "Then all of a sudden I heard they have this great plan to rescue NTP. I wasn't happy with their attitude and approach, because there's a difference between rescuing and offering assistance. [Their plan was] to rescue something, quote unquote, fix it up, and turn it over to a maintenance team." Most of them, she said, "are older than my father.... [and] are not always up to date on the latest techniques and security issues." Many are burning out from trying to maintain critical code while working full time jobs, and Sons suggested that they "should be retired. Wow. Keep away from the ICEI I suppose.
- HedgeMage 10y agoI highly recommend that you watch my interview with Mac Slocum (video here: https://www.oreilly.com/ideas/the-internet-is-going-to-fall-down-if-i-dont-fix-this-susan-sons?imm_mid=0eb1c1&cmp=em-webops-na-na-newsltr_security_20161129 https://www.oreilly.com/ideas/the-internet-is-going-to-fall-... ) to find out what I actually said, rather than listen to a reporter saying what someone else said I said. I was misquoted.
- mdekkers 10y ago[...]began working with two of its representatives, Eric S. Raymond[...] Usually signals the start of much drama.
- xorcist 10y agoThe presentation mentioned was where I learned of the project. It sounded very very strange to me. Script kiddies who don't what what NTP does, only that it's good for DDoSing? What what that about..? I wasn't surprised to learn that the project one year later was caught up evaluating Rust vs Go. That's great and all, but it's not saving the Internet from "meltdown". Anyone who needs a modern ntpd and doesn't need the refclock stuff should probably just go with chrony.
- problems 10y ago> Script kiddies who don't what what NTP does, only that it's good for DDoSing? What what that about..? There were several large reflection issues in ntpd in the past few years which led it to become a popular DDoS method. Reflection is the big winner lately. No need for a botnet, just scan UDP services, find ones which reply with large packets or a series of packets and then spoof your IP (easy from many VPS and dedicated server providers) and flood out requests for those large packets. You can get amplification of 100x as much traffic with only a small request and it's quite challenging to trace back to the original source due to the spoofed packets.
- xorcist 10y agoThat much is well known. It's the other part that's questionable.
- feld 10y agoI'll bite. Which large VPS / dedicated server providers don't implement BCP38?
- problems 10y agoI'd rather not name and shame, but suffice to say a quick test with hping shows this is currently working on a number of my servers, some on larger, some on smaller providers. And all it takes is 1. You definitely have to hunt around if this is something you want and the number does seem smaller than I remember it being so many more are probably implementing it since I last checked, but still not all.
- kyledrake 10y agoIf you're looking for a simple security-oriented ntpd, I can't recommend OpenNTPd enough. It's cross platform and available for most Linux distros in packages. http://www.openntpd.org http://www.openntpd.org I have a much higher trust level for OpenBSD on security issues than I do with either of these projects.
- ars 10y agoJust remember not to use OpenBSD or OpenNTP for time servers, they can only be used as clients. (This is because neither supports leap seconds, so using them as servers will cause clients to desynchronize. Their belief that we don't need leap seconds is quite irrelevant: Right now we have them.)
- iso-8859-1 10y agoWhat do you mean when you say "we have them"? Because they are in UTC? RFC5905 (NTP 4) notes: The goal of the NTP algorithms is to minimize both the time difference and frequency difference between UTC and the system clock. When these differences have been reduced below nominal tolerances, the system clock is said to be synchronized to UTC. Since nominal tolerances are not defined in the standard, a server would still be NTP conforming if it smeared the leap second.
- ars 10y ago> What do you mean when you say "we have them"? Because they are in UTC? They are part of the time standard used by the entire world. BSD doesn't like them, fine, but pretending (in their code) that they don't exist is not the correct approach. It works more or less fine for clients, but not for servers. > a server would still be NTP conforming if it smeared the leap second Not really. Consider the situation if a client is speaking to multiple servers, some normal servers, some buggy BSD servers. Consider a client that manages to do a mixture of correctly applying a leap second, while also doing time smearing because an upstream source is doing time smearing. BSD is simply doing the wrong thing here. (My understanding is that BSD time servers are not permitted in the ntp pool because of the problems they cause.)
- xenophonf 10y agoFrom the article: Most of them, [Sons] said, "are older than my father.... [and] are not always up to date on the latest techniques and security issues." [...] Sons suggested that they "should be retired." That is incredibly asinine and discriminatory to boot. From the NTPsec project manager's comment: The main point of contention that caused the fork was BitKeeper vs Git. I can't believe that arguing over VC tooling is what caused the fork. Why not just compromise on this, use BitKeeper for long enough to get on the maintainer's good side, and helpfully offer to convert to Git later? This is how ESR got GNU Emacs development migrated from Bazaar to Git, and it seemed to have gone pretty well for all involved.
- gwu78 10y agoI am too lazy to look it up on the mailing lists but a while back I recall ESR contacted certain BSD projects trying to convince them to change to Git. I mistook it for the occasional incoherent spam that slips through the filters.
- zeveb 10y ago> I am too lazy to look it up on the mailing lists but a while back I recall ESR contacted certain BSD projects trying to convince them to change to Git. They're mostly still on CVS these days, right? Regardless of one's personal feelings about esr, is there any good reason to stay on CVS in this, the second decade of the twenty-first century?
- liveoneggs 10y agoa reason (although not necessarily good enough) is that git requires a lot of resources for large repos there were other reasons but the discussion hasn't re-happened in the last 18-24 months
- loeg 10y agoFreeBSD's been on SVN, not CVS, since 2008. Many developers use an official git mirror[0] to stage their work before committing. [0]: https://github.com/freebsd/freebsd https://github.com/freebsd/freebsd
- itp 10y agoESR seems to have a long track record of being involved in these types of events. There are obviously a number of possible conclusions to draw: - ESR is so productive and involved in so many things that this is actually a normal drama ratio - ESR only involves himself in critical issues with high potential for drama - ESR brings the drama I can't rule out either of the first two, but years of data points lead me to believe it's the third.
- linuxkerneldev 10y agoI agree that it is very likely to be the third. Just have a read of some of ESR's articles. Eg: http://esr.ibiblio.org/?p=129 http://esr.ibiblio.org/?p=129 " American blacks average a standard deviation lower in IQ than American whites at about 85. And it gets worse: the average IQ of African blacks is lower still, not far above what is considered the threshold of mental retardation in the U.S. And yes, it’s genetic; g seems to be about 85% heritable, and recent studies of effects like regression towards the mean suggest strongly that most of the heritability is DNA rather than nurturance effects. " ESR's famous melodramatic-response to having his CML2 ("Eric's configuration markup language for kernel building") patch rejected by Linus is also quite telling about his self-perception and his perception of other people and his interaction with anyone who would have an opposing viewpoint to his.
- IgorPartola 10y agoEek. That post contains quite a lot of claims that are not backed by a single reference to a primary source.
- thehardsphere 10y agoHow does the quote show that he "brings the drama"? I mean, that's on his own blog. It's not like he's exporting that. It's not like he's going up to black people and saying "you're almost retarded." I think the CML incident and the time where he yelled at some Debian developer about "our tribe" are better examples, because at least there he's going into other people's spaces and actually confronting them.
- someguydave 10y agoWhy not get rid of NTP altogether? For servers, they ought to be able to accept a hardware time and frequency inputs. Typically this would mean a 1 Pulse-Per-Second (PPS) signal and a 10 MHz signal. You might also want some kind of serial signal that describes the date and time to label the last second pulse. Why don't any professional servers come with this kind of connection built-in? Why can't I synchronize my Xeon chip's clock to my own reference frequency?
- xenophonf 10y ago1-second-per-second is a difficult engineering challenge: https://rachelbythebay.com/w/2014/06/14/time/ https://rachelbythebay.com/w/2014/06/14/time/ (associated HN discussion - https://news.ycombinator.com/item?id=8066915 https://news.ycombinator.com/item?id=8066915) Here's a choice quote from the NTP FAQ (http://www.ntp.org/ntpfaq/NTP-s-sw-clocks-quality.htm http://www.ntp.org/ntpfaq/NTP-s-sw-clocks-quality.htm): Unfortunately all the common clock hardware is not very accurate. This is simply because the frequency that makes time increase is never exactly right. Even an error of only 0.001% would make a clock be off by almost one second per day. This is also a reason why discussing clock problems uses very fine measures: One PPM (Part Per Million) is 0.0001% (1E-6). And if you want to delve into the physics, you'll enjoy this tutorial by John Vig (U.S. Army Communications-Electronics Command): http://www.am1.us/Local_Papers/U11625%20VIG-TUTORIAL.pdf http://www.am1.us/Local_Papers/U11625%20VIG-TUTORIAL.pdf
- someguydave 10y agoThat might have been true awhile ago, but today you can get GPS-disciplined oscillators that can produce 1 PPS accurate down to tens of nanoseconds. By accurate, I mean "replicates what the NIST or USNO atomic clocks indicate."
- someguydave 10y agoAlso your "rachelbythebay" post is discussing exactly the problem I'm trying to solve with hardware - using software. You don't need to run NTPd at all if your computer hardware and infrastructure has solved the problem of "keep my clock accurate down to 10's nanoseconds." Also, there's another unrelated problem which is "how accurately does a user process running in a linux kernel get the current time?". That's a problem no matter what kind of hardware the kernel is running on (although hardware might assist with that as well).
- throw7 10y agowhy was the buildsystem changed to waf? ugghh. ntpsec wants to lower barriers to entry just use/update autotools.
- zeveb 10y agoI have no experience with waf, but I have some with autotools, and 'barrier to entry' is a good description of autotools. Also 'barrier to progress,' 'barrier to happiness' and 'barrier to sanity.'
- makomk 10y agoCMake is the usual choice of developers who don't want to deal with autotools these days. Making people learn yet another build system is not going to be popular.
- mcguire 10y ago"[Sons] has since become president of ICEI; she described herself in the presentation as having "moved on" and is no longer involved with NTPsec on a daily basis." "Already, where once only Stenn was looking for support, now Raymond is in a somewhat similar position, as NTPsec has lost its Core Infrastructure Initiative funding as of September 2016." So, a drive-by fork. BTW, had anyone used any project that ESR is heavily involved in? The only things I know about are NTPsec, fetchmail and his attempt to hack the Linux kernel build system.
- jlgaddis 10y agoAccording to ESR, if you use a mobile phone, you're using his code (I assume this to refer to gpsd).
- mcguire 10y ago"GPSD is everywhere in mobile embedded systems. It underlies the map service on Android [4.0 and after?] phones. It's ubiquitous in drones, robot submarines, and driverless cars. It's increasingly common in recent generations of manned aircraft, marine navigation systems, and military vehicles." Interesting, thanks.
- gumby 10y agoPar for the course for Raymond: make a big noise, little motion, claim credit. Stenn just gets things done. disclaimer: have known Stenn since the 90s, Raymond casually since the 80s.
- notacoward 10y agoI read through some of the blog posts related to language choice for NTPSec (helpfully provided in LWN comments). https://blog.ntpsec.org/ https://blog.ntpsec.org/ I can't help but wonder if there are other options, most notably C++. Don't get me wrong, I have a well developed loathing of C++ based on past experience, but it seems like a category fit and people I respect have said good things about the latest versions. Nim would also seem like a pretty good fit technically, though I could well understand if its relative immaturity and lack of developers (another recent story here on HN) cause it to be deemed inappropriate for this situation.