WO2011131006A1 - 一种精密时间同步协议的时间处理装置及方法 - Google Patents

一种精密时间同步协议的时间处理装置及方法 Download PDF

Info

Publication number
WO2011131006A1
WO2011131006A1 PCT/CN2010/079128 CN2010079128W WO2011131006A1 WO 2011131006 A1 WO2011131006 A1 WO 2011131006A1 CN 2010079128 W CN2010079128 W CN 2010079128W WO 2011131006 A1 WO2011131006 A1 WO 2011131006A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
synchronization
time
delay
step method
Prior art date
Application number
PCT/CN2010/079128
Other languages
English (en)
French (fr)
Inventor
李争齐
何力
宿飞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2011131006A1 publication Critical patent/WO2011131006A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0673Clock or time synchronisation among packet nodes using intermediate nodes, e.g. modification of a received timestamp before further transmission to the next packet node, e.g. including internal delay time or residence time into the packet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0667Bidirectional timestamps, e.g. NTP or PTP for compensation of clock drift and for compensation of propagation delays

Definitions

  • PTP in particular, relates to a time processing device and method in PTP.
  • the present invention refers to the IEEE Standard Clock Synchronization Protocol for Networked Measurement and Control System (PTP).
  • PTP enables precise time transfer in Ethernet.
  • the calculation of the camping time of the PTP in the transparent transmission clock mode has the following drawbacks:
  • the PTP is divided into two methods, namely, one-step method and two-step method.
  • the master device Master
  • Sync sync
  • the master in the one-step method, the master not only sends a Sync message, but also Send the Follow-up message corresponding to the Sync message.
  • the transparent transmission node needs to calculate the camp time of the Sync message and modify the correct field of the Sync message or the Follow-up message.
  • the protocol stipulates that for the transparent transmission node, if it is configured as a one-step method, only the correctfield field of the Sync message is modified; if the transparent transmission node is configured as a two-step method, and the master is configured as a one-step method, the transparent transmission node is to be reported in the Sync.
  • a follow-up message corresponding to the Sync message is inserted in the text, and the CorrectField field of the Follow-up message is corrected by using the Sync message resident time.
  • the technical problem to be solved by the present invention is to provide a time processing apparatus and method for a PTP protocol.
  • the present invention discloses a time processing device for a precise time synchronization protocol, the device comprising an inbound traffic direction message processor, an outward flow direction message processor, and a synchronization and follow message association device.
  • the inbound traffic direction message processor is configured to: identify a synchronization message from the received precision time synchronization protocol message, and add a timestamp to the identified synchronization message and send it to the location
  • the outbound traffic direction packet processor is configured to: identify the synchronization packet from the received precision time synchronization protocol packet, according to the time in the synchronization packet Poke, calculate the dwell time of the synchronization message, send the dwell time of the synchronization message to the synchronization and follow message correlator, and use the one-step method between the master and the slave device to synchronize the message
  • the dwell time is added to the synchronization message and sent out, and the following message is identified from the received precision time synchronization protocol message, and from the synchronization and follow message correlator Querying the dwell time of the synchronization message corresponding to the identified following message, adding the queried dwell time to the following message and sending it; the synchronization and following message correlator is set as: storage synchronization
  • the device further includes a delay request and a delayed response message correlator, wherein: the inbound traffic direction message processor is further configured to: identify a delay request message from the received precision time synchronization protocol message, and Adding a timestamp to the identified delay request message, sending the message to the outgoing traffic direction message processor, and identifying the delayed response message from the received precision time synchronization protocol message, and the master and slave devices
  • the delay request and the delayed response message correlator are queried for the dwell time of the delayed request message corresponding to the identified delayed response message, and the queried dwell time is added.
  • the outgoing traffic direction message processor is further configured to: identify a delay request message from the received precision time synchronization protocol message, according to the delay request message Timestamp, calculating the dwell time of the delayed request message, and sending the dwell time of the delayed request message to the delay request and the delayed response message correlator, and using a one-step method between the master and the slave device Adding a dwell time of the delayed request message to the delayed request message, where the delay request and the delayed response message correlator are set to: store the dwell time of the delay request message, and The inbound traffic direction message processor feeds back the delay request corresponding to the delayed response message.
  • the outgoing traffic direction message processor is set to be between the master and the slave device as follows.
  • the two-step method is used to add the stagnation time of the synchronization packet to the synchronization packet and send it out:
  • the outward traffic direction message processor reads the step method identifier in the synchronization packet, if If the step method identifier is invalid, it is determined that the master-slave device uses a one-step method to add the camping time of the synchronization packet to the synchronization packet and send it out.
  • the inbound traffic direction packet processor is set.
  • the inbound time of the inbound traffic message processor reads And taking the step method identifier in the delayed response message, if the step method identifier is valid, determining that the master and slave devices use the two-step method to query the delayed request message corresponding to the identified delayed response message
  • the egress time; the outgoing traffic direction message processor is set to be as follows: When the one-step method is used between the master and the slave device, the dwell time of the delay request message is added to the delay request message.
  • the outgoing traffic direction message processor delay request message reads the step method identifier in the delay request message, and if the step method identifier is invalid, determining a one-step method between the master and the slave device Will The timeout period of the late request message is added to the delayed request message and sent out.
  • the outgoing traffic direction message processor is further configured to: send the message information of the synchronization message to the synchronization And the following message correlator, and the message information of the following message is sent to the synchronization and follow message correlator to query the dwell time of the synchronization message corresponding to the following message;
  • the synchronization and follow-up message correlator is further configured to: store a correspondence between the message information of the synchronization message and the dwell time of the synchronization message, and receive the follow-up report sent by the outgoing traffic direction message processor The message information of the text, and the synchronization message of the message information and the received message information of the following message are searched, and the resident time of the synchronization message is fed back to the outgoing traffic direction message processor.
  • the text information is one or more of the following: a source identifier and a serial number.
  • the inbound traffic direction message processor is further configured to: send the message information of the delayed response message to the delay request and the delayed response message correlator to query the corresponding delay response message Delaying the requesting time of the request message;
  • the outgoing traffic direction message processor is further configured to: send the message information of the delayed request message to the delay request and the delayed response message correlator;
  • the delay request and the delayed response message correlator are further configured to: store a correspondence between the message information of the delay request message and the dwell time of the delay request message, and receive the inbound traffic direction message processor
  • the delayed response message of the delayed response message is sent, and the delay request message with the same message information as the received delayed response message is searched, and the dwell time of the delayed request message is fed back to the direction.
  • the traffic direction message processor wherein the text information is one or more of the following: a source identifier and a sequence number.
  • the present invention also discloses a time processing method for a precise time synchronization protocol, the method comprising: a precision time synchronization protocol time processing device receiving a precise time synchronization protocol message process, if receiving from a precise time synchronization Identifying and synchronizing the message in the protocol message, determining and storing the dwell time of the synchronization message in the time processing device of the precision time synchronization protocol, and using a one-step method between the master and the slave device, Adding a dwell time of the synchronization message to the synchronization message to be sent out; and if the time processing device of the precision time synchronization protocol receives the precision time synchronization protocol report When the following is identified in the text, the resident time of the synchronization message corresponding to the message is locally queried, and the resident time of the queried synchronization message is added to the following message.
  • the method further includes: when the time processing device of the precision time synchronization protocol receives the precision time synchronization protocol message, if the delay request message is identified from the received precision time synchronization protocol message, the method is determined and stored. Determining the dwell time of the delay request message in the time processing device of the precision time synchronization protocol, and adding a dwell time of the delay request message to the Sending out the delayed request message; if the time processing device of the precision time synchronization protocol identifies the delayed response message from the received precision time synchronization protocol message, the local delay query corresponding to the delayed response message is locally queried The dwell time of the packet is added to the delayed response message and sent to the delayed response message.
  • the time processing device of the precision time synchronization protocol adds a dwell time of the synchronization message to the synchronization message when the one-step method is used between the master and the slave device, and the step of transmitting the synchronization message includes: the precise time
  • the time processing device of the synchronization protocol reads the step method identifier in the synchronization message. If the step method identifier is invalid, it is determined that the master and slave devices use a one-step method to add the residence time of the synchronization message to the Send out in the synchronization message.
  • the step of locally querying the dwell time of the delay request message corresponding to the delayed response message includes: the precise time
  • the time processing device of the synchronization protocol reads the step method identifier in the delayed response message. If the step method identifier is valid, it determines that the master and slave devices use the two-step method to query the identified delayed response message.
  • the time processing device of the precision time synchronization protocol adds a dwell time of the delay request >3 ⁇ 4 text to the delay when a one-step method is used between the master and the slave devices
  • the step of sending the request in the message includes: the time processing device of the precision time synchronization protocol reads the step method identifier in the delay request message, and if the step method identifier is invalid, determining between the master and the slave device In one step, the dwell time of the delayed request message is added to the delayed request message and sent out.
  • the time processing device of the precision time synchronization protocol stores the synchronization message during the precision time
  • the time information is one or more of the following: a source identifier and a serial number.
  • the time processing device of the precision time synchronization protocol stores a dwell time of the delay request message in a time processing device of the precision time synchronization protocol, and locally queries a station of the delay request message corresponding to the delayed response message
  • the step of the time interval includes: the time processing device of the precision time synchronization protocol stores a correspondence between the message information of the delay request message and the dwell time of the delay request message, and the report according to the delayed response message
  • the text information is used to search for the dwell time of the delayed request message with the same message information as the delayed response message; wherein the text information is one or more of the following: source identifier and serial number .
  • the technical solution of the present invention is simple and easy to implement, and does not need to configure a one-step or two-step method for the transparent transmission node, and can automatically recognize whether the Master and the Slaver are one-step or two-step methods, and does not need to insert a Follow-up message, which simplifies.
  • Figure 1 is a schematic view of the structure of the device of the present invention
  • Figure 2 is a process flow diagram of the present invention.
  • a time processing device of the PTP protocol includes an inbound traffic direction (ingress direction) text processor, an outward flow direction (Egress direction) text processor, S synchronization and following (ync_Follow — up ) Message Correlator, Delay Request and Delay Acknowledge ( Delqy_req_Delay_resp ) ⁇ Correlation Correlator and Forwarding Module.
  • the ingress direction packet processor is configured to: in the ingress direction (that is, the direction in which the PTP packet is received), identify the Sync, Delay req, and Delay_respons packets from the received PTP, and inward the packet.
  • the timestamp of the traffic (Ingress timestamp) is added to the payload of the corresponding Sync message, Delay_req message (ie, the identified Sync message or Delay_req message) and sent to the forwarding module, according to the Delay-response message.
  • the step flag of the text performs the corresponding operation on the Delay-response message.
  • the inbound direction message processor receives the received PTP message according to the format of the PTP protocol message.
  • the Sync message, Delay-req, and Delay-response are identified in the PTP message, and the Ingress Timestam of the received message is added to the payload of the Sync and Delay-req messages. And sent to the forwarding module; according to the Delay- response, the Step Flag performs the corresponding operation on the Delay- response message.
  • the two-step method is used between the Master and the Slaver, After the correct field of the Delay-Response packet is modified, the packet is sent to the forwarding module.
  • Step Flag 1
  • Ingress direction report Delay- response packet processor extracts message information packet, i.e.
  • StepFlag of the Delay- response message is 0, it means that the Master and the Slaver use a one-step method. (Note that any one can be used to represent the Master and the Slaver. The identifier of the two-step identification can be used to indicate that the Master and the Slaver use a one-step method, and the present invention is not limited to 0), and the Ingress direction message processor does not modify any.
  • the forwarding module is configured to: Receive all PTP packets sent by the inbound packet processor, and transparently transmit the received PTP packets to the Egress packet processor. The forwarding module is only used to transparently transmit PTP packets. Therefore, in some application scenarios, the forwarding module can be ignored, that is, the ingress direction packet processor is directly connected to the Egress direction message processor.
  • the Egress-direction message processor is configured to: identify Sync, follow-up, and Delay-req in the received PTP packet in the Egress direction, and extract parameters of the Sync, Follow-up, or Delay-req packets. And judging whether the master and the slave use a one-step method or a two-step method, and automatically modify the Sync message, the Follow-up message, or the Delay-req message residence time according to the judgment result. Specifically, the Egress packet processor identifies, according to the standard packet encapsulation format specified by the PTP, a Sync message, a Follow-up message, or a Delay-req message from the received PTP message.
  • the Ingress Timetam of the Sync message is stripped, and the Sync message, ie, SourcePortldentify and/or Sequence Number, is extracted, and the Sync message is determined.
  • Egress Timestam which calculates the Sync time of the Sync, ie Egress Timestamp-Ingress Timetamp, and sends the Sync message containing the Sync message, ie the SourcePortldentify and/or Sequence Number and the Sync message.
  • the flag message is sent to the Sync-Follow-up correlator, and the StepFlag of the Sync message is read. If StepFlag is 0, the calculated dwell time is directly added to the Correctfield field of the Sync message for transmission.
  • StepFlag the Sync message stripped from Ingress Timestam will be sent out.
  • the SourcePortldentify and Sequence Number in the Follow-up message are extracted, and the SourcePortldentify, Sequence Number, and follow-up messages are extracted.
  • the flag message is sent to the Sync_Follow-up correlator, and the Sync-follow-up correlator is fed back to the dwell time of the Sync message corresponding to the Follow-up message, and the dwell time is added to the Follow-up report.
  • the Delay field is identified from the received PTP message, the Ingress Timetamp of the Delay-req message is stripped, and the information is extracted from the Delay-req message.
  • StepFlag the StepFlag of the Delay-req message is read. If StepFlag is 0, the calculated dwell time is directly added to the Correctfield field of the Delay-req message. If StepFlag is 1, the Ingress Timestam will be stripped. The Delay-req is sent out.
  • the Sync-Follow-up message correlator is set to: store the spoofing time and related parameters of the Sync message, and feed back the Sync message of the Sync message corresponding to the Follow-up message to the Egress message processor;
  • the Sync_follow-up correlator when the Sync_follow-up correlator receives the message including the Sync message flag, the message information in the message (that is, parameters of the Sync message, such as SourcePortldentify and/or Sequnece Number) and Sync are stored. The time of residence of the text.
  • the Sync_follow-up correlator receives the message including the Follow-up message flag, according to the 4 ⁇ message information (ie, SourcePortldentify and/or Sequnece Number) in the message, the corresponding information is queried from the locally stored text information.
  • the Sync message's dwell time, and the Sync message's dwell time is fed back to the Egress message processor.
  • Delay_req_Delay_resp 4 The context correlator is set to: store the residence time and related parameters of the Delay-req text, and the delay time of the Delay-req 4 message corresponding to the Delay-response message of the message processor in the ingress direction; Specifically, when the Delay_req_Delay_resp correlator receives the message including the Delay_req message flag, the message information in the message (ie, the parameters of the Delay-req message, such as SourcePortldentify and/or Sequnece Number) is stored. ) and Delay-req are the dwell time of the text.
  • the corresponding Delay-req report is queried from the locally stored information.
  • the dwell time of the text is fed back to the Ingress message processor for the resident time of the Delay-req message.
  • Step 200 The time processing device of the PTP protocol receives the PTP packet, and if the Sync packet is identified from the received PTP packet, And determining, and storing, a dwell time of the Sync message in the time processing device of the PTP protocol, and sending the Sync message; wherein, when the master and the slave device use a one-step method (ie, a Sync message) When StepFlag is invalid, for example, 0), the resident time of the Sync message is added to the Sync message and then sent out;
  • StepFlag is invalid, for example, 0
  • the time processing device of the PTP protocol stores the resident time of the Sync message in the time processing device of the PTP protocol, and the time processing device of the PTP protocol stores the correspondence between the message information of the Sync message and the resident time of the Sync message.
  • ⁇ Gen message information is one or more of the following: a source identification message before Gen (RequestiongPortldentify), 1 J bad sequence number (Sequnece number).
  • the local queried time of the Sync message corresponding to the Follow-up message is obtained by searching for the message information and the report of the Follow-up message according to the packet information of the identified Follow-up message.
  • Step 202 If the time processing device of the PTP protocol identifies the received PTP message
  • the Delay-req message determines and stores the dwell time of the Delay-req message in the time processing device of the PTP protocol, and sends the Delay-req message; wherein, the primary and secondary devices use one step When the method (ie, the StepFlag in the Delqy-req message is invalid, for example, 0), the dwell time of the Delay_req 4 message is added to the Delay-req 4 message and then sent out;
  • the time processing device of the PTP protocol stores the dwell time of the Delay-req message in the time processing device of the PTP protocol, and the time processing device of the PTP protocol stores the message information of the Delay-req message and the station of the Delay-req message.
  • the correspondence between the time and the time, wherein the message information is one or more of the following: a source identifier, a sequence number.
  • Step 203 If the time processing device of the PTP protocol identifies the Delay-response from the received PTP packet If the text is queried, the time of the Delay-req message corresponding to the Delay-req message is queried locally, and the dwell time of the Queryed Delay-Req message is added to the Delay response message.
  • the Delqy-req corresponding to the Delay-response message is used to search for the message information according to the packet information of the identified Delay-response message.
  • Delay- response is the same as the Delqy-req of the text information.
  • the technical solution of the present invention is simple and easy to implement, and does not need to configure a one-step or two-step method for the transparent transmission node, and can automatically recognize whether the Master and the Slaver are one-step or two-step methods, and do not need to insert a Follow-up message. , simplifies the complexity of device implementation.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Description

