Re: [chrony-users] chrony and ntpd xleave interoperability

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


Le 23/01/2018 à 16:58, Miroslav Lichvar a écrit :
> On Tue, Jan 23, 2018 at 02:44:56PM +0100, FUSTE Emmanuel wrote:
>> Le 23/01/2018 à 13:00, Miroslav Lichvar a écrit :
>>> With the current versions, if you can avoid the issue with
>>> unsynchronized sources, they should interoperate, at least when their
>>> polling intervals match. If it doesn't work for you, I'd like to see a
>>> tcpdump output.
>> Ok. I fixed min/max polling interval to 5 for testing purpose.
>> Then I first restarted chrony. Wait for it to sync on a online source.
>> Then restarted ntp and take capture.
>> Will send you all the datas
>>
>> NTP is stuck in unreachable state
>> Chrony is stuck with only one valid RX.
> Ok. I can reproduce this problem. It seems ntpd doesn't update its
> state in the interleaved mode when it receives a packet with an
> unexpected origin timestamp. There was a similar issue fixed for the
> basic mode few ntp releases ago:
> https://bugs.ntp.org/show_bug.cgi?id=2952
>
> As chronyd doesn't switch to the interleaved mode until it's receiving
> valid responses and ntpd doesn't accept responses in the basic mode,
> they are stuck waiting forever on each other.
OK !
> A similar thing seem to happen when trying to use the interleaved mode
> between two 4.2.8p10 ntpds. You said it worked for you before, so I
> assume one of the ntpds was an older version which didn't have this
> bug?
I have a platform with tree ntpds in interleaved mode
Was on 2.4.8p8.
Were upgraded today to 2.4.8p10 and are still working properly.
As in this case i use authent I added authent to the test platform.
Mutual auth validate but the two get stuck as before.

Leap status     : Not synchronised
Version         : 4
Mode            : Symmetric active
Stratum         : 0
Poll interval   : 5 (32 seconds)
Precision       : -24 (0.000000060 seconds)
Root delay      : 0.000000 seconds
Root dispersion : 0.000656 seconds
Reference ID    : 494E4954 (INIT)
Reference time  : Thu Jan 01 00:00:00 1970
Offset          : +0.000000000 seconds
Peer delay      : 0.000000000 seconds
Peer dispersion : 0.000000000 seconds
Response time   : 0.000000000 seconds
Jitter asymmetry: +0.00
NTP tests       : 111 101 0000
Interleaved     : Yes
Authenticated   : Yes
TX timestamping : Hardware
RX timestamping : Hardware
Total TX        : 17
Total RX        : 18
Total valid RX  : 2

ssocid=3540 status=e011 conf, authenb, auth, sel_reject, 1 event, mobilize,
srcadr=y.y.y.y, srcport=123, dstadr=x.x.x.x,
dstport=123, leap=11, stratum=16, precision=-24, rootdelay=0.000,
rootdisp=0.000, refid=INIT,
reftime=00000000.00000000  Thu, Feb  7 2036  7:28:16.000,
rec=de11e02d.60d2f07f  Tue, Jan 23 2018 17:24:13.378, reach=000,
unreach=10, hmode=1, pmode=0, hpoll=5, ppoll=5, headway=17,
flash=1606 pkt_bogus, pkt_unsync, peer_stratum, peer_dist, peer_unreach,
keyid=1, offset=0.000, delay=0.000, dispersion=15937.500, jitter=0.000,
xleave=0.028,
filtdelay=     0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
filtoffset=    0.00    0.00    0.00    0.00    0.00    0.00    0.00    0.00,
filtdisp=   16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0 16000.0


Emmanuel.


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