# US 2023/0069502 A1 · Packet Processing Method, Related Device, and Computer Storage Medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0069502 A1
- Document ID: US20230069502A1
- Status: Published application
- Kind: A1
- Application number: 17/982,225
- Filed: 2022-11-07
- Published: 2023-03-02
- Earliest claimed: 2018-10-27
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Cheng Li; Guoyi Chen
- Web page: https://patentgrep.com/patent/US20230069502A1

## CPC

- H04L 69/22: Parsing or analysis of headers
- H04L 45/02: Topology update or discovery
- H04L 45/123: {Evaluation of link metrics (techniques for monitoring network metrics H04L43/08)}
- H04L 45/302: Route determination based on requested QoS
- H04L 45/34: {Source routing}
- H04L 45/42: Centralised routing
- H04L 45/50: using label swapping, e.g. multi-protocol label switch [MPLS]
- H04L 45/741: Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
- H04L 45/745: Address table lookup; Address filtering
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A system and network devices for packet processing, a network device including a processor and instructions for receiving a first packet sent by a second network node, the first packet including a format of a segment identifier of the second network node describing a length and a location of each field in the segment identifier, obtaining the format based on the first packet, the segment identifier having a first field, and including a determined value of the first field in the segment identifier in a second packet sent to the second network node, the value of the first field in the segment identifier being determined based on a segment routing policy and the format, and the determined value of the first field indicating to the second network node to process the second packet.

## Claims

### Claim 1

A network device, comprising:
at least one processor;
one or more memories coupled to the at least one processor and storing programming instructions to act as a first network device in a network, wherein the programming instructions are executable by the at least one processor, and wherein the programming instructions include instructions to:
receive a first packet comprising a format of a segment identifier of a second network node in the network, wherein the format of the segment identifier of the second network node describes lengths of fields in a segment routing Internet Protocol version 6 (IPv6) (SRv6) segment identifier of the second network node;
obtain the format of the segment identifier of the second network device based on the first packet.

### Claim 2 (depends on 1)

The network device of claim 1, wherein the format of the segment identifier of the second network device is encapsulated as a type-length-value (TLV) field in the first packet.

### Claim 3 (depends on 1)

The network device of claim 1, wherein the format of the segment identifier of the second network device comprises a first sub field that describes a length of a locator field in the SRv6 segment identifier of the second network device, and wherein the format of the segment identifier further comprises a second sub field that describes a length of a function field in the SRv6 segment identifier of the second network device.

### Claim 4 (depends on 3)

The network device of claim 3, wherein the format of the segment identifier of the second network device further comprises a third sub field that describes a length of an argument field in the SRv6 segment identifier of the second network device.

### Claim 5 (depends on 1)

The network device of claim 1, wherein the format of the segment identifier of the second network device describes a length of a locator field in the SRv6 segment identifier of the second network device and further describes a length of a function field in the SRv6 segment identifier of the second network device.

### Claim 6 (depends on 5)

The network device of claim 5, wherein the format of the segment identifier of the second network device further describes a length of an argument field in the SRv6 segment identifier of the second network device.

### Claim 7 (depends on 1)

The network device of claim 1, wherein the programming instructions further include instructions to:
obtain the length of a locator field in the SRv6 segment identifier of the second network device and the length of a function field in the SRv6 segment identifier of the second network device based on the first packet.

### Claim 8 (depends on 1)

The network device of claim 1, wherein the programming instructions further include instructions to:
obtain, based on the first packet, a length of a locator field in the SRv6 segment identifier of the second network device, a length of a function field in the SRv6 segment identifier of the second network device and a length of an argument field in the SRv6 segment identifier of the second network device.

### Claim 9 (depends on 1)

The network device of claim 1, wherein the first packet is sent by the second network device.

### Claim 10 (depends on 1)

The network device of claim 1, wherein the lengths of the fields in the SRv6 segment identifier of the second network device are numbers of bits or a number of bytes.

### Claim 11

A packet processing method, comprising:
receiving, by a first network device in a network, a first packet comprising a format of a segment identifier of a second network device in the network, wherein the format of the segment identifier of the second network device describes lengths of fields in a segment routing Internet Protocol version 6 (IPv6) (SRv6) segment identifier of the second network device;
obtaining, by the first network device, based on the first packet, the format of the segment identifier of the second network device.

### Claim 12 (depends on 11)

The method of claim 11, wherein the format of the segment identifier of the second network device is encapsulated as a type-length-value (TLV) field in the first packet.

### Claim 13 (depends on 11)

The method of claim 11, wherein the format of the segment identifier of the second network device comprises a first sub field that describes a length of a locator field in the SRv6 segment identifier of the second network device, and wherein the format of the segment identifier further comprises a second sub field that describes a length of a function field in the SRv6 segment identifier of the second network device.

### Claim 14 (depends on 13)

The method of claim 13, wherein the format of the segment identifier of the second network device further comprises a third sub field that describes a length of an argument field in the SRv6 segment identifier of the second network device.

### Claim 15 (depends on 11)

The method of claim 11, wherein the lengths of the fields in the SRv6 segment identifier of the second network device are numbers of bits or a number of bytes.

### Claim 16

A network system, comprising:
a first network device; and
a second network device, configured to:
determine a format of a segment identifier of the second network device, wherein the format of the segment identifier of the second network device describes lengths of fields in a segment routing Internet Protocol version 6 (IPv6) (SRv6) segment identifier of the second network device; and
send a first packet, wherein the first packet comprises the format of the segment identifier of the second network device;
wherein the first device is configured to:
receive the first packet;
obtain the format of the segment identifier of the second network device based on the first packet.

### Claim 17 (depends on 11)

The network system of claim 11, wherein the format of the segment identifier of the second network device is encapsulated as a type-length-value (TLV) field in the first packet.

### Claim 18 (depends on 11)

The network system of claim 11, wherein the format of the segment identifier of the second network device comprises a first sub field that describes a length of a locator field in the SRv6 segment identifier of the second network device, and wherein the format of the segment identifier further comprises a second sub field that describes a length of a function field in the SRv6 segment identifier of the second network device.

### Claim 19 (depends on 13)

The network system of claim 13, wherein the format of the segment identifier of the second network device further comprises a third sub field that describes a length of an argument field in the SRv6 segment identifier of the second network device.

### Claim 20 (depends on 11)

The network system of claim 11, wherein the lengths of the fields in the SRv6 segment identifier of the second network device are numbers of bits or a number of bytes.
