我不太确定 ntpq 显示的偏移值。这是在内核中编译了 PPS 支持的 Raspberry Pi 上。
我刚刚将该设备从原位置移开,因此 ntpd 首先从公共服务器获取 NTP 数据几分钟。在我连接天线并开始接收 GPS 信号后,它会显示 GPS 信号与公共服务器的偏移量为 3 秒。
实际上,这些值波动很大。最后一个示例显示 PPS 正在被识别(“o”)
我可以 ping 通rustime01.rus.uni-stuttgart.de
(ping 时间约为 15 毫秒),但不能 ping 通服务器ptb.de
,它们可能已禁用 ICMP。
remote refid st t when poll reach delay offset jitter
==============================================================================
*GPS_NMEA(0) .GPS. 0 l 12 16 377 0.000 2998.06 0.104
+rustime01.rus.u .PZF. 1 u 41 64 377 14.546 -3.700 5.195
-ptbtime1.ptb.de .PTB. 1 u 46 64 377 23.661 0.162 2.361
-ptbtime2.ptb.de .PTB. 1 u 40 64 377 24.330 -3.517 3.668
+ptbtime3.ptb.de .PTB. 1 u 41 64 377 22.839 -2.710 2.630
remote refid st t when poll reach delay offset jitter
==============================================================================
*GPS_NMEA(0) .GPS. 0 l 9 16 37 0.000 -0.994 0.647
+rustime01.rus.u .PZF. 1 u 18 64 3 16.222 -2997.4 0.456
-ptbtime1.ptb.de .PTB. 1 u 20 64 3 28.564 -2997.0 0.746
+ptbtime2.ptb.de .PTB. 1 u 22 64 3 24.178 -2998.7 1.025
-ptbtime3.ptb.de .PTB. 1 u 13 64 1 24.704 -2998.7 1.149
remote refid st t when poll reach delay offset jitter
==============================================================================
oGPS_NMEA(0) .GPS. 0 l 7 16 3 0.000 9.086 5.324
*rustime01.rus.u .PZF. 1 u 33 64 1 14.844 5.097 1.164
+ptbtime1.ptb.de .PTB. 1 u 32 64 1 24.583 5.164 1.921
-ptbtime2.ptb.de .PTB. 1 u 35 64 1 31.230 7.191 3.878
+ptbtime3.ptb.de .PTB. 1 u 31 64 1 24.379 5.542 0.819
remote refid st t when poll reach delay offset jitter
==============================================================================
oGPS_NMEA(0) .GPS. 0 l 14 16 377 0.000 29.241 4.327
*rustime01.rus.u .PZF. 1 u 47 64 17 14.235 31.713 15.915
+ptbtime1.ptb.de .PTB. 1 u 48 64 17 24.028 25.617 11.747
-ptbtime2.ptb.de .PTB. 1 u 53 64 17 24.692 19.764 9.333
+ptbtime3.ptb.de .PTB. 1 u 47 64 17 24.221 31.335 15.363
以下是配置文件的内容
pi@rpi-ntp ~ $ cat /etc/ntp.conf
driftfile /home/pi/ntp/ntp.drift
statistics loopstats peerstats
statsdir /home/pi/ntp/stats/
filegen loopstats file loops type day enable
filegen peerstats file peers type day enable
server 127.127.20.0 mode 17 minpoll 4 maxpoll 4 iburst true prefer
fudge 127.127.20.0 flag1 1 flag3 0 time2 0.496
server rustime01.rus.uni-stuttgart.de iburst
server ptbtime1.ptb.de iburst
server ptbtime2.ptb.de iburst
server ptbtime3.ptb.de iburst
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
这可能是什么原因造成的?我实际上使用的是哪个时间?