摘要 |
<p>A method and device for realizing PTP time synchronization based on an aggregated link. The method comprises: measuring a mean line delay (Meandelay) of a single line; measuring an asymmetric delay value (Asymmetry) of the single line; configuring a network into a link aggregation line, and controlling a PTP message by current; monitoring an ingress port of an upstream PTP message, and monitoring an egress port of the PTP message; according to the mean line delay (Meandelay) and the asymmetric delay value (Asymmetry) of the single line, calculating an asymmetric delay value of the link aggregation line; and adding the asymmetric delay value at the ingress port according to a time synchronization message (sync) provided by an LACP protocol, and subtracting the asymmetric delay value at the egress port according to a delay request message (delay-req), so as to correct an in/out PTP message. Through a method for pre-measuring a line delay of a single link and providing a method for calculating an asymmetric delay value under a link aggregation port, the embodiments of the present invention solve the problem in the prior art that an asymmetric line delay cannot be corrected in the link aggregation port.</p> |