NTP

鸡汤: 你不努力过,你都不知道啥叫绝望。

1. 介绍

ntpd参考网站

https://www.eecis.udel.edu/~mills/ntp/html/ntpq.html

1.1 NTP 简介

  NTP服务器【Network Time Protocol(NTP)】是用来使计算机时间同步化的一种协议,它可以使计算机对其服务器或时钟源(如石英钟,GPS等等)做同步化,它可以提供高精准度的时间校正(LAN上与标准间差小于1毫秒,WAN上几十毫秒),且可介由加密确认的方式来防止恶毒的协议攻击。下面介绍下查看ntpserver状态的两条命令及其差别。NTP服务器就是利用NTP协议提供时间同步服务的。NTP 是一个设计用于通过 udp 网络 (WAN 或者 LAN) 来同步计算机时钟的协议。

1.2 ntp和ntpdate区别

  • ① 两个服务都是centos自带的(centos7中不自带ntp)。ntp的安装包名是ntp,ntpdate的安装包是ntpdate。他们并非由一个安装包提供。
  • ② ntp守护进程为ntpd,配置文件是/etc/ntp.conf
  • ③ ntpdate用于客户端的时间矫正,非NTP服务器可以不启动NTP。

所需软件与软件结构

ntp: 就是NTP服务器的主要软件啦,包括配置文件以及执行档等等。
tzdata: 软件名称为『 Time Zone data 』的缩写,提供各时区对应的显示格式。

时间及 NTP 服务器设定相关的配置文件与重要数据文件有底下几个:
/etc/ntp.conf: 就是NTP服务器的主要配置文件,也是唯一的一个;
/usr/share/zoneinfo/:由tzdata所提供,为各时区的时间格式对应档。 例如台湾地区的时区格式对应档案在 /usr/share/zoneinfo/Asia/Taipei 就是了,这个目录里面的档案与底下要谈的两个档案 (clock 与 localtime) 是有关系;
/etc/sysconfig/clock:设定时区与是否使用UTC时间钟的配置文件。每次开机后Linux会自动的读取这个档案来设定自己系统所默认要显示的时间说!举个例子来说,在台湾地区的本地时间设定中,这个档案内应该会出现一行『ZONE="Asia/Taipei"』的字样,这表示时间配置文件案要取用/usr/share/zoneinfo/Asia/Taipei 那个档案的意思;

/etc/localtime:这个档案就是『本地端的时间配置文件』,刚刚那个 clock 档案里面规定了使用的时间配置文件(ZONE)为/usr/share/zoneinfo/Asia/Taipei,所以说这就是本地端的时间了,此时Linux系统就会将Taipei那个档案复制一份成为/etc/localtime,所以未来我们的时间显示就会以Taipei那个时间配置文件案为准;

至于在常用于时间服务器与修改时间的指令方面,主要有底下这几个啦:

/bin/date:用于 Linux 时间 (软件时钟) 的修改与显示的指令;
/sbin/hwclock:用于BIOS时钟(硬件时钟)的修改与显示的指令。这是一个 root 才能执行的指令,因为Linux系统上面BIOS时间与Linux系统时间是分开的,所以使用date这个指令调整了时间之后,还需要使用hwclock才能将修改过后的时间写入 BIOS 当中;
/usr/sbin/ntpd:主要提供NTP服务的程序啰!配置文件为/etc/ntp.conf;
/usr/sbin/ntpdate:用于客户端的时间校正,如果你没有要启用 NTP 而仅想要使用 NTP Client 功能的话,那么只会用到这个指令而已;

2. 环境

IP hostname os role install package
192.168.186.10 master centos7.x NTP server ntp
192.168.186.11 slave1 centos7.x NTP client ntp

   master做为NTP 服务端提供时间服务,slave1作为NTP 客户端去主动同步master的时间。

ntp默认监听于UDP的123端口

3. 部署

3.1 安装

[root@master ~]# yum install ntp
[root@slave1 ~]# yum install ntp

3.2 配置文件

  • 服务器端
[root@master ~]# egrep -v '#|^$' /etc/ntp.conf
driftfile /var/lib/ntp/drift
restrict default nomodify notrap nopeer noquery
restrict 127.0.0.1 
restrict -6 ::1
restrict 192.168.186.0 mask 255.255.255.0
restrict 133.100.11.8
server 133.100.11.8
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
server 127.127.1.0
fudge 127.127.1.0 stratum 10
includefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
disable monitor

restrict/server解释

1. restrict [你的IP] mask [netmask_IP] [parameter]
其中 parameter 的参数主要有底下这些:
ignore:拒绝所有类型的 NTP 联机;
nomodify:客户端不能使用ntpc与ntpq这两支程序来修改服务器的时间参数, 
          但客户端仍可透过这部主机来进行网络校时的;
