[Paper Review] Count-Less: A Counting Sketch for the Data Plane of High Speed Switches
Count-Less introduces a novel counting sketch for high-speed switch data planes that enhances Count-Min sketch accuracy by combining Split Counter data structure and Minimum Update algorithm. It achieves superior estimation accuracy in flow size, cardinality, entropy, and flow distribution—outperforming FCM and Elastic Sketch—while reducing memory usage and latency in ASIC-based programmable switches like Tofino.
Demands are increasing to measure per-flow statistics in the data plane of high-speed switches. Measuring flows with exact counting is infeasible due to processing and memory constraints, but a sketch is a promising candidate for collecting approximately per-flow statistics in data plane in real-time. Among them, Count-Min sketch is a versatile tool to measure spectral density of high volume data using a small amount of memory and low processing overhead. Due to its simplicity and versatility, Count-Min sketch and its variants have been adopted in many works as a stand alone or even as a supporting measurement tool. However, Count-Min's estimation accuracy is limited owing to its data structure not fully accommodating Zipfian distribution and the indiscriminate update algorithm without considering a counter value. This in turn degrades the accuracy of heavy hitter, heavy changer, cardinality, and entropy. To enhance measurement accuracy of Count-Min, there have been many and various attempts. One of the most notable approaches is to cascade multiple sketches in a sequential manner so that either mouse or elephant flows should be filtered to separate elephants from mouse flows such as Elastic sketch (an elephant filter leveraging TCAM + Count-Min) and FCM sketch (Count-Min-based layered mouse filters). In this paper, we first show that these cascaded filtering approaches adopting a Pyramid-shaped data structure (allocating more counters for mouse flows) still suffer from under-utilization of memory, which gives us a room for better estimation. To this end, we are facing two challenges: one is (a) how to make Count-Min's data structure accommodate more effectively Zipfian distribution, and the other is (b) how to make update and query work without delaying packet processing in the switch's data plane. Count-Less adopts a different combination ...
Motivation & Objective
- To address the limited estimation accuracy of Count-Min sketch in high-speed switches due to poor memory utilization and indiscriminate counter updates.
- To overcome the inefficiencies of cascaded multi-sketch approaches like FCM and Elastic Sketch, which suffer from memory underutilization despite hierarchical filtering.
- To design a single-sketch solution that matches or exceeds the accuracy of multi-layered sketches without relying on specialized hardware like TCAM.
- To enable low-latency, high-throughput packet processing in programmable switches by minimizing register accesses and update operations.
- To provide a practical, ASIC-friendly implementation of the sketch in P4 for real-world deployment on high-speed switches.
Proposed method
- Introduces the Split Counter strategy to allocate more counters to smaller (mouse) flows, improving memory efficiency under Zipfian traffic distribution.
- Employs the Minimum Update algorithm to reduce the number of counters updated per packet by selecting only the minimum-value counter among the d hash locations.
- Uses a single Count-Min-like sketch structure, avoiding the complexity and resource overhead of cascaded sketches or TCAM-based filters.
- Designs a P4-compatible implementation optimized for ASIC-based programmable switches (e.g., Tofino), minimizing SRAM, ALU usage, and hash bits.
- Applies conservative update logic to reduce overestimation bias while maintaining low processing latency.
- Employs a layered counter allocation inspired by pyramid structures but optimized for memory utilization and update efficiency.
Experimental results
Research questions
- RQ1Can a single-count sketch outperform cascaded multi-sketch systems like FCM and Elastic Sketch in per-flow measurement accuracy without specialized hardware?
- RQ2How does the Split Counter strategy improve memory utilization and estimation accuracy under Zipfian-distributed traffic?
- RQ3To what extent does the Minimum Update algorithm reduce counter updates and processing latency in the data plane?
- RQ4Can Count-Less achieve high accuracy with lower memory footprint and reduced resource consumption (SRAM, ALU, hash bits) compared to state-of-the-art sketches?
- RQ5Is Count-Less feasible and efficient in real hardware, such as ASIC-based programmable switches (e.g., Tofino)?
Key findings
- Count-Less with the Minimum Update strategy (CL4-MU) achieves the best overall accuracy, reducing Average Relative Error (ARE) in flow size estimation to 0.601, compared to 7.181 for standard Count-Min.
- CL4-MU reduces Relative Error (RE) in cardinality estimation to 0.001, significantly lower than Count-Min (0.007) and FCM (0.002).
- In flow size distribution estimation, CL4-MU achieves a Weighted Mean Relative Error (WMRE) of 0.294, outperforming FCM (0.291) and significantly improving upon Count-Min (1.159).
- Entropy estimation RE is reduced to 0.005 with CL4-MU, compared to 0.018 for Count-Min and 0.006 for FCM, showing superior bias control.
- Count-Less achieves 1.53x lower latency than FCM on a Tofino ASIC switch while consuming less SRAM, ALU operations, and hash bits.
- The prototype implementation in P4 confirms feasibility and performance gains in real hardware, validating theoretical and CPU-based evaluations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.