IP Library Granted Patent US 11,316,784
Granted Patent B2
US 11,316,784 · App. 16/971,075 · Granted Apr 26, 2022

Method and device for processing packet by using unified SR label stack

Inventors: Aihua Liu (Guangdong, CN); Shuangping Zhan (Guangdong, CN); Fangwei Hu (Guangdong, CN)
Assignee: XI'AN ZHONGXING NEW SOFTWARE CO., LTD.
H04L45/50H04L47/125H04L61/6086H04L69/22H04W24/08
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 11,316,784
App. No.
16/971,075
Granted
Apr 26, 2022
Kind
B2
Abstract

A method and a device for processing a packet by using a unified SR label stack, relating to the field of PTN. The method includes: allocating, according to a type of a forwarding plane, a compatibility indicator indicating that a unified U-SRH is carried, for a service packet entering the forwarding plane; adding an SR label stack, the U-SRH and the compatibility indicator to the service packet to obtain an extended packet; and processing and forwarding the extended packet in the forwarding plane according to the SR label stack, the U-SRH and the compatibility indicator. According to embodiments of the present disclosure, the unified SR label stack is used to simplify an application of SR technology in different forwarding planes, and uniformity of SR encapsulation format is enhanced.

Claims (35)

1. A method for processing a packet by using a unified segment routing (SR) label stack, comprising:

allocating, according to a type of a forwarding plane, a compatibility indicator indicating that a unified segment routing header (U-SRH) is carried, for a service packet entering the forwarding plane;

adding an SR label stack, the U-SRH and the compatibility indicator to the service packet to obtain an extended packet;

processing and forwarding the extended packet in the forwarding plane according to the SR label stack, the U-SRH and the compatibility indicator; and

in response to that the extended packet is forwarded to an egress of the forwarding plane, popping up the U-SRH, the SR label stack and the compatibility indicator from the extended packet, and sending the service packet out of the forwarding plane.

2. The method according to claim 1 , wherein the allocating, according to the type of the forwarding plane, the compatibility indicator indicating that the U-SRH is carried, for the service packet entering the forwarding plane comprises:

in response to that the forwarding plane is a multiprotocol label switching (MPLS) or multiprotocol label switching transport protocol (MPLS-TP) forwarding plane, allocating an MPLS or MPLS-TP reserved label indicating that the U-SRH is carried, for the service packet as the compatibility indicator;

in response to that the forwarding plane is an IPv6 forwarding plane, allocating an IPv6 extension header indicating that the U-SRH is carried, for the service packet as the compatibility indicator;

in response to that the forwarding plane is an IPv4 forwarding plane, allocating a user datagram protocol (UDP) port number indicating that the U-SRH is carried, for the service packet as the compatibility indicator; and

in response to that the forwarding plane is any other forwarding plane, allocating an extension header indicating that the U-SRH is carried, for the service packet as the compatibility indicator.

3. The method according to claim 1 , wherein the U-SRH contains a parameter indicating a format of the SR label stack, and the parameter includes at least one of a header version, a maximum label number and a current label number of the label stack, a maximum label depth and a current label depth, a format width of a SR label, a forwarding plane encapsulation type, other flags.

4. The method according to claim 1 , wherein the adding the SR label stack, the U-SRH and the compatibility indicator to the service packet to obtain the extended packet comprises:

pushing the SR label stack and the U-SRH into the service packet in a stack pushing mode, and pushing the compatibility indicator before the U-SRH to obtain the extended packet.

5. The method according to claim 1 , wherein the processing and forwarding the extended packet in the forwarding plane according to the SR label stack, the U-SRH and the compatibility indicator comprises:

in response to identifying that the extended packet carries the compatibility indicator and the compatibility indicator is identified as indicating a compatibility forwarding plane by parsing the extended packet, processing and forwarding the extended packet according to the U-SRH and the compatibility indicator;

in response to that the extended packet is not identified as carrying the compatibility indicator, forwarding the extended packet according to a forwarding flow of the forwarding plane; and

in response to that the compatibility indicator is not identified as indicating the compatibility forwarding plane, discarding the extended packet.

6. A device for processing a packet by using a unified segment routing (SR) label stack, comprising:

an allocating module configured to allocate, according to a type of a forwarding plane, a compatibility indicator indicating that a unified segment routing header (U-SRH) is carried, for a service packet entering the forwarding plane;

a stack pushing module configured to add an SR label stack, the U-SRH and the compatibility indicator to the service packet to obtain an extended packet; and

a forwarding module configured to process and forward the extended packet in the forwarding plane according to the SR label stack, the U-SRH and the compatibility indicator, and in response to that the extended packet is forwarded to an egress of the forwarding plane, pop up the U-SRH, the SR label stack and the compatibility indicator from the extended packet, and send the service packet out of the forwarding plane.

7. A device for processing a packet by using a unified segment routing (SR) label stack, comprising: a processor and a memory coupled to the processor, the memory stores a program, capable of being executed by the processor, for processing the packet by using the unified SR label stack, and the program is to be executed by the processor to implement the method according to claim 1 .

8. A system for processing a packet by using a unified segment routing (SR) label stack, comprising:

an ingress node configured to allocate, according to a type of a forwarding plane, a compatibility indicator indicating that a unified segment routing header (U-SRH) is carried, for a service packet entering the forwarding plane, and add an SR label stack, the U-SRH and the compatibility indicator to the service packet to obtain an extended packet;

a forwarding node configured to determine that the extended packet carries the U-SRH according to the compatibility indicator carried by the extended packet, and process and forward the extended packet according to the U-SRH and the SR label stack; and

an egress node configured to pop up the U-SRH, the SR label stack and the compatibility indicator from the extended packet, and send the service packet out of the forwarding plane.

9. A non-transitory computer readable medium, in which a program for processing a packet by using a unified segment routing (SR) label stack is stored, wherein the program is to be executed by a processor to implement the method according to claim 1 .

10. A method for processing a packet by using a unified segment routing (SR) label stack, comprising:

allocating, according to a type of a forwarding plane, a compatibility indicator indicating that a unified segment routing header (U-SRH) is carried, for a service packet entering the forwarding plane;

adding an SR label stack, the U-SRH and the compatibility indicator to the service packet to obtain an extended packet;

processing and forwarding the extended packet in the forwarding plane according to the SR label stack, the U-SRH and the compatibility indicator,

wherein the processing and forwarding the extended packet in the forwarding plane according to the SR label stack, the U-SRH and the compatibility indicator comprises:

in response to identifying that the extended packet carries the compatibility indicator and the compatibility indicator is identified as indicating a compatibility forwarding plane by parsing the extended packet, processing and forwarding the extended packet according to the U-SRH and the compatibility indicator;

in response to that the extended packet is not identified as carrying the compatibility indicator, forwarding the extended packet according to a forwarding flow of the forwarding plane; and

in response to that the compatibility indicator is not identified as indicating the compatibility forwarding plane, discarding the extended packet.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 24, 2022
From: ZTE CORPORATION
To: XI'AN ZHONGXING NEW SOFTWARE CO., LTD.
Reel/Frame 058747/0346 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 19, 2020
From: LIU, AIHUA; ZHAN, SHUANGPING; HU, FANGWEI
To: ZTE CORPORATION
Reel/Frame 053538/0318 →
Priority Claims (1)
CN 201810171541.9 · Mar 1, 2018 · national
Continuity (1)
Related Publication 20210099382A1 · Apr 1, 2021