noquery:客户端不能够使用ntpq,ntpc等指令来查询时间服务器,等于不提供 NTP 的网络校时啰;
notrap:不提供trap这个远程事件登录(remote event logging)的功能。
notrust:拒绝没有认证的客户端。

那如果你没有在 parameter 的地方加上任何参数的话,
这表示『该 IP 或网段不受任何限制』的意思,一般来说,
我们可以先关闭 NTP 的权限,然后再一个一个的启用允许登入的网段。

2. server [IP or hostname] [prefer]
在server后端可以接IP或主机名,个人比较喜欢使用 IP 来设定说!至于那个 perfer 表示『优先使用』的服务器。

3. driftfile [可以被 ntpd 写入的目录与档案]
因为预设的NTP Server本身的时间计算是依据BIOS的芯片震荡周期频率来计算的,
但是这个数值与上层 Time Server 不见得会一致,所以 NTP 这个 daemon (ntpd) 
会自动的去计算我们自己主机的频率与上层 Time server 的频率,并且将两个频率的误差记录下来,
记录下来的档案就是在 driftfile 后面接的完整档名当中了!

driftfile 后面接的档案需要使用完整路径文件名;该档案不能是连结档;该档案需要设定成ntpd这个daemon可以写入的权限。
该档案所记录的数值单位为:百万分之一秒 (ppm)。

driftfile 后面接的档案会被 ntpd 自动更新,所以他的权限一定要能够让 ntpd 写入才行。
在 CentOS 6.x 预设的 NTP 服务器中,使用的 ntpd 的 owner 是 ntp ,
这部份可以查阅 /etc/sysconfig/ntpd 就可以知道了。

4. keys [key_file]
除了以 restrict 来限制客户端的联机之外,我们也可以透过密钥系统来给客户端认证, 如此一来可以让主机端更放心了。
不过在这个章节里面我们暂不讨论这个部分,有兴趣的朋友可以参考 ntp-keygen 这个指令的相关说明喔!
ntp.conf解释
# 1. 先处理权限方面的问题,包括放行上层服务器以及开放区网用户来源:
restrict default kod nomodify notrap nopeer noquery     <==拒绝 IPv4 的用户
restrict -6 default kod nomodify notrap nopeer noquery  <==拒绝 IPv6 的用户
restrict 220.130.158.71   <==放行 tock.stdtime.gov.tw 进入本 NTP 服务器
restrict 59.124.196.83    <==放行 tick.stdtime.gov.tw 进入本 NTP 服务器
restrict 59.124.196.84    <==放行 time.stdtime.gov.tw 进入本 NTP 服务器
restrict 127.0.0.1        <==底下两个是默认值,放行本机来源
restrict -6 ::1
restrict 192.168.100.0 mask 255.255.255.0 nomodify <==放行区网来源

# 2. 设定主机来源:
server 133.100.11.8 prefer  <==以这部主机为最优先
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
server 127.127.1.0

# 3.预设时间差异分析档案与暂不用到的 keys 等,不需要更动它:
driftfile /var/lib/ntp/drift
keys      /etc/ntp/keys
  • 客户端
[root@slave1 ~]# cat /etc/ntp.conf
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
server master iburst
driftfile /var/lib/ntp/drift
keys /etc/ntp/keys

note

server master iburst 
    表示客户端同步谁。我写master[master主机也可以写IP]

3.3 启动

  • 服务器端
systemctl status ntpd
systemctl start ntpd
#systemctl enable ntpd  #开机自动启动
#systemctl disable ntpd #开机不启动
systemctl status ntpd
详细操作
[root@master ~]# systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2019-09-11 18:19:05 CST; 6 days ago
 Main PID: 10057 (code=exited, status=255)

Sep 11 17:44:13 master ntpd[10057]: 0.0.0.0 c514 04 freq_mode
Sep 11 18:01:00 master ntpd[10057]: 0.0.0.0 0612 02 freq_set kernel 106.652 PPM
Sep 11 18:01:00 master ntpd[10057]: 0.0.0.0 0615 05 clock_sync
Sep 11 18:06:35 master ntpd[10057]: 0.0.0.0 0613 03 spike_detect +0.141215 s
Sep 11 18:10:53 master ntpd[10057]: 0.0.0.0 0618 08 no_sys_peer
Sep 11 18:10:53 master ntpd[10057]: 0.0.0.0 0515 05 clock_sync
Sep 11 18:19:05 master ntpd[10057]: 0.0.0.0 0617 07 panic_stop +5987 s; set clock manually within 1000 s.
Sep 11 18:19:05 master systemd[1]: ntpd.service: main process exited, code=exited, status=255/n/a
Sep 11 18:19:05 master systemd[1]: Unit ntpd.service entered failed state.
Sep 11 18:19:05 master systemd[1]: ntpd.service failed.
[root@master ~]# systemctl start ntpd
[root@master ~]# systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-09-18 09:38:51 CST; 1s ago
  Process: 36238 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 36239 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─36239 /usr/sbin/ntpd -u ntp:ntp -g

