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.
>
> 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?
>
Here are data from the working 4.2.8p10 platform which is composed by
w.w.w.w, y.y.y.y, z.z.z.z
ind assid status conf reach auth condition last_event cnt
===========================================================
1 29450 f414 yes yes ok candidate reachable 1
2 29451 f414 yes yes ok candidate reachable 1
3 29452 f31f yes yes ok outlier 1
4 29453 961a yes yes none sys.peer sys_peer 1
5 29454 931d yes yes none outlier 1
ntpq> lpe
remote refid st t when poll reach delay offset
jitter
==============================================================================
+x.x.x.x .MRS. 1 u 5 8 377 0.363
0.038 0.030
+y.y.y.y .PTP0. 1 s 25 64 377 0.071
0.017 0.035
-z.z.z.z .PTP0. 1 s 45 64 376 0.058
0.041 0.044
*SHM(0) .PTP0. 0 l 2 8 377 0.000 -0.017 0.005
-ntp-gps-1.thale .GPS. 1 u 4 8 377 5.031 -0.435 0.020
ntpq> rv 29451
associd=29451 status=f414 conf, authenb, auth, reach, sel_candidate, 1
event, reachable,
srcadr=y.y.y.y, srcport=123, dstadr=w.w.w.w,
dstport=123, leap=00, stratum=1, precision=-23, rootdelay=0.000,
rootdisp=1.099, refid=PTP0,
reftime=de11e3d4.1850d73b Tue, Jan 23 2018 17:39:48.094,
rec=de11e3db.18563cd1 Tue, Jan 23 2018 17:39:55.095, reach=376,
unreach=0, hmode=1, pmode=1, hpoll=6, ppoll=6, headway=51, flash=00 ok,
keyid=112, offset=0.017, delay=0.071, dispersion=1.719, jitter=0.035,
xleave=0.024,
filtdelay= 0.09 0.10 0.07 0.12 0.13 0.11 0.11 0.16,
filtoffset= -0.01 -0.02 0.02 0.06 0.05 -0.01 -0.04 0.00,
filtdisp= 0.00 0.96 1.95 2.94 3.90 4.89 5.88 6.86
ntpq> rv 29452
associd=29452 status=f31f conf, authenb, auth, reach, sel_outlier, 1
event, interleave_error,
srcadr=z.z.z.z, srcport=123, dstadr=w.w.w.w,
dstport=123, leap=00, stratum=1, precision=-23, rootdelay=0.000,
rootdisp=1.099, refid=PTP0,
reftime=de11e4c0.a5c3751c Tue, Jan 23 2018 17:43:44.647,
rec=de11e4c7.a5ca043a Tue, Jan 23 2018 17:43:51.647, reach=377,
unreach=0, hmode=1, pmode=1, hpoll=6, ppoll=6, headway=13, flash=00 ok,
keyid=113, offset=0.041, delay=0.058, dispersion=5.542, jitter=0.062,
xleave=0.014,
filtdelay= 0.11 0.14 0.11 0.11 0.10 0.08 0.06 0.08,
filtoffset= 0.03 -0.05 -0.02 -0.02 -0.03 -0.02 0.04 0.09,
filtdisp= 0.00 0.98 1.92 2.87 3.84 4.83 5.78 6.75
Emmanuel.