Zero-CPU Collection with Direct Telemetry Access

Jonatan Langlet, Ran Ben Basat, Sivaramakrishnan Ramanathan, Gabriele Oliaro, Michael Mitzenmacher, Minlan Yu, Gianni Antichi · DOI

Abstract

Modern high-speed network monitoring relies on programmable switches to generate fine-grained telemetry, such as In-band Network Telemetry (INT). However, the resulting data volume creates a massive processing bottleneck at centralized collectors. This paper introduces DART (Distributed Aggregation of Rich Telemetry), a system that leverages Remote Direct Memory Access (RDMA) and programmable switches to bypass the collector's CPU entirely. By writing telemetry data directly into collector RAM using a probabilistic, stateless mapping approach, DART eliminates the CPU overhead associated with data ingestion and storage.

1. Introduction

As data centers scale, the ability to monitor traffic and detect anomalies in real-time becomes critical. Programmable switches have enabled the generation of rich, per-packet telemetry, but this capability comes with a significant cost: the sheer volume of reports can reach millions per second per switch. Traditional collection architectures, even those utilizing high-performance kernel-bypass techniques like DPDK, struggle to keep pace. The primary constraint is not the network bandwidth, but the CPU cycles required to receive, process, and insert telemetry reports into queryable data structures.

2. The CPU Bottleneck

Analysis of state-of-the-art telemetry collectors reveals a stark disparity between data reception and data storage. Inserting telemetry into a queryable format (e.g., Apache Kafka or Confluo) requires approximately 114 times more CPU cycles than the simple act of receiving the packet. In a typical data center environment with 10,000 switches, a collector cluster would require thousands of dedicated CPU cores just to manage the influx of data. With the slowing of Moore’s Law, scaling CPU resources to meet these demands is increasingly unsustainable.

3. DART System Design

DART addresses this bottleneck by implementing Direct Telemetry Access. The system shifts the responsibility of data placement from the collector CPU to the switches themselves.

3.1 Stateless RDMA Mapping

DART-enabled switches use RDMA to write telemetry reports directly into the collector's memory. To avoid the need for complex, coordinated state management among thousands of uncoordinated switches, DART employs a stateless mapping strategy. Switches use global hash functions to map a telemetry key (such as a flow's 5-tuple) to a specific memory address on the collector.

3.2 Redundancy and Validation

Because hash collisions are inevitable in a stateless system, DART utilizes two primary mechanisms to ensure data integrity:

  • N-way Redundancy: Switches write the same telemetry report to $N$ different memory locations (typically $N=2$ or $N=4$). This increases the probability that at least one location will contain the correct, non-overwritten data.
  • Checksum Validation: To optimize memory usage, DART avoids storing the full telemetry key. Instead, switches append a 32-bit checksum to the data. During a query, the operator hashes the target key, checks the $N$ locations, and uses the checksum to filter out collisions or corrupted entries.

4. Evaluation

The authors evaluated DART using a simulated 5-hop fat-tree network topology tracking 100 million distinct network flows. The evaluation focused on the trade-offs between memory allocation, redundancy, and query success.

4.1 Query Success and Accuracy

In simulations, DART achieved a 99.9% query success probability using a redundancy factor of $N=4$ and 300 bytes of memory per flow. Even with lower redundancy ($N=2$) and 30GB of collector memory, the system maintained a 99.3% average queryability. The use of a 32-bit checksum proved highly effective; the probability of a "false positive" (a perfect collision of both hash address and checksum) was reduced to near zero.

4.2 Hardware Feasibility

A prototype of DART was implemented on a commodity Intel Tofino P4 switch. The implementation demonstrated that the system is hardware-efficient, requiring only approximately 20 bytes of on-switch SRAM per collector to store necessary metadata. This confirms that DART can be deployed on existing programmable hardware without exhausting limited switch resources.

5. Discussion and Limitations

DART represents a strategic trade-off: it consumes additional network bandwidth (due to redundant RDMA writes) and memory capacity to preserve precious CPU cycles. Given that network and memory speeds continue to outpace CPU scaling, this is a favorable exchange for modern data centers.

However, several areas for future work remain:

  • Packet Overhead: Standard RDMA requires a separate packet for each write. Future iterations could utilize SmartNICs to batch multiple telemetry updates into a single RDMA operation.
  • Data Aging: As DART writes to DRAM, older data is eventually overwritten. Supporting long-term historical queries will require a tiered storage mechanism to flush DRAM contents to persistent storage.
  • Advanced Primitives: While the current design uses RDMA WRITE, exploring primitives like Fetch & Add could enable more complex in-memory structures, such as distributed network sketches.

6. Conclusion

DART demonstrates that bypassing the collector CPU is a viable and scalable path for high-speed network telemetry. By utilizing RDMA and a probabilistic storage model, DART achieves high query success rates and hardware efficiency, providing a blueprint for the next generation of zero-CPU monitoring systems.

Summary updated

BibTeX
@inproceedings{langlet2021zero,
  author = {Jonatan Langlet and Ran Ben Basat and Sivaramakrishnan Ramanathan and Gabriele Oliaro and Michael Mitzenmacher and Minlan Yu and Gianni Antichi},
  title = {{Zero-CPU Collection with Direct Telemetry Access}},
  booktitle = {HotNets},
  year = {2021},
  doi = {10.1145/3484266.3487366},
}
Figure