Sep 18 09:38:51 master ntpd[36239]: 0.0.0.0 c01d 0d kern kernel time sync enabled
Sep 18 09:38:51 master ntpd[36239]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16
Sep 18 09:38:51 master ntpd[36239]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen and drop on 1 v6wildcard :: UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 2 lo 127.0.0.1 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 3 ens33 192.168.186.10 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 4 ens33 192.168.186.143 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 5 lo ::1 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 6 ens33 fe80::20c:29ff:fec6:7990 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listening on routing socket on fd #23 for interface updates
  • 客户端
systemctl status ntpd
systemctl start ntpd
#systemctl enable ntpd  #开机自动启动
#systemctl disable ntpd #开机不启动
systemctl status ntpd
详细操作
[root@slave1 ~]# systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)
   Active: inactive (dead) since Thu 2019-09-12 04:18:35 CST; 1s ago
 Main PID: 8670 (code=exited, status=0/SUCCESS)

Sep 11 18:03:11 slave1 ntpd[8670]: 0.0.0.0 c61c 0c clock_step -0.155488 s
Sep 11 18:03:10 slave1 ntpd[8670]: 0.0.0.0 c614 04 freq_mode
Sep 11 18:03:11 slave1 ntpd[8670]: 0.0.0.0 c618 08 no_sys_peer
Sep 11 18:11:37 slave1 ntpd[8670]: 0.0.0.0 c628 08 no_sys_peer
Sep 11 18:18:19 slave1 ntpd[8670]: 0.0.0.0 c612 02 freq_set kernel 1107.191 PPM
Sep 11 18:18:19 slave1 ntpd[8670]: 0.0.0.0 c61c 0c clock_step +1.006437 s
Sep 11 18:18:21 slave1 ntpd[8670]: 0.0.0.0 c618 08 no_sys_peer
Sep 12 04:18:35 slave1 systemd[1]: Stopping Network Time Service...
Sep 12 04:18:35 slave1 ntpd[8670]: ntpd exiting on signal 15
Sep 12 04:18:35 slave1 systemd[1]: Stopped Network Time Service.
[root@slave1 ~]# systemctl start ntpd
[root@slave1 ~]# systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2019-09-12 04:18:41 CST; 1s ago
  Process: 11843 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 11844 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─11844 /usr/sbin/ntpd -u ntp:ntp -g

Sep 12 04:18:41 slave1 ntpd[11844]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listen and drop on 1 v6wildcard :: UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listen normally on 2 lo 127.0.0.1 UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listen normally on 3 ens33 192.168.186.11 UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listen normally on 4 lo ::1 UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listen normally on 5 ens33 fe80::20c:29ff:fe8c:df14 UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listening on routing socket on fd #22 for interface updates
Sep 12 04:18:41 slave1 ntpd[11844]: 0.0.0.0 c016 06 restart
Sep 12 04:18:41 slave1 ntpd[11844]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
Sep 12 04:18:41 slave1 ntpd[11844]: 0.0.0.0 c011 01 freq_not_set
常见错误
[root@slave1 ~]# ntpdate master
18 Sep 09:43:29 ntpdate[11853]: the NTP socket is in use, exiting
以上原因是本地ntpd服务已经启动了。在手动同步的时候就会显示以上错误,要先关闭ntpd服务在手动同步即可。

3.4 NTP服务测试

  • 服务器端
netstat -lnp|grep ntpd
systemctl status ntpd
ntpq -p
ntpstat
详细操作
[root@master ~]# netstat -lnp|grep ntpd
udp        0      0 192.168.186.143:123     0.0.0.0:*                           36239/ntpd          
udp        0      0 192.168.186.10:123      0.0.0.0:*                           36239/ntpd          
udp        0      0 127.0.0.1:123           0.0.0.0:*                           36239/ntpd          
udp        0      0 0.0.0.0:123             0.0.0.0:*                           36239/ntpd          
udp6       0      0 fe80::20c:29ff:fec6:123 :::*                                36239/ntpd          
udp6       0      0 ::1:123                 :::*                                36239/ntpd          
udp6       0      0 :::123                  :::*                                36239/ntpd          
[root@master ~]# systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Wed 2019-09-18 09:38:51 CST; 8min ago
 Main PID: 36239 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─36239 /usr/sbin/ntpd -u ntp:ntp -g

