# US 10,958,718 B2 · Optimizing receive side scaling key selection using flow data

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

- Number: US 10,958,718 B2
- Document ID: US10958718B2
- Status: Granted
- Kind: B2
- Application number: 16/589,434
- Filed: 2019-10-01
- Published: 2020-01-30
- Granted: 2021-03-23
- Earliest claimed: 2018-03-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Chih-Wen Chao; Wei-Hsiang Hsiung; Kuo-Chun Chen; Ming-Pin Hsueh; Sheng-Tung Hsu
- Web page: https://patentgrep.com/patent/US10958718B2

## CPC

- H04L 67/1023: based on a hash applied to IP addresses or costs
- H04L 67/1001: for accessing one among a plurality of replicated servers
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Optimizing receive side scaling (RSS) key selection is provided. Different weights are assigned to different fields of flow data corresponding to a network connection of a registered client device. A score is generated representing an amount of balanced processor loading for each RSS key corresponding to the registered client device based on the different fields of the flow data with assigned weights. A current RSS key on the registered client device is updated with an optimal RSS key based on the score corresponding to the optimal RSS key representing balanced loading of processors on the registered client device.

## Claims

### Claim 1

A method for optimizing receive side scaling (RSS) key selection, the computer-implemented method comprising:
assigning different weights to different fields of flow data corresponding to a network connection of a registered client device;
generating a score representing an amount of balanced processor loading for each RSS key corresponding to the registered client device based on the different fields of the flow data with assigned weights; and
updating a current RSS key on the registered client device with an optimal RSS key based on the score corresponding to the optimal RSS key representing balanced loading of processors on the registered client device.

### Claim 2 (depends on 1)

The method of claim 1 further comprising:
receiving from the registered client device, via a network, the flow data corresponding to the network connection of the registered client device.

### Claim 3 (depends on 1)

The method of claim 1 further comprising:
evaluating performance of the current RSS key corresponding to the registered client device in uniformly distributing network packets across the processors on the registered client device based on the flow data received from the registered client device; and
generating a packet distribution score corresponding to the current RSS key based on the evaluating.

### Claim 4 (depends on 1)

The method of claim 1 further comprising:
predicting performance of candidate RSS keys corresponding to the registered client device in uniformly distributing the network packets across the processors on the registered client device based on the flow data received from the registered client device; and
generating a packet distribution score corresponding to each candidate RSS key based on the predicting.

### Claim 5 (depends on 1)

The method of claim 1 further comprising:
selecting the optimal RSS key based on the optimal RSS key having a highest generated packet distribution score.

### Claim 6 (depends on 1)

The method of claim 1 further comprising:
determining whether the current RSS key is the optimal RSS key having a highest generated packet distribution score; and
responsive to determining that the current RSS key is not the optimal RSS key, updating the current RSS key with the optimal RSS key that is a candidate RSS key having the highest generated packet distribution score.

### Claim 7 (depends on 6)

The method of claim 6 further comprising:
responsive to determining that the current RSS key is the optimal RSS key having the highest generated packet distribution score, directing the registered client device to continue using the current RSS key to distribute incoming network packets across the processors on the registered client device.

### Claim 8 (depends on 1)

The method of claim 1 further comprising:
determining whether an amount of flow over the network connection of the registered client device is below a threshold level; and
responsive to determining that the amount of flow over the network connection of the registered client device is below the threshold level, preventing performance evaluation of RSS keys corresponding to the registered client device to save processing resources.

### Claim 9 (depends on 1)

The method of claim 1, wherein the different fields of the flow data include protocol, packets, bytes, application, and user ID.

### Claim 10 (depends on 1)

The method of claim 1, wherein the processors are multiple processors in a multicore processor of the registered client device.

### Claim 11

A computer system for optimizing receive side scaling (RSS) key selection, the computer system comprising:
a bus system;
a storage device connected to the bus system, wherein the storage device stores program instructions; and
a processor connected to the bus system, wherein the processor executes the program instructions to:
assign different weights to different fields of flow data corresponding to a network connection of a registered client device;
generate a score representing an amount of balanced processor loading for each RSS key corresponding to the registered client device based on the different fields of the flow data with assigned weights; and
update a current RSS key on the registered client device with an optimal RSS key based on the score corresponding to the optimal RSS key representing balanced loading of processors on the registered client device.

### Claim 12 (depends on 11)

The computer system of claim 11, wherein the processor further executes the program instructions to:
receive from the registered client device, via a network, the flow data corresponding to the network connection of the registered client device.

### Claim 13 (depends on 11)

The computer system of claim 11, wherein the processor further executes the program instructions to:
evaluate performance of the current RSS key corresponding to the registered client device in uniformly distributing network packets across the processors on the registered client device based on the flow data received from the registered client device; and
generate a packet distribution score corresponding to the current RSS key based on evaluating.

### Claim 14 (depends on 11)

The computer system of claim 11, wherein the processor further executes the program instructions to:
predict performance of candidate RSS keys corresponding to the registered client device in uniformly distributing the network packets across the processors on the registered client device based on the flow data received from the registered client device; and
generate a packet distribution score corresponding to each candidate RSS key based on predicting.

### Claim 15

A computer program product for optimizing receive side scaling (RSS) key selection, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to perform a method comprising:
assigning different weights to different fields of flow data corresponding to a network connection of a registered client device;
generating a score representing an amount of balanced processor loading for each RSS key corresponding to the registered client device based on the different fields of the flow data with assigned weights; and
updating a current RSS key on the registered client device with an optimal RSS key based on the score corresponding to the optimal RSS key representing balanced loading of processors on the registered client device.

### Claim 16 (depends on 15)

The computer program product of claim 15 further comprising:
receiving from the registered client device, via a network, the flow data corresponding to the network connection of the registered client device.

### Claim 17 (depends on 15)

The computer program product of claim 15 further comprising:
evaluating performance of the current RSS key corresponding to the registered client device in uniformly distributing network packets across the processors on the registered client device based on the flow data received from the registered client device; and
generating a packet distribution score corresponding to the current RSS key based on the evaluating.

### Claim 18 (depends on 15)

The computer program product of claim 15 further comprising:
predicting performance of candidate RSS keys corresponding to the registered client device in uniformly distributing the network packets across the processors on the registered client device based on the flow data received from the registered client device; and
generating a packet distribution score corresponding to each candidate RSS key based on the predicting.

### Claim 19 (depends on 15)

The computer program product of claim 15 further comprising:
selecting the optimal RSS key based on the optimal RSS key having a highest generated packet distribution score.

### Claim 20 (depends on 15)

The computer program product of claim 15 further comprising:
determining whether the current RSS key is the optimal RSS key having a highest generated packet distribution score; and
responsive to determining that the current RSS key is not the optimal RSS key, updating the current RSS key with the optimal RSS key that is a candidate RSS key having the highest generated packet distribution score.
