Re: [chrony-dev] [PATCH] ntp: fix monotonic correction of transmit timestamp from peer

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


On Thu, Nov 12, 2026 at 01:55:23PM +0100, Wojtek Wasko wrote:
> In the interleaved mode, the remote transmit timestamp of the previous
> packet is corrected for the time corrections the source accumulated
> since it was captured, as reported in the F323 field. That is right for
> servers, which keep their transmit timestamps in the client log, but a
> peer in the symmetric active mode slews its saved transmit timestamp
> together with its clock. The correction was applied twice, making the
> measured delay wrong by the correction and the offset by half of it.

That makes sense, thanks. Ideally, from the protocol point of view,
there should be no difference in the timestamps provided by active
peers and servers (or passive peers). Correcting all stored timestamps
on servers doesn't seem practical. Maybe peers could separate
timestamps for their own use and what is served, but at this point I'd
rather avoid complicating the logic even more.

Is there a particular reason you need or prefer symmetric mode over
server/client? My plan is to remove it when NTPv5 support is added.
That should significantly simplify the code.

-- 
Miroslav Lichvar


-- 
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/