| CPC H04L 45/245 (2013.01) [H04L 45/42 (2013.01)] | 20 Claims |

|
1. A method, comprising:
identifying, by a network device, a link aggregation group (LAG) of a plurality of links between the network device and another network device;
identifying, by the network device, link aggregation control protocol (LACP) parameters that were communicated by the network device and the other network device in association with the LAG,
wherein the LACP parameters are stored as entries in a data structure, each entry includes an identifier associated with a link, a first port number of the network device, a first key identifier that indicates that a plurality of first ports of the network device are associated with the LAG, a second port number of the other network device that is related to the link, and a second key identifier that indicates a plurality of second ports of the other network device are associated with the LAG;
determining, by the network device, based on the LACP parameters of the data structure, and independently from a second priority order determined by the other network device, a first priority order of the plurality of first ports,
wherein the second priority order is related to the plurality of second ports,
wherein the LACP comprises state information and compares the state information to information associated with the other network device to determine that the other network device received correct information associated with the network device, and
wherein the second priority order is determined by the other network device based on the LACP parameters of the data structure, independently from the first priority order determined by the network device;
determining, by the network device and the other network device, based on the first priority order and after the first priority order and the second priority order are determined independently, a priority order of the plurality of links of the LAG; and
communicating, by the network device, with the other network device, based on the priority order of the plurality of links of the LAG, one or more precision time protocol (PTP) messages via the LAG.
|