Multi-stage multi-core processing of network packets
First Claim
1. A method comprising:
- receiving a plurality of network packets at a network element;
categorizing the network packets into a plurality of work units by a packet order work (POW) unit in the network element, each work unit representing a packet of different transport control protocol (TCP) flows to be processed in multiple processing stages in the network element, wherein each of the plurality of work units is identified by an identifier that uniquely identifies a flow in which the associated packet belongs and a processing stage that the associated packet is to be processed;
determining a group value for each of the plurality of work units, wherein the group value identifies one of a plurality of core logic in the network element for a specific processing event corresponding to a particular one of the multiple processing stages and allows the POW unit or a multi-core scheduling (MCS) unit in the network element to schedule processing of each of the work units to one of the plurality of core logic based on the specific processing event identified by the group value;
scheduling processing at the MCS unit of each of the plurality of work units based on a stage scheduling model and a flow scheduling model, wherein the stage scheduling model divides the work units into different processing stages and wherein the flow scheduling model divides the work units into different TCP flows; and
dispatching each of the work units to the one of the plurality of core logic of the network element for processing, such that work units of the network packets of different TCP flows are processed concurrently by multiple core logic and work units of the network packets of identical TCP flows in different processing stages are processed concurrently by multiple core logic, in order to determine whether the packets should be transmitted to one or more application servers of a datacenter.
3 Assignments
0 Petitions
Accused Products
Abstract
Techniques for multi-stage multi-core processing of network packets are described herein. In one embodiment, work units are received within a network element, each work unit representing a packet of different flows to be processed in multiple processing stages. Each work unit is identified by a work unit identifier that uniquely identifies a flow in which the associated packet belongs and a processing stage that the associated packet is to be processed. The work units are then dispatched to multiple core logic, such that packets of different flows can be processed concurrently by multiple core logic and packets of an identical flow in different processing stages can be processed concurrently by multiple core logic, in order to determine whether the packets should be transmitted to one or more application servers of a datacenter. Other methods and apparatuses are also described.
-
Citations
26 Claims
-
1. A method comprising:
-
receiving a plurality of network packets at a network element; categorizing the network packets into a plurality of work units by a packet order work (POW) unit in the network element, each work unit representing a packet of different transport control protocol (TCP) flows to be processed in multiple processing stages in the network element, wherein each of the plurality of work units is identified by an identifier that uniquely identifies a flow in which the associated packet belongs and a processing stage that the associated packet is to be processed; determining a group value for each of the plurality of work units, wherein the group value identifies one of a plurality of core logic in the network element for a specific processing event corresponding to a particular one of the multiple processing stages and allows the POW unit or a multi-core scheduling (MCS) unit in the network element to schedule processing of each of the work units to one of the plurality of core logic based on the specific processing event identified by the group value; scheduling processing at the MCS unit of each of the plurality of work units based on a stage scheduling model and a flow scheduling model, wherein the stage scheduling model divides the work units into different processing stages and wherein the flow scheduling model divides the work units into different TCP flows; and dispatching each of the work units to the one of the plurality of core logic of the network element for processing, such that work units of the network packets of different TCP flows are processed concurrently by multiple core logic and work units of the network packets of identical TCP flows in different processing stages are processed concurrently by multiple core logic, in order to determine whether the packets should be transmitted to one or more application servers of a datacenter. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A non-transitory machine-readable storage medium having instructions stored therein which when executed by a processor, cause the processor to:
-
receive a plurality of network packets at a network element; categorize the network packets into a plurality of work units in the network element, each work unit representing a packet of different transport control protocol (TCP) flows to be processed in multiple processing stages in the network element, wherein each of the plurality of work units is identified by an identifier that uniquely identifies a flow in which the associated packet belongs and a processing stage that the associated packet is to be processed; determine a group value for each of the plurality of work units, wherein the group value identifies one of a plurality of core logic in the network element for a specific processing event corresponding to a particular one of the multiple processing stages and allows a packet order work (POW) unit or a multi-core scheduling (MCS) unit in the network element to schedule processing of each of the work units to the plurality of core logic based on the specific processing event identified by the group value; schedule processing of each of the plurality of work units based on a stage scheduling model and a flow scheduling model, wherein the stage scheduling model divides the work units into different processing stages and wherein the flow scheduling model divides the work units into different TCP flows; and dispatch each of the work units to one of the plurality of core logic of the network element for processing, such that work units of the network packets of different TCP flows are processed concurrently by multiple core logic and work units of the network packets of identical TCP flows with different processing stages are processed concurrently by multiple core logic, in order to determine whether the packets should be transmitted to one or more application servers of a datacenter. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20)
-
-
21. A network device, comprising:
-
a plurality of core logic; a packet order work (POW) unit that is configured to categorize network packets into a plurality of work units, each work unit representing a packet of different transport control protocol (TCP) flows to be processed in multiple processing stages in the network element, wherein each of the plurality of work units is identified by an identifier that uniquely identifies a flow in which the associated packet belongs and a processing stage that the associated packet is to be processed; a work unit queue configured to receive and store the plurality of work units; and a multi-core scheduling (MCS) unit coupled to the work unit queue that is configured to; schedule processing of each of the plurality of work units based on a stage scheduling model and a flow scheduling model, wherein the stage scheduling model divides the work units into different processing stages and wherein the flow scheduling model divides the work units into different TCP flows, and dispatch each of the work units to one of the plurality of core logic based on a specific processing event identified by a group value of each of the work units that identifies one of a plurality of core logic for the specific processing event corresponding to a particular one of the multiple processing stages for the work units, such that work units of the network packets of different TCP flows are processed concurrently by multiple core logic and work units of the network packets of identical TCP flows with different processing stages are processed concurrently by multiple core logic, in order to determine whether the packets should be transmitted to one or more application servers of a datacenter. - View Dependent Claims (22, 23, 24, 25, 26)
-
Specification