WO2014187310A1 - 用于精确时钟协议同步网络的方法和装置 - Google Patents

用于精确时钟协议同步网络的方法和装置 Download PDF

Info

Publication number
WO2014187310A1
WO2014187310A1 PCT/CN2014/077953 CN2014077953W WO2014187310A1 WO 2014187310 A1 WO2014187310 A1 WO 2014187310A1 CN 2014077953 W CN2014077953 W CN 2014077953W WO 2014187310 A1 WO2014187310 A1 WO 2014187310A1
Authority
WO
WIPO (PCT)
Prior art keywords
slave clock
port
clock device
link
message
Prior art date
Application number
PCT/CN2014/077953
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 华为技术有限公司
Priority to EP14800954.1A priority Critical patent/EP2991250B1/en
Publication of WO2014187310A1 publication Critical patent/WO2014187310A1/zh
Priority to US14/947,035 priority patent/US20160080100A1/en

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/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
    • 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/0685Clock or time synchronisation in a node; Intranode synchronisation
    • H04J3/0688Change of the master or reference, e.g. take-over or failure of the master
    • 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/0641Change of the master or reference, e.g. take-over or failure of the master
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0659Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
    • H04L41/0661Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for a Precision Time Protocol (PTP) synchronization network.
  • PTP Precision Time Protocol
  • PTP can achieve sub-second time synchronization.
  • the time synchronization performance of the synchronous network occurs when a failure occurs, which affects the deployment of the synchronous network on the live network.
  • the time synchronization performance of the synchronous network can be obtained through the meter.
  • the meter can be Time ACC-007 (Advanced Clock Calibration), oscilloscope, ANT-20 (Network Integrated Analyzer) or MTS-8000
  • Embodiments of the present invention provide a method and apparatus for a PTP synchronization network that helps reduce the cost of acquiring time synchronization performance of a PTP synchronization network.
  • a method for a PTP synchronization network including:
  • the slave clock device performs an operation of time synchronization with the first device according to the PTP through the first port, the first device is an upstream node of the slave clock device, the first device is located at a first link, and the master clock device is
  • the link of the slave clock device includes the first link and the second link, the slave clock device includes the first port and the second port, and the first port is located at the first link, The second port is located on the second link, the state of the first port is slave, and the state of the second port is passive;
  • the slave clock device obtains information required to determine an offset (time offset) of the slave clock device from the second device according to the PTP, the second device being upstream of the slave clock device Node, the second device is located in the second chain Road
  • the slave clock device determines a deviation based on the information, the deviation being equal to M multiplied by the time offset, and M is not equal to zero.
  • the method further includes:
  • the slave clock device determines that the time synchronization performance of the first link has failed or the time synchronization performance of the second link has failed.
  • the slave clock device determines that a time synchronization performance of the first link is faulty or After the time synchronization performance of the second link is faulty, the method further includes:
  • the slave clock device sends a message to the third device, the message being used to identify that the time synchronization performance of the first link is faulty or that the time synchronization performance of the second link is faulty.
  • the slave clock device passes the The information required by the two ports to determine the time deviation of the slave clock device and the second device includes:
  • the slave clock device interacts with the second device through the second port to obtain a plurality of messages corresponding to an operation of time synchronization between the clock device and the second device, thereby obtaining the information.
  • the slave clock device interacts with the second device by the second port to the slave clock device
  • the plurality of messages corresponding to the time synchronization operation with the second device include:
  • the slave clock device receives a synchronization (Sync) message sent by the second device by using the second port, where the slave clock device receives the Sync message at time t2, and the Sync message includes a timestamp. Ttl, the time that the second device sends the Sync message is t1;
  • the slave clock device receives, by the second port, a delay response (Delay_Resp) message corresponding to the Delay_Req message sent by the second device, where the Delay_Resp message includes a timestamp t4, where the The time at which the second device receives the Delay_Req message is t4, and t1, t2, t3, and t4 are the information.
  • Delay_Resp delay response
  • the method further includes:
  • the slave clock device transmits a message to the third device, the message including the deviation.
  • the method further includes:
  • the slave clock device displays the deviation by a display device, and the slave clock device includes the display device.
  • a slave clock device including:
  • An execution unit configured to perform time synchronization with the first device by using the first port, where the first device is an upstream node of the slave clock device, the first device is located at a first link, and a master clock
  • the link to the slave clock device includes the first link and the second link
  • the slave clock device includes the first port and the second port
  • the first port is located in the first chain
  • the second port is located on the second link
  • the state of the first port is slave
  • the state of the second port is passive
  • the setting unit is configured to set the state of the second port to Slave
  • a first determining unit configured to obtain, by using the second port, information required to determine a time deviation of the slave clock device from the second device, where the second device is an upstream node of the slave clock device, The second device is located at the second link;
  • a second determining unit configured to determine a deviation according to the information obtained by the first determining unit, where the deviation is equal to M multiplied by the time deviation, and M is not equal to 0.
  • the slave clock device further includes:
  • a third determining unit configured to determine that a time synchronization performance of the first link is faulty or if the absolute value of the deviation determined by the second determining unit is greater than a threshold The time synchronization performance of the second link fails.
  • the slave clock device further includes:
  • a sending unit configured to send a message to the third device, where the message is used to identify that the time synchronization performance of the first link determined by the third determining unit is faulty or the time synchronization performance of the second link occurs malfunction.
  • the first determining unit is configured to:
  • the plurality of messages corresponding to the time synchronization operation of the slave clock device and the second device are exchanged with the second device through the second port, thereby obtaining the information.
  • the first determining unit includes:
  • a first receiving subunit configured to receive, by using the second port, a Sync message sent by the second device, where the time of receiving the Sync message by the slave clock device is t2, and the Sync message includes a timestamp Ttl, the time that the second device sends the Sync message is t1;
  • a sending subunit configured to send, by using the second port, a Delay_Req message corresponding to the Sync message to the second device, where the time of sending the Delay Req message by the slave clock device is t3;
  • a second receiving subunit configured to receive, by using the second port, a Delay_Resp delay response message corresponding to the Delay_Req4 message sent by the second device, where the Delay_Resp message includes time Pt t4, the time at which the second device receives the Delay_Req message is t4, and t1, t2, t3, and t4 are the information.
  • the slave clock device further includes:
  • a sending unit configured to send a message to the third device, where the message includes the deviation determined by the second determining unit.
  • the clock device also includes:
  • a display unit configured to display the deviation determined by the second determining unit, where the slave clock device comprises the display device.
  • the slave clock device obtains the information required to determine a time deviation of the slave clock device from the second device through the second port according to the PTP.
  • the slave clock device determines the deviation based on the information.
  • the deviation is equal to M multiplied by the time deviation, and M is not equal to zero. If the absolute value of the deviation is greater than the threshold, it is determined that the time synchronization performance of the first link is faulty or the time synchronization performance of the second link is faulty.
  • FIG. 1 is a schematic structural diagram of a network structure according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for a PTP synchronization network according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a slave clock device according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a slave clock device according to an embodiment of the present invention.
  • the 1588 synchronization network deployment may be a ring network, and the device in the ring network may be a router or a PTN (Packet Transport Network) wavelength division device.
  • PTN Packet Transport Network
  • FIG. 1 is a schematic structural diagram of a network structure according to an embodiment of the present invention.
  • the network structure includes a first device 101, a second device 102, a master clock device 103, a slave clock device 104, and a network manager 107.
  • the slave clock device 104 performs an operation of time synchronization with the first device 101 through the first terminal 105 according to the PTP, the first device 101 is an upstream node of the slave clock device 104, and the first device 101 Located on the first link 108, the link of the master clock device 103 to the slave clock device 104 includes the first link 108 and the second link 109, and the slave clock device 104 includes the first port And the second port 106, the first port 105 is located at the first link 108, the second port 106 is located at the second link 109, and the state of the first port 105 is a slave, The status of the second port is passive.
  • the slave clock device 104 sets the state of the second port 106 of the slave clock device 104 to a slave;
  • the slave clock device 104 obtains information required to determine a time offset of the slave clock device 104 and the second device 102 through the second port 106 according to the PTP, the second device 102 is the slave clock device An upstream node of 104, the second device 102 is located at the second link 109;
  • the slave clock device 104 determines a deviation based on the information, the deviation being equal to M multiplied by the time offset, and M is not equal to zero.
  • the first device 101, the second device 102, the master clock device 103, and the slave clock device 104 can all be routers.
  • the network manager 107 can be used to manage routers in the first link 108 and the second link 109.
  • the first device 101 can be the last hop node of the slave clock device 104.
  • the first device 101 can also be connected to the slave clock device 104 by other devices located on the first link 108.
  • the other device may be a transparent clock.
  • the second device 102 can be the last hop node of the slave clock device 104.
  • the second device 102 can also be coupled to the slave clock device 104 by other devices located on the second link 109.
  • the other device may be a transparent clock.
  • the slave clock device 104 can set the state of the second port 106 of the slave clock device 104 to a slave by a command line.
  • the slave clock device 104 can interact with the second device 102 via the second port 106 to the slave clock device. 104 a plurality of messages corresponding to the time synchronization operation of the second device 104, thereby obtaining the information.
  • the slave clock device 104 may determine that the time synchronization performance of the first link 108 is faulty or The time synchronization performance of the second link 109 fails.
  • the slave clock device obtains the information required to determine the time deviation of the slave clock device and the second device through the second port according to the PTP.
  • the slave clock device determines the deviation based on the information.
  • the deviation is equal to M multiplied by the time offset and ⁇ is not equal to zero. If the absolute value of the deviation is greater than the threshold, it is determined that the time synchronization performance of the first link is faulty or the time synchronization performance of the second link is faulty.
  • the above technical solution helps to reduce the cost of acquiring the time synchronization performance of the accurate clock protocol synchronization network.
  • the ports in the precision clock protocol synchronization network can be master, slave or passive.
  • time synchronization can be performed by performing synchronization with other clock devices in the synchronous clock protocol synchronization network.
  • the first port 105 of the slave clock device 104 can be determined according to the BMC algorithm (Best Master Clock Algorithm) of the second edition of the Precision Clock Protocol.
  • the status is slave, and the status of the second port 106 is passive.
  • the slave clock device 104 implements time synchronization with the master clock device 103 via the first device 101 in the first link 108.
  • the second link 109 is a backup link of the first link 108. If the first link 108 fails, the state of the first port 105 may become passive. The state of the second port 106 may become a slave.
  • the slave clock device 104 can effect time synchronization with the master clock device 103 via the second device 102 in the second link 109.
  • the state of the second port 106 of the slave clock device 104 is set to slave.
  • the second port 106 obtains information required to determine a time offset of the slave clock device 104 and the second device 102.
  • the state of the second port 106 of the slave clock device 104 can be set to a slave by a command line.
  • the information may be a timestamp of a message carried by the slave clock device 104 interacting with the second device 102.
  • the timestamp can be a path delay, a dwell time or an asymmetry correction.
  • the slave clock device 104 obtains information required to determine the time deviation of the slave clock device 104 and the second device 102 through the second port 106 according to the PTP, including:
  • the slave clock device 104 interacts with the second device 102 via the second port 106 to exchange a plurality of messages corresponding to the time synchronization operation of the slave clock device 104 and the second device 102, thereby obtaining a Information.
  • the information may be tl, t2, t3, and t4.
  • the TTL and t2 may be: the slave clock device 104 receives the Sync synchronization message sent by the second device 102 through the second port 106, and the time that the slave clock device 104 receives the Sync message is t2.
  • the Sync message includes a timestamp t1, and the time at which the second device 102 sends the Sync message is t1;
  • T3 may be: the slave clock device 104 sends a Delay-Req delay request message corresponding to the Sync message to the second device 102 through the second port 106, and the slave clock device 104 sends the Delay—The time of the Req message is t3;
  • T4 may be: the slave clock device 104 receives, by using the second port 106, a Delay-Resp delay response message corresponding to the Delay_Req ⁇ message sent by the second device 102, the Delay_Resp message The timestamp t4 is included, and the time that the second device 102 receives the Delay_Req message is t4.
  • the slave clock device 104 determines a deviation according to the information, where the deviation is equal to M multiplied by a time deviation of the slave clock device 104 and the second device 102, and M is not equal to 0.
  • T4-t3 Delaysm-Offset
  • Offset [ ( t2- tl ) - ( t4- 13 ) ]12
  • the delay ms is a transmission path delay of the master port of the second device 102 and the second port 106 of the slave clock device 104
  • Delaysm is a transmission path of the master port of the slave clock device 104 to the second device 102. Delay.
  • the slave clock device 104 determines that the time synchronization performance of the first link 108 is faulty or the time synchronization performance of the second link 109 is faulty. .
  • the preset threshold here can be 55 ns or other values, which is not limited here.
  • the slave clock device 104 sends a message to the third device, where the message includes the deviation.
  • the third device can be a network manager.
  • the slave clock device obtains the information required to determine a time deviation of the slave clock device and the second device through the second port according to the PTP.
  • the slave clock device determines the deviation based on the information.
  • the deviation is equal to M multiplied by the time offset, and ⁇ is not equal to zero. If the absolute value of the deviation is greater than the threshold, it is determined that the time synchronization performance of the first link is faulty or the time synchronization performance of the second link is faulty.
  • FIG. 2 is provided by an embodiment of the present invention.
  • a flow diagram of a method for a PTP synchronization network The network structure shown in Figure 1 can be used to perform the method.
  • the slave clock device 104 of Figure 1 can be used to perform the method. Referring to FIG. 2, the method includes:
  • the slave clock device performs time synchronization operation with the first device according to the first port.
  • the slave clock device obtains, by using the second port, information required to determine a time deviation of the slave clock device and the second device according to the PTP, where the second device is an upstream node of the slave clock device.
  • the second device is located on the second link.
  • the slave clock device determines a deviation according to the information, where the deviation is equal to M multiplied by the time offset, and M is not equal to 0.
  • the slave clock device determines that a time synchronization performance of the first link is faulty or a time synchronization performance of the second link is faulty.
  • the slave clock device sends a message to the third device, where the message is used to identify that the time synchronization performance of the first link is faulty or that the time synchronization performance of the second link is faulty.
  • the first device is an upstream node of the slave clock device, the first device is located at a first link, and a link of the master clock device to the slave clock device includes the first link and the second link
  • the slave clock device includes the first port and the second port, the first port is located at the first link, the second port is located at the second link, and the state of the first port is For the slave, the state of the second port is passive.
  • the state of the second port of the slave clock device can be set to slave by a command line.
  • the first device, the second device, the master clock device, and the slave clock device may each be a router or a PTN (Packet Transport Network) wavelength division device.
  • PTN Packet Transport Network
  • the first device may be a previous hop node of the slave clock device.
  • the first device may also be coupled to the slave clock device by other devices located on the first link.
  • the other device may be a transparent clock.
  • the first device and the master clock device may be the same device.
  • the second device and the master clock device may be the same device.
  • the first device, the second device, and the master clock device may be the same device.
  • the second device may be a previous hop node of the slave clock device.
  • the second device can also be coupled to the slave clock device by other devices located on the second link.
  • the other device may be a transparent clock.
  • the first link where the first port is located may be a time synchronization main link.
  • the second link where the second port is located may be a time synchronization standby link.
  • the state of the port of the clock device can be master, slave or passive.
  • the slave clock device can perform the message through the second port and the port of the master node of the second device of the upstream node of the slave clock device. Interact to achieve time synchronization.
  • the slave clock device obtains information required to determine a time deviation of the slave clock device and the second device through the second port according to the PTP.
  • the information may be obtained by the slave clock device interacting with the second device via the second port to perform a time synchronization operation of the slave clock device with the second device.
  • the slave clock device receives the Sync synchronization message sent by the second device by using the second port, where the slave clock device receives the Sync message at time t2, and the Sync message includes a timestamp. Ttl, the time that the second device sends the Sync message is t1;
  • the slave clock device sends a Delay-Req delay request message corresponding to the Sync message to the second device by using the second port, and the time for the slave clock device to send the Delay Req message is t3 ;
  • the slave clock device determines a deviation according to the information, the deviation being equal to M multiplied by a time deviation of the slave clock device and the second device, and M is not equal to zero.
  • the slave port of the slave device is in the second port of the slave device.
  • the message transmission path delay of the master port of the second device is Delaysm, and the time deviation between the slave clock device and the second device is Offset.
  • T2- tl Delayms+Offset
  • T4-t3 Delaysm-Offset
  • the second port of the slave slave slave state can obtain the time offset of the slave clock device and the second device according to t1, t2, t3, t4.
  • the deviation can be (M* Offset) and M is not equal to 0.
  • the slave clock device determines that the time synchronization performance of the first link is faulty or the first The time synchronization performance of the two links has failed.
  • the time synchronization performance of the first link that is, the time synchronization main link may be faulty, or the second link, that is, the time synchronization standby link.
  • the time synchronization performance fails, and may also be a fiber asymmetry between the slave clock device and the second device.
  • the slave clock device when the slave clock device determines that there is a deviation in the time synchronization performance in the link, the slave clock device sends a message to the third device, where the message is used to identify that the time synchronization performance of the first link occurs.
  • the fault or the time synchronization performance of the second link fails, the message containing the deviation.
  • the slave clock device displays the deviation through a display device, and the slave clock device includes the display device.
  • the slave clock device can report an alarm message to the third device, which helps reduce the cost of acquiring the performance of the accurate clock protocol synchronization network.
  • the slave clock device performs a time synchronization operation with the first device according to the PTP through the first port, and sets a state of the second port of the slave clock device to a slave, and the slave clock device according to the slave device
  • the PTP obtains information required to determine a time deviation of the slave clock device from the second device through the second port, the slave clock device determining a deviation according to the information, if the absolute value of the deviation is greater than a threshold, Determining, from the clock device, that the time synchronization performance of the first link is faulty or that the time synchronization performance of the second link is faulty, the slave clock device transmitting a message to the third device, the message including the deviation, Helps reduce the cost of getting the performance of a precise clock protocol synchronization network.
  • the schematic diagram of the slave clock device is shown in FIG. 3, and the slave clock device 104 includes:
  • the executing unit 1041 is configured to perform time synchronization with the first device by using the first port according to the PTP, where the first device is an upstream node of the slave clock device, and the first device is located at a first link, where The link of the clock device to the slave clock device includes the first link and the second link, the slave clock device includes the first port and the second port, and the first port is located at the first The second port is located on the second link, the state of the first port is slave, and the state of the second port is passive.
  • the execution unit 1041 may be a process in the slave clock device.
  • the setting unit 1042 is configured to set a state of the second port as a slave.
  • the setting unit 1042 may be a process in the slave clock device.
  • the state of the second port can be set to slave by a command line.
  • a first determining unit 1043 configured to obtain, by using the second port, information required to determine a time deviation of the slave clock device from the second device according to the PTP, where the second device is an upstream node of the slave clock device, The second device is located at the second link.
  • the first determining unit 1043 may be a processor in the slave clock device.
  • the second determining unit 1044 is configured to determine a deviation according to the information obtained by the first determining unit, where the deviation is equal to M multiplied by the time deviation, and M is not equal to 0.
  • the second determining unit 1044 can be a processor in the slave clock device.
  • the slave clock device may further include:
  • a third determining unit 1045 configured to determine that a time synchronization performance of the first link is faulty or a time of the second link, if an absolute value of the deviation determined by the second determining unit is greater than a threshold Synchronization performance has failed.
  • the third determining unit 1045 may be a processor in the slave clock device.
  • the first device and the master clock device may be the same device.
  • the second device and the master clock device may be the same device.
  • the first device, the second device, and the master clock device can be the same device.
  • the slave clock device may further include:
  • the sending unit 1046 is configured to send a message to the third device, where the message is used to identify that the time synchronization performance of the first link determined by the third determining unit is faulty or the time synchronization performance of the second link is malfunction.
  • the sending unit 1046 may be a sending crying port in the slave clock device.
  • the first determining unit 1043 is configured to:
  • the plurality of messages corresponding to the time synchronization operation of the slave clock device and the second device are exchanged with the second device through the second port, thereby obtaining the information.
  • the first determining unit 1043 includes:
  • a first receiving subunit configured to receive, by using the second port, a Sync synchronization message sent by the second device, where the time of receiving the Sync message by the slave clock device is t2, and the Sync message includes time Poke t1, when the second device sends the Sync message Between tl;
  • a sending subunit configured to send and report to the second device by using the second port
  • the Delay-Req delay request message corresponding to the Sync message, the time for the slave clock device to send the Delay_Req message is t3;
  • a second receiving subunit configured to receive, by using the second port, a Delay_Resp delay response message corresponding to the Delay_Req4 message sent by the second device, where the Delay_Resp message includes time Pt t4, the time at which the second device receives the Delay_Req message is t4, and t1, t2, t3, and t4 are the information.
  • the slave clock device may further include:
  • the sending unit 1046 is configured to send a message to the third device, where the message includes the deviation determined by the second determining unit 1044.
  • the slave clock device may further include:
  • the display unit 1047 is configured to display the deviation determined by the second determining unit 1044.
  • the slave clock device performs a time synchronization operation with the first device according to the PTP through the first port, and sets a state of the second port of the slave clock device to a slave, and the slave clock device according to the slave device
  • the PTP obtains information required to determine a time deviation of the slave clock device from the second device through the second port, the slave clock device determining a deviation according to the information, if the absolute value of the deviation is greater than a threshold, Determining, from the clock device, that the time synchronization performance of the first link is faulty or that the time synchronization performance of the second link is faulty, the slave clock device transmitting a message to the third device, the message including the deviation, Helps reduce the cost of getting the performance of a precise clock protocol synchronization network.
  • Embodiments of the present invention provide a slave clock device.
  • Fig. 4 is a schematic structural view of the slave clock device.
  • the slave clock device can be the slave clock device 104 shown in FIG.
  • the slave clock device can be a router.
  • the slave clock device includes:
  • a processor 1043c a communication interface 1048, a memory 1049, and a communication bus 1041a.
  • the processor 1043c, the communication interface 1048, and the memory 1049 are coupled by the communication bus 1041a.
  • the communication interface 1048 can be the first port 105 or the second port 106.
  • the processor 1043c is configured to execute the program 1042b, and specifically may perform the steps in the method shown in FIG. 1 or FIG. 2 above.
  • the program 1042b may include a code.
  • the code includes a computer instruction.
  • the processor 1043c may be a central processing unit (CPU) or an application specific integrated circuit (ASIC).
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the memory 1049 is used to store the program 1042b.
  • the memory 1049 may include a high-speed RAM (Memory Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
  • the program 1042b may specifically include:
  • the executing unit 1041 is configured to perform time synchronization with the first device by using the first port according to the PTP, where the first device is an upstream node of the slave clock device, and the first device is located at a first link, where The link of the clock device to the slave clock device includes the first link and the second link, the slave clock device includes the first port and the second port, and the first port is located at the first The second port is located on the second link, the state of the first port is slave, and the state of the second port is passive.
  • the setting unit 1042 is configured to set a state of the second port as a slave.
  • a first determining unit 1043 configured to obtain, by using the second port, information required to determine a time deviation of the slave clock device from the second device according to the PTP, where the second device is an upstream node of the slave clock device, The second device is located at the second link.
  • a second determining unit 1044 configured to determine, according to the information obtained by the first determining unit 1043, the deviation is equal to M multiplied by a time deviation of the slave clock device and the second device, where M is not equal to 0 .
  • the state of the second port can be set to a slave through a command line.
  • the program 1042b may further include:
  • a third determining unit 1045 configured to determine that a time synchronization performance of the first link occurs if an absolute value of the deviation determined by the second determining unit 1044 is greater than a threshold The barrier or the time synchronization performance of the second link fails.
  • the first device and the master clock device may be the same device.
  • the second device and the master clock device may be the same device.
  • the first device, the second device, and the master clock device can be the same device.
  • the program 1042b may further include:
  • the sending unit 1046 is configured to send a message to the third device, where the message is used to identify that the time synchronization performance of the first link determined by the third determining unit 1045 is faulty or the time synchronization of the second link is Performance has failed.
  • the first determining unit 1043 is configured to: perform, by using the second port, the time synchronization operation between the slave clock device and the second device by using the second port Corresponding multiple messages, thereby obtaining the information.
  • the first determining unit 1043 includes:
  • a first receiving subunit configured to receive, by using the second port, a Sync synchronization message sent by the second device, where the time of receiving the Sync message by the slave clock device is t2, and the Sync message includes time Pttl, the time at which the second device sends the Sync message is t1;
  • a sending subunit configured to send, by using the second port, a Delay_Req delay request message corresponding to the Sync message to the second device, where the slave clock device sends the Delay_Req message For t3;
  • a second receiving subunit configured to receive, by using the second port, a Delay_Resp delay response message corresponding to the Delay_Req4 message sent by the second device, where the Delay_Resp message includes time Pt t4, the time at which the second device receives the Delay_Req message is t4, and t1, t2, t3, and t4 are the information.
  • the program 1042b further includes:
  • the sending unit 1046 is configured to send a message to the third device, where the message includes the deviation determined by the second determining unit 1044.
  • the program 1042b further includes:
  • a display unit 1047 configured to display the offset determined by the second determining unit 1044 Poor.
  • each module in the program 1042b For the specific implementation of each module in the program 1042b, reference may be made to the corresponding modules in the embodiment shown in FIG. 3, and details are not described herein.
  • the slave clock device performs a time synchronization operation with the first device according to the PTP through the first port, and sets a state of the second port of the slave clock device to a slave, and the slave clock device according to the slave device
  • the PTP obtains information required to determine a time deviation of the slave clock device from the second device through the second port, the slave clock device determining a deviation according to the information, if the absolute value of the deviation is greater than a threshold, Determining, from the clock device, that the time synchronization performance of the first link is faulty or that the time synchronization performance of the second link is faulty, the slave clock device transmitting a message to the third device, the message including the deviation, Helps reduce the cost of getting the performance of a precise clock protocol synchronization network.
  • the disclosed methods and apparatus may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • each functional unit may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above units may be implemented in the form of hardware or in the form of hardware plus software functional units.
  • All or part of the steps of implementing the above method embodiments may be performed by hardware related to the program instructions.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes the steps of the foregoing method embodiments;
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.

Landscapes

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

Abstract

本发明实施例提供一种用于精确时钟协议PTP同步网络的方法和装置,涉及通信领域,有助于降低获取精确时钟协议同步网络的性能的成本。其方法为:从时钟装置根据PTP通过第一端口执行与第一装置进行时间同步的操作,将从时钟装置的第二端口的状态置为slave,从时钟装置根据PTP通过第二端口获得确定从时钟装置与第二装置的时间偏差所需的信息,从时钟装置根据信息确定偏差,偏差等于M乘以从时钟装置与第二装置的时间偏差,M不等于0,若偏差的绝对值大于阈值,则从时钟装置确定第一链路的时间同步性能发生故障或者第二链路的时间同步性能发生故障,从时钟装置向第三装置发送消息。本发明实施例用于精确时钟协议PTP同步网络。

Description

用于精确时钟协议同步网络的方法和装置 技术领域 本发明涉及通信领域,尤其涉及一种用于精确时钟协议( Precision Time Protocol , PTP ) 同步网络的方法和装置。
背景技术 为了实现高精度时间同步需求, IEEE ( Institute of Electrical and
Electronic Engineers , 标准电气与电子工程师协会)提出了 PTP。 PTP 可以实现亚 秒级时间同步。 现网中, ΡΤΡ同步网络的时间同步性能 发生故障的情况时有发生, 影响到 ΡΤΡ同步网络在现网中的部署。
现有技术中, 可以通过仪表获得 ΡΤΡ同步网络的时间同步性能。 所述仪表可以是 Time ACC-007 ( Advanced Clock Calibration, 时间精 度综合测试仪)、 示波器、 ANT-20 (网络综合分析仪)或者 MTS-8000
(光谱分析仪)。 使用仪表获得 PTP网络的时间同步性能, 成本较高。 发明内容 本发明的实施例提供一种用于 PTP 同步网络的方法和装置, 有 助于降低获取 PTP同步网络的时间同步性能的成本。
本发明的实施例釆用如下技术方案:
第一方面, 提供一种用于 PTP同步网络的方法, 包括:
从时钟装置根据 PTP通过第一端口执行与第一装置进行时间同 步的操作, 所述第一装置是所述从时钟装置的上游节点, 所述第一装 置位于第一链路,主时钟装置到所述从时钟装置的链路包括所述第一 链路和第二链路, 所述从时钟装置包括所述第一端口和第二端口, 所 述第一端口位于所述第一链路, 所述第二端口位于所述第二链路, 所 述第一端口的状态为 slave , 所述第二端口的状态为 passive;
将所述第二端口的状态置为 slave;
所述从时钟装置根据 PTP通过所述第二端口获得确定所述从时 钟装置与第二装置的时间偏差 ( Offset in time ) 所需的信息, 所述第 二装置是所述从时钟装置的上游节点,所述第二装置位于所述第二链 路;
所述从时钟装置根据所述信息确定偏差, 所述偏差等于 M乘以 所述时间偏差, M不等于 0。
结合第一方面, 在第一方面的第一种可能实现的方式中,从时钟 装置根据所述信息确定偏差之后, 所述方法还包括:
若所述偏差的绝对值大于阔值,则所述从时钟装置确定所述第一 链路的时间同步性能发生故障或者所述第二链路的时间同步性能发 生故障。
结合第一方面或者第一方面的第一种可能的实现方式,在第一方 面的第二种可能实现的方式中,所述从时钟装置确定所述第一链路的 时间同步性能发生故障或者所述第二链路的时间同步性能发生故障 以后, 所述方法还包括:
所述从时钟装置向第三装置发送消息,所述消息用于标识所述第 一链路的时间同步性能发生故障或者所述第二链路的时间同步性能 发生故障。
结合第一方面或第一方面的第一种可能的实现方式或第二种可 能的实现方式, 在第一方面的第三种可能的实现方式中, 所述从时钟 装置根据 PTP通过所述第二端口获得确定所述从时钟装置与第二装 置的时间偏差所需的信息包括:
所述从时钟装置通过所述第二端口与所述第二装置交互所述从 时钟装置与所述第二装置进行时间同步的操作所对应的多个报文,从 而获得所述信息。
结合第一方面的第三种可能的实现方式,在第一方面的第四种可 能的实现方式中,所述从时钟装置通过所述第二端口与所述第二装置 交互所述从时钟装置与所述第二装置进行时间同步的操作所对应的 多个报文包括:
所述从时钟装置通过所述第二端口接收所述第二装置发送的同 步 (Sync ) 报文, 所述从时钟装置接收所述 Sync报文的时间为 t2 , 所述 Sync报文包含时间戳 tl ,所述第二装置发送所述 Sync报文的时 间为 tl ;
所述从时钟装置通过所述第二端口向所述第二装置发送与所述 Sync报文对应的延迟请求 (Delay— Req )报文, 所述从时钟装置发送 所述 Delay— Req报文的时间为 t3;
所述从时钟装置通过所述第二端口接收所述第二装置发送的与 所述 Delay_Req 报文对应的延迟响应 ( Delay_Resp ) 报文, 所述 Delay— Resp 报文包含时间戳 t4 , 所述第二装置接收所述 Delay— Req 才艮文的时间为 t4 , tl、 t2、 t3 以及 t4为所述信息。
结合第一方面, 在第一方面的第五种可能的实现方式中, 所述从 时钟装置根据所述信息确定偏差以后, 所述方法还包括:
所述从时钟装置向第三装置发送消息, 所述消息包含所述偏差。 结合第一方面, 在第一方面的第六种可能的实现方式中, 所述从 时钟装置根据所述信息确定偏差以后, 所述方法还包括:
所述从时钟装置通过显示装置显示所述偏差,所述从时钟装置包 括所述显示装置。
第二方面, 提供一种从时钟装置, 包括:
执行单元, 用于根据 PTP通过第一端口执行与第一装置进行时 间同步的操作, 所述第一装置是所述从时钟装置的上游节点, 所述第 一装置位于第一链路,主时钟装置到所述从时钟装置的链路包括所述 第一链路和第二链路, 所述从时钟装置包括所述第一端口和第二端 口, 所述第一端口位于所述第一链路, 所述第二端口位于所述第二链 路, 所述第一端口的状态为 slave , 所述第二端口的状态为 passive; 设置单元, 用于将所述第二端口的状态置为 slave;
第一确定单元, 用于根据 PTP通过所述第二端口获得确定所述 从时钟装置与第二装置的时间偏差所需的信息,所述第二装置是所述 从时钟装置的上游节点, 所述第二装置位于所述第二链路;
第二确定单元,用于根据所述第一确定单元获得的所述信息确定 偏差, 所述偏差等于 M乘以所述时间偏差, M不等于 0。
结合第二方面, 在第二方面的第一种可能的实现方式中, 所述从 时钟装置还包括:
第三确定单元,用于若所述第二确定单元确定的所述偏差的绝对 值大于阔值,则确定所述第一链路的时间同步性能发生故障或者所述 第二链路的时间同步性能发生故障。
结合第二方面或第二方面的第一种可能的实现方式,在第二方面 的第二种可能的实现方式中, 所述从时钟装置还包括:
发送单元, 用于向第三装置发送消息, 所述消息用于标识所述第 三确定单元确定的所述第一链路的时间同步性能发生故障或者所述 第二链路的时间同步性能发生故障。
结合第二方面、第二方面的第一种可能的实现方式或第二种可能 的实现方式, 在第二方面的第三种可能的实现方式中, 所述第一确定 单元用于:
通过所述第二端口与所述第二装置交互所述从时钟装置与所述 第二装置进行时间同步的操作所对应的多个报文, 从而获得所述信 息。
结合第二方面或第二方面的第三种可能的实现方式,在第二方面 的第四种可能的实现方式中, 所述第一确定单元包括:
第一接收子单元,用于通过所述第二端口接收所述第二装置发送 的 Sync报文, 所述从时钟装置接收所述 Sync报文的时间为 t2 , 所 述 Sync报文包含时间戳 tl ,所述第二装置发送所述 Sync报文的时间 为 tl ;
发送子单元,用于通过所述第二端口向所述第二装置发送与所述 Sync 报文对应的 Delay— Req 报文, 所述从时钟装置发送所述 Delay Req报文的时间为 t3;
第二接收子单元,用于通过所述第二端口接收所述第二装置发送 的与所述 Delay— Req 4艮文对应的 Delay— Resp 延迟响应报文, 所述 Delay— Resp 报文包含时间戳 t4 , 所述第二装置接收所述 Delay— Req 才艮文的时间为 t4 , tl、 t2、 t3以及 t4为所述信息。
结合第二方面, 在第二方面的第五种可能的实现方式中, 所述从 时钟装置还包括:
发送单元, 用于向第三装置发送消息, 所述消息包含所述第二确 定单元确定的所述偏差。
结合第二方面, 在第二方面的第六种可能的实现方式中, 所述从 时钟装置还包括:
显示单元, 用于显示所述第二确定单元确定的所述偏差, 所述从 时钟装置包括所述显示装置。
上述技术方案中,所述从时钟装置根据 PTP通过所述第二端口获得 确定所述从时钟装置与所述第二装置的时间偏差所需的所述信息。 所 述从时钟装置根据所述信息确定所述偏差。 所述偏差等于 M乘以所述 时间偏差, M不等于 0。 若所述偏差的绝对值大于所述阔值, 则确定所 述第一链路的时间同步性能发生故障或者所述第二链路的时间同步性 能发生故障。 上述技术方案有助于降低获取精确时钟协议同步网络的 时间同步性能的成本。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的一些实施例 ,对于本领域普通技术人员 来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附 图。
图 1为本发明实施例提供的一种网络结构的结构示意图; 图 2为本发明实施例提供的一种用于 PTP同步网络的方法流程 示意图;
图 3为本发明实施例提供的一种从时钟装置的结构示意图; 图 4为本发明实施例提供的一种从时钟装置的结构示意图。
具体实施方式 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没 有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的 范围。
IEEE ( Institute of Electrical and Electronic Engineers , 电气与电 子工程师协会)提出的 IEEE1588V2精确时间协议, 可以用于精确同 步分布式网络通讯中各个节点的实时时钟。 该 1588同步网部署可以 为环形网, 环形网中的装置可以为路由器或者 PTN ( Packet Transport Network, 分组传送网 ) 波分设备等。
图 1为本发明实施例提供的一种网络结构的结构示意图。参见图 1 , 所述网络结构包括第一装置 101、 第二装置 102、主时钟装置 103、 从时钟装置 104以及网管 107。
所述从时钟装置 104根据 PTP通过第一端 105执行与所述第一 装置 101进行时间同步的操作,所述第一装置 101是所述从时钟装置 104的上游节点, 所述第一装置 101位于第一链路 108 , 所述主时钟 装置 103到所述从时钟装置 104的链路包括所述第一链路 108和第二 链路 109 , 所述从时钟装置 104 包括所述第一端口 105 和第二端口 106 , 所述第一端口 105位于所述第一链路 108 , 所述第二端口 106 位于所述第二链路 109 , 所述第一端口 105 的状态为 slave , 所述第 二端口的状态为 passive。
所述从时钟装置 104将所述从时钟装置 104的第二端口 106的状 态置为 slave;
所述从时钟装置 104根据 PTP通过所述第二端口 106获得确定 所述从时钟装置 104与所述第二装置 102的时间偏差所需的信息,所 述第二装置 102是所述从时钟装置 104 的上游节点, 所述第二装置 102位于所述第二链路 109;
所述从时钟装置 104根据所述信息确定偏差, 所述偏差等于 M 乘以所述时间偏差, M不等于 0。
举例来说, 所述第一装置 101、 所述第二装置 102、 所述主时钟 装置 103和所述从时钟装置 104都可以为路由器。
举例来说,所述网管 107可以用于管理所述第一链路 108和所述 第二链路 109中的路由器。
举例来说,所述第一装置 101可以是所述从时钟装置 104的上一 跳节点。所述第一装置 101也可以通过位于所述第一链路 108的其他 装置与所述从时钟装置 104 连接。 所述其他装置可以是透明时钟 ( Transparent Clock ) 。 所述第二装置 102在可以是所述从时钟装置 104的上一跳节点。 所述第二装置 102也可以通过位于所述第二链路 109的其他装置与所 述从时钟装置 104连接。 所述其他装置可以是透明时钟。
举例来说,所述从时钟装置 104可以通过命令行将所述从时钟装 置 104的第二端口 106的状态置为 slave。
举例来说, 将所述从时钟装置 104 的第二端口 106 的状态置为 slave后, 所述从时钟装置 104可以通过所述第二端口 106与所述第 二装置 102交互所述从时钟装置 104与所述第二装置 104进行时间同 步的操作所对应的多个报文, 从而获得所述信息。
所述从时钟装置 104根据所述信息确定所述偏差之后,若所述偏 差的绝对值大于阔值,则所述从时钟装置 104可以确定所述第一链路 108的时间同步性能发生故障或者所述第二链路 109的时间同步性能 发生故障。
上述技术方案中, 所述从时钟装置根据 PTP通过所述第二端口 获得确定所述从时钟装置与所述第二装置的时间偏差所需的所述信 息。 所述从时钟装置根据所述信息确定所述偏差。 所述偏差等于 M 乘以所述时间偏差,Μ不等于 0。若所述偏差的绝对值大于所述阔值, 则确定所述第一链路的时间同步性能发生故障或者所述第二链路的 时间同步性能发生故障。上述技术方案有助于降低获取精确时钟协议 同步网络的时间同步性能的成本。
本领域的技术人员可以理解,精确时钟协议同步网络中的端口可 以是 master、 slave或者 passive。
本领域的技术人员可以理解,精确时钟协议同步网络中的装置的 端口为 master或者 slave时, 可以通过与所述精确时钟协议同步网络 中的其他时钟装置进行 4艮文交互进行时间同步。
举例来说, 在图 1所示的网络结构中, 可以根据精确时钟协议第 二版的 BMC算法 ( Best Master Clock Algorithm, 最佳主时钟算法) 确定所述从时钟装置 104的第一端口 105的状态为 slave , 所述第二 端口 106的状态为 passive。 所述从时钟装置 104通过所述第一链路 108中的所述第一装置 101 实现与所述主时钟装置 103的时间同步。 所述第二链路 109是所述第一链路 108的备份链路。如果所述第一链 路 108发生故障, 则所述第一端口 105的状态可能成为 passive。 所 述第二端口 106的状态可能成为 slave。 所述从时钟装置 104可以通 过所述第二链路 109 中的所述第二装置 102 实现与所述主时钟装置 103的时间同步。
可选的, 将所述从时钟装置 104 的第二端口 106 的状态置为 slave„ 所述第二端口 106获得确定所述从时钟装置 104与第二装置 102的时间偏差所需的信息。
举例来说, 可以通过命令行将所述从时钟装置 104 的第二端口 106的状态置为 slave。
举例来说,所述信息可以是承载在所述从时钟装置 104与所述第 二装置 102进行交互的报文的时间戳。 所述时间戳可以是路径延迟, 驻留时间或者不对称修正。
举例来说,所述从时钟装置 104根据 PTP通过所述第二端口 106 获得确定所述从时钟装置 104与第二装置 102的时间偏差所需的信息 包括:
所述从时钟装置 104通过所述第二端口 106与所述第二装置 102 交互所述从时钟装置 104与所述第二装置 102进行时间同步的操作所 对应的多个报文, 从而获得所述信息。
所述信息可以为 tl、 t2、 t3以及 t4。
其中, tl和 t2可以为: 所述从时钟装置 104通过第二端口 106 接收所述第二装置 102发送的 Sync 同步报文, 所述从时钟装置 104 接收所述 Sync报文的时间为 t2 , 所述 Sync报文包含时间戳 tl , 所 述第二装置 102发送所述 Sync报文的时间为 tl ;
t3可以为: 所述从时钟装置 104通过第二端口 106向所述第二 装置 102发送与所述 Sync ^艮文对应的 Delay— Req延迟请求^艮文, 所 述从时钟装置 104发送所述 Delay— Req报文的时间为 t3 ;
t4可以为: 所述从时钟装置 104通过第二端口 106接收所述第 二装置 102发送的与所述 Delay— Req ^艮文对应的 Delay— Resp延迟响 应报文, 所述 Delay— Resp报文包含时间戳 t4 , 所述第二装置 102接 收所述 Delay— Req报文的时间为 t4。 可选的, 所述从时钟装置 104根据所述信息确定偏差, 所述偏差 等于 M乘以所述从时钟装置 104与所述第二装置 102的时间偏差, M不等于 0。
举例来说, 所述时间偏差 (Offset ) 可以通过下述方法获得: t2- tl=Delayms+Offset;
t4- t3=Delaysm-Offset;
( t2- tl ) - ( t4- 13 ) = ( Delayms+Offset ) - ( Delaysm-Offset ) ; 因此, Offset=[ ( t2- tl ) - ( t4- 13 ) -( Delayms- Delaysm)]/2; 显然, 若 Delayms= Delaysm, 所述从时钟装置 104的第二端口 106与所述第二装置 102的 master端口之间的发送路径和接收路径的 延时是对称的。
Offset=[ ( t2- tl ) - ( t4- 13 ) ]12
其中, Delayms为所述第二装置 102的 master端口与所述从时钟 装置 104的第二端口 106的发送路径时延, Delaysm为所述从时钟装 置 104到第二装置 102的 master端口的发送路径时延。
举例来说, 若所述偏差的绝对值大于阔值, 则所述从时钟装置 104确定所述第一链路 108的时间同步性能发生故障或者所述第二链 路 109的时间同步性能发生故障。
举例来说, 这里的预设阔值可以为 55ns , 也可以为其它值, 这 里不做限定。
可选的, 在确定时间同步性能发生故障时, 所述从时钟装置 104 向第三装置发送消息, 所述消息包含所述偏差。
举例来说, 所述第三装置可以为网络管理器。
上述技术方案中, 所述从时钟装置根据 PTP通过所述第二端口 获得确定所述从时钟装置与所述第二装置的时间偏差所需的所述信 息。 所述从时钟装置根据所述信息确定所述偏差。 所述偏差等于 M 乘以所述时间偏差,Μ不等于 0。若所述偏差的绝对值大于所述阔值, 则确定所述第一链路的时间同步性能发生故障或者所述第二链路的 时间同步性能发生故障。上述技术方案有助于降低获取精确时钟协议 同步网络的时间同步性能的成本。 可选的, 图 2为本发明实施例提供 的一种用于 PTP同步网络的方法的流程示意图。 图 1 所示的网络结 构可以用于执行所述方法。 具体来说, 图 1中的从时钟装置 104可以 用于执行所述方法。 参见图 2 , 所述方法包括:
201、 从时钟装置根据 ΡΤΡ通过第一端口执行与第一装置进行时 间同步的操作。
202、 将所述从时钟装置的第二端口的状态置为 slave。
203、 所述从时钟装置根据 PTP通过所述第二端口获得确定所述 从时钟装置与第二装置的时间偏差所需的信息,所述第二装置是所述 从时钟装置的上游节点, 所述第二装置位于所述第二链路。
204、 所述从时钟装置根据所述信息确定偏差, 所述偏差等于 M 乘以所述时间偏差, M不等于 0。
205、 若所述偏差的绝对值大于阔值, 则所述从时钟装置确定所 述第一链路的时间同步性能发生故障或者所述第二链路的时间同步 性能发生故障。
206、 所述从时钟装置向第三装置发送消息, 所述消息用于标识 所述第一链路的时间同步性能发生故障或者所述第二链路的时间同 步性能发生故障。
所述第一装置是所述从时钟装置的上游节点,所述第一装置位于 第一链路,主时钟装置到所述从时钟装置的链路包括所述第一链路和 第二链路, 所述从时钟装置包括所述第一端口和第二端口, 所述第一 端口位于所述第一链路, 所述第二端口位于所述第二链路, 所述第一 端口的状态为 slave , 所述第二端口的状态为 passive。
举例来说,可以通过命令行将所述从时钟装置的第二端口的状态 置为 slave。
举例来说, 所述第一装置、 所述第二装置、 所述主时钟装置和所 述从时钟装置都可以为路由器或 PTN ( Packet Transport Network , 分 组传送网) 波分设备。
举例来说, 所述第一装置可以是所述从时钟装置的上一跳节点。 所述第一装置也可以通过位于所述第一链路的其他装置与所述从时 钟装置连接。 所述其他装置可以是透明时钟。 举例来说, 所述第一装置与所述主时钟装置可以是同一个装置。 举例来说, 所述第二装置与所述主时钟装置可以是同一个装置。 举例来说, 所述第一装置、 所述第二装置以及所述主时钟装置可 以是同一个装置。
举例来说, 所述第二装置可以是所述从时钟装置的上一跳节点。 所述第二装置也可以通过位于所述第二链路的其他装置与所述从时 钟装置连接。 所述其他装置可以是透明时钟。
举例来说, 若所述从时钟装置的第一端口的状态为 slave , 所述 第二端口的状态为 passive , 则所述第一端口所在的第一链路可以为 时间同步主链路,所述第二端口所在的第二链路可以为时间同步备链 路。
举例来说, 在 PTP 中, 时钟装置的端口的状态可以是 master, slave或者 passive。
将所述从时钟装置的第二端口置为 slave状态后, 所述从时钟装 置就可以通过所述第二端口与所述从时钟装置的上游节点第二装置 的 master状态的端口进行 4艮文交互以达到时间同步。
具体的, 所述从时钟装置根据 PTP通过第二端口获得确定所述 从时钟装置与所述第二装置的时间偏差所需的信息。
所述信息可以是所述从时钟装置通过所述第二端口与所述第二 装置交互所述从时钟装置与所述第二装置进行时间同步的操作所对 应的多个报文获得的。
举例来说,所述从时钟装置通过第二端口接收所述第二装置发送 的 Sync同步报文, 所述从时钟装置接收所述 Sync报文的时间为 t2 , 所述 Sync报文包含时间戳 tl ,所述第二装置发送所述 Sync报文的时 间为 tl ;
所述从时钟装置通过第二端口向所述第二装置发送与所述 Sync 才艮文对应的 Delay— Req 延迟请求^艮文, 所述从时钟装置发送所述 Delay Req报文的时间为 t3;
所述从时钟装置通过第二端口接收所述第二装置发送的与所述 Delay Req 4艮文对应的 Delay— Resp延迟响应报文, 所述 Delay— Resp 报文包含时间戳 t4 ,所述第二装置接收所述 Delay— Req报文的时间为 t4 , tl、 t2、 t3以及 t4为所述信息。
进一步的, 所述从时钟装置根据所述信息确定偏差, 所述偏差等 于 M乘以所述从时钟装置与所述第二装置的时间偏差, M不等于 0。
举例来说, 若所述第二装置的 master端口到所述从时钟装置的 slave 状态的第二端口的报文发送路径延时是 Delayms , 所述从时钟 装置的 slave状态的第二端口到所述第二装置的 master端口的报文发 送路径延时是 Delaysm , 所述从时钟装置与所述第二装置的时间偏差 为 Offset, 则
t2- tl=Delayms+Offset;
t4- t3=Delaysm-Offset;
( t2- tl ) - ( t4- 13 ) = ( Delayms+Offset ) - ( Delaysm-Offset ) ; 因此, Offset=[ ( t2- tl ) - ( t4- 13 ) -( Delayms- Delaysm)]/2; 显然, 若 Delayms= Delaysm , 则所述第二装置的 master端口和 所述从时钟装置的 s 1 a v e状态的第二端口之间的两个方向的路径的延 时是对称的, 那么: Offset=[ ( t2- tl ) - ( t4- 13 ) ]12
这样, 所述从时钟装置的 slave状态的第二端口就可以根据 tl、 t2、 t3、 t4获得所述从时钟装置与所述第二装置的时间偏差。
所述偏差就可以为 (M* Offset ) , M不等于 0。
进一步的, 将所述偏差的绝对值与阔值进行比较, 若所述偏差的 绝对值大于阔值,则所述从时钟装置确定所述第一链路的时间同步性 能发生故障或者所述第二链路的时间同步性能发生故障。
举例来说, 若所述偏差的绝对值大于阔值, 可以是所述第一链路 即时间同步主链路的时间同步性能发生故障,或者是所述第二链路即 时间同步备链路的时间同步性能发生故障,还可能是所述从时钟装置 与所述第二装置之间的光纤不对称等。
举例来说,当所述从时钟装置确定了链路中时间同步性能存在偏 差, 所述从时钟装置向第三装置发送消息, 所述消息用于标识所述第 一链路的时间同步性能发生故障或者所述第二链路的时间同步性能 发生故障, 所述消息包含所述偏差。 举例来说, 当所述从时钟装置根据所述信息确定偏差以后, 所述 从时钟装置通过显示装置显示所述偏差,所述从时钟装置包括所述显 示装置。 当所述偏差大于所述阔值时, 所述从时钟装置可以向所述第 三装置上报告警消息,这样有助于降低获取精确时钟协议同步网络的 性能的成本。
从上述技术方案可以看出, 从时钟装置根据 PTP通过第一端口 执行与第一装置进行时间同步的操作,将所述从时钟装置的第二端口 的状态置为 slave , 所述从时钟装置根据 PTP通过第二端口获得确定 所述从时钟装置与第二装置的时间偏差所需的信息,所述从时钟装置 根据所述信息确定偏差, 若所述偏差的绝对值大于阔值, 则所述从时 钟装置确定所述第一链路的时间同步性能发生故障或者所述第二链 路的时间同步性能发生故障, 所述从时钟装置向第三装置发送消息, 所述消息包含所述偏差,有助于降低获取精确时钟协议同步网络的性 能的成本。
可选的, 图 1所示的网络结构中, 如图 3所示为所述从时钟装置 结构示意图, 所述从时钟装置 104 , 包括:
执行单元 1041 , 用于根据 PTP通过第一端口执行与第一装置进 行时间同步的操作, 所述第一装置是所述从时钟装置的上游节点, 所 述第一装置位于第一链路,主时钟装置到所述从时钟装置的链路包括 所述第一链路和第二链路,所述从时钟装置包括所述第一端口和第二 端口, 所述第一端口位于所述第一链路, 所述第二端口位于所述第二 链路, 所述第一端口的状态为 slave , 所述第二端口的状态为 passive。
举例来说, 所述执行单元 1041可以是所述从时钟装置中的处理 哭口
设置单元 1042 , 用于将所述第二端口的状态置为 slave。
举例来说, 所述设置单元 1042可以是所述从时钟装置中的处理 哭口
举例来说, 可以通过命令行将所述第二端口的状态置为 slave。 第一确定单元 1043 , 用于根据 PTP通过所述第二端口获得确定 所述从时钟装置与第二装置的时间偏差所需的信息,所述第二装置是 所述从时钟装置的上游节点, 所述第二装置位于所述第二链路。 举例来说, 所述第一确定单元 1043可以是所述从时钟装置中的 处理器。
第二确定单元 1044 , 用于根据所述第一确定单元获得的所述信 息确定偏差, 所述偏差等于 M乘以所述时间偏差, M不等于 0。
举例来说, 所述第二确定单元 1044可以是所述从时钟装置中的 处理器。
可选的, 所述从时钟装置还可以包括:
第三确定单元 1045 , 用于若所述第二确定单元确定的所述偏差 的绝对值大于阔值,则确定所述第一链路的时间同步性能发生故障或 者所述第二链路的时间同步性能发生故障。
举例来说, 所述第三确定单元 1045可以是所述从时钟装置中的 处理器。
举例来说, 所述第一装置与所述主时钟装置可以是同一个装置。 举例来说, 所述第二装置与所述主时钟装置可以是同一个装置。 举例来说, 所述第一装置、 所述第二装置以及所述主时钟装置可 以是同一个装置。
可选的, 所述从时钟装置还可以包括:
发送单元 1046 , 用于向第三装置发送消息, 所述消息用于标识 所述第三确定单元确定的所述第一链路的时间同步性能发生故障或 者所述第二链路的时间同步性能发生故障。
举例来说, 所述发送单元 1046可以是所述从时钟装置中的发送 哭口
可选的, 所述第一确定单元 1043可以用于:
通过所述第二端口与所述第二装置交互所述从时钟装置与所述 第二装置进行时间同步的操作所对应的多个报文, 从而获得所述信 息。
可选的, 所述第一确定单元 1043包括:
第一接收子单元,用于通过所述第二端口接收所述第二装置发送 的 Sync同步报文, 所述从时钟装置接收所述 Sync报文的时间为 t2 , 所述 Sync报文包含时间戳 tl ,所述第二装置发送所述 Sync报文的时 间为 tl ;
发送子单元,用于通过所述第二端口向所述第二装置发送与所述
Sync报文对应的 Delay— Req延迟请求报文, 所述从时钟装置发送所 述 Delay— Req报文的时间为 t3;
第二接收子单元,用于通过所述第二端口接收所述第二装置发送 的与所述 Delay— Req 4艮文对应的 Delay— Resp 延迟响应报文, 所述 Delay— Resp 报文包含时间戳 t4 , 所述第二装置接收所述 Delay— Req 才艮文的时间为 t4 , tl、 t2、 t3 以及 t4为所述信息。
可选的, 所述从时钟装置还可以包括:
发送单元 1046 , 用于向第三装置发送消息, 所述消息包含所述 第二确定单元 1044确定的所述偏差。
可选的, 所述从时钟装置还可以包括:
显示单元 1047 , 用于显示所述第二确定单元 1044确定的所述偏 差。
从上述技术方案可以看出, 从时钟装置根据 PTP通过第一端口 执行与第一装置进行时间同步的操作,将所述从时钟装置的第二端口 的状态置为 slave , 所述从时钟装置根据 PTP通过第二端口获得确定 所述从时钟装置与第二装置的时间偏差所需的信息,所述从时钟装置 根据所述信息确定偏差, 若所述偏差的绝对值大于阔值, 则所述从时 钟装置确定所述第一链路的时间同步性能发生故障或者所述第二链 路的时间同步性能发生故障, 所述从时钟装置向第三装置发送消息, 所述消息包含所述偏差,有助于降低获取精确时钟协议同步网络的性 能的成本。
本发明实施例提供了一种从时钟装置。图 4为所述从时钟装置的 结构示意图。 所述从时钟装置可以是图 1所示的从时钟装置 104。 所 述从时钟装置可以为路由器。 所述从时钟装置包括:
处理器 ( Processor ) 1043c ,通信接口 ( Communications Interface ) 1048 , 存储器 ( Memory ) 1049 , 通信总线 1041a。
所述处理器 1043c , 所述通信接口 1048 , 所述存储器 1049通过 所述通信总线 1041a耦合。 举例来说, 所述通信接口 1048 , 可以为所述第一端口 105或者 第二端口 106。
所述处理器 1043c , 用于执行程序 1042b , 具体可以执行上述图 1或图 2所示的方法中的步骤。
具体的, 所述程序 1042b可以包括代码。 所述代码包括计算机指 令。
举例来说, 所述处理器 1043c可能是中央处理器 CPU ( Central Processing Unit ) , 或者是特定集成电路 ASIC ( Application Specific Integrated Circuit ) 。
所述存储器 1049用于存放程序 1042b , 存储器 1049可能包含高 速 RAM ( Random Access Memory ) 存储器, 也可能还包括非易失性 存储器( Non- volatile Memory ),例如至少一个磁盘存储器。程序 1042b 具体可以包括:
执行单元 1041 , 用于根据 PTP通过第一端口执行与第一装置进 行时间同步的操作, 所述第一装置是所述从时钟装置的上游节点, 所 述第一装置位于第一链路,主时钟装置到所述从时钟装置的链路包括 所述第一链路和第二链路,所述从时钟装置包括所述第一端口和第二 端口, 所述第一端口位于所述第一链路, 所述第二端口位于所述第二 链路, 所述第一端口的状态为 slave , 所述第二端口的状态为 passive。
设置单元 1042 , 用于将所述第二端口的状态置为 slave。
第一确定单元 1043 , 用于根据 PTP通过所述第二端口获得确定 所述从时钟装置与第二装置的时间偏差所需的信息,所述第二装置是 所述从时钟装置的上游节点, 所述第二装置位于所述第二链路。
第二确定单元 1044 , 用于根据所述第一确定单元 1043获得的所 述信息确定偏差, 所述偏差等于 M乘以所述从时钟装置与所述第二 装置的时间偏差, M不等于 0。
举例来说, 可以通过命令行将所述第二端口的状态置为 slave。 可选的, 所述程序 1042b还可以包括:
第三确定单元 1045 , 用于若所述第二确定单元 1044确定的所述 偏差的绝对值大于阔值,则确定所述第一链路的时间同步性能发生故 障或者所述第二链路的时间同步性能发生故障。
举例来说, 所述第一装置与所述主时钟装置可以是同一个装置。 举例来说, 所述第二装置与所述主时钟装置可以是同一个装置。 举例来说, 所述第一装置、 所述第二装置以及所述主时钟装置可 以是同一个装置。
可选的, 所述程序 1042b还可以包括:
发送单元 1046 , 用于向第三装置发送消息, 所述消息用于标识 所述第三确定单元 1045确定的所述第一链路的时间同步性能发生故 障或者所述第二链路的时间同步性能发生故障。
可选地, 所述从时钟装置中, 所述第一确定单元 1043用于: 通过所述第二端口与所述第二装置交互所述从时钟装置与所述 第二装置进行时间同步的操作所对应的多个报文, 从而获得所述信 息。
可选地, 所述第一确定单元 1043包括:
第一接收子单元,用于通过所述第二端口接收所述第二装置发送 的 Sync同步报文, 所述从时钟装置接收所述 Sync报文的时间为 t2 , 所述 Sync报文包含时间戳 tl ,所述第二装置发送所述 Sync报文的时 间为 tl ;
发送子单元,用于通过所述第二端口向所述第二装置发送与所述 Sync报文对应的 Delay— Req延迟请求报文, 所述从时钟装置发送所 述 Delay— Req报文的时间为 t3;
第二接收子单元,用于通过所述第二端口接收所述第二装置发送 的与所述 Delay— Req 4艮文对应的 Delay— Resp 延迟响应报文, 所述 Delay— Resp 报文包含时间戳 t4 , 所述第二装置接收所述 Delay— Req 才艮文的时间为 t4 , tl、 t2、 t3以及 t4为所述信息。
可选地, 所述程序 1042b还包括:
发送单元 1046 , 用于向第三装置发送消息, 所述消息包含所述 第二确定单元 1044确定的所述偏差。
可选地, 所述程序 1042b还包括:
显示单元 1047 , 用于显示所述第二确定单元 1044确定的所述偏 差。
所述程序 1042b中各模块的具体实现可以参见图 3所示实施例中 的相应模块, 在此不赘述。
从上述技术方案可以看出, 从时钟装置根据 PTP通过第一端口 执行与第一装置进行时间同步的操作,将所述从时钟装置的第二端口 的状态置为 slave , 所述从时钟装置根据 PTP通过第二端口获得确定 所述从时钟装置与第二装置的时间偏差所需的信息,所述从时钟装置 根据所述信息确定偏差, 若所述偏差的绝对值大于阔值, 则所述从时 钟装置确定所述第一链路的时间同步性能发生故障或者所述第二链 路的时间同步性能发生故障, 所述从时钟装置向第三装置发送消息, 所述消息包含所述偏差,有助于降低获取精确时钟协议同步网络的性 能的成本。
在本申请所提供的几个实施例中,应该理解到, 所揭露的方法和 装置, 可以通过其它的方式实现。 例如, 以上所描述的设备实施例仅 仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或 者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点, 所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过 一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或 其它的形式。
另外, 在本发明各个实施例中的设备和系统中, 各功能单元可以 集成在一个处理单元中, 也可以是各个单元单独物理包括, 也可以两 个或两个以上单元集成在一个单元中。且上述的各单元既可以釆用硬 件的形式实现, 也可以釆用硬件加软件功能单元的形式实现。
实现上述方法实施例的全部或部分步骤可以通过程序指令相关 的硬件来完成, 前述的程序可以存储于一计算机可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介 质包括: U盘、 移动硬盘、 只读存储器 (Read Only Memory, 简称 ROM ) 、 随机存取存储器 ( Random Access Memory, 简称 RAM ) 、 磁碟或者光盘等各种可以存储程序代码的介质。 以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并 不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范 围内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应以所述权利要求的保护范围为准。

Claims

权利要求
1、 一种用于精确时钟协议同步网络的方法, 其特征在于, 包括: 从时钟装置根据 PTP通过第一端口执行与第一装置进行时间同 步的操作, 所述第一装置是所述从时钟装置的上游节点, 所述第一装 置位于第一链路,主时钟装置到所述从时钟装置的链路包括所述第一 链路和第二链路, 所述从时钟装置包括所述第一端口和第二端口, 所 述第一端口位于所述第一链路, 所述第二端口位于所述第二链路, 所 述第一端口的状态为 slave , 所述第二端口的状态为 passive;
将所述第二端口的状态置为 slave;
所述从时钟装置根据 PTP通过所述第二端口获得确定所述从时 钟装置与第二装置的时间偏差所需的信息,所述第二装置是所述从时 钟装置的上游节点, 所述第二装置位于所述第二链路;
所述从时钟装置根据所述信息确定偏差, 所述偏差等于 M乘以 所述时间偏差, M不等于 0。
2、 根据权利要求 1所述的方法, 其特征在于, 所述从时钟装置 根据所述信息确定偏差之后, 所述方法还包括:
若所述偏差的绝对值大于阔值,则所述从时钟装置确定所述第一 链路的时间同步性能发生故障或者所述第二链路的时间同步性能发 生故障。
3、 根据权利要求 2所述的方法, 其特征在于, 所述从时钟装置 确定所述第一链路的时间同步性能发生故障或者所述第二链路的时 间同步性能发生故障以后, 所述方法还包括:
所述从时钟装置向第三装置发送消息,所述消息用于标识所述第 一链路的时间同步性能发生故障或者所述第二链路的时间同步性能 发生故障。
4、 根据权利要求 1至 3任意一项所述的方法, 其特征在于, 所 述从时钟装置根据 PTP通过所述第二端口获得确定所述从时钟装置 与第二装置的时间偏差所需的信息包括:
所述从时钟装置通过所述第二端口与所述第二装置交互所述从 时钟装置与所述第二装置进行时间同步的操作所对应的多个报文,从 而获得所述信息。
5、 根据权利要求 4所述的方法, 其特征在于, 所述从时钟装置 通过所述第二端口与所述第二装置交互所述从时钟装置与所述第二 装置进行时间同步的操作所对应的多个报文包括:
所述从时钟装置通过所述第二端口接收所述第二装置发送的
Sync同步报文, 所述从时钟装置接收所述 Sync报文的时间为 t2 , 所 述 Sync报文包含时间戳 tl ,所述第二装置发送所述 Sync报文的时间 为 tl ;
所述从时钟装置通过所述第二端口向所述第二装置发送与所述 Sync报文对应的 Delay— Req延迟请求报文, 所述从时钟装置发送所 述 Delay— Req报文的时间为 t3;
所述从时钟装置通过所述第二端口接收所述第二装置发送的与 所述 Delay— Req 报文对应的 Delay— Resp 延迟响应报文, 所述 Delay— Resp 报文包含时间戳 t4 , 所述第二装置接收所述 Delay— Req 才艮文的时间为 t4 , tl、 t2、 t3 以及 t4为所述信息。
6、 根据权利要求 1所述的方法, 其特征在于, 所述从时钟装置 根据所述信息确定偏差以后, 所述方法还包括:
所述从时钟装置向第三装置发送消息, 所述消息包含所述偏差。
7、 根据权利要求 1所述的方法, 其特征在于, 所述从时钟装置 根据所述信息确定偏差以后, 所述方法还包括:
所述从时钟装置通过显示装置显示所述偏差,所述从时钟装置包 括所述显示装置。
8、 一种从时钟装置, 其特征在于, 包括:
执行单元, 用于根据 PTP通过第一端口执行与第一装置进行时 间同步的操作, 所述第一装置是所述从时钟装置的上游节点, 所述第 一装置位于第一链路,主时钟装置到所述从时钟装置的链路包括所述 第一链路和第二链路, 所述从时钟装置包括所述第一端口和第二端 口, 所述第一端口位于所述第一链路, 所述第二端口位于所述第二链 路, 所述第一端口的状态为 slave , 所述第二端口的状态为 passive; 设置单元, 用于将所述第二端口的状态置为 slave;
第一确定单元, 用于根据 PTP通过所述第二端口获得确定所述 从时钟装置与第二装置的时间偏差所需的信息,所述第二装置是所述 从时钟装置的上游节点, 所述第二装置位于所述第二链路;
第二确定单元,用于根据所述第一确定单元获得的所述信息确定 偏差, 所述偏差等于 M乘以所述时间偏差, M不等于 0。
9、 根据权利要求 8所述的从时钟装置, 其特征在于, 还包括: 第三确定单元,用于若所述第二确定单元确定的所述偏差的绝对 值大于阔值,则确定所述第一链路的时间同步性能发生故障或者所述 第二链路的时间同步性能发生故障。
10、 根据权利要求 9所述的从时钟装置, 其特征在于, 还包括: 发送单元, 用于向第三装置发送消息, 所述消息用于标识所述第 三确定单元确定的所述第一链路的时间同步性能发生故障或者所述 第二链路的时间同步性能发生故障。
11、 根据权利要求 8至 10任意一项所述的从时钟装置, 其特征 在于, 所述第一确定单元用于:
通过所述第二端口与所述第二装置交互所述从时钟装置与所述 第二装置进行时间同步的操作所对应的多个报文, 从而获得所述信 息。
12、 根据权利要求 11所述的从时钟装置, 其特征在于, 所述第 一确定单元包括:
第一接收子单元,用于通过所述第二端口接收所述第二装置发送 的 Sync同步报文, 所述从时钟装置接收所述 Sync报文的时间为 t2 , 所述 Sync报文包含时间戳 tl ,所述第二装置发送所述 Sync报文的时 间为 tl ;
发送子单元,用于通过所述第二端口向所述第二装置发送与所述 Sync报文对应的 Delay— Req延迟请求报文, 所述从时钟装置发送所 述 Delay— Req报文的时间为 t3;
第二接收子单元,用于通过所述第二端口接收所述第二装置发送 的与所述 Delay— Req 4艮文对应的 Delay— Resp 延迟响应报文, 所述 Delay— Resp 报文包含时间戳 t4 , 所述第二装置接收所述 Delay— Req 才艮文的时间为 t4 , tl、 t2、 t3 以及 t4为所述信息。
13、 根据权利要求 8所述的从时钟装置, 其特征在于, 还包括: 发送单元, 用于向第三装置发送消息, 所述消息包含所述第二确 定单元确定的所述偏差。
14、 根据权利要求 8所述的从时钟装置, 其特征在于, 还包括: 显示单元, 用于显示所述第二确定单元确定的所述偏差。
PCT/CN2014/077953 2013-05-23 2014-05-21 用于精确时钟协议同步网络的方法和装置 WO2014187310A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14800954.1A EP2991250B1 (en) 2013-05-23 2014-05-21 Method and apparatus for ptp synchronous network
US14/947,035 US20160080100A1 (en) 2013-05-23 2015-11-20 Method for precision time protocol synchronization network and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310195327.4A CN103312428B (zh) 2013-05-23 2013-05-23 用于精确时钟协议同步网络的方法和装置
CN201310195327.4 2013-05-23

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/947,035 Continuation US20160080100A1 (en) 2013-05-23 2015-11-20 Method for precision time protocol synchronization network and apparatus

Publications (1)

Publication Number Publication Date
WO2014187310A1 true WO2014187310A1 (zh) 2014-11-27

Family

ID=49137249

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077953 WO2014187310A1 (zh) 2013-05-23 2014-05-21 用于精确时钟协议同步网络的方法和装置

Country Status (4)

Country Link
US (1) US20160080100A1 (zh)
EP (1) EP2991250B1 (zh)
CN (1) CN103312428B (zh)
WO (1) WO2014187310A1 (zh)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312428B (zh) * 2013-05-23 2016-01-27 华为技术有限公司 用于精确时钟协议同步网络的方法和装置
WO2016095099A1 (zh) 2014-12-16 2016-06-23 华为技术有限公司 一种时间同步方法及装置
CN104579534B (zh) * 2014-12-31 2017-10-10 北京东土科技股份有限公司 一种sdh网络中的时钟同步方法及系统
CN106304316B (zh) * 2015-05-29 2021-01-15 中国移动通信集团公司 一种频率同步性能检测方法及装置
WO2018026938A1 (en) * 2016-08-02 2018-02-08 Fife Corporation Web handling system
CN106533648A (zh) * 2016-12-06 2017-03-22 南京南瑞继保电气有限公司 一种基于hsr网络的ieee 1588对时和监控方法
EP3553994B1 (en) * 2016-12-30 2023-05-31 Huawei Technologies Co., Ltd. Method for exchanging time synchronisation message, and network device
CN109218007B (zh) * 2017-07-03 2022-11-01 中兴通讯股份有限公司 路径选择方法、设备及存储介质
WO2019023507A1 (en) * 2017-07-26 2019-01-31 Aviat Networks, Inc. CELL TIMING TECHNIQUE FOR RADIO POINT TO POINT BINDINGS
JP6984482B2 (ja) 2018-02-22 2021-12-22 オムロン株式会社 通信システム、通信装置および通信方法
US11539451B2 (en) * 2019-02-28 2022-12-27 Nxp B.V. Method and system for merging clocks from multiple precision time protocol (PTP) clock domains
US11502767B2 (en) * 2019-08-16 2022-11-15 Arista Networks, Inc. VLAN-aware clock synchronization
GB2595885B (en) * 2020-06-09 2022-11-09 Canon Kk Method and apparatus for synchronizing different communication ports
CN115694704A (zh) * 2022-10-28 2023-02-03 重庆长安汽车股份有限公司 一种时间同步方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232457A (zh) * 2008-02-22 2008-07-30 浙江大学 一种基于ieee1588协议的高精度实时同步方法
CN102404103A (zh) * 2011-11-18 2012-04-04 盛科网络(苏州)有限公司 提高ptp时间同步精度的方法及系统
CN102843205A (zh) * 2012-09-03 2012-12-26 杭州华三通信技术有限公司 一种基于精确时间协议的时间同步收敛的方法和装置
CN103312428A (zh) * 2013-05-23 2013-09-18 华为技术有限公司 用于精确时钟协议同步网络的方法和装置

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070147435A1 (en) * 2005-12-23 2007-06-28 Bruce Hamilton Removing delay fluctuation in network time synchronization
CN101425865B (zh) * 2007-10-31 2013-04-24 电信科学技术研究院 传输网中的时钟同步方法、系统和从时钟侧实体
CN101729180A (zh) * 2008-10-21 2010-06-09 华为技术有限公司 精准时钟同步方法及系统、精准时钟频率/时间同步装置
CN101790230B (zh) * 2009-01-23 2014-12-03 华为技术有限公司 精确时间协议节点、时戳操作方法及时间同步系统
US8427963B2 (en) * 2009-11-20 2013-04-23 Symmetricom, Inc. Method and system for analyzing and qualifying routes in packet networks
US8203969B2 (en) * 2009-12-10 2012-06-19 Alcatel Lucent Network timing topology via network manager
CN102111258A (zh) * 2009-12-25 2011-06-29 华为技术有限公司 时钟同步方法、设备和系统
EP2367309B1 (en) * 2010-02-10 2016-07-13 Alcatel Lucent Method for detecting a synchronization failure of a transparent clock and related protection schemes
CN103139002B (zh) * 2011-11-30 2017-12-29 中兴通讯股份有限公司 网元间的1588时间误差检测方法及装置
CN102546009B (zh) * 2012-01-17 2014-12-24 华为技术有限公司 光纤对称性检测方法及设备
CN104247309B (zh) * 2012-02-09 2017-11-10 马维尔以色列(M.I.S.L.)有限公司 使用多个网络路径的时钟同步
CN103856360B (zh) * 2012-11-28 2019-01-25 中兴通讯股份有限公司 一种同步链路故障检测方法及装置
US9264132B2 (en) * 2013-01-07 2016-02-16 Microsemi Frequency And Time Corporation Universal asymmetry compensation for packet timing protocols

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101232457A (zh) * 2008-02-22 2008-07-30 浙江大学 一种基于ieee1588协议的高精度实时同步方法
CN102404103A (zh) * 2011-11-18 2012-04-04 盛科网络(苏州)有限公司 提高ptp时间同步精度的方法及系统
CN102843205A (zh) * 2012-09-03 2012-12-26 杭州华三通信技术有限公司 一种基于精确时间协议的时间同步收敛的方法和装置
CN103312428A (zh) * 2013-05-23 2013-09-18 华为技术有限公司 用于精确时钟协议同步网络的方法和装置

Also Published As

Publication number Publication date
EP2991250A4 (en) 2016-03-23
EP2991250A1 (en) 2016-03-02
CN103312428B (zh) 2016-01-27
EP2991250B1 (en) 2018-06-27
CN103312428A (zh) 2013-09-18
US20160080100A1 (en) 2016-03-17

Similar Documents

Publication Publication Date Title
WO2014187310A1 (zh) 用于精确时钟协议同步网络的方法和装置
EP3570505B1 (en) Symmetric path/link over lag interface using lldp for time synchronization between two nodes using ptp
CN112385183B (zh) 执行phy级硬件时间戳和时间同步的装置、方法和微控制器
EP2487819B1 (en) Network element for a packet-switched network
US9876596B2 (en) Method and device for detecting fault in synchronization link
US20130227008A1 (en) Clock synchronization based on predefined grandmaster
US10158441B1 (en) Securing time between nodes
US20140177653A1 (en) Inband Timestamping
CN108259109B (zh) Ptp域中的网络设备及tod同步方法
JP5923430B2 (ja) 通信制御装置
WO2014032350A1 (zh) 基于无缝冗余环网的提高时钟精度的方法及节点
WO2011120262A1 (zh) 时间同步的处理方法及装置
WO2017071521A1 (zh) 用于检测时钟同步路径的方法、节点及系统
WO2015117501A1 (zh) 一种时间同步方法、可编程逻辑器件、单板及网元
WO2012071910A1 (zh) 一种实现时间同步的方法及装置
CN105323054A (zh) 时钟同步方法及装置
WO2017177751A1 (zh) 时间同步方法和装置
CN105978652A (zh) 冗余以太网的同步对时设备、系统及方法
CN106982397B (zh) 基于回传检测的变电站通信网络及其时间同步安全方法
JP2014127887A (ja) 通信制御装置
Moreira et al. IEEE 1588 Transparent Clock architecture for FPGA-based network devices
CN102404104B (zh) 基于不同延时机制的自适应同步方法及系统
WO2014086254A1 (zh) 时钟保护方法、系统和相关普通时钟设备
JP7451721B2 (ja) クロックポート属性回復方法、デバイス、およびシステム
WO2011140798A1 (zh) 一种处理ieee1588v2报文的方法及装置

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: 14800954

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2014800954

Country of ref document: EP