NTP中的参考时钟单元号是什么意思?

What does reference clock unit number mean in NTP?

我对 NTP 的参考时钟单元号感到困惑。我试图在ntp.org上寻找它的含义,但只发现它的范围是从0-3(在127.127.t.u中定义)。参考时钟单元号的实际含义是什么?

来自documentation

u is a unit number in the range 0-3 used to distinguish multiple instances of clocks of the same type.

可以在此处找到有关 NTP 参考时钟驱动程序类型的更好解释。

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

参考时钟的支持方式与普通 NTP 客户端相同,并使用相同的过滤器、select、集群和组合算法。驱动程序的地址格式为 127.127.t.u,其中 t 是驱动程序类型,u 是 0-3 范围内的单元号,用于区分同一驱动程序的多个实例。

https://www.eecis.udel.edu/~mills/ntp/html/refclock.html 是正确的地方。顺便说一句,路由器实际上是不受约束的,因此不会将其设置为不受约束。

另外,请注意对于 stratum 0 服务器,它的解释不同——它是 ASCII,例如 rfc5905 中的图 12。 Cisco 路由器,如果配置为第 0 层,会将其设置为 RFC 中没有的“LOCL”。在某些系统上,这仍将以点分十进制显示,“76.79.67.76”。