一种精密时间同步协议的时间处理装置及方法
技术领域
PTP ) , 特别涉及一种 PTP中的时间处理装置及方法。
背景技术 本发明引用了 IEEE的标准 Precision Clock Synchronization Protocol for Networked Measurement and Control System , 简称 PTP。 PTP实现了在以太网 中如何进行精确的时间传送。 目前 PTP在透传时钟模式下驻留时间(报文经过网络节点的时延)的计 算有如下缺陷: 根据协议规定, PTP分成两种方式, 即一步法和两步法。 在一步法时, 主用设备 ( Master )发送同步(Sync )报文, 而不发送跟随( Follow— up )报 文; 在两步法的模式下, Master不仅要发送 Sync报文, 而且还要发送 Sync 报文对应的 Follow— up报文。透传节点需要计算 Sync报文的驻留时间, 并修 改 Sync报文或 Follow— up报文的 correctfield域。 协议规定, 对于透传节点, 如果配置为一步法, 仅仅修改 Sync报文的 correctfield域; 如果透传节点被 配置成两步法, 而 Master配置为一步法, 则透传节点, 要在 Sync报文中插 入一个与该 Sync报文对应的 Follow— up报文, 并用 Sync报文驻留时间来修 正 Follow— up报文的 CorrectField域。 按照这个处理方式, 如果在 PTP中, 一对 Master和备用设备 ( Slaver )之间如果釆用一步法, 但是某个中间的透 传节点被设置成两步法, 此时, 由于 Slaver计算的公式中不包含 Follow— up 信息中的驻留时间, 而驻留时间恰好在 Follow— up报文中, 这样计算结果就 会出现错误。 同时由于透传节点需要插入 Follow— up报文, 当网络的满负荷 运行时, 网络没有剩余的带宽让透传节点插入 Follow— up 报文。 其次 Follow— up 报文的插入有一定的时间要求, 及要求网络总体的带宽有剩余, 但是由于网络的流量是变化的, 当需要插入 Follow— up报文但没有剩余带宽 时需要等待, 这样会造成 Follow— up报文与 Sync报文的顺序乱序, 给接收节 点造成额外的处理负荷。
发明内容 本发明所要解决的技术问题是,提供一种 PTP协议的时间处理装置及方 法。 为了解决上述问题, 本发明公开了一种精密时间同步协议的时间处理装 置, 该装置包括向内的流量方向报文处理器、 向外的流量方向报文处理器以 及同步与跟随报文关联器, 其中: 所述向内的流量方向报文处理器设置为: 从接收的精密时间同步协议报 文中识别出同步报文, 并在所识别出的同步报文中添加时间戳后发送给所述 向外的流量方向报文处理器; 所述向外的流量方向报文处理器设置为: 从接收的精密时间同步协议报 文中识别出同步报文, 根据所述同步报文中的时间戳, 计算该同步报文的驻 留时间, 将同步报文的驻留时间发送给所述同步与跟随报文关联器, 在主从 设备之间釆用一步法时, 还将同步报文的驻留时间添加到同步报文中发送出 去, 以及从接收的精密时间同步协议报文中识别出跟随报文, 并从所述同步 与跟随报文关联器中查询与所识别出的跟随报文对应的同步报文的驻留时 间, 将所查询到的驻留时间添加到跟随报文后发送出去; 所述同步与跟随报文关联器设置为: 存储同步报文的驻留时间, 并向所 述向外的流量报文处理器反馈跟随报文对应的同步报文的驻留时间。 该装置还包括延迟请求与延迟应答报文关联器, 其中: 所述向内的流量方向报文处理器还设置为: 从接收的精密时间同步协议 报文中识别出延迟请求报文, 并在所识别出的延迟请求报文中添加时间戳后 发送给所述向外的流量方向报文处理器, 以及从接收的精密时间同步协议报 文中识别出延迟应答报文, 并在主从设备之间釆用两步法时, 向所述延迟请 求与延迟应答报文关联器查询与所识别出的延迟应答报文对应的延迟请求报 文的驻留时间, 将查询到的驻留时间添加到所述延迟应答报文中发送给所述 向外的流量方向报文处理器; 所述向外的流量方向报文处理器还设置为: 从接收的精密时间同步协议 报文中识别出延迟请求报文, 根据所述延迟请求报文中的时间戳, 计算该延 迟请求报文的驻留时间, 并将延迟请求报文的驻留时间发送给所述延迟请求 与延迟应答报文关联器, 以及在主从设备之间釆用一步法时, 还将延迟请求 报文的驻留时间添加到延迟请求报文中发送出去; 所述延迟请求与延迟应答报文关联器设置为: 存储延迟请求报文的驻留 时间, 并向所述向内的流量方向报文处理器反馈延迟应答报文对应的延迟请 求 "^文的驻留时间。 所述向外的流量方向报文处理器是设置为按如下方式在主从设备之间釆 用两步法时将同步报文的驻留时间添加到同步报文中发送出去: 所述向外的流量方向报文处理器读取所述同步报文中的步骤法标识, 若 所述步骤法标识无效, 则确定主从设备之间釆用一步法, 将同步报文的驻留 时间添加到所述同步报文中发送出去。 所述向内的流量方向报文处理器是设置为按如下方式在主从设备之间釆 用两步法时查询所识别出的延迟应答 ^艮文对应的延迟请求 ^艮文的驻留时间: 所述向内的流量方向报文处理器读取所述延迟应答报文中的步骤法标识, 若 所述步骤法标识有效, 则确定主从设备之间釆用两步法, 查询所识别出的延 迟应答报文对应的延迟请求报文的驻留时间; 所述向外的流量方向报文处理器是设置为按如下方式: 在主从设备之间 釆用一步法时将延迟请求报文的驻留时间添加到延迟请求报文中发送出去: 所述向外的流量方向报文处理器延迟请求报文读取所述延迟请求报文中的步 骤法标识, 若所述步骤法标识无效, 则确定主从设备之间釆用一步法, 将延 迟请求报文的驻留时间添加到所述延迟请求报文中发送出去。 所述向外的流量方向报文处理器还设置为: 将所述同步报文的报文信息 发送给所述同步与跟随报文关联器, 以及将所述跟随报文的报文信息发送给 所述同步与跟随报文关联器以查询与所述跟随报文对应的同步报文的驻留时 间; 所述同步与跟随报文关联器还设置为: 存储同步报文的报文信息与同步 报文的驻留时间的对应关系, 以及接收所述向外的流量方向报文处理器发送 的跟随报文的报文信息, 并查找报文信息与所接收的跟随报文的报文信息相 同的同步报文, 将该同步报文的驻留时间反馈给所述向外的流量方向报文处 理器; 其中, 所述 文信息为以下一种或几种: 源 ^文标识和序列号。 所述向内的流量方向报文处理器还设置为: 将所述延迟应答报文的报文 信息发送给所述延迟请求与延迟应答报文关联器以查询与所述延迟应答报文 对应的延迟请求 ^艮文的驻留时间; 所述向外的流量方向报文处理器还设置为: 将所述延迟请求报文的报文 信息发送给所述延迟请求与延迟应答报文关联器; 所述延迟请求与延迟应答报文关联器还设置为: 存储延迟请求报文的报 文信息与延迟请求报文的驻留时间的对应关系, 以及接收所述向内的流量方 向报文处理器发送的延迟应答报文的报文信息, 并查找报文信息与所接收的 延迟应答报文的报文信息相同的延迟请求报文, 将该延迟请求报文的驻留时 间反馈给所述向内的流量方向报文处理器, 其中, 所述 文信息为以下一种或几种: 源 ^文标识和序列号。 为了解决上述问题, 本发明还公开了一种精密时间同步协议的时间处理 方法, 该方法包括: 精密时间同步协议的时间处理装置接收精密时间同步协议报文过程中, 若从接收的精密时间同步协议报文中识别出同步报文, 则确定并存储所述同 步 "^文在所述精密时间同步协议的时间处理装置中的驻留时间, 并在主从设 备之间釆用一步法时, 将所述同步报文的驻留时间添加到所述同步报文中发 送出去; 以及 若所述精密时间同步协议的时间处理装置从接收的精密时间同步协议报 文中识别出跟随 ^艮文时, 则从本地查询该跟随 ^艮文对应的同步 ^艮文的驻留时 间, 并将查询到的同步报文的驻留时间添加到所述跟随报文中发送出去。 所述方法还包括: 所述精密时间同步协议的时间处理装置接收精密时间同步协议报文过程 中, 若从所接收的精密时间同步协议报文中识别出延迟请求报文, 则确定并 存储所述延迟请求报文在所述精密时间同步协议的时间处理装置中的驻留时 间, 并在主从设备之间釆用一步法时, 将所述延迟请求报文的驻留时间添加 到所述延迟请求报文中发送出去; 若所述精密时间同步协议的时间处理装置从接收的精密时间同步协议报 文中识别出延迟应答报文时, 则从本地查询该延迟应答报文对应的延迟请求 报文的驻留时间, 并将查询到的延迟请求报文的驻留时间添加到所述延迟应 答报文中发送出去。 所述精密时间同步协议的时间处理装置在主从设备之间釆用一步法时, 将所述同步报文的驻留时间添加到所述同步报文中发送出去的步骤包括: 所述精密时间同步协议的时间处理装置读取所述同步报文中的步骤法标 识, 若所述步骤法标识无效, 则确定主从设备之间釆用一步法, 将同步 ^艮文 的驻留时间添加到同步报文中发送出去。 所述精密时间同步协议的时间处理装置在主从设备之间釆用两步法时, 则从本地查询该延迟应答报文对应的延迟请求报文的驻留时间的步骤包括: 所述精密时间同步协议的时间处理装置读取所述延迟应答报文中的步骤法标 识, 若所述步骤法标识有效, 则确定主从设备之间釆用两步法, 查询所识别 出的延迟应答报文对应的延迟请求报文的驻留时间; 所述精密时间同步协议的时间处理装置在主从设备之间釆用一步法时, 将所述延迟请求>¾文的驻留时间添加到所述延迟请求 ^艮文中发送出去的步骤 包括: 所述精密时间同步协议的时间处理装置读取所述延迟请求报文中的步 骤法标识, 若所述步骤法标识无效, 则确定主从设备之间釆用一步法, 将延 迟请求报文的驻留时间添加到延迟请求报文中发送出去。 所述精密时间同步协议的时间处理装置存储所述同步报文在所述精密时 间同步协议的时间处理装置中的驻留时间 , 以及从本地查询该跟随 ^艮文对应 的同步报文的驻留时间的步骤包括: 所述精密时间同步协议的时间处理装置存储所述同步报文的报文信息与 同步报文的驻留时间的对应关系, 以及根据所述跟随报文的报文信息, 查找 报文信息与所述跟随报文的报文信息相同的同步报文的驻留时间; 其中, 所述 文信息为以下一种或几种: 源 ^文标识和序列号。 所述精密时间同步协议的时间处理装置存储所述延迟请求 文在所述精 密时间同步协议的时间处理装置中的驻留时间, 以及从本地查询该延迟应答 报文对应的延迟请求报文的驻留时间的步骤包括: 所述精密时间同步协议的时间处理装置存储所述延迟请求报文的报文信 息与延迟请求报文的驻留时间的对应关系, 以及根据所述延迟应答报文的报 文信息, 查找报文信息与所述延迟应答报文的报文信息相同的延迟请求报文 的驻留时间; 其中, 所述 文信息为以下一种或几种: 源 ^文标识和序列号。
本发明技术方案简单易实现, 不需要对透传节点配置一步法或两步法, 可以自动识别 Master 与 Slaver之间是一步法还是两步法, 也不需要插入 Follow— up报文, 简化了设备实现的复杂度。
附图概述 图 1为本发明装置结构示意图; 图 2为本发明处理流程图。
本发明的较佳实施方式 下面结合附图及具体实施例对本发明技术方案做进一步详细说明。 需要 说明的是, 在不冲突的情况下, 本申请中的实施例及实施例中的特征可以相 互任意组合。 一种 PTP 协议的时间处理装置, 如图 1 所示, 包括向内的流量方向 ( Ingress方向) 文处理器、 向外的流量方向 (Egress方向) 文处理器、 S 同步与跟随 ( ync— Follow— up ) 报文关联器、 延迟请求与延迟应答 ( Delqy_req_Delay_resp ) ^艮文关联器以及转发模块。 其中, Ingress方向报文处理器设置为: 在 Ingress方向 (即接收 PTP报 文的方向) , 从接收的 PTP才艮文中识别 Sync、 Delay req和 Delay— respons 报文, 以及将报文的向内的流量的时间戳( Ingress timestamp )添加至相应的 Sync报文、 Delay_req报文(即识别出的 Sync报文或者 Delay_req报文 ) 的 净荷中并发送给转发模块,其中,根据 Delay— response报文的步骤法标识( Step Flag )对 Delay— response才艮文进行相应的操作; 具体地, Ingress方向报文处理器接收到 PTP报文后, 根据 PTP协议报 文的格式, 从所接收到的 PTP 报文中识别出 Sync 报文、 Delay— req 和 Delay— response才艮文,并将收到才艮文的 Ingress Timestam 添力口到该 Sync才艮文 和 Delay— req报文的净荷中并发送给转发模块; 才艮据 Delay— response才艮文的 Step Flag对 Delay— response才艮文进行相应的 操作指, 当 Master与 Slaver之间釆用了两步法时, 需要修改 Delay— response 报文的 correctfield后发送给转发模块, 具体地, Ingress方向报文处理器识别 出 Delay— response才艮文后, 还读取该才艮文的 Step Flag, 如果 Step Flag为 1 , 则表示 Master与 Slaver之间釆用了两步法(需要注意的是, 任一标识均可用 于表示 Master与 Slaver之间釆用了两步法,本发明并不限于 1表示), Ingress 方向报文处理器提取 Delay— response 报文的报文信息, 即源报文标识 ( Requesting Portldentify )和 /或序歹1 J号 ( Sequence Number ) , 并发送包含有 所提取的报文信息 (即 Requesting Portldentify和 /或 sequence number ) 以及 Delay— response才艮文标志的消息给 Delay— req_Delay— response 关联器, 等待 Delay— req_Delay— response关联器反馈回该 Delay— response才艮文对应的 Delay— req报文的驻留时间后, 将收到的驻留时间添加到 Delay— response 报文的 CorrectField域中后发送给转发模块;如果读取 Delay— response报文的 StepFlag 为 0, 则表示 Master与 Slaver之间釆用了一步法(需要注意的是, 任一可以 与用于表示 Master与 Slaver之间釆用了两步法的标识区分的标识,均可以用 于表示 Master与 Slaver之间釆用了一步法,本发明并不限于 0表示), Ingress 方向报文处理器则不做任何修改, 直接将 Delay— response报文发送给转发模 块。 转发模块设置为: 接收 Ingress方向报文处理器发送的所有 PTP报文, 并将所接收的 PTP报文透传给 Egress方向报文处理器; 由于转发模块仅用于实现 PTP报文的透明传输,因此在一些应用场景中, 可以忽略转发模块, 即 Ingress方向报文处理器直接与 Egress方向报文处理 器相连即可。
Egress方向报文处理器设置为:在 Egress方向识别所收到的 PTP报文中 的 Sync、 Follow— up和 Delay— req才艮文 ,并提取 Sync、 Follow— up 或者 Delay— req 报文的参数, 以及判断 Master与 Slaver之间釆用的是一步法还是两步法, 并 根据判断结果自动修改 Sync报文、 Follow— up报文或者 Delay— req报文的驻 留时间。 具体地, Egress报文处理器, 根据 PTP规定的标准报文封装格式, 从所 接收的 PTP报文中分别识别出 Sync报文、 Follow— up报文还是 Delay— req报 文;
其中, 当从所接收的 PTP报文中识别出 Sync报文时, 剥离 Sync报文的 Ingress Timetam , 提取 Sync才艮文的才艮文信息, 即 SourcePortldentify和 /或 Sequence Number, 确定 Sync才艮文的 Egress Timestam , 计算 Sync才艮文的驻 留时间, 即 Egress Timestamp-Ingress Timetamp, 并发送包含有 Sync才艮文驻 留时间、 才艮文信息 (即 SourcePortldentify和 /或 Sequence Number )和 Sync 报文标志的消息给 Sync— Follow— up关联器, 同时读取 Sync报文的 StepFlag, 如果 StepFlag为 0 , 则直接将计算的驻留时间加到 Sync报文的 Correctfield 域中去发送出去。 如果 StepFlag为 1 , 则将剥离 Ingress Timestam 的 Sync 报文发送出去。 当从所接收的 PTP报文中识别出 Follow— up报文时, 提取该 Follow— up 才艮文中的 SourcePortldentify 和 Sequence Number, 并发送包含有所提取的 SourcePortldentify、 Sequence Number 以及 Follow— up 才艮文标志的消息给 Sync— Follow— up关联器, 等待 Sync— follow— up关联器反馈回与该 Follow— up 报文对应的 Sync报文的驻留时间, 将该驻留时间添加到 Follow— up报文的 CorrectField域中后发送出去; 当从所接收的 PTP报文中识别出 Delay— req报文时, 剥离 Delay— req报 文的 Ingress Timetamp , 并从 Delay— req 才艮文中提取才艮文信息 ( 即 SourcePortldentify和 /或 Sequence Number ) , 确定 Delay— req才艮文的 Egress Timestam , 计算 Delay— req才艮文的驻留时间即为 Egress Timestamp - Ingress Timetamp, 并发送包含有驻留时间, 4艮文信息 (即 SourcePortldentify和 /或 Sequence Number )和 Delay— req才艮文标志的消息给 Delay— req_Delay— response 关联器; 同时读取 Delay— req报文的 StepFlag, 如果 StepFlag为 0, 则直接将 计算的驻留时间添加到 Delay— req报文的 Correctfield域中发送出去, 如果 StepFlag为 1 , 则将剥离 Ingress Timestam 的 Delay— req才艮文发送出去。
Sync— Follow— up报文关联器设置为: 存储 Sync报文的驻留时间和相关 参数,以及向 Egress报文处理器反馈 Follow— up报文对应的 Sync报文的驻留 时间;
具体地, 当 Sync— follow— up关联器收到包含有 Sync报文标志的消息时, 存储该消息中的报文信息 (即为 Sync报文的参数, 如 SourcePortldentify和 / 或 Sequnece Number )和 Sync才艮文的驻留时间。 当 Sync— follow— up关联器收到包含有 Follow— up报文标志的消息时, 根 据该消息中的 4艮文信息 (即 SourcePortldentify和 /或 Sequnece Number ) , 从 本地存储的 文信息中查询相应的 Sync 文的驻留时间,并将查询到的 Sync 报文的驻留时间反馈给 Egress报文处理器。
Delay_req_Delay_resp 4艮文关联器设置为: 存储 Delay— req 文的驻留时 间和相关参数,以及向 Ingress方向报文处理器反馈 Delay— response报文对应 的 Delay— req 4艮文的驻留时间; 具体地,当 Delay— req_Delay—resp关联器收到包含有 Delay— req报文标志 的消息时, 存储该消息中的报文信息 (即 Delay— req 报文的参数, 例如 SourcePortldentify和 /或 Sequnece Number )和 Delay— req才艮文的驻留时间。 当收到包含有 Delay— response报文标志的消息时, 根据该消息中的报文 信息 (即 RequestiongPortldentify和 /或 Sequnece Number ) , 从本地存诸的才艮 文信息中查询相应的 Delay— req报文的驻留时间,并将查询到的 Delay— req报 文的驻留时间反馈给 Ingress报文处理器。
下面介绍上述装置进行 PTP协议的时间处理过程 ,具体过程如图 2所示 , 包括以下步骤: 步骤 200, PTP协议的时间处理装置接收 PTP报文, 若从接收的 PTP报 文中识别出 Sync报文,则确定并存储该 Sync报文在所述 PTP协议的时间处 理装置中的驻留时间, 并将该 Sync报文发送出去; 其中, 当主从设备之间釆用一步法(即 Sync报文中 StepFlag无效, 例 如为 0 ) 时, 则将 Sync报文的驻留时间添加到 Sync报文中再发送出去;
PTP协议的时间处理装置存储 Sync报文在 PTP协议的时间处理装置中 的驻留时间指, PTP协议的时间处理装置存储 Sync报文的报文信息与 Sync 才艮文的驻留时间的对应关系, 其中, ^艮文信息为以下一种或几种: 源才艮文标识 ( RequestiongPortldentify ) 、 序歹1 J号 ( Sequnece Number ) 。 步骤 201 , 若 PTP协议的时间处理装置从接收的 PTP报文中识别出 Follow— up报文, 则从本地查询该 Follow— up 4艮文对应的 Sync报文的驻留时 间,并将查询到的 Sync报文的驻留时间添加到所述 Follow— up报文中发送出 去;
其中, 从本地查询该 Follow— up报文对应的 Sync报文的驻留时间指,根 据所识别出的 Follow— up报文的报文信息, 查找报文信息与该 Follow— up报 文的报文信息相同的 Sync报文的驻留时间; 步骤 202 , 若 PTP协议的时间处理装置从所接收的 PTP报文中识别出 Delay— req报文 ,则确定并存储 Delay— req报文在 PTP协议的时间处理装置中 的驻留时间, 并将该 Delay— req报文发送出去; 其中, 在主从设备之间釆用一步法(即 Delqy— req报文中 StepFlag无效, 例如为 0 )时, 将 Delay— req 4艮文的驻留时间添加到 Delay— req 4艮文中再发送 出去;
PTP协议的时间处理装置存储 Delay— req报文在 PTP协议的时间处理装 置中的驻留时间指, PTP协议的时间处理装置存储 Delay— req报文的报文信 息与 Delay— req报文的驻留时间的对应关系, 其中, 报文信息为以下一种或 几种: 源 "^文标识、 序列号。 步骤 203 , 若 PTP协议的时间处理装置从接收的 PTP报文中识别出 Delay— response才艮文 , 则从本地查询该 Delay— response才艮文对应的 Delay— req 报文的驻留时间, 并将查询到的 Delay— req 报文的驻留时间添加到所述 Delay response才艮文中发送出去。 其中, 从本地查询该 Delay— response才艮文对应的 Delqy— req才艮文的驻留 时间指, 根据所识别出的 Delay— response报文的报文信息, 查找报文信息与 该 Delay— response才艮文的才艮文信息相同的 Delqy— req才艮文的驻留时间。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。
以上所述, 仅为本发明的较佳实例而已, 并非用于限定本发明的保护范 围。 凡在本发明的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。
工业实用性 本发明技术方案简单易实现, 不需要对透传节点配置一步法或两步法, 可以自动识别 Master 与 Slaver之间是一步法还是两步法, 也不需要插入 Follow— up报文, 简化了设备实现的复杂度。

