METHOD AND APPARATUS FOR FORWARDING PACKET BASED ON INTEGRATED FLOW TABLE
First Claim
1. A method for forwarding a packet based on an integrated flow table, wherein the integrated flow table comprises a plurality of flow entries, each of the plurality of flow entries comprises a mapping relationship between a match item and an operation set, the match item comprises a plurality of packet header fields, the operation set comprises a forwarding operation, and the method comprises:
- obtaining a first packet;
extracting a plurality of first packet header fields from a packet header of the first packet, wherein the plurality of first packet header fields have same categories as a plurality of packet header fields comprised in one of the plurality of flow entries;
searching the integrated flow table for a target flow entry matching the plurality of first packet header fields, to determine an operation set corresponding to the first packet, wherein the operation set corresponding to the first packet further comprises other operations performed on the first packet between the operation of determining the operation set corresponding to the first packet and the forwarding operation;
performing the other operations in the operation set on the first packet, to obtain a second packet corresponding to the first packet; and
forwarding the second packet.
1 Assignment
0 Petitions
Accused Products
Abstract
This application discloses a method and an apparatus for forwarding a packet based on an integrated flow table. The integrated flow table includes a plurality of flow entries, each of the plurality of flow entries includes a mapping relationship between a match item and an operation set, the match item includes a plurality of packet header fields, and the method includes: obtaining a first packet; extracting a plurality of first packet header fields from a packet header of the first packet; searching the integrated flow table for a target flow entry matching the plurality of first packet header fields, to determine an operation set corresponding to the first packet; and performing the other operations in the operation set on the first packet, to obtain a second packet corresponding to the first packet, and forwarding the second packet.
-
Citations
18 Claims
-
1. A method for forwarding a packet based on an integrated flow table, wherein the integrated flow table comprises a plurality of flow entries, each of the plurality of flow entries comprises a mapping relationship between a match item and an operation set, the match item comprises a plurality of packet header fields, the operation set comprises a forwarding operation, and the method comprises:
-
obtaining a first packet; extracting a plurality of first packet header fields from a packet header of the first packet, wherein the plurality of first packet header fields have same categories as a plurality of packet header fields comprised in one of the plurality of flow entries; searching the integrated flow table for a target flow entry matching the plurality of first packet header fields, to determine an operation set corresponding to the first packet, wherein the operation set corresponding to the first packet further comprises other operations performed on the first packet between the operation of determining the operation set corresponding to the first packet and the forwarding operation; performing the other operations in the operation set on the first packet, to obtain a second packet corresponding to the first packet; and forwarding the second packet. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for forwarding a packet based on an integrated flow table, wherein the apparatus comprises:
-
a processor, and a memory coupled to the processor and configured to store a plurality of instructions that, when executed by the processor, causes the processor to; obtain a first packet; extract a plurality of first packet header fields from a packet header of the first packet, wherein an integrated flow table comprises a plurality of flow entries, each of the plurality of flow entries comprises a mapping relationship between a match item and an operation set, the match item comprises a plurality of packet header fields, the operation set comprises a forwarding operation, and wherein the plurality of first packet header fields have same categories as a plurality of packet header fields comprised in one of the plurality of flow entries; search the integrated flow table for a target flow entry matching the plurality of first packet header fields, to determine an operation set corresponding to the first packet, wherein the operation set corresponding to the first packet further comprises other operations performed on the first packet between the operation of determining the operation set corresponding to the first packet and the forwarding operation; perform the other operations in the operation set on the first packet, to obtain a second packet corresponding to the first packet; and forward the second packet. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A computer program product comprising computer-executable instructions stored on a non-transitory computer-readable medium that, when executed by a processor, cause an apparatus to:
-
obtain a first packet; extract a plurality of first packet header fields from a packet header of the first packet, wherein an integrated flow table comprises a plurality of flow entries, each of the plurality of flow entries comprises a mapping relationship between a match item and an operation set, the match item comprises a plurality of packet header fields, the operation set comprises a forwarding operation, and wherein the plurality of first packet header fields have same categories as a plurality of packet header fields comprised in one of the plurality of flow entries; search the integrated flow table for a target flow entry matching the plurality of first packet header fields, to determine an operation set corresponding to the first packet, wherein the operation set corresponding to the first packet further comprises other operations performed on the first packet between the operation of determining the operation set corresponding to the first packet and the forwarding operation; perform the other operations in the operation set on the first packet, to obtain a second packet corresponding to the first packet; and forwarding the second packet. - View Dependent Claims (14, 15, 16, 17, 18)
-
Specification