Stingray SGi Router under load: test results and the architecture behind them

November 23, 2026
Mobile Networks
5 out of 5
Stingray SGi Router under load: test results and the architecture behind them
In our previous article, we covered the operator challenges that Stingray SGi Router solves. Now let's see how it handles load.

As a reminder, Stingray SGi Router sits at the egress of the mobile core and steers subscriber traffic into the right VRF, that is, a separate routing table with its own exit. It chooses the path based on the subscriber’s IP pool, the destination network, and the server name. All subscriber traffic passes through this node. That is why it has to sustain the load, add no noticeable latency, and never get the server name wrong.

Below we explain what the tests showed, what makes the node fast, and how we verified the quality of the implementation. Every figure in this article comes from measurement.

How we ran the tests

The tests were run on a testbed of two virtual machines on a single server. The testbed has no physical NICs: packets travel between the machines through a software switch. Load came from a traffic generator; each measurement was repeated five times, and we took the median.

Table 1. Testbed parameters

Parameter Value
CPU AMD Ryzen Threadripper 3970X, 3.7 GHz with boost disabled
Link between machines virtio via a software switch
Load generator TRex 3.08
Methodology RFC 2544 §26.1 and RFC 8219

All figures below are per processing core. They show what processing costs, not how much a whole server can handle. The performance of 16-core and 64-core servers given in the product description was calculated from these measurements.

Load testing

First, we ran load tests to find out how much traffic and how many new connections a single processing core can handle and how much latency the node adds. For this, the TRex generator sent the node several load profiles: a stream of small frames, a mix of frame sizes, new TLS connections, and QUIC flows. We separately measured latency and checked whether the node slows down as its tables grow.

Packets per second

The heaviest load for a router is a stream of small packets, because work is done on every packet. With 64-byte frames, a single processing core forwards 5.570 million packets per second (2.85 Gbps) with zero loss.

Next, we checked the cost of moving connections to another VRF. For such connections, the node has to rewrite TCP sequence numbers. When 10% of flows are handled this way, throughput drops by 12% (in a separate series of 60-second runs, from 5.639 to 4.936 million packets per second). The per-frame processing cost hardly depends on frame size: going from 512-byte to 1518-byte frames raises it by only 3%. The node forwards an IMIX frame mix at 4.4 million packets per second with zero loss. We did not determine its exact limit.

IMIX is a mix of 64-, 512- and 1518-byte frames in a 7 : 4 : 1 ratio.

Packets per second on a single processing core

Figure 1. Packets per second on a single processing core

How it works

This speed comes from processing on dedicated cores that bypass the operating system. Packets go from the NIC straight into the memory of the processing application and are handled in batches on the cores pinned to it. No time is lost on interrupts, copying, or context switches into the OS kernel.

New connections

The next step was to check how many new connections a single core can accept. A new connection is where the node has the most work to do. It parses the client’s first message, finds the server name, and makes a path decision. The generator opened two kinds of connections: new TLS connections with a 1.8 KB ClientHello, which the node moved to another VRF, and new QUIC flows with names not on any list.

A single core accepted 103,514 new TLS connections per second and 205,100 new QUIC flows per second, which is 410,000 Initial packets. Parsing one first QUIC packet takes about 2 µs on a loaded core, and that time includes removing packet protection per RFC 9001 and extracting the name.

Packet path through the node

Figure 2. Packet path through the node

How it works

The node only needs to inspect packet contents at the start of a connection. The server name appears only in the first packets of a flow. The node parses them once and remembers the decision, then forwards the rest of the flow’s packets based on that entry without looking at their contents. Traffic whose rules don’t need a name goes through the routing tables with no flow entry at all.

Scaling with core count

Throughput grows almost linearly with the number of cores. On two cores it reaches 96% of perfectly linear scaling, and on four cores, 91%.

Table 2. Scaling with core count on new QUIC flows

Cores Result Share of linear scaling
1 205,100 per second (410,000 Initial packets) 100%
2 394,700 per second 96%
4 750,000 per second 91%
How it works

Throughput grows almost linearly because the cores don’t get in each other’s way. Each flow is pinned to a single processing core, so cores don’t share flow entries and never wait on one another.

QUIC flows per second by number of processing cores

Figure 3. New QUIC flows per second by number of processing cores

Latency

We measured the latency the node adds using 64-byte frames on a single core at two load levels: half of maximum and maximum. For each point, we ran 20 trials of 120 seconds each, with no loss.

At half of maximum load, half of all packets pass through the node in under 50 µs, and 99.9% of packets take no longer than 300 µs.

Table 3. Node latency at half and full maximum load

Load (64-byte frames, one core) Median 99.9% of packets
Half of maximum, 2.805 million packets per second 50 µs 300 µs or less
Maximum, 5.570 million packets per second 500 µs 800 µs or less

At maximum load, latency rises because packets queue up for the core. The values also include the path through the testbed’s own virtual machines.

Capacity and table size

The last load test checked whether the node slows down as its tables grow. We filled the flow table up to its configured limit of 48 million entries, and the main data plane memory region (13 GiB) was 83% full.

