ntp服务中rootdelay和rootdisp的时间单位是多少

问题描述 投票:0回答:1

我读了很多关于ntp服务的文档,但在ntpq的输出中没有找到rootdelay和rootdisp时间单位的精确描述。

ntpq> rv 40848
associd=40848 status=9014 conf, reach, sel_reject, 1 event, reachable,
srcadr=ntp1.flashdance.cx, srcport=123, dstadr=192.168.42.142,
dstport=123, leap=00, stratum=2, precision=-25, rootdelay=0.519,
rootdisp=0.320, refid=192.36.143.150,
reftime=e935f2ee.1158397c  Wed, Dec 27 2023  8:48:46.067,
rec=e9351743.3376612b  Tue, Dec 26 2023 17:11:31.201, reach=377,
unreach=0, hmode=3, pmode=4, hpoll=10, ppoll=10, headway=0,
flash=400 peer_dist, keyid=0, offset=+6.080, delay=287.936,
dispersion=37.191, jitter=21353028.551, xleave=1.024,
filtdelay=   480.38  364.94  287.94  353.16  352.17  300.30  323.04  338.11,
filtoffset= +564948  +16.72   +6.08  +22.84  +22.85   -7.03   +8.60  +18.63,
filtdisp=      0.01   15.83   31.85   47.78   63.53   79.71   95.84  112.01

我要问的是 rootdelay=0.519ms rootdisp=0.320ms 还是 rootdelay=0.519s rootdisp=0.320s?

linux ntp
1个回答
0
投票

来自 https://docs.ntpsec.org/latest/ntpq.html#:~:text=As%20with%20other%20ntpq%20 输出,不像%20the%20 precision%20system%20variable。其中描述了

rv
命令的输出:

请注意,时间值以毫秒表示,频率值以百万分之一 (PPM) 表示。

也来自该文档的相关部分:

显示内核循环和 PPS 统计信息。与其他 ntpq 输出一样,时间以毫秒为单位。显示的精度值也以毫秒为单位,与精度系统变量不同。

© www.soinside.com 2019 - 2024. All rights reserved.