IP Library Granted Patent US 12695693
Granted Patent B2
US 12695693 · App. 18/663,207 · Granted Jul 28, 2026

Packet processing method and apparatus, and device

Inventors: Jingrong Xie (Beijing, CN); Haibo Wang (Beijing, CN); Gang Yan (Beijing, CN)
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
H04L45/34H04L45/741H04L2212/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12695693
App. No.
18/663,207
Granted
Jul 28, 2026
Kind
B2
Abstract

A packet processing method includes a second device that sends a first packet to a first device, where the first packet includes a first segment routing header (SRH). After receiving the first packet, the first device determines whether the first packet includes a first segment identifier. When the first packet includes the first segment identifier, the first device deletes the first SRH, performs an encapsulation operation to generate a second packet, and forwards the second packet. That is, when a function or an indication corresponding to the first segment identifier is to perform the encapsulation operation, after receiving the first packet, the first device may delete the first SRH in the first packet based on an actual case, and perform the encapsulation operation to generate the second packet, where the second packet does not include the first SRH.

Claims (35)

1 . A method implemented by a first device, wherein the method comprises:

receiving, from a second device, a first packet comprising a first segment routing header (SRH) and a first segment identifier corresponding to the first device, wherein the first segment identifier is either of a first endpoint bound to a segment routing Internet Protocol version 6 (SRv6) policy delete on demand End.B6.Dod type or a second endpoint bound to a segment routing with Multiprotocol Label Switching (MPLS) (SR-MPLS) policy delete on demand End.BM.Dod type;

performing, on the first packet in response to the first packet, a first operation of deleting the first SRH to generate a modified first packet;

performing an encapsulation operation on the modified first packet to generate a second packet; and

sending the second packet.

2 . The method of claim 1 , wherein performing the first operation further comprises further performing, on the first packet in response to a segment left (SL) in the first SRH being equal to 1 or an updated SL in the first SRH being equal to 0, the first operation on the first packet.

3 . The method of claim 1 , wherein the first segment identifier is a binding segment identifier.

4 . The method of claim 1 , wherein performing the encapsulation operation comprises encapsulating a first packet header into the modified first packet to generate the second packet.

5 . The method of claim 4 , wherein the first packet header is an Internet Protocol version 6 (IPv6) basic header, an IPv6 header comprising a second SRH, or a Multiprotocol Label Switching (MPLS) header.

6 . The method of claim 4 , wherein the first packet header comprises path information, and wherein the path information indicates a transmission path of the second packet.

7 . The method of claim 6 , wherein the path information corresponds to the first segment identifier.

8 . The method of claim 6 , wherein the first SRH comprises a second segment identifier, wherein the second segment identifier indicates a next segment for transmitting the first packet, and wherein the path information corresponds to the second segment identifier.

9 . A first device comprising:

a memory configured to store instructions; and

one or more processors coupled to the memory and configured to execute the instructions to cause the first device to:

receive, from a second device, a first packet comprising a first segment routing header (SRH) and a first segment identifier corresponding to the first device, wherein the first segment identifier is either of a first endpoint bound to a segment routing Internet Protocol version 6 (SRv6) policy delete on demand End.B6.Dod type or a second endpoint bound to a segment routing with Multiprotocol Label Switching (MPLS) (SR-MPLS) policy delete on demand End.BM.Dod type;

perform, on the first packet in response to the first packet, a first operation of deleting the first SRH to generate a modified first packet;

perform an encapsulation operation on the modified first packet to generate a second packet; and

send the second packet.

10 . The first device of claim 9 , wherein the one or more processors are further configured to further perform, on the first packet in response to a segment left (SL) being equal to 1 or an updated SL being equal to 0, the first operation.

11 . The first device of claim 9 , wherein a type of the first segment identifier is a binding segment identifier.

12 . The first device of claim 9 , wherein the one or more processors are further configured to:

encapsulate a first packet header into the first packet to generate the second packet.

13 . The first device of claim 12 , wherein the first packet header is an Internet Protocol version 6 (IPv6) basic header, an IPv6 header comprising a second SRH, or a Multiprotocol Label Switching (MPLS) header.

14 . The first device of claim 12 , wherein the first packet header comprises path information, and wherein the path information indicates a transmission path of the second packet.

15 . The first device of claim 14 , wherein the path information corresponds to the first segment identifier.

16 . A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by one or more processors, cause a first device to:

receive, from a second device, a first packet comprising a first segment routing header (SRH) and a first segment identifier corresponding to the first device, wherein the first segment identifier is either of a first endpoint bound to a segment routing Internet Protocol version 6 (SRv6) policy delete on demand End.B6.Dod type or a second endpoint bound to a segment routing with Multiprotocol Label Switching (MPLS) (SR-MPLS) policy delete on demand End.BM.Dod type;

perform, on the first packet in response to the first packet, a first operation of deleting the first SRH to generate a modified first packet;

perform an encapsulation operation on the modified first packet to generate a second packet; and

send the second packet.

17 . The computer program product of claim 16 , wherein the computer-executable instructions that when executed by the one or more processors cause the first device to perform the first operation by further performing, on the first packet in response to a segment left (SL) being equal to 1 or an updated SL being equal to 0, the first operation.

18 . The computer program product of claim 16 , wherein a type of the first segment identifier is a binding segment identifier.

19 . The computer program product of claim 16 , wherein the computer-executable instructions that when executed by the one or more processors cause the first device to perform the encapsulation operation by encapsulating a first packet header into the modified first packet to generate the second packet.

20 . The computer program product of claim 19 , wherein the first packet header is an Internet Protocol version 6 (IPv6) basic header, an IPv6 header comprising a second SRH, or a Multiprotocol Label Switching (MPLS) header.