云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > NTP同步过程

NTP同步过程

  • 62 次阅读
  • 3 次下载
  • 2026/1/9 20:25:05

roundtrip 延迟和时钟补偿计算如下:

Ti?3,Ti?2,Ti?1,Ti分别表示pkt.org , ptk.rec , pkt.xmt和peer.rec,主机相对于peer的时钟补偿

?,roundtrip延迟?和散布?表示如下

??(Ti?Ti-3)(-Ti-1?Ti-2) ??(Ti-2?Ti-3)?(Ti-1?Ti)

2??(1??sys.precision)??(Ti?Ti-3)6.5 Clock-Update Procedure

当有效的时钟补偿,延迟和散布数据被clock-filter鉴别后,由receive procedure呼叫clock-update过程。

begin clock-update procedure

call clock-select; /* select clock source */ if(sys.peer ≠ peer) exit;

当本地时钟被重置后,clear procedure进程被呼叫用来清除每个peer的clock filter,重置poll interval和重新选择同步源。

Note that the local-clock procedure sets the leap bits sys.leap to “unsynchronized” 112in this case, so that no other peer will attempt to synchronize to the host until the host once again selects a peer for synchronization.

根据上文计算的root延迟、散布、root 同步距离,会进行判断,若计算得到的距离大于NTP.MAXDISTANCE,那么主机就不会与这个选定的peer进行时钟同步。

?andistance(peer); /* update system variables */

if(Λ ≥ NTP.MAXDISTANCE) exit; sys.leap ←peer.leap;

sys.stratum ←peer.stratum +1; sys.refid ←peer.peeraddr; call local-clock;

if(local clock reset) begin /* if reset, clear state variables */ sys.leap ←112;

for(all peers) call clear; endif

else begin

sys.peer ← peer; /* if not, adjust local clock */ sys.rootdelay ← ?;

sys.rootdispersion ← Ε+max(????, NTP.MINDISPERSE);

endif

sys.reftime ←sys.clock; endclock-update procedure;

NTP的精度受到本地硬件时钟固有的框架的影响;

由于时钟速率间的微小差别和peers间精度的差异都会给时间同步的计算带来误差;

NTP itself is described in Section 3. It provides the protocol mechanisms to synchronize time in principle to precisions in the order of nanoseconds while preserving a non-ambiguous date well into the next century.

Since most host time servers will synchronize via another peer time server, there are two

components in each of these three products,those determined by the peer relative to the primary reference source of standard time and those measured by the host relative to the peer. Each of these components are maintained separately in the protocol in order to facilitate error control and management of the subnet itself. They provide not only precision measurements of offset and delay, but also definitive maximum error bounds, so that the user interface can determine not only the time, but the quality of the time as well.

搜索更多关于: NTP同步过程 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

roundtrip 延迟和时钟补偿计算如下: Ti?3,Ti?2,Ti?1,Ti分别表示pkt.org , ptk.rec , pkt.xmt和peer.rec,主机相对于peer的时钟补偿?,roundtrip延迟?和散布?表示如下 ??(Ti?Ti-3)(-Ti-1?Ti-2) ??(Ti-2?Ti-3)?(Ti-1?Ti) 2??(1??sys.precision)??(Ti?Ti-3)6.5 Clock-Update Procedure 当有效的时钟补偿,延迟和散布数据被clock-filter鉴别后,由receive procedure呼叫clock-update过程。 begin

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com