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

Claim 1:
2. The method according to claim 1,
wherein after the receiving, by a first network device, of the stitching label and the stitching label stack list corresponding to the stitching label that are sent by a stitching network device, the method further comprises:
storing, by the first network device, the stitching label and the corresponding stitching label stack list in a label information table generated by the first network device for the stitching network device; and

wherein the replacing, by the first network device, of the stitching label in the label stack list with the stitching label stack list, and switching the packet to a backup path for sending comprises:
obtaining, by the first network device, a first label from a stack top of the label stack list, the first label used to indicate that a next-hop network device forwarding the packet is the stitching network device;
determining, by the first network device based on a backup forwarding table, a first forwarding action corresponding to the first label, the backup forwarding table used to indicate the backup path, and the first forwarding action is used to indicate to look up the label information table;
determining, by the first network device based on the label information table, a second label located at the stack top of the stitching label stack list, the second label used to indicate that a next-hop network device of the stitching network device on the primary path is a third network device;
using, by the first network device, the second label as an inner label, and determining, from the backup forwarding table, an outer label of a backup path from the first network device to the third network device; and
sending, by the first network device, the packet to a next-hop network device of the first network device on the backup path based on the outer label.