Claims

权 利 要 求 书
1、一种精密时间同步协议的时间处理装置,该装置包括向内的流量方向 报文处理器、向外的流量方向报文处理器以及同步与跟随报文关联器,其中: 所述向内的流量方向报文处理器设置为: 从接收的精密时间同步协议报 文中识别出同步报文, 并在所识别出的同步报文中添加时间戳后发送给所述 向外的流量方向报文处理器; 所述向外的流量方向报文处理器设置为: 从接收的精密时间同步协议报 文中识别出同步报文, 根据所述同步报文中的时间戳, 计算该同步报文的驻 留时间, 将同步报文的驻留时间发送给所述同步与跟随报文关联器, 在主从 设备之间釆用一步法时, 还将同步报文的驻留时间添加到同步报文中发送出 去, 以及从接收的精密时间同步协议报文中识别出跟随报文, 并从所述同步 与跟随报文关联器中查询与所识别出的跟随报文对应的同步报文的驻留时 间, 将所查询到的驻留时间添加到跟随报文后发送出去; 所述同步与跟随报文关联器设置为: 存储同步报文的驻留时间, 并向所 述向外的流量报文处理器反馈跟随报文对应的同步报文的驻留时间。
2、如权利要求 1所述的装置, 其中, 该装置还包括延迟请求与延迟应答 报文关联器, 其中: 所述向内的流量方向报文处理器还设置为: 从接收的精密时间同步协议 报文中识别出延迟请求报文, 并在所识别出的延迟请求报文中添加时间戳后 发送给所述向外的流量方向报文处理器, 以及从接收的精密时间同步协议报 文中识别出延迟应答报文, 并在主从设备之间釆用两步法时, 向所述延迟请 求与延迟应答报文关联器查询与所识别出的延迟应答报文对应的延迟请求报 文的驻留时间, 将查询到的驻留时间添加到所述延迟应答报文中发送给所述 向外的流量方向报文处理器; 所述向外的流量方向报文处理器还设置为: 从接收的精密时间同步协议 报文中识别出延迟请求报文, 根据所述延迟请求报文中的时间戳, 计算该延 迟请求报文的驻留时间, 并将延迟请求报文的驻留时间发送给所述延迟请求 与延迟应答报文关联器, 以及在主从设备之间釆用一步法时, 还将延迟请求 报文的驻留时间添加到延迟请求报文中发送出去; 所述延迟请求与延迟应答报文关联器设置为: 存储延迟请求报文的驻留 时间, 并向所述向内的流量方向报文处理器反馈延迟应答报文对应的延迟请 求 "^文的驻留时间。
3、 如权利要求 1或 2所述的装置, 其中, 所述向外的流量方向报文处理器是设置为按如下方式在主从设备之间釆 用两步法时将同步报文的驻留时间添加到同步报文中发送出去: 所述向外的流量方向报文处理器读取所述同步报文中的步骤法标识, 若 所述步骤法标识无效, 则确定主从设备之间釆用一步法, 将同步报文的驻留 时间添加到所述同步报文中发送出去。
4、 如权利要求 2所述的装置, 其中, 所述向内的流量方向报文处理器是设置为按如下方式在主从设备之间釆 用两步法时查询所识别出的延迟应答 ^艮文对应的延迟请求 ^艮文的驻留时间: 所述向内的流量方向报文处理器读取所述延迟应答报文中的步骤法标识, 若 所述步骤法标识有效, 则确定主从设备之间釆用两步法, 查询所识别出的延 迟应答报文对应的延迟请求报文的驻留时间; 所述向外的流量方向报文处理器是设置为按如下方式: 在主从设备之间 釆用一步法时将延迟请求报文的驻留时间添加到延迟请求报文中发送出去: 所述向外的流量方向报文处理器延迟请求报文读取所述延迟请求报文中的步 骤法标识, 若所述步骤法标识无效, 则确定主从设备之间釆用一步法, 将延 迟请求报文的驻留时间添加到所述延迟请求报文中发送出去。
5、 如权利要求要求 1或 2所述的装置, 其中, 所述向外的流量方向报文处理器还设置为: 将所述同步报文的报文信息 发送给所述同步与跟随报文关联器, 以及将所述跟随报文的报文信息发送给 所述同步与跟随报文关联器以查询与所述跟随报文对应的同步报文的驻留时 间; 所述同步与跟随报文关联器还设置为: 存储同步报文的报文信息与同步 报文的驻留时间的对应关系, 以及接收所述向外的流量方向报文处理器发送 的跟随报文的报文信息, 并查找报文信息与所接收的跟随报文的报文信息相 同的同步报文, 将该同步报文的驻留时间反馈给所述向外的流量方向报文处 理器; 其中, 所述 文信息为以下一种或几种: 源 ^文标识和序列号。
6、 如权利要求 2所述的装置, 其中, 所述向内的流量方向报文处理器还设置为: 将所述延迟应答报文的报文 信息发送给所述延迟请求与延迟应答报文关联器以查询与所述延迟应答报文 对应的延迟请求 ^艮文的驻留时间; 所述向外的流量方向报文处理器还设置为: 将所述延迟请求报文的报文 信息发送给所述延迟请求与延迟应答报文关联器; 所述延迟请求与延迟应答报文关联器还设置为: 存储延迟请求报文的报 文信息与延迟请求报文的驻留时间的对应关系, 以及接收所述向内的流量方 向报文处理器发送的延迟应答报文的报文信息, 并查找报文信息与所接收的 延迟应答报文的报文信息相同的延迟请求报文, 将该延迟请求报文的驻留时 间反馈给所述向内的流量方向报文处理器, 其中, 所述 文信息为以下一种或几种: 源 ^文标识和序列号。
7、 一种精密时间同步协议的时间处理方法, 该方法包括: 精密时间同步协议的时间处理装置接收精密时间同步协议报文过程中, 若从接收的精密时间同步协议报文中识别出同步报文, 则确定并存储所述同 步 "^文在所述精密时间同步协议的时间处理装置中的驻留时间, 并在主从设 备之间釆用一步法时, 将所述同步报文的驻留时间添加到所述同步报文中发 送出去; 以及 若所述精密时间同步协议的时间处理装置从接收的精密时间同步协议报 文中识别出跟随 ^艮文时, 则从本地查询该跟随 ^艮文对应的同步 ^艮文的驻留时 间, 并将查询到的同步报文的驻留时间添加到所述跟随报文中发送出去。
8、 如权利要求 7所述的方法, 其还包括, 所述精密时间同步协议的时间处理装置接收精密时间同步协议报文过程 中, 若从所接收的精密时间同步协议报文中识别出延迟请求报文, 则确定并 存储所述延迟请求报文在所述精密时间同步协议的时间处理装置中的驻留时 间, 并在主从设备之间釆用一步法时, 将所述延迟请求报文的驻留时间添加 到所述延迟请求报文中发送出去; 若所述精密时间同步协议的时间处理装置从接收的精密时间同步协议报 文中识别出延迟应答报文时, 则从本地查询该延迟应答报文对应的延迟请求 报文的驻留时间, 并将查询到的延迟请求报文的驻留时间添加到所述延迟应 答报文中发送出去。
9、 如权利要求 7或 8所述的方法, 其中, 所述精密时间同步协议的时间处理装置在主从设备之间釆用一步法时, 将所述同步报文的驻留时间添加到所述同步报文中发送出去的步骤包括: 所述精密时间同步协议的时间处理装置读取所述同步报文中的步骤法标 识, 若所述步骤法标识无效, 则确定主从设备之间釆用一步法, 将同步 4艮文 的驻留时间添加到同步报文中发送出去。
10、 如权利要求 8所述的方法, 其中, 所述精密时间同步协议的时间处理装置在主从设备之间釆用两步法时, 则从本地查询该延迟应答报文对应的延迟请求报文的驻留时间的步骤包括: 所述精密时间同步协议的时间处理装置读取所述延迟应答报文中的步骤法标 识, 若所述步骤法标识有效, 则确定主从设备之间釆用两步法, 查询所识别 出的延迟应答报文对应的延迟请求报文的驻留时间; 所述精密时间同步协议的时间处理装置在主从设备之间釆用一步法时, 将所述延迟请求>¾文的驻留时间添加到所述延迟请求 ^艮文中发送出去的步骤 包括: 所述精密时间同步协议的时间处理装置读取所述延迟请求报文中的步 骤法标识, 若所述步骤法标识无效, 则确定主从设备之间釆用一步法, 将延 迟请求报文的驻留时间添加到延迟请求报文中发送出去。
11、 如权利要求要求 7或 8所述的方法, 其中, 所述精密时间同步协议的时间处理装置存储所述同步报文在所述精密时 间同步协议的时间处理装置中的驻留时间, 以及从本地查询该跟随 ^艮文对应 的同步报文的驻留时间的步骤包括: 所述精密时间同步协议的时间处理装置存储所述同步报文的报文信息与 同步报文的驻留时间的对应关系, 以及根据所述跟随报文的报文信息, 查找 报文信息与所述跟随报文的报文信息相同的同步报文的驻留时间; 其中, 所述 文信息为以下一种或几种: 源 ^文标识和序列号。
12、 如权利要求 8所述的方法, 其中, 所述精密时间同步协议的时间处理装置存储所述延迟请求 文在所述精 密时间同步协议的时间处理装置中的驻留时间, 以及从本地查询该延迟应答 报文对应的延迟请求报文的驻留时间的步骤包括: 所述精密时间同步协议的时间处理装置存储所述延迟请求报文的报文信 息与延迟请求报文的驻留时间的对应关系, 以及根据所述延迟应答报文的报 文信息, 查找报文信息与所述延迟应答报文的报文信息相同的延迟请求报文 的驻留时间; 其中, 所述 文信息为以下一种或几种: 源 ^文标识和序列号。
PCT/CN2010/079128 2010-04-20 2010-11-25 一种精密时间同步协议的时间处理装置及方法 WO2011131006A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010153059.6A CN102237995B (zh) 2010-04-20 2010-04-20 一种精密时间协议的时间处理装置及方法
CN201010153059.6 2010-04-20

