Packet Processing Method and Router
AssigneeHuawei Technologies Co., Ltd.
InventorXiaohu Xu
Life of this patent
Estimating the term…
Abstract
This application discloses a packet processing method and an LSR. The method includes: receiving, by an Ingress LSR of a first MPLS tunnel, a first notification packet that is based on an IGP, where the first notification packet includes an ELC flag, which is used to indicate that the first Egress LSR has ELC; after learning from the first notification packet that the first Egress LSR has ELC, inserting a label into a first packet, to generate a second packet, where the label forms an MPLS label stack, which includes, from bottom to top, a first EL, a first ELI, and a first TL; and sending the second packet to the first Egress LSR through the first MPLS tunnel. According to the solutions of this invention, a Transit LSR of the first MPLS tunnel may perform load balancing when forwarding the second packet.
Claims16
A packet processing method, comprising:
- inserting, by an Ingress Label Switching Router (LSR) of a Segment Routing (SR) network, a label into a first packet to generate a second packet, wherein the label forms an Multiprotocol Label Switching (MPLS) label stack, wherein the MPLS label stack comprises, from bottom to top, a first entropy label (EL), a first Entropy Label Indicator (ELI), and a first tunnel label (TL), and wherein the first TL is a label that uniquely identifies a first Egress LSR, the Ingress LSR is an Ingress LSR of a first MPLS tunnel, and the first Egress LSR is an Egress LSR of the first MPLS tunnel;
- and
- sending, by the Ingress LSR, the second packet to the first Egress LSR.
A packet processing method, comprising:
- receiving, by an Transit Label Switching Router (Transit LSR) of a segment routing (SR) network, a second packet, wherein the second packet comprises a label, wherein the label forms a Multiprotocol Label Switching (MPLS) label stack, the MPLS label stack comprises, from bottom to top, a first entropy label (EL), a first Entropy Label Indicator (ELI), and a first tunnel label (TL), wherein the first TL is a label that uniquely identifies a first Egress LSR, and the first Egress LSR is an Egress LSR of a first MPLS tunnel;
- forwarding, by the Transit LSR, the second packet according to the first EL.
A Label Switching Router (LSR), comprising:
- a transmitter;
- a processor;
- and
- a non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions to cause the LSR to act as an Ingress Label Switching Router (LSR) of a first Multiprotocol Label Switching (MPLS) tunnel, and to:
- insert a label into a first packet to generate a second packet, wherein the label forms an MPLS label stack, the MPLS label stack comprises, from bottom to top, a first entropy label (EL), a first Entropy Label Indicator (ELI), and a first tunnel label (TL), wherein the first TL is a label that uniquely identifies a first Egress LSR, and the first Egress LSR is an Egress LSR of the first MPLS tunnel
- cause the transmitter to send the second packet.
A Label Switching Router (LSR), comprising:
- a receiver, configured to receive a second packet on a Segment Routing (SR) network, wherein the second packet comprises a label, wherein the label forms an MPLS label stack, the MPLS label stack comprises, from bottom to top, a first entropy label (EL), a first Entropy Label Indicator (ELI), and a first tunnel label (TL), wherein the first TL is a label that uniquely identifies a first Egress LSR, and the first Egress LSR is an Egress LSR of a first Multiprotocol Label Switching (MPLS) tunnel in which the LSR is an Transit Label Switching Router (Transit LSR);
- a transmitter, configured forward the second packet according to the first EL.
Dependencies are inferred from the claim text.