# US 2017/0318082 A1 · Method and system for providing efficient receive network traffic distribution that balances the load in multi-core processor systems

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

- Number: US 2017/0318082 A1
- Document ID: US20170318082A1
- Status: Published application
- Kind: A1
- Application number: 15/237,650
- Filed: 2016-08-16
- Published: 2017-11-02
- Earliest claimed: 2016-04-29
- Assignees: QUALCOMM Incorporated
- Applicants: Qualcomm Incorporated
- Inventors: BHUPINDER THAKUR; VENKATESHWARLU VANGALA; DEEPAK KUMAR KALLEPALLI
- Web page: https://patentgrep.com/patent/US20170318082A1

## CPC

- H04L 67/1001: for accessing one among a plurality of replicated servers
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 9/5033: {considering data affinity}
- G06F 9/5044: {considering hardware capabilities}
- G06F 9/505: {considering the load}
- H04L 45/16: Multipoint routing
- H04L 47/196: {Integration of transport layer protocols, e.g. TCP and UDP}
- H04L 47/2441: relying on flow classification, e.g. using integrated services [IntServ]
- H04L 69/30: Definitions, standards or architectural aspects of layered protocol stacks
- H04W 88/02: Terminal devices
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

Systems and methods for improved received network traffic distribution in a multi-core computing device are presented. A hardware classification engine of the computing device receives a data packet comprising a portion of a received network traffic data flow. Packet information from the data packet is identified. Based in part on the packet information, the classification engine determines whether a core of a multi-core processor subsystem is assigned to the data flow of which the packet is a part. In embodiments, this determination may be made based on one or more criteria, such as a work load of the core(s) of the processor subsystem, a priority level of the data flow, etc. Responsive to the determination that a core is not assigned to the data flow, a core of the multi-core processor is assigned to the data flow and the data packet is sent to the first core for processing.

## Claims

### Claim 1

A method for improved received network traffic distribution in a multi-core computing device, the method comprising:
receiving at a hardware classification engine of the computing device a data packet, the data packet comprising a portion of a received network traffic data flow;
identifying packet information from the data packet;
determining with the classification engine, based in part on the packet information, whether a core of a multi-core processor subsystem is assigned to the data flow of which the packet is a part;
responsive to the determination that a core is not assigned to the data flow, assigning a first core of the multi-core processor to the data flow; and
sending the data packet to the first core for processing.

### Claim 2 (depends on 1)

The method of claim 1, wherein determining with the classification engine whether a core of the multi-core processor subsystem is assigned to the data flow further comprises performing a look up in a data flow entry table.

### Claim 3 (depends on 2)

The method of claim 2, wherein the data flow entry table is contained within a memory subsystem, the memory subsystem in communication with the classification engine and the processor subsystem.

### Claim 4 (depends on 1)

The method of claim 1, wherein assigning the first core of the multi-core processor to the data flow responsive to the determination that a core is not assigned to the data flow further comprises:
determining to process the data flow with the first core based on one of a hash of the packet information or a fixed mapping of the data flow to the first core.

### Claim 5 (depends on 1)

The method of claim 1, wherein assigning the first core of the multi-core processor to the data flow further comprises:
determining to process the data flow with the first core based on a predetermined criteria.

### Claim 6 (depends on 5)

The method of claim 5, wherein the hardware classification engine performs the determination to process the data flow with the first core based on the predetermined criteria.

### Claim 7 (depends on 5)

The method of claim 5, wherein:
the criteria comprises one of a work load level of one or more of the cores of the processor subsystem, a priority level of the data flow, or a type of data in the data flow, and
a data flow assignment module of the processor subsystem performs the determination to process the data flow with the first core based on the predetermined criteria.

### Claim 8 (depends on 5)

The method of claim 5, wherein assigning the first core of the multi-core processor to the data flow further comprises:
creating an entry for the data flow in the data flow entry table mapping an identifier for the first core to the data flow.

### Claim 9 (depends on 1)

The method of claim 1, wherein sending the data packet to the first core for processing comprises:
placing the data packet in a queue of the memory subsystem, the queue associated with the first core.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
processing the data packet at the first core with a receive thread (Rx thread) of the first core.

### Claim 11 (depends on 1)

The method of claim 1, wherein the computing device comprises a network gateway.

### Claim 12

A computer system for providing efficient received network traffic distribution in a computing device, the system comprising:
a memory subsystem;
a processor subsystem in communication with the memory subsystem, the processor subsystem comprising a plurality of cores; and
a classification subsystem in communication with the memory subsystem and the processor subsystem, the classification subsystem including a hardware classification engine configured to:
receive a data packet comprising a portion of a received network traffic data flow;
identify packet information from the data packet;
determine, based in part on the packet information, whether any of the plurality of cores of the processor subsystem is assigned to the received data flow;
responsive to the determination that none of the plurality of cores is assigned to the data flow, assign a first core of the plurality of cores to the data flow; and
send the data packet to the first core.

