我有很多服务器同步到相同的 NTP 服务器 (4)。并非每台服务器都在同一个 LAN 中。有些距离 NTP 服务器 3 跳,有些距离 6 跳。
在几台服务器上,我看到轮询值从未触及 1024 标记,并且抖动值是两位数。会不会是系统硬件的原因?这些是 Windows 服务器(物理),需要尽可能准确的时间。请建议我应该怎么做。
我从坏箱(距 ntp 服务器 6 跳)手动收集的一些统计信息
C:\Program Files (x86)\NTP>ntpq -p -n
remote refid st t when poll reach delay offset jitter
==============================================================================
+*.*.*.25 *.*.*.233 2 u 12 128 377 1.210 -12.579 14.913
+*.*.*.26 *.*.*.233 2 u 96 128 377 1.067 -2.235 9.885
**.*.*.27 *.*.*.233 2 u 24 128 377 1.038 -7.569 11.178
+*.*.*.28 *.*.*.233 2 u 49 128 377 1.288 -11.058 14.544
remote refid st t when poll reach delay offset jitter
==============================================================================
+*.*.*.25 *.*.*.233 2 u 124 128 377 0.614 -6.212 5.329
+*.*.*.26 *.*.*.233 2 u 93 128 377 0.910 -9.431 3.111
+*.*.*.27 *.*.*.233 2 u 1 128 377 0.824 -7.428 3.129
**.*.*.28 *.*.*.233 2 u 84 128 377 1.503 -8.230 3.511
remote refid st t when poll reach delay offset jitter
==============================================================================
**.*.*.25 *.*.*.233 2 u 117 128 377 1.235 -4.084 11.405
+*.*.*.26 *.*.*.233 2 u 96 128 377 1.335 -11.813 13.130
+*.*.*.27 *.*.*.233 2 u 130 128 377 1.549 -14.036 16.381
-*.*.*.28 *.*.*.233 2 u 79 128 377 1.258 13.395 22.203
remote refid st t when poll reach delay offset jitter
==============================================================================
**.*.*.25 *.*.*.233 2 u 88 128 377 1.235 -4.084 14.068
+*.*.*.26 *.*.*.233 2 u 63 128 377 1.335 -11.813 17.086
+*.*.*.27 *.*.*.233 2 u 103 128 377 1.549 -14.036 20.691
-*.*.*.28 *.*.*.233 2 u 47 128 377 1.258 13.395 20.231
remote refid st t when poll reach delay offset jitter
==============================================================================
+*.*.*.25 *.*.*.233 2 u 47 64 377 0.652 -15.805 14.077
**.*.*.26 *.*.*.233 2 u 11 64 377 1.013 -14.423 11.375
-*.*.*.27 *.*.*.233 2 u 63 64 377 0.765 -2.030 7.680
+*.*.*.28 *.*.*.233 2 u 4 64 377 1.191 -17.980 14.393
remote refid st t when poll reach delay offset jitter
==============================================================================
-*.*.*.25 *.*.*.233 2 u 3 128 377 1.576 18.665 21.999
+*.*.*.26 *.*.*.233 2 u 73 128 377 0.637 -5.012 14.405
**.*.*.27 *.*.*.233 2 u 127 128 377 0.272 -8.237 14.438
+*.*.*.28 *.*.*.233 2 u 123 128 377 1.190 -14.383 18.875
C:\Program Files (x86)\NTP>ntpdc -c loopinfo
offset: -0.016430 s
frequency: 7.106 ppm
poll adjust: 18
watchdog timer: 133 s
offset: -0.016430 s
frequency: 7.106 ppm
poll adjust: 18
watchdog timer: 341 s
offset: -0.000149 s
frequency: 6.645 ppm
poll adjust: 0
watchdog timer: 383 s
offset: 0.015735 s
frequency: 6.725 ppm
poll adjust: 7
watchdog timer: 577 s
offset: -0.010331 s
frequency: 6.748 ppm
poll adjust: 21
watchdog timer: 567 s
offset: -0.009427 s
frequency: 6.687 ppm
poll adjust: 28
watchdog timer: 301 s
offset: -0.007361 s
frequency: 6.612 ppm
poll adjust: 30
watchdog timer: 155 s
offset: -0.008106 s
frequency: 4.358 ppm
poll adjust: 30
watchdog timer: 291 s
NTP.conf
# NTP configuration file
# Use drift file
driftfile "C:\Program Files (x86)\NTP\ntp.drift"
# Logs
statistics loopstats peerstats clockstats
statsdir "C:\Program Files (x86)\NTP\logs\" # directory for statistics files
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
logfile "C:\Program Files (x86)\NTP\logs\syslog.txt"
# Use specific NTP servers
server *.*.*.25 minpoll 4 maxpoll 7 iburst
server *.*.*.26 minpoll 4 maxpoll 7 iburst
server *.*.*.27 minpoll 4 maxpoll 7 iburst
server *.*.*.28 minpoll 4 maxpoll 7 iburst
你是对的,当你硬编码时
maxpoll 7
,最大轮询间隔永远不会超过 128。请随意提交你自己的答案,但无论哪种方式,请关闭这个问题。无法更换板子。修改了配置以频繁轮询,这很有帮助。