]> git.ipfire.org Git - thirdparty/chrony.git/commit
ntp: don't use first response in interleaved mode
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 30 Jun 2022 08:18:48 +0000 (10:18 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 30 Jun 2022 08:18:48 +0000 (10:18 +0200)
commit0ae6f2485b9784d3d2881d31372831128a7781b1
treef61dd2e96565653aacfacda6ab6a76f9e7a6e1b1
parent52ec694d2b96eadf5e01489f819b3f9343f9944f
ntp: don't use first response in interleaved mode

With the first interleaved response coming after a basic response the
client is forced to select the four timestamps covering most of the last
polling interval, which makes measured delay very sensitive to the
frequency offset between server and client. To avoid corrupting the
minimum delay held in sourcestats (which can cause testC failures),
reject the first interleaved response in the client/server mode as
failing the test A.

This does not change anything for the symmetric mode, where both sets of
the four timestamps generally cover a significant part of the polling
interval.
ntp_core.c
test/simulation/122-xleave
test/unit/ntp_core.c