Dagger: Accelerating RPCs in Cloud Microservices Through Tightly-Coupled Reconfigurable NICs

Nikita Lazarev, Shaojie Xiang, Neil Adit, Zhiru Zhang, Christina DelimitrouarXiv 2021

Abstract

Modern cloud applications have shifted from monolithic designs to microservices, introducing a significant "communication tax" due to network stack overheads. Dagger is a reconfigurable hardware acceleration fabric that offloads the entire Remote Procedure Call (RPC) stack to an FPGA-based NIC. By bypassing the PCIe bus in favor of a tightly-coupled memory interconnect, Dagger achieves microsecond-scale latency and multi-million request-per-second throughput, effectively eliminating the bottlenecks inherent in modern microservice architectures.

Introduction

The shift to microservices—hundreds of small, loosely coupled functional units communicating over the network—has improved software agility but created a performance bottleneck. Traditional RPC frameworks (like gRPC or Thrift) running on Linux TCP/IP spend excessive CPU cycles on networking rather than application logic. Furthermore, the standard PCIe bus is ill-suited for the tiny, frequent messages typical of microservices, and CPU contention between networking and application logic leads to significant tail latency spikes that degrade user experience.

The Dagger Architecture

Dagger addresses these issues through a novel architecture based on three core principles: full hardware offload, memory interconnect coupling, and reconfigurability.

Dagger's system architecture, illustrating the tight coupling between the host CPU and FPGA-based NIC via a memory interconnect (CCI-P/UPI).

Unlike traditional SmartNICs that only offload transport layers, Dagger moves the entire RPC stack—including serialization, de-serialization, and connection management—into FPGA logic. Crucially, it replaces the PCIe bus with a NUMA-style memory interconnect (Intel UPI). This allows the NIC to act like another CPU socket, enabling it to "snoop" the processor's cache and transfer data directly from the Last Level Cache (LLC). This bypasses main memory entirely, reducing latency by hundreds of nanoseconds.

Characterizing Microservice Communication

The design of Dagger is informed by the "Small Message Problem." By evaluating real-world cloud workloads like DeathStarBench, the authors characterized the networking overheads of Social Network and Media Serving microservices.

Analysis of RPC message sizes in microservices, showing that the vast majority of traffic consists of small messages.

The analysis reveals that 75% of microservice RPCs are smaller than 512B. For such small messages, the overhead of initiating a transfer via traditional PCIe "doorbell" mechanisms is often greater than the transfer itself. Dagger's tight coupling and hardware-software co-design—including a custom IDL and compiler—seamlessly link C++ applications to the FPGA logic to handle these frequent, small transfers efficiently.

Performance Evaluation

The authors evaluated Dagger using several benchmarks representative of real-world cloud workloads, including Key-Value Stores (Memcached, MICA) and a complex 8-tier Flight Registration Service.

  • Throughput: Dagger achieves 12.4 Million requests per second (Mrps) on a single core, outperforming software-only (eRPC) and RDMA-based (FaSST) solutions by 1.3x to 3.8x.
  • Latency: The system maintains a median round-trip time (RTT) of just 2.1 μs. For Memcached, latency was reduced by 11.4x compared to the standard Linux kernel stack.
  • Scalability: Performance scales linearly, reaching 84 Mrps using 8 threads across 4 CPU cores.

Conclusion and Future Work

Dagger effectively eliminates the communication tax in microservice architectures by moving the RPC stack to reconfigurable hardware. While the current implementation is optimized for messages within a single cache line (64B) and uses a simplified UDP-based transport, future work will focus on hardware-based reassembly for larger MTUs and more robust congestion control. As industry standards like CXL (Compute Express Link) emerge, the tight coupling demonstrated by Dagger is poised to become a standard feature in future commodity servers.

Summary updated

BibTeX
@misc{lazarev2021dagger,
  author = {Nikita Lazarev and Shaojie Xiang and Neil Adit and Zhiru Zhang and Christina Delimitrou},
  title = {{Dagger: Accelerating RPCs in Cloud Microservices Through Tightly-Coupled Reconfigurable NICs}},
  year = {2021},
  eprint = {2106.01482},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2106.01482},
}
Figure