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

Claim 13:
14. An apparatus, wherein the apparatus is applied to a first network device, and the apparatus comprises:
a non-transitory memory storage comprising instructions; and
one or more processors in communication with the memory storage, wherein the instructions, when executed by the one or more processors, cause the apparatus to:
obtain 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 Algo);
determine a second network device supporting a same FlexAlgo as the Flex Algo supported by the first network device, and determine that the first network device and the second network device that support the same Flex Algo are in 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-interfaces and the second sub-interfaces belong to the network topology; and
calculate 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.