Queue-Mem: Energy-Efficient Hardware Storage for Advanced Network Function Acceleration
Mariano Scazzariello (RISE Research Institutes of Sweden), Tommaso Caiazzi (Roma Tre University), Hamid Ghasemirahni (KTH Royal Institute of Technology), Dejan Kostić (KTH Royal Institute of Technology), Marco Chiesa (KTH Royal Institute of Technology)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Virtualization Revisited
Overview
Modern data centers deploy numerous network functions—such as firewalls, network address translators (NATs), and load balancers—across their fabric to manage traffic, secure infrastructure, and distribute workloads. Achieving line-rate processing at terabit-per-second scales ideally requires running these network functions directly on the data plane of programmable switches. However, modern programmable switch Application-Specific Integrated Circuits (ASICs) lack the expansive memory required to store complex state or the specialized logic needed to execute advanced stateful network functions. Consequently, operators typically offload processing to dedicated CPU-based servers connected directly to the switch, creating a massive energy footprint. This talk presents Queue-Mem (Q-Mem or QMan), an energy-efficient hardware storage system designed to accelerate network functions at terabit-per-second speeds without requiring switch hardware modifications or power-hungry auxiliary servers.

Key moments
- 0:00 Introduction and motivation for energy-efficient network functions
- 2:00 Packet splitting approaches and their energy inefficiencies
- 4:00 Core idea: Exploiting the switch shared packet buffer
- 6:00 Overview of Q-Man and queue control alternatives
- 8:00 Addressing challenges with batch-based queue control
- 12:00 Testbed evaluation setup and dynamic traffic patterns
- 13:30 Evaluating advanced network function chains and real-world workloads
- 14:40 Conclusion and call for switch manufacturer API exposure
Queue-Mem: Energy-Efficient Hardware Storage for Advanced Network Function Acceleration
Speakers: Mariano Scazzariello (RISE Research Institutes of Sweden); Tommaso Caiazzi (Roma Tre University); Hamid Ghasemirahni (KTH Royal Institute of Technology); Dejan Kostić (KTH Royal Institute of Technology); Marco Chiesa (KTH Royal Institute of Technology)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=aRcPNXPDkIE
Overview
Modern data centers deploy numerous network functions—such as firewalls, network address translators (NATs), and load balancers—across their fabric to manage traffic, secure infrastructure, and distribute workloads. Achieving line-rate processing at terabit-per-second scales ideally requires running these network functions directly on the data plane of programmable switches. However, modern programmable switch Application-Specific Integrated Circuits (ASICs) lack the expansive memory required to store complex state or the specialized logic needed to execute advanced stateful network functions. Consequently, operators typically offload processing to dedicated CPU-based servers connected directly to the switch, creating a massive energy footprint. This talk presents Queue-Mem (Q-Mem or QMan), an energy-efficient hardware storage system designed to accelerate network functions at terabit-per-second speeds without requiring switch hardware modifications or power-hungry auxiliary servers.
The core innovation of Q-Mem lies in repurposing the internal shared packet buffer of standard programmable switches to temporarily park packet payloads while lightweight headers are dispatched to external network function servers. By exploiting existing traffic manager port queues and controlling them via dynamic pause-and-resume mechanisms, Q-Mem bridges the performance gap between ideal ASIC-only data plane execution and practical, CPU-offloaded network function deployments. In doing so, Q-Mem drastically cuts down the number of required external servers and slashes energy consumption, requiring roughly 500 watts to process a terabit per second of traffic—a fraction of the power consumed by existing state-of-the-art architectures.
Beyond its immediate systems contributions, this work poses a provocative challenge to switch manufacturers: exposing native Application Programming Interfaces (APIs) for programmatic access to internal forwarding buffers. Given the profound energy and throughput gains demonstrated by Q-Mem, hardware vendors are encouraged to rethink how packet buffers are exposed to network operating systems and programmable data planes.
Background
▶ Watch: Introduction and motivation for energy-efficient network functions (0:00)
To efficiently manage hyper-scale cloud infrastructure, data centers rely on composite chains of network functions. Scaling these deployments to handle terabit-per-second throughput rates presents a fundamental systems challenge. Processing full-sized packets entirely inside a programmable switch ASIC yields the optimal watt-per-packet performance, but advanced stateful network functions—such as sequence-tracking firewalls, deep packet inspection, and encrypted load balancers—exceed the memory and computational constraints of current switch silicon.
To circumvent ASIC limitations, current architectures employ hybrid deployments where the switch forwards packets to external CPU-based servers. However, the throughput between the switch and the network function server is strictly capped by Network Interface Card (NIC) bandwidth. To handle terabit-per-second loads, operators must deploy sprawling clusters of dedicated network function servers. This approach imposes a severe energy penalty, consuming upwards of 60 kilowatts for a 1 Tbps workload.
Recent research has advocated for packet splitting to alleviate this bottleneck. By splitting incoming packets into headers (roughly 60 bytes) and payloads, systems send only the lightweight headers to the network function server while parking the payloads elsewhere in the network during processing. This strategy drastically improves CPU cache hit ratios and relieves inter-device bandwidth pressure.
Nevertheless, existing packet-splitting systems—which temporarily park payloads in NIC memory, shared DRAM servers, or ASIC RAM—remain power inefficient. Storing payloads in external or auxiliary memory locations requires substantial electrical power, demanding up to 42 times more energy than an idealized all-ASIC data plane. Q-Mem was developed to resolve this tension, aiming to deliver a system that is power-efficient, entirely software-deployable on existing hardware, and fully capable of supporting advanced stateful network functions.
Key Findings
▶ Watch: Core idea: Exploiting the switch shared packet buffer (4:00)
- Energy Efficiency: Q-Mem closes the gap with the theoretical ideal ASIC solution, requiring only approximately 500 watts of power to process 1 terabit per second of full-sized packets.
- Minimal Buffer Footprint: Despite handling terabit-scale dynamic traffic patterns, Q-Mem maintains an exceptionally small buffer overhead, keeping total switch packet buffer occupancy below 10 megabytes across all evaluated scenarios.
- Terabit-Scale Stateful Processing: A single programmable switch paired with a single network function server running the FASTER network function framework can successfully process 100 million packets per second of headers—translating to 1 terabit per second of total traffic across complex network function chains.
- Robust Real-World Performance: Under realistic workloads generated via T-Rex and iPerf (including high-rate HTTP requests, TCP-based all-reduce primitives, and 4-kilobyte MTU data center traffic), Q-Mem sustains stable TCP throughput with a maximum retransmission rate of roughly 1%.
- Zero Hardware Modification: Q-Mem operates entirely on off-the-shelf programmable switch hardware, requiring no physical alterations to ASIC architecture or end-host NIC configurations.
Technical Deep Dive
▶ Watch: Addressing challenges with batch-based queue control (8:00)
The architectural foundation of Q-Mem rests upon the internal mechanics of modern programmable switches. A typical switch features an ingress pipeline, an egress pipeline, and a central traffic manager. The traffic manager governs a shared packet buffer that holds packet data while a hardware scheduler processes port queues. Ordinarily, queue entries consist of lightweight pointers referencing actual packet data residing in the shared buffer. When the scheduler dequeues a packet, the corresponding buffer space is released.
While switches contain substantial shared buffers (typically 60 megabytes or more), they lack native APIs for programmatic buffer manipulation. Q-Mem solves this by implicitly controlling the shared buffer via the switch's native port queues.
Exploring Alternative Queue Control Strategies
The authors evaluated three distinct strategies for utilizing port queues to hold payloads:
- Recirculation: Looping payloads back into the switch until processed headers return. This approach fails to scale, as a single loopback port halves total switch throughput per input port, and recirculation risks severe packet reordering.
- Dummy Copy Congestion: Generating multiple duplicate payload copies to artificially congest the queue and delay payload release. While this preserves full switch bandwidth, it wastes precious buffer capacity on dummy packets and risks premature payload release (and subsequent packet drops) if copy counts are miscalculated.
- Dynamic Pause and Resume: Dynamically pausing and resuming port queues to hold and release payloads on demand. This maximizes switch bandwidth utilization, avoids buffer waste from dummy copies, and leverages standard priority flow control primitives natively supported by modern switches. Q-Mem adopts this third strategy.
Batch-Based Queue Control and Synchronization
Implementing dynamic pause-and-resume logic presents two primary hardware challenges: programmable switches only permit pausing and resuming entire queues without specifying exact packet counts, and pause/resume commands experience pipeline delays because they can only be activated once per packet at the very end of the ingress and egress pipelines.
To overcome these hurdles, Q-Mem introduces a batch-based queue control mechanism:
- Hash-Based Queue Selector: Available port queues are logically divided into slices. A hash-based selector maps incoming payloads to specific slices based on their original five-tuple.
- Header Tracker: Q-Mem tracks the arrival of processed headers returning from the network function server for each queue.
- Batch Granularity: Payloads are stored and released in discrete batches. When a batch's header count (tracked via custom metadata attached to returning headers in the egress pipeline) matches the expected batch size, Q-Mem issues a precise resume command to the target queue. Payloads and headers are subsequently recombined in strict FIFO sequence before forwarding to their final destination.
Experimental Setup & Results
▶ Watch: Testbed evaluation setup and dynamic traffic patterns (12:00)
The evaluation of Q-Mem was conducted using a rigorous hardware testbed and synthetic-to-realistic workload suites:
- Hardware Testbed: A high-performance server acting as a traffic generator connected to a Tofino 1 programmable switch. The Tofino 1 switch artificially multiplies offered load by multicasting each generated packet 14 times. These copies are forwarded to a Tofino 2 switch running Q-Mem, which connects via dual ports to an upstream server executing the FASTER network function framework.
- Dynamic Traffic Workloads: Using synthetic traces with sudden rate changes, Q-Mem processed high-rate data streams with zero packet loss. Buffer occupancy remained tightly bounded, never exceeding 10 megabytes. Average processing latency remained below 30 microseconds, aligning with typical data center network function execution windows.
- Stateful Network Function Chains: Researchers benchmarked two complex network function chains:
- A flow counter, stateful Layer-4 load balancer, and per-flow rate limiter.
- A stateful load balancer coupled with an AES encryption element.
Both configurations achieved 100 million packets per second of header processing, successfully sustaining 1 terabit per second of total traffic throughput.
- Real-World Workload Emulation:
- T-Rex Workloads: Evaluated under HTTP requests running at 80 Gbps and TCP-based all-reduce traffic at 75 Gbps.
- iPerf Workloads: Evaluated under 100 Gbps of TCP traffic utilizing 4-kilobyte MTUs to emulate standard data center Maximum Transmission Units.
Across all real-world benchmarks, Q-Mem introduced no throughput degradation, maintaining TCP retransmission rates at or below 1%.
Practical Implications
▶ Watch: Conclusion and call for switch manufacturer API exposure (14:40)
For infrastructure teams and cloud operators, Q-Mem offers a compelling path toward sustainable terabit-per-second network function virtualization. By eliminating the necessity for massive clusters of dedicated network function servers, Q-Mem directly addresses the escalating energy crisis in modern data centers. Network architects can deploy advanced stateful network functions—such as security firewalls and encryption pipelines—without incurring the exorbitant capital and operational expenditures associated with auxiliary server farms.
For model and systems builders, Q-Mem highlights the latent capability of commodity switching ASICs when paired with clever control-plane abstractions. However, practical deployers must account for limitations such as the reliance on switch-specific queue management behaviors and the need to handle edge cases like dropped headers at the network function server. Ultimately, the work serves as a foundational proof-of-concept urging switch ASIC manufacturers to bake native, programmatic buffer management APIs into future hardware generations.
Key Takeaways
- Energy Parity with ASICs: Q-Mem successfully closes the efficiency gap with ideal ASIC-only data planes, requiring only ~500W to process 1 Tbps of traffic.
- No Hardware Modifications: The system runs entirely on off-the-shelf programmable switches (such as Intel Tofino), avoiding costly custom silicon redesigns.
- Microsecond-Scale Latency: Average end-to-end processing latency remains under 30 microseconds while consuming less than 10 megabytes of switch buffer space.
- Terabit-Scale Stateful Support: Validated against complex network function chains—including L4 load balancing, rate limiting, and AES encryption—at 100 Mpps (1 Tbps equivalent).
- Stable TCP Performance: Real-world workload evaluations using T-Rex and iPerf demonstrate zero throughput drop and negligible TCP retransmission rates ($\le 1\%$).
- Call for Vendor APIs: The work challenges hardware manufacturers to expose programmatic APIs for internal switch packet buffers in future architectures.
About the Speaker(s)
Mariano Scazzariello presented this work on behalf of a collaborative research team spanning multiple European academic and research institutions. The research reflects a joint effort involving RISE Research Institutes of Sweden, Roma Tre University, and KTH Royal Institute of Technology, combining expertise in high-performance computer networking, programmable data planes, and energy-efficient systems design.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)