IEEE1588 Charpter 6

6.时钟同步模型

6.1 General

本章提供了一个理解precision Time Protocol 操作的模型,这些联系的确切规范会在后续章节中找的。

PTP 标准规定了一个时间同步协议。该协议适用于由一个或多个通过网络通信的nodes组成的分布式系统。Nodes 被用来作为一个包含了实时时钟的模型,该实时时钟可由节点内的应用程序用于多种目的,比如用来产生timestamps for data或者由node管理的ordering events. PTP协议提供了一个mechanism,可以使参与nodes的时钟高度精确同步。

该标准规定:a) The Precision Time Protocol

                     b)The node,system,and communication properties necessary to support PTP.

6.2 有关网络的基本假设和实施建议

    应遵循以下原则性假设和建议,以确保协议正确运行。这些将在后面的条款中详细讨论:

 a)PTP假设网络消除了每个通信路径内的PTP消息的循环转发(例如,使用了生成树协议)。PTP消除了通信路径之间PTP message 的cyclic forwarding;

b) PTP可以容忍偶尔丢失的消息,重复的消息或者乱序到达的消息。但是,PTP假定此类减损相对较少。

c) PTP是在假设多波multicast通信模型的情况下设计的。只要协议的行为得以保留,PTP还支持单播unicast通信模型。PTP 假定通过一个port定期发Announce message,并将其传递到通信路径内Ordinary clock或者boundary clock的所有其他port。如果通信路劲上包含两个以上端口,则假定announce message以multicast 发送,或者以unicast将Announce information复制到多个port。 PTP端口通过接收multicast Announce messages来发现communication path中的其他port。 当multicast communication 不可用时,就需要另外一种方式来发现其他port(例如by configuration),例子在章节17.5. PTP的management messages也同样需要multicast 发送到所有port或者复制到通信路径中的其他所有port。

d)就像所有message-based time 传输协议一样, event message采用的路径中的不对称性(asymmetry)会降低PTP时间的准确性,见7.4.2.具体而言,time offset error为不对称性(asymmetry)的1/2. PTP 无法检测到不对称性(asymmetry);但是,如果已知(offset),PTP会纠正不对称性。可以例如通过传输介质的不对称性,通过网桥和路由器在物理层中引入不对称性,并且在大型系统中,可以通过事件消息遍历的正向和反向路径在网络中引入不对称性。 应该配置系统并选择组件,以最大程度地减少所需时序精度所带来的这些影响。 在距离只有几米的单子网系统中,不对称性通常不会影响到数十ns的时间精度。

e)如果使用two-step clocks, 那么network必须被设计成能使general message透过transparent clock时,采用和event mesage相同的path。否则的话,将导致transparent clock无法正确计算path delay的情况。这种情况是无法被检测到的,并且可能会引起额外的jitter和wander,但是不会破坏protocol。

f)PTP 假定从master到任何slave 形成的主从同步hierarchy结构的boundary clock 小于255,see 9.3.2.5.

g)网络组件(例如网桥)会引入时序抖动和漂移,如果不加以纠正会降低时间传输的准确性。 由于抖动和漂移通常取决于流量,因此应设计网络流量模式以最大程度地减少流量并最小化流量负载的变化。 还建议与其他数据相比,优先发送PTP事件消息; 见A.5.3.3。 只要有可能,应使用PTP边界或透明时钟替换此类设备。

h)网络协议的结构使得可以定义message的timestamp point.

6.3 PTP systems

PTP 系统是个分布式的网络系统,由PTP devices 和non-PTP devices 组成。

PTP devices including ordinary clock是, boundary clocks,end-to-end transparent clocks,peer-to-peer transparent clocks and management nodes.

NON-PTP devices includes bridges, routers and other infrastructure devices, eg computers,printers and other application devices.

6.4 PTP message classes

该protocol规定了event PTP messages和 general PTP messages。 Event messages 是时间相关message,在发送和接收时都会生成准确的timestamp, general message不需要准确的时间戳。

event message包括

a) Sync

b) Delay_Req

c) Pdelay_Req

d) Pdelay_Resp

general message 包括

- Announce

- Follow_Up

- Delay_Resp

- Pdelay_Resp_Follow_Up

- Management

- Signaling

Sync,Delay_Req,Follow_Up,以及Delay_Resp messages 用来在delay request-response mechanism中生成和传递同步ordinary and boundary clocks时用到的timing information;

Pdelay_Req,Pdelay_Resp和Pdelay_Resp_Follow_Up消息用于测量实现peer delay mechanism的两个时钟端口之间的link delay。 在由peer-to-peer组成transparent clocks的系统中,link delay用于纠正Sync和Follow_Up消息中的时序信息。 实现对等延迟机制的普通时钟和边界时钟可以使用测得的link delay以及Sync和Follow_Up消息中的信息进行同步。

The Announce message is used to establish the synchronization hierarchy.

management messages 用于查询和更新时钟维护的PTP data sets。 这些消息还用于自定义PTP系统以及进行初始化和故障管理。 management messages 用于管理节点和时钟之间。

signaling message 用于clock之间的通信。例如,信令消息可用于协商主机与其从机之间的单播消息的速率。

6.5 PTP device types

6.5.1 Genera

There are five basic types of PTP devices, as follows:
a) Ordinary clock
b) Boundary clock
c) End-to-end transparent clock
d) Peer-to-peer transparent clock
e) Management node
All five types implement one or more aspects of the protocol.

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值