Patent ID: 11929915
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Digital communication (Electrical engineering)
Classification: CPC H | IPC G  H

Claim 5:
6. A method applied to a first network device, comprising:
obtaining a first algorithm constraint supported by the first network device, wherein the first algorithm constraint is a constraint of a forwarding path algorithm, wherein the first algorithm constraint comprises a flexible algorithm (Flex Ago);
determining a second network device supporting a same Flex Algo as the Flex Algo supported by the first network device, and determining that the first network device and the second network device that support the same Flex Algo belong to one network topology, wherein the first network device has a first sub-interface corresponding to the Flex Algo, the second network device has a second sub-interface corresponding to the Flex Algo, wherein the first sub-interface and the second sub-interface belong to the network topology; and
calculating a first forwarding path from the first network device to the second network device in the one network topology based on the Flex Algo supported by the first network device and the second network device, wherein the first forwarding path comprises the first network device and the second network device.