Method and apparatus for processing transmission path fault, and system
AssigneeHuawei Technologies Co., Ltd.
InventorsZhibo Hu, Junda Yao
Life of this patent
Estimating the term…
Abstract
This application discloses a method, an apparatus, and a system for processing a transmission path fault. In this application, after a first network device receives a packet, and when the first network device determines that a third network device is faulty, a difference between an initial value of a segment routing global block SRGB of the first network device and an initial value of an SRGB of the third network device is determined, and a backup path is determined based on the difference and a backup forwarding table. The first network device sends a first packet based on the backup forwarding table.
Claims18
A method, comprising:
- receiving, by a first network device, a first packet sent by a second network device, wherein the second network device is a previous-hop network device of the first network device on a primary path;
- determining, by the first network device based on determining that a third network device is faulty, a difference between a first initial value of a first segment routing global block (SRGB) of the first network device and a third initial value of a third SRGB of the third network device, wherein the third network device is a next-hop network device of the first network device on the primary path;
- obtaining, by the first network device, a first label from the first packet, wherein the first label corresponds to a fourth network device that is a next-hop network device of the third network device on the primary path;
- determining, by the first network device, based on a sum value of the first label and the difference, a backup path from the first network device to the fourth network device;
- and
- sending, by the first network device, the first packet to a second next-hop network device of the first network device on the backup path.
A first network device comprising:
- one or more memories configured to store instructions;
- and
- one or more processors coupled to the one or more memories and configured to execute the instructions to cause the first network device to:
- receive a first packet sent by a second network device, wherein the second network device is a previous-hop network device of the first network device on a primary path;
- determine a difference between first initial value of a first segment routing global block (SRGB) of the first network device and a third initial value of a third SRGB of a third network device based on determining that the third network device is faulty, wherein the third network device is a next-hop network device of the first network device on the primary path;
- obtain a first label from the first packet, wherein the first label corresponds to a fourth network device that is a next-hop network device of the third network device on the primary path;
- determine a backup path from the first network device to the fourth network device based on a sum value of the first label and the difference;
- and
- send the first packet to a second next-hop network device of the first network device on the backup path.
A network system, comprising a first network device configured to:
- receive a first packet sent by a second network device, wherein the second network device is a previous-hop network device of the first network device on a primary path;
- determine a difference between a first initial value of a first segment routing global block (SRGB) of the first network device and a third initial value of a third SRGB of a third network device based on determining that the third network device is faulty, wherein the third network device is a next-hop network device of the first network device on the primary path;
- obtain a first label from the first packet, wherein the first label corresponds to a fourth network device that is a next-hop network device of the third network device on the primary path;
- determine a backup path from the first network device to the fourth network device based on a sum value of the first label and the difference;
- and
- send the first packet to a second next-hop network device of the first network device on the backup path.
Dependencies are inferred from the claim text.