摘要 |
Embodiments relate to the field of communications, and provide a method for a PTP synchronization network and an apparatus, which help to reduce costs of obtaining performance of a Precision Time Protocol synchronization network. The method includes: executing, by a slave clock apparatus, an operation of time synchronization with a first apparatus according to the PTP through a first port; setting a state of a second port of the slave clock apparatus to slave; obtaining information required for determining a time offset between the slave clock apparatus and a second apparatus; determining an offset according to the information; if an absolute value of the offset is greater than a threshold, determining that time synchronization performance of a first link is faulty or time synchronization performance of a second link is faulty; and sending a message to a third apparatus. |
主权项 |
1. A method for a Precision Time Protocol synchronization network, comprising:
executing, by a slave clock apparatus, an operation of time synchronization with a first apparatus according to Precision Time Protocol (PTP) through a first port, wherein the first apparatus is an upstream node of the slave clock apparatus, the first apparatus is located on a first link, a link from a master clock apparatus to the slave clock apparatus comprises the first link and a second link, the slave clock apparatus comprises the first port and a second port, the first port is located on the first link, the second port is located on the second link, a state of the first port is slave, and a state of the second port is passive; setting the state of the second port to slave; obtaining, by the slave clock apparatus according to the PTP through the second port, information required for determining a time offset between the slave clock apparatus and a second apparatus, wherein the second apparatus is an upstream node of the slave clock apparatus, and the second apparatus is located on the second link; and determining, by the slave clock apparatus, an offset according to the information, wherein the offset is equal to M multiplied by the time offset, and M is not equal to 0. |