Sep 18 09:38:51 master ntpd[36239]: Listen normally on 2 lo 127.0.0.1 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 3 ens33 192.168.186.10 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 4 ens33 192.168.186.143 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 5 lo ::1 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listen normally on 6 ens33 fe80::20c:29ff:fec6:7990 UDP 123
Sep 18 09:38:51 master ntpd[36239]: Listening on routing socket on fd #23 for interface updates
Sep 18 09:38:53 master ntpd[36239]: 0.0.0.0 c016 06 restart
Sep 18 09:38:53 master ntpd[36239]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
Sep 18 09:38:53 master ntpd[36239]: 0.0.0.0 c011 01 freq_not_set
Sep 18 09:38:57 master ntpd[36239]: 0.0.0.0 c514 04 freq_mode
[root@master ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 133.100.11.8    .INIT.          16 u    -   64    0    0.000    0.000   0.000
+a.ams.pobot.net 17.253.34.251    2 u   29   64  377  219.980   57.549  31.221
+ntp.xtom.nl     194.80.204.184   2 u   24   64  377  172.594    7.667  25.244
-ntp1.ams1.nl.le 130.133.1.10     2 u   28   64  377  231.890   -1.956  36.086
*time5.aliyun.co 10.137.38.86     2 u   32   64  377   31.366    8.128  24.791
 LOCAL(0)        .LOCL.          10 l  498   64  200    0.000    0.000   0.000

[root@master ~]# ntpstat
synchronised to NTP server (182.92.12.11) at stratum 3 
   time correct to within 129 ms
   polling server every 64 s
  • 客户端
netstat -lnp|grep ntpd
systemctl status ntpd
ntpq -p
ntpstat
详细操作
[root@slave1 ~]# netstat -lnp|grep ntpd
udp        0      0 192.168.186.11:123      0.0.0.0:*                           11844/ntpd          
udp        0      0 127.0.0.1:123           0.0.0.0:*                           11844/ntpd          
udp        0      0 0.0.0.0:123             0.0.0.0:*                           11844/ntpd          
udp6       0      0 fe80::20c:29ff:fe8c:123 :::*                                11844/ntpd          
udp6       0      0 ::1:123                 :::*                                11844/ntpd          
udp6       0      0 :::123                  :::*                                11844/ntpd          
[root@slave1 ~]# systemctl status ntpd
● ntpd.service - Network Time Service
   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2019-09-12 04:18:41 CST; 6 days ago
  Process: 11843 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)
 Main PID: 11844 (ntpd)
   CGroup: /system.slice/ntpd.service
           └─11844 /usr/sbin/ntpd -u ntp:ntp -g

Sep 12 04:18:41 slave1 ntpd[11844]: Listen normally on 3 ens33 192.168.186.11 UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listen normally on 4 lo ::1 UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listen normally on 5 ens33 fe80::20c:29ff:fe8c:df14 UDP 123
Sep 12 04:18:41 slave1 ntpd[11844]: Listening on routing socket on fd #22 for interface updates
Sep 12 04:18:41 slave1 ntpd[11844]: 0.0.0.0 c016 06 restart
Sep 12 04:18:41 slave1 ntpd[11844]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
Sep 12 04:18:41 slave1 ntpd[11844]: 0.0.0.0 c011 01 freq_not_set
Sep 12 04:18:48 slave1 ntpd[11844]: 0.0.0.0 c61c 0c clock_step +537813.472907 s
Sep 18 09:42:21 slave1 ntpd[11844]: 0.0.0.0 c614 04 freq_mode
Sep 18 09:42:22 slave1 ntpd[11844]: 0.0.0.0 c618 08 no_sys_peer
[root@slave1 ~]# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*master          182.92.12.11     3 u   13   64   17    0.427   -0.027   0.124
[root@slave1 ~]# ntpstat 
synchronised to NTP server (192.168.186.10) at stratum 4 
   time correct to within 207 ms
   polling server every 64 s

  ntpq -q显示解释

这个 ntpq -p 可以列出目前我们的 NTP 与相关的上层 NTP 的状态,上头的几个字段的意义为

  • remote:亦即是 NTP 主机的 IP 或主机名啰~注意最左边的符号