Then we increased the number of rules from 10 to 1,000, and the per-frame processing cost changed by 0.3%, with a run-to-run variation of 0.9%. Growing the name list from 10⁴ to 10⁶ changed it by 0.4%. In other words, the size of rule sets and lists has no effect on speed.

We estimated table memory usage with unit benchmarks.

Table 4. Memory usage of the node’s tables

What is stored Volume Memory
Server names 10⁶ names 32 MiB
Subscriber pools 65,535 pools 1.41 MiB
Rules 262,144 rules 11.6 MiB
Routes One route About 0.32 KB

According to a unit benchmark, looking up a name in a list of 10⁶ names takes 169–172 ns.

How it works

Lookup speed doesn’t depend on table size, because the pool, destination network, route, and name are each found in a few memory accesses. A thousand rules and a million names don’t slow processing down.

Implementation quality

After load testing, we checked whether the node interprets protocols correctly and never gets the server name wrong. Verification ran in three stages: against specifications, with functional tests, and on real connections.

Protocol compliance

Test scenarios were built from the specifications, not from the way the current code is written. Every scenario in the test plan references an RFC section or an architecture decision. That way, the tests catch errors in understanding the protocol, not just typos in the code.

Table 5. Test scenarios by protocol and RFC

Protocol What was tested Specification
TLS over TCP Support for versions 1.2 and 1.3, reassembly of a ClientHello split into several parts arriving in any order —
QUIC v1 and v2 Removing first-packet protection, reassembling ClientHello parts in any order, server retry (Retry), and version negotiation RFC 9001, RFC 9368, RFC 9369
ECH Handling of the encrypted server name RFC 9849
Plain HTTP Extracting the server name from the request RFC 9112
TCP Resilience to spoofed resets and timestamp rewriting without dropping packets RFC 9293, RFC 5961, RFC 7323

Functional testing

Next, we ran functional tests of the processing nodes and core functions, plus a regression suite built from real ClientHello samples.

Table 6. Functional test results

Test suite Result
Processing node tests (7 suites) 248 of 248
Rerun of the TCP, core function, and HTTP suites after the TCP reset fix 186 of 186
Unit tests 14 of 14
Regression on 62 real ClientHello samples 69 cases, 0 misses

All suites passed with no failures, meaning the node behaves exactly as the specification-based test plan requires. The TCP, core function, and HTTP suites were rerun separately after the fix to TCP reset handling, described below in the section on defects, to make sure the fix didn’t break any other logic. The regression on real ClientHello samples shows that parsing works not only on synthetic packets but also on the messages real clients send. The next stage of verification went further and checked the node’s decisions on live connections.

Testing on real connections

To compare the node’s decisions with the behavior of real clients, 14 clients and builds connected to real websites. The clients included Chrome and Firefox, curl with various TLS and QUIC libraries, and Go and Python libraries. The sites came from three sets: the top 10,000 domains of the Tranco ranking, 1,529 domains with HTTP/3, and 603 names with ECH. The name the client requested was checked against the node’s decision on the very same packets.

Table 7. Node decisions vs. names requested by clients

Metric Value
Recorded connections 196,144
Connections eligible for comparison (the client confirmed which name it requested) 159,633
Parser misses 0
Node misses in normal mode (TCP and QUIC) 0
Node misses in SYN-response mode (TCP) 0 of 66,701

For every client, protocol, and variant, the node correctly identified the name, the ECH type, and the failure reason in 100% of cases.

What we had to fix during testing

Testing uncovered several implementation bugs. All of them have been fixed. Here are a few examples of what we found and how we fixed it:

  • During the QUIC load test, a core would periodically stall while rescheduling timers. We redesigned the timer mechanism.
  • A TCP reset without a sequence number check could delete a connection entry. Now a reset is accepted only with the expected number, as RFC 5961 requires.
  • Testing on real connections revealed a failure to parse the first QUIC packet after a server retry (Retry) with a short connection ID. We fixed it per RFC 9000 §7.2.
  • A configuration with a table larger than the available memory used to stop the node. Now such a configuration is rejected at the validation stage.

Updates and failures

The final group of tests checked how the node handles updates and failures: changing lists and routes under load and running as a node pair.

Table 8. Node behavior during updates, failures, and overload

Event Result
Applying a new list of 10⁶ names In 6.91 s (median) and no later than 11.23 s, with no traffic loss
Loading 100,000 routes with 1 million packets per second of background traffic 1.81 s, with no background traffic loss in all 5 runs
Changing one route in a table of 100,000 routes, no load 0.133 ms (median)
Failure of the active node in a pair Longest interruption 310 ms (290–340 ms across runs)
Planned removal of a node from a pair Neighbors’ routes switched over in 372 and 498 ms, with no loss
Running at about 126% of the limit for one hour Not a single false BFD trigger
Standby node running for one hour 337 health checks, all successful
Data plane restart Configuration applied within 1.3–1.8 s

The time to apply a name list includes polling the source every 10 seconds. Node pair tests were run without load.

Summary

The tests showed that Stingray SGi Router performance scales almost linearly with the number of cores and does not depend on table size, and that the node identifies server names with zero misses on real connections. List and route updates go through with no traffic loss, and a node pair fails over in a fraction of a second.

To size a configuration for your network, submit a request.