Publications (1)

Publication Number Publication Date
WO2011131006A1 true WO2011131006A1 (zh) 2011-10-27

Family

ID=44833671

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/079128 WO2011131006A1 (zh) 2010-04-20 2010-11-25 一种精密时间同步协议的时间处理装置及方法

Country Status (2)

Country Link
CN (1) CN102237995B (zh)
WO (1) WO2011131006A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684739A (zh) * 2014-01-09 2014-03-26 北京经纬恒润科技有限公司 一种实现时钟同步的装置、设备及方法
CN106254021A (zh) * 2016-07-18 2016-12-21 自连电子科技(上海)有限公司 实现物联网设备间时间同步的系统及其方法
CN109194433A (zh) * 2018-08-17 2019-01-11 中国航空无线电电子研究所 基于千兆afdx网络高精度授时时统的实现方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102447745B (zh) * 2012-01-11 2018-10-26 南京中兴新软件有限责任公司 Tc设备上的报文驻留时间的处理方法及装置
CN106877959B (zh) * 2015-12-11 2019-04-30 深圳市中兴微电子技术有限公司 一种时钟同步的方法、设备和系统
CN112865906B (zh) * 2021-01-12 2022-07-08 昆高新芯微电子(江苏)有限公司 实现精确时间协议同步报文的方法、装置及存储介质
CN112865907B (zh) * 2021-01-12 2022-07-08 昆高新芯微电子(江苏)有限公司 实现精确时间协议延迟请求报文的方法、装置及存储介质
CN113037417B (zh) * 2021-02-25 2022-07-08 昆高新芯微电子(江苏)有限公司 实现精确时间协议报文一步模式的方法、装置及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845546A (zh) * 2006-03-15 2006-10-11 重庆邮电学院 面向测量与控制的精确时间同步方法与系统
CN101447861A (zh) * 2008-12-29 2009-06-03 中兴通讯股份有限公司 Ieee 1588时间同步系统及其实现方法
CN101594673A (zh) * 2009-06-29 2009-12-02 中兴通讯股份有限公司 一种分布式处理1588时间戳的方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090032306A (ko) * 2007-09-27 2009-04-01 한국전자통신연구원 네트워크상의 타임 동기화 시스템 및 방법

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845546A (zh) * 2006-03-15 2006-10-11 重庆邮电学院 面向测量与控制的精确时间同步方法与系统
CN101447861A (zh) * 2008-12-29 2009-06-03 中兴通讯股份有限公司 Ieee 1588时间同步系统及其实现方法
CN101594673A (zh) * 2009-06-29 2009-12-02 中兴通讯股份有限公司 一种分布式处理1588时间戳的方法及系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103684739A (zh) * 2014-01-09 2014-03-26 北京经纬恒润科技有限公司 一种实现时钟同步的装置、设备及方法
CN103684739B (zh) * 2014-01-09 2017-09-29 北京经纬恒润科技有限公司 一种实现时钟同步的装置、设备及方法
CN106254021A (zh) * 2016-07-18 2016-12-21 自连电子科技(上海)有限公司 实现物联网设备间时间同步的系统及其方法
CN106254021B (zh) * 2016-07-18 2018-08-31 自连电子科技(上海)有限公司 实现物联网设备间时间同步的系统及其方法
CN109194433A (zh) * 2018-08-17 2019-01-11 中国航空无线电电子研究所 基于千兆afdx网络高精度授时时统的实现方法
CN109194433B (zh) * 2018-08-17 2020-10-09 中国航空无线电电子研究所 基于千兆afdx网络的高精度授时方法

