chrony/test
Miroslav Lichvar 14b8df3702 clientlog: separate NTP timestamps from IP addresses
Instead of keeping one pair of RX and TX timestamp for each address, add
a separate RX->TX map using an ordered circular buffer. Save the RX
timestamps as 64-bit integers and search them with a combined linear
interpolation and binary algorithm.

This enables the server to support multiple interleaved clients sharing
the same IP address (e.g. NAT) and it will allow other improvements to
be implemented later. A drawback is that a single broken client sending
interleaved requests at a high rate (without spoofing the source
address) can now prevent clients on other addresses from getting
interleaved responses.

The total number of saved timestamps does not change. It's still
determined by the clientloglimit directive. A new option may be added
later if needed. The whole buffer is allocated at once, but only on
first use to not waste memory on client-only configurations.
2021-10-14 16:42:20 +02:00
..
compilation test: fix chronyc test with disabled IPv6 support 2021-09-23 14:48:59 +02:00
kernel test: extend frequency in ntp_adjtime() test 2020-08-31 10:17:21 +02:00
simulation clientlog: separate NTP timestamps from IP addresses 2021-10-14 16:42:20 +02:00
system test: make 007-cmdmon test more reliable 2021-05-12 13:06:15 +02:00
unit clientlog: separate NTP timestamps from IP addresses 2021-10-14 16:42:20 +02:00