Abstract:
This application discloses a clock synchronization method and apparatus, and related storage medium, and pertains to the field of communications technologies. A network device receives an announce message from a first master clock node and an announce message from a second master clock node; and when an identifier of a first clock source node carried in the announce message of the first master clock node is the same as an identifier of a second clock source node carried in the announce message of the second master clock node, selects a master clock node with a smaller clock deviation from the first master clock node and the second master clock node, and then calibrates a clock of the network device based on time information of the master clock node. The precision of clock synchronization by the network device is improved.
Abstract:
This application discloses a clock synchronization method and apparatus, and a storage medium, which pertains to the field of communication technologies. The method includes: first receiving, by a network device, an announce packet from a first master clock node and an announce packet from a second master clock node, when an identifier of a first clock source node carried in the announce packet from the first master clock node is the same as an identifier of a second clock source node carried in the announce packet from the second master clock node, selecting a master clock node with a relatively small clock deviation, and then calibrating a clock of the network device based on time information of the master clock node. In this application, precision of clock synchronization performed by the network device is higher, and further, precision of a clock calibrated by the network device is higher.
Abstract:
This application discloses a clock synchronization method and apparatus, and a storage medium, which pertains to the field of communication technologies. The method includes: first receiving, by a network device, an announce packet from a first master clock node and an announce packet from a second master clock node, when an identifier of a first clock source node carried in the announce packet from the first master clock node is the same as an identifier of a second clock source node carried in the announce packet from the second master clock node, selecting a master clock node with a relatively small clock deviation, and then calibrating a clock of the network device based on time information of the master clock node. In this application, precision of clock synchronization performed by the network device is higher, and further, precision of a clock calibrated by the network device is higher.
Abstract:
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.