# US 2018/0324095 A9 · Packet Processing Method and Device

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

- Number: US 2018/0324095 A9
- Document ID: US20180324095A9
- Status: Published application
- Kind: A9
- Application number: 15/198,010
- Filed: 2016-06-30
- Published: 2018-11-08
- Earliest claimed: 2013-12-31
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiaozhong Wang; Jun Gong; Zhen Wang
- Web page: https://patentgrep.com/patent/US20180324095A9

## CPC

- H04L 45/54: {Organization of routing tables}
- H04L 69/22: Parsing or analysis of headers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments provide a packet processing method and a device. The method includes: acquiring a first packet, and determining an identifier of a first table. The method also includes determining description information of the first table, and performing first processing on the first packet according to the description information and the first table, where the first table is a convention table. The method also includes determining an identifier of a next table according to the description information of the first table, where the identifier of the next table corresponds to description information of the next table. The method also includes processing, according to the description information, and the next table, the first packet that has undergone the first processing.

## Claims

### Claim 1

A method, comprising:
acquiring a first packet;
determining an identifier of a first table;
determining description information, corresponding to the identifier of the first table, of the first table;
performing first processing on the first packet according to the description information of the first table and the first table, wherein the first table is a convention table;
determining an identifier of a next table according to the description information of the first table, wherein the identifier of the next table corresponds to description information of the next table; and
processing, according to the description information of the next table and the next table, the first packet that has undergone the first processing, wherein the next table is a convention table or a flow table.

### Claim 2 (depends on 1)

The method according to claim 1, wherein performing first processing on the first packet according to the description information of the first table and the first table comprises:
determining a first processing program and the first table according to the description information of the first table; and
performing the first processing on the first packet according to the first processing program and the first table.

### Claim 3 (depends on 2)

The method according to claim 2, wherein performing first processing on the first packet according to the first processing program and the first table comprises:
determining an entry of the first table; and
performing first processing on the first packet according to the entry of the first table using the first processing program.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the description information of the first table comprises: an identifier of the first processing program, a type of the first table, a base address of the first table, expression information of a search key of the first table, and a length of an action entry of the first table.

### Claim 5 (depends on 1)

The method according to claim 1, wherein determining the identifier of the next table according to the description information of the first table comprises:
determining the identifier of the next table according to an entry of the first table.

### Claim 6

A device comprising a processor and a non-transitory computer readable medium containing instructions that, when executed by the processor, cause the processor to:
acquire a first packet;
determine an identifier of a first table;
determine description information, corresponding to the identifier of the first table, of the first table;
perform first processing on the first packet according to the description information of the first table and the first table, wherein the first table is a convention table;
determine an identifier of a next table according to the description information of the first table, wherein the identifier of the next table corresponds to description information of the next table; and
process, according to the next table and the description information of the next table, the first packet that has undergone the first processing, wherein the next table is a convention table or a flow table.

### Claim 7 (depends on 6)

The device according to claim 6, wherein the processor is further configured to:
determine a first processing program and the first table according to the description information of the first table; and
perform the first processing on the first packet according to the first processing program and the first table.

### Claim 8 (depends on 7)

The device according to claim 7, wherein the processor is further configured to:
determine an entry of the first table, and perform the first processing on the first packet according to the entry of the first table using the first processing program.

### Claim 9 (depends on 8)

The device according to claim 8, wherein the processor is further configured to:
determine the identifier of the next table according to the entry of the first table.
