On Thu, Nov 19, 2026 at 03:59:46PM +0100, Miroslav Lichvar wrote: > Is it not possible to split the migration to NTP over PTP into two > phases, first configure all servers to listen on both ports and only > then start migrating the clients?
Yes, though having a client fallback is still useful since the servers keep listening on port 123 anyway. UDP 319 takes special PTP paths in both switches and NIC drivers, which gives better accuracy but also has more ways to fail than plain NTP. Keeping port 123 as a fallback lets clients degrade gracefully instead of losing sync when something in the PTP path breaks. > The older chronyd could not have two sources with the same IP address, > so that delete command either works or fails, but doesn't delete an > unexpected source? With a single 192.0.2.1:123 source on an older chronyd, "delete 192.0.2.1:319" from a newer chronyc would silently delete the :123 source instead of returning "No such source". It's an edge case, but it would happen with the RFC patch. > A different idea would be to support sources configured with a second > port and try switching between them. This could work with the PTP port > too. Fair points about breaking chronyc scripts and weighting the same server twice. Looks like specifying a second port on one source is the way to go. What about something like: server ntp1.example.net port 319 altport 123 Normally only 319 would be polled. If the source goes unreachable or bad (around NSR_HandleBadSource()), chronyd would switch to altport. To allow recovery while on altport, chronyd could probe 319 every so often (every maxpoll?) without feeding replies into sourcestats, switch back on a valid reply, and back off if it fails over again. On a non-PTP port, extfield 10A would be omitted. If you agree with the approach, I can sketch an implementation. -- Wojtek [Voytek] Wasko -- To unsubscribe email [email protected] with "unsubscribe" in the subject. For help email [email protected] with "help" in the subject. Trouble? Email [email protected].
