主权项 |
1. A time synchronization method, comprising:
classifying a first Network Equipment (NE1) and upstream nodes of the NE1 in a time network into a first level, and classifying downstream nodes of the NE1 into a second level, wherein a first level priority that needs to be used in time synchronization of the first level is higher than a second level priority that needs to be used in time synchronization of the second level, and an output port of the NE1 is connected to a 1 Pulse per Second+Time of Day (1PPS+TOD) synchronization link; receiving, by a third Network Equipment (NE3) in the downstream nodes which is connected to the NE1 through a Precision Time Protocol (PTP) synchronization link, a first PTP announce message from the NE1, wherein the first PTP announce message carries a first equipment priority of the NE1 and the first level priority; and after the NE3 receives a second PTP announce message sent by a second Network Equipment (NE2) in the downstream nodes which is connected to the NE1 through the 1PPS+TOD synchronization link, determining that a clock parameter of the NE1 is optimal according to the first PTP announce message and the second PTP announce message, and synchronizing a local clock to the NE1 according to the first PTP announce message, wherein the second PTP announce message carries a second equipment priority of the NE2 and the second level priority, and the first equipment priority is higher than the second equipment priority. |