### Claim 13 (depends on 12)

The system of claim 12, wherein the hardware classification engine is further configured to determine whether any of the plurality of cores of the processor subsystem is assigned to the received data flow by looking up in a data flow entry table.

### Claim 14 (depends on 13)

The system of claim 13, wherein the data flow entry table is contained within the memory subsystem.

### Claim 15 (depends on 12)

The system of claim 12, wherein the hardware classification engine is configured to
assign the first core of the plurality of cores to the data flow, responsive to the determination that none of the plurality of cores is assigned to the data flow, by determining to process the data flow with the first core based one of a hash of the packet information or
a fixed mapping of the data flow to the first core.

### Claim 16 (depends on 12)

The system of claim 12, wherein the hardware classification engine is configured to
assign the first core of the plurality of cores to the data flow by determining to process the data flow with the first core based on a predetermined criteria.

### Claim 17 (depends on 16)

The system of claim 16, wherein the criteria comprises one of a work load level of one or more of the cores of the processor subsystem, a priority level of the data flow, or a type of data in the data flow.

### Claim 18 (depends on 16)

The system of claim 16, wherein the processor subsystem further comprises a data flow assignment module configured to:
assign a second core of the plurality of cores to the data flow based on the predetermined criteria, where the predetermined criteria includes at least a work load level of one or more of the plurality of cores.

### Claim 19 (depends on 16)

The system of claim 16, wherein assigning the first core of the multi-core processor to the data flow further comprises:
creating an entry for the data flow in the data flow entry table mapping an identifier for the first core to the data flow.

### Claim 20 (depends on 12)

The system of claim 12, wherein:
the memory subsystem further comprises a plurality of queues, each of the plurality of queues in communication with a different one of the plurality of cores, and
the hardware classification engine is configured to send the data packet to the first core by placing the data packet in a first queue in communication with the first core.

### Claim 21 (depends on 20)

The system of claim 20, wherein the first core is configured to:
process the data packet with a receive thread (Rx thread) of the first core.

### Claim 22 (depends on 12)

The system of claim 12, wherein the computing device comprises a network gateway.

### Claim 23

A computer program product comprising a non-transitory computer usable medium having a computer readable program code embodied therein, said computer readable program code adapted to be executed to implement a method for improved received network traffic distribution in a multi-core computing device, the method comprising:
receiving at a hardware classification engine of the computing device a data packet, the data packet comprising a portion of a received network traffic data flow;
identifying packet information from the data packet;
determining with the classification engine, based in part on the packet information, whether a core of a multi-core processor subsystem is assigned to the data flow of which the packet is a part;
responsive to the determination that a core is not assigned to the data flow, assigning a first core of the multi-core processor to the data flow; and
sending the data packet to the first core for processing.

### Claim 24 (depends on 23)

The computer program product of claim 23, wherein determining with the classification engine whether a core of the multi-core processor subsystem is assigned to the data flow further comprises performing a look up in a data flow entry table.

### Claim 25 (depends on 24)

The computer program product of claim 24, wherein the data flow entry table is contained within a memory subsystem, the memory subsystem in communication with the classification engine and the processor subsystem.

### Claim 26 (depends on 23)

The computer program product of claim 23, wherein assigning the first core of the multi-core processor to the data flow responsive to the determination that a core is not assigned to the data flow further comprises:
determining to process the data flow with the first core based on one of a hash of the packet information or a fixed mapping of the data flow to the first core.

### Claim 27

A computer system for providing efficient received network traffic distribution in a computing device, the system comprising:
means for receiving at a hardware classification engine of the computing device a data packet, the data packet comprising a portion of a received network traffic data flow;
means for identifying packet information from the data packet;
means for determining with the classification engine, based in part on the packet information, whether a core of a multi-core processor subsystem is assigned to the data flow of which the packet is a part;
means responsive to the determination that a core is not assigned to the data flow for assigning a first core of the multi-core processor to the data flow; and
means for sending the data packet to the first core for processing.

### Claim 28 (depends on 27)

The system of claim 27, wherein the means for determining with the classification engine whether a core of the multi-core processor subsystem is assigned to the data flow further comprises means for performing a look up in a data flow entry table.

### Claim 29 (depends on 28)

The system of claim 28, wherein the data flow entry table is contained within a memory subsystem, the memory subsystem in communication with the classification engine and the processor subsystem.

### Claim 30 (depends on 27)

The system of claim 27, wherein the means for assigning the first core of the multi-core processor to the data flow further comprises:
means for determining to process the data flow with the first core based on a hash of the packet information.