" " – 无状态,表示:没有远程通信的主机
"LOCAL" 即本机(未被使用的)高层级服务器.远程主机使用的这台机器作为同步服务器
"x"  已不再使用
"-"  已不再使用
"#" 良好的远程节点或服务器但是未被使用 (不在按同步距离排序的前六个节点中,作为备用节点使用)
"+" 良好的且优先使用的远程节点或服务器(包含在组合算法中)
"*" 当前作为优先主同步对象的远程节点或服务器
"o" PPS节点(当优先节点是有效时)。实际的系统同步是源于秒脉冲信号(pulse-per-second,PPS),可能通过PPS时钟驱动或者通过内核接口。
  • refid:参考的上一层 NTP 主机的地址,NTP服务器使用的更高一级服务器的名称
  • st:就是 stratum 阶层!正在响应请求的NTP服务器的级别, 类似于DN,NTP是层级结构,有顶端的服务器,最多有15层。 为了减缓负荷和网络堵塞,原则上应该避免直接连接到级别为1的服务器。
  • t: 类型 (u: unicast(单播) 或 manycast(选播) 客户端, b: broadcast(广播) 或 multicast(多播) 客户端, l: 本地时钟, s: 对称节点(用于备份), A: 选播服务器, B: 广播服务器, M: 多播服务器, 参见“Automatic Server Discovery“)
  • when:几秒钟前曾经做过时间同步化更新的动作;
  • poll:下一次更新在几秒钟之后;本地和远程服务器多少时间进行一次同步,单位秒,在一开始运行NTP的时候这个poll值会比较小,服务器同步的频率大,可以尽快调整到正确的时间范围,之后poll值会逐渐增大,同步的频率也就会相应减小
  • reach:已经向上层 NTP 服务器要求更新的次数,用来测试能否和服务器连接,是一个八进制值,每成功连接一次它的值就会增加
  • delay:网络传输过程当中延迟的时间,单位为 10^(-6) 秒
  • offset:时间补偿的结果,单位与 10^(-3) 秒,主机通过NTP时钟同步与所同步时间源的时间偏移量,单位为毫秒,offset越接近于0,主机和ntp服务器的时间越接近
  • jitter:Linux 系统时间与 BIOS 硬件时间的差异时间, 单位为 10^(-6) 秒。简单地说这个数值的绝对值越小,主机的时间就越精确

为什么显示为LOCAL(0)?由于此处为内网环境,无法去外网公用的主机同步时间,因此我们在156.0.26.6上设置的是156.0.26.6自身作为时间服务器同时,使用server 127.127.1.0 prefer指名他的上级NTP为自身。

refid 有下面这些状态值
一个IP地址 – 远程节点或服务器的 IP 地址
.LOCL. – 本机 (当没有远程节点或服务器可用时)
.PPS. – 时间标准中的“Pulse Per Second”(秒脉冲)
.IRIG. – Inter-Range Instrumentation Group 时间码
.ACTS. – 美国 NIST 标准时间 电话调制器
.NIST. –美国 NIST 标准时间电话调制器
.PTB. – 德国 PTB 时间标准电话调制器
.USNO. – 美国 USNO 标准时间 电话调制器
.CHU. – CHU (HF, Ottawa, ON, Canada) 标准时间无线电接收器
.DCFa. – DCF77 (LF, Mainflingen, Germany) 标准时间无线电接收器
.HBG. – HBG (LF Prangins, Switzerland) 标准时间无线电接收器
.JJY. – JJY (LF Fukushima, Japan) 标准时间无线电接收器
.LORC. – LORAN-C station (MF) 标准时间无线电接收器,注: 不再可用 (被 eLORAN 废弃)
.MSF. – MSF (LF, Anthorn, Great Britain) 标准时间无线电接收器
.TDF. – TDF (MF, Allouis, France)标准时间无线电接收器
.WWV. – WWV (HF, Ft. Collins, CO, America) 标准时间无线电接收器
.WWVB. – WWVB (LF, Ft. Collins, CO, America) 标准时间无线电接收器
.WWVH. – WWVH (HF, Kauai, HI, America) 标准时间无线电接收器
.GOES. – 美国静止环境观测卫星;
.GPS. – 美国 GPS;
.GAL. – 伽利略定位系统欧洲 GNSS;
.ACST. – 选播服务器
.AUTH. – 认证错误
.AUTO. – Autokey (NTP 的一种认证机制)顺序错误
.BCST. – 广播服务器
.CRYPT. – Autokey 协议错误
.DENY. – 服务器拒绝访问;
.INIT. – 关联初始化
.MCST. – 多播服务器
.RATE. – (轮询) 速率超出限定
.TIME. – 关联超时
.STEP. – 间隔时长改变,偏移量比危险阈值小(1000ms) 比间隔时间 (125ms)大