CocoSketch: high-performance sketch-based measurement over arbitrary partial key query
Yinda Zhang, Zaoxing Liu, Ruixin Wang, Tong Yang, Jizhou Li, Ruijie Miao, Peng Liu, Ruwen Zhang, Junchen Jiang
Abstract
Sketch-based measurement has emerged as a promising alternative to the traditional sampling-based network measurement approaches due to its high accuracy and resource efficiency. While there have been various designs around sketches, they focus on measuring one particular flow key, and it is infeasible to support many keys based on these sketches. In this work, we take a significant step towards supporting arbitrary partial key queries, where we only need to specify a full range of possible flow keys that are of interest before measurement starts, and in query time, we can extract the information of any key in that range. We design CocoSketch, which casts arbitrary partial key queries to the subset sum estimation problem and makes the theoretical tools for subset sum estimation practical. To realize desirable resource-accuracy tradeoffs in software and hardware platforms, we propose two techniques: (1) stochastic variance minimization to significantly reduce per-packet update delay, and (2) removing circular dependencies in the per-packet update logic to make the implementation hardware-friendly. We implement CocoSketch on four popular platforms (CPU, Open vSwitch, P4, and FPGA) and show that compared to baselines that use traditional single-key sketches, CocoSketch improves average packet processing throughput by 27.2x and accuracy by 10.4x when measuring six flow keys.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
28 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Sketchovsky: Enabling Ensembles of Sketches on Programmable Switches cites Jaqen: A High-Performance Switch-Native Approach for Detecting and Mitigating Volumetric DDoS Attacks with Programmable Switches
- Sketchovsky: Enabling Ensembles of Sketches on Programmable Switches cites FlyMon: enabling on-the-fly task reconfiguration for network measurement
- FlyMon: enabling on-the-fly task reconfiguration for network measurement cites BeauCoup: Answering Many Network Traffic Queries, One Memory Update at a Time
- Stable-Sketch: A Versatile Sketch for Accurate, Fast, Web-Scale Data Stream Processing cites WavingSketch: An Unbiased and Generic Sketch for Finding Top-k Items in Data Streams
- ChameleMon: Shifting Measurement Attention as Network State Changes cites BeauCoup: Answering Many Network Traffic Queries, One Memory Update at a Time
- ChameleMon: Shifting Measurement Attention as Network State Changes cites Flow Event Telemetry on Programmable Data Plane
- ChameleMon: Shifting Measurement Attention as Network State Changes cites FlyMon: enabling on-the-fly task reconfiguration for network measurement
- AutoSketch: Automatic Sketch-Oriented Compiler for Query-driven Network Telemetry cites Flow Event Telemetry on Programmable Data Plane
- AutoSketch: Automatic Sketch-Oriented Compiler for Query-driven Network Telemetry cites FlyMon: enabling on-the-fly task reconfiguration for network measurement
Cited by top-tier papers28
- FlyMon: enabling on-the-fly task reconfiguration for network measurementHao Zheng, Chen Tian, Tong Yang, Huiping Lin et al.SIGCOMM 2022 · 52 citations
- Sketchovsky: Enabling Ensembles of Sketches on Programmable SwitchesHun Namkung, Zaoxing Liu, Daehyeok Kim, Vyas Sekar et al.NSDI 2023 · 44 citations
- ChameleMon: Shifting Measurement Attention as Network State ChangesKaicheng Yang, Yuhan Wu, Ruijie Miao, Tong Yang et al.SIGCOMM 2023 · 32 citations
- AutoSketch: Automatic Sketch-Oriented Compiler for Query-driven Network TelemetryHaifeng Sun, Qun Huang, Jinbo Sun, Wei Wang et al.NSDI 2024 · 27 citations
- Stable-Sketch: A Versatile Sketch for Accurate, Fast, Web-Scale Data Stream ProcessingWeihe Li, Paul PatrasWWW 2024 · 23 citations
Builds on11
- Jaqen: A High-Performance Switch-Native Approach for Detecting and Mitigating Volumetric DDoS Attacks with Programmable SwitchesZaoxing Liu, Hun Namkung, Georgios Nikolaidis, Jeongkeun Lee et al.USENIX Security 2021 · 221 citations
- Expanding across time to deliver bandwidth efficiency and low latencyWilliam M. Mellette, Rajdeep Das, Yibo Guo, Rob McGuinness et al.NSDI 2020 · 194 citations
- Flow Event Telemetry on Programmable Data PlaneYu Zhou, Chen Sun, Hongqiang Harry Liu, Rui Miao et al.SIGCOMM 2020 · 139 citations
- WavingSketch: An Unbiased and Generic Sketch for Finding Top-k Items in Data StreamsJizhou Li, Zikun Li, Yifei Xu, Shiqi Jiang et al.KDD 2020 · 96 citations
- BeauCoup: Answering Many Network Traffic Queries, One Memory Update at a TimeXiaoqi Chen, Shir Landau Feibish, Mark Braverman, Jennifer RexfordSIGCOMM 2020 · 91 citations
Related papers
- Single Update Sketch with Variable Counter StructureDimitrios Melissourgos, Haibo Wang, Shigang Chen, Chaoyi Ma et al.VLDB 2023 · 16 citations
- OctoSketch: Enabling Real-Time, Continuous Network Monitoring over Multiple CoresYinda Zhang, Peiqing Chen, Zaoxing LiuNSDI 2024 · 18 citations
- Toward Nearly-Zero-Error Sketching via Compressive SensingQun Huang, Siyuan Sheng, Xiang Chen, Yungang Bao et al.NSDI 2021 · 82 citations
- SketchLib: Enabling Efficient Sketch-based Monitoring on Programmable SwitchesHun Namkung, Zaoxing Liu, Daehyeok Kim, Vyas Sekar et al.NSDI 2022
- SketchPipe: Toward Accurate Sketch-based Network Measurement on Multi-Pipeline Switches with Splitless Sketch PlacementXiang Chen, Longlong Zhu, Linying Zheng, Hongyang Du et al.NSDI 2026
