Skip to content
WebsiteHosting.com

concept Servers & hardware

NIC receive-side scaling and queue imbalance

RSS assigns whole flows to receive queues. Flows can differ in size, several can land on one queue, and queues can share a core. More queues therefore do not guarantee equal work per core.

Latest recorded source check · P0224

What it means

Flow hashing can leave one core handling most of the incoming traffic even when several receive queues are enabled. With receive-side scaling (RSS), a network interface card uses a flow-derived hash to look up a receive queue in an indirection table. Which CPU handles that queue is a separate mapping. Linux RSS documentation

Under the connection-affinity behavior described for Windows NDIS RSS, a stable mapping keeps packets of a connection on the selected processing CPU. Windows NDIS RSS documentation That affinity explains why adding a queue does not automatically divide one heavy flow between cores.

Try it

The simulation takes synthetic hashes as inputs; it does not compute a hardware Toeplitz hash. Its weights are abstract units, not measured bytes, packet rates or CPU cycles.

NIC receive-side scaling and queue imbalance

Map synthetic flow hashes through an indirection table to queues/cores; change one flow or mapping and expose the resulting load distribution.

Simulation

Synthetic inputs only. This is not a measurement of your hardware or service.

Computed under the stated assumptions

An indirection entry maps each supplied flow hash to one queue, then to a CPU. Equal numbers of flows need not carry equal traffic, and two queues can share one core.

NIC receive-side scaling and queue imbalance: synthetic scenario inputs

Scenario: Starting example

Each preset replaces all fields. Editing any field preserves the other values exactly, including invalid entries.

Flow count is not traffic balance

Queue 0, then queue 1 load
9 · 1 abstract units
Core 0, then core 1 load
9 · 1 abstract units
Hash → indirection entry → queue → core
FlowSupplied hashTable indexQueueCoreWeight
000008
140001
211111

Evaluated evidence

Synthetic flow hashes
0 · 4 · 1
Traffic weight of each flow
8 · 1 · 1
Four-entry indirection table
0 · 1 · 0 · 1
Queue 0 and queue 1 core mapping
0 · 1
Declared hash-index rule
hash modulo4

Synthetic hashes and abstract weights, not a Toeplitz implementation or measured packet rate. No real NIC tuning, TCP accept/SYN queue model or live host access.

About this model

Every input is local synthetic evidence. Numbers stay as raw text until this model validates them. The shown evaluated values come from the same result as the explanation.

Presets replace the entire scenario. Reset restores all starting fields, scenario selection and model state; it does not change the open or closed state of this help or article FAQ.

No external request, device command, stored-input history or measurement is performed.

  1. Start with Synthetic flow hashes 0 4 1 and Traffic weight of each flow 8 1 1. In this model, a flow’s table index is the remainder after dividing its supplied hash by four. Hashes 0 and 4 both select slot 0; hash 1 selects slot 1.
  2. Read the Four-entry indirection table 0 1 0 1, starting at slot 0. Slot 0 names Q0 and slot 1 names Q1, so the flows go to Q0, Q0 and Q1. Q0 gets 8 + 1 = 9 abstract units; Q1 gets 1. Each queue has two entries in the table, but the flows use only the first two slots.
  3. Read Queue 0 and queue 1 core mapping 0 1: Q0 goes to core 0 and Q1 to core 1. The core totals are therefore 9 and 1. Change only that mapping to 0 0 and the queue totals stay 9 and 1, but all 10 units now go to core 0.

For a contrast, Change the indirection table uses the default hashes, weights and core mapping but sets the table to 1 1 0 1. The flows still select slots 0, 0 and 1. Both used slots now name Q1, so core 1 gets all 10 units even though Q0 still has an entry in the table.

In Inspect the evidence boundary, the first hash is unknown. The model leaves the totals unknown rather than assuming the flow uses slot 0. A missing weight is different: the input is invalid because each flow needs a weight. Reset starts the default example over with all four original inputs and clears errors, history and any comparison.

In practice

Separate a question about placement from a question about load. To find where a flow goes, follow its hash to a table slot, then to a queue, then to a core. To compare work, look at the weights that arrive at each destination. For example, with the default table and core mapping, hashes 0 1 and weights 8 1 give each queue exactly one flow, yet core 0 receives eight abstract units and core 1 receives one.

Equal flow counts do not establish equal bytes or CPU cost. This example explains NIC receive-flow placement; it does not measure host utilization or model TCP SYN and accept queues. Treat RSS as a mapping of weighted flows, not a promise that packets or processing work will be evenly divided across cores.

Frequently asked questions

Editorial questions based on the listed sources and explicitly labeled local examples.

Why can queue loads be unequal?

Different flows can map to the same queue and carry very different traffic. In the sample, weights 8 and 1 land on Q0 while weight 1 lands on Q1; counting flows alone hides the 9-to-1 load split.

Does RSS split one flow across cores?

In this fixed-mapping example, one supplied flow hash selects one queue and then one mapped core. It does not split a single flow’s weight over every core or simulate dynamic remapping.

Are flow count and CPU cost equivalent?

No CPU cost is inferred from flow count. The lab uses explicit abstract weights, and even those are not measured processor cycles or packet rates.

Is the sample hash the NIC implementation?

No. The hash values are supplied, and the example uses a declared modulo-four indirection index. It demonstrates mapping, not a complete Toeplitz implementation or a NIC-specific guarantee.

Sources & model boundaries

Primary references used for this explanation. The interactive example is an educational model, not a live check.

  1. Scaling in the Linux networking stack

    RSS: Receive-Side Scaling; indirection. RSS maps flow-derived hashes through an indirection table to receive queues; CPU mapping is a separate step.

    Checked .

  2. Introduction to Receive Side Scaling

    Hashing, indirection table and connection distribution. RSS uses a flow hash and indirection table to select processing CPUs; connection affinity does not imply evenly balanced traffic.

    Checked .

Report an issue. Include the article URL and ID, not passwords or access keys.