Also Published As

Publication number Publication date
CN102237995A (zh) 2011-11-09
CN102237995B (zh) 2016-06-22

Similar Documents

Publication Publication Date Title
WO2011131006A1 (zh) 一种精密时间同步协议的时间处理装置及方法
WO2011120262A1 (zh) 时间同步的处理方法及装置
US10158444B1 (en) Event-driven precision time transfer
US8879586B2 (en) Inband timestamping
TWI461078B (zh) 並行控制方法
WO2012003746A1 (zh) 一种实现边界时钟的方法和装置
WO2012068844A1 (zh) 一种主从时钟设备的时钟同步方法及系统
WO2013056575A1 (zh) 一种1588-2008协议中时钟同步的方法及系统
US20080069150A1 (en) Precision Time Protocol Emulation for Network Supportive of Circuit Emulation Services
WO2010057398A1 (zh) 透传时钟的实现装置和方法
CN101594673A (zh) 一种分布式处理1588时间戳的方法及系统
CN101455014A (zh) 传送所发送的或者所接收的消息的发送时间信息或者接收时间信息的方法和装置
WO2011160595A1 (zh) 基于ptp及链路质量选取主时钟节点的方法、从时钟节点及系统
WO2011017867A1 (zh) 光传送网承载时间同步协议的方法及系统
CN101753578B (zh) Ethernet/e1协议转换方法及协议转换器
WO2009155828A1 (zh) 修正域信息的处理方法及系统
WO2012065334A1 (zh) 在时分复用网络中实现时间同步的方法、设备和系统
WO2011134371A1 (zh) 一种同步时钟的方法和时钟同步装置
WO2012034330A1 (zh) 汇聚式网络中设备间的同步方法、系统和汇聚环设备
CN102299788A (zh) 自动发送ieee1588协议报文的控制方法及装置
WO2014117489A1 (zh) 时钟同步方法及设备
WO2017177751A1 (zh) 时间同步方法和装置
WO2013082901A1 (zh) 一种1588事件报文的处理方法及系统
WO2018107606A1 (zh) 物联网中消息传递方法和装置
WO2013078926A1 (zh) 光纤不对称时主从设备间的时间偏差获取方法和通信系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10850138

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10850138

Country of ref document: EP

Kind code of ref document: A1