| CPC H04L 45/02 (2013.01) [H04L 41/12 (2013.01)] | 13 Claims |

|
1. A method for generating a forwarding path, comprising:
obtaining topology information of first network nodes supporting a target path calculation algorithm;
performing, using the target path calculation algorithm, path calculation based on the topology information of the first network nodes to generate a first forwarding path, wherein the first forwarding path is a forwarding path from a designated source node to a designated tail node in the first network nodes;
obtaining a second forwarding path from the source node to the tail node when there is a path interruption in the first forwarding path, wherein the second forwarding path is a forwarding path determined based on topology information of all the first network nodes and topology information of second network nodes, and the second network nodes do not support the target path calculation algorithm;
determining, from the second forwarding path, first network nodes communicated with second network nodes to obtain node pairs; and
updating a next hop device of a first node in each node pair on the second forwarding path as a second node in the node pair to obtain a forwarding path communicated from the source node to the tail node, the second node is located behind the first node in each node pair in a direction of the second forwarding path.
|