Carrera: Enabling High-Performance eBPF-based Sketches in Network Measurement
To achieve dynamic network measurement, trends build sketches on eBPF to avoid service interruptions. However, existing eBPF-based sketches suffer from high CPU consumption, leading to poor throughput and high latency and making them hard to measure high-speed traffic. Optimizing their performance requires users to refactor codes based on each sketch’s characteristics on eBPF, which is highly complex and time-consuming.In this paper, we argue that users should write sketches without concerning low-level eBPF performance optimizations, with the deployment automatically activating cross-sketch performance optimizations. We present Carrera, a library that offers domain-specific optimizations for eBPF-based sketches. Our contributions are (1) systematically analyzing the performance bottlenecks of eBPF-based sketches through microbenchmarks, (2) identifying practical optimizations, including hardware offloading, SIMD-accelerated hashing, traffic-aware flow index caching, prefetched randomization, and active data collection, to address the identified bottlenecks in eBPF-based sketches, (3) evaluating these optimizations with state-of-the-art sketches and demonstrating that Carrera improves throughput by up to 65% and reduces latency by up to 93% via testbed experiments.
Authors
- Longlong Zhu (ORCID: https://orcid.org/0000-0001-6128-3065)
- Jianshan Zhang (ORCID: https://orcid.org/0000-0002-3006-1328)
- Jiayu Li
- Chunming Wu (ORCID: https://orcid.org/0000-0001-7958-9687)
- Qun Huang (ORCID: https://orcid.org/0000-0002-2387-6131)
- Hong-Yan Liu (ORCID: https://orcid.org/0000-0001-9158-4432)
- Xuan Liu (ORCID: https://orcid.org/0000-0002-7966-4488)
- Dong Zhang (ORCID: https://orcid.org/0000-0002-0138-3416)
- Haifeng Zhou (ORCID: https://orcid.org/0000-0002-8008-2805)
- Xiang Chen (ORCID: https://orcid.org/0000-0002-6955-8729)
- Linying Zheng
- Xin Yao (ORCID: https://orcid.org/0000-0003-0742-807X)
Institutions
- Peking University (CN)
- Minjiang University (CN)
- Zhejiang University (CN)
- Yangzhou University (CN)
- Fuzhou University (CN)
Publication Details
- Published
- 2025-09-22
- DOI
- https://doi.org/10.1109/icnp65844.2025.11192430
- Primary Topic
- Network Traffic and Congestion Control
- Type
- article
- Field-Weighted Citation Impact
- 0.00