Packet processing method and device
First Claim
1. A packet processing method, wherein the method comprises:
- 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 according to the first table, wherein the first table is a convention table comprising an entry, the entry comprises a first parameter provided for a first processing program, and the first processing program is configured to process the first packet according to the entry;
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 the first table comprises the identifier of the next table; and
processing, according to the description information of the next table, and according to the next table, the first packet that has undergone the first processing, wherein the next table is a convention table or a flow table, and the flow table comprises a second processing program and a second parameter provided for the second processing program.
1 Assignment
0 Petitions
Accused Products
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.
-
Citations
13 Claims
-
1. A packet processing method, wherein the method comprises:
-
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 according to the first table, wherein the first table is a convention table comprising an entry, the entry comprises a first parameter provided for a first processing program, and the first processing program is configured to process the first packet according to the entry; 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 the first table comprises the identifier of the next table; and processing, according to the description information of the next table, and according to the next table, the first packet that has undergone the first processing, wherein the next table is a convention table or a flow table, and the flow table comprises a second processing program and a second parameter provided for the second processing program. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A device comprising a processor and a non-transitory computer readable medium containing instructions that, when executed by the processor, causes 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 according to the first table, wherein the first table is a convention table comprising an entry, the entry comprises a first parameter provided for a first processing program, and the first processing program is configured to process the first packet according to the entry; 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 the first table includes the identifier 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, and the flow table includes a second processing program and a second parameter provided for the second processing program. - View Dependent Claims (7, 8, 9, 10, 11, 12)
-
-
13. A non-transitory computer readable storage medium storing instructions, wherein the instructions are configured to be executed by a 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 according to the first table, wherein the first table is a convention table comprising an entry, the entry comprises a first parameter provided for a first processing program, and the first processing program is configured to process the first packet according to the entry; 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 the first table includes the identifier 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, and the flow table includes a second processing program and a second parameter provided for the second processing program.
-
Specification