Skip to main content
QUICK REVIEW

[Paper Review] Detecting Heavy Hitters in the Data-plane

Belma Turkovic, Jorik Oostenbrink|arXiv (Cornell University)|Feb 19, 2019
Network Security and Intrusion DetectionComputer Science1 references7 citations
TL;DR

This paper proposes a sliding window-based approach for real-time heavy hitter detection in P4-programmable data planes, using a novel Gated Sketch data structure and tunable sliding window mechanisms to minimize memory accesses and false positives. It achieves up to 2x lower false positives than Count-Min Sketch with identical memory, while maintaining high accuracy and low processing overhead for programmable switches.

ABSTRACT

The ability to detect, in real-time, heavy hitters is beneficial to many network applications, such as DoS and anomaly detection. Through programmable languages as P4, heavy hitter detection can be implemented directly in the data-plane, allowing custom actions to be applied to packets as they are processed at a network node. This enables networks to immediately respond to changes in network traffic in the data-plane itself and allows for different QoS profiles for heavy hitter and non-heavy hitter traffic. Current interval-based methods that flush the whole counting structure are not well-suited for programmable hardware (the data-plane), because they either require more resources than available in that hardware, they do not provide good accuracy, or require too many actions from the control-plane. A sliding window approach that maintains accuracy over time would solve these issues. However, to the best of our knowledge, the concept of sliding windows in programmable hardware has not been studied yet. In this paper, we develop streaming approaches to detect heavy hitters in the data-plane. We consider the problems of (1) adopting a sliding window and (2) identifying heavy hitters separately and propose multiple memory- and processing-efficient solutions for each of them. These solutions are suitable for P4 programmable hardware and can be combined at will to solve the streaming variant of the heavy hitter detection problem.

Motivation & Objective

  • To address the limitations of existing interval-based heavy hitter detection in programmable data planes, which rely on periodic control-plane flushing and suffer from high false positives and detection delays.
  • To design a memory- and processing-efficient solution for detecting heavy hitter flows in real time using sliding window semantics, ensuring only recent traffic is tracked.
  • To develop a tunable, hardware-aware approach that minimizes memory accesses per packet while maintaining high accuracy over time.
  • To overcome the incompatibility of existing sliding window techniques with P4 hardware constraints, such as limited memory and strict per-packet processing budgets.
  • To provide multiple modular, composable solutions for sliding window maintenance and frequency estimation that can be combined for optimal performance.

Proposed method

  • Introduces the Gated Sketch, a variant of the Count-Min Sketch with decreasing table sizes at increasing depths and threshold-based filtering to reduce collisions and false positives.
  • Employs a sliding window mechanism that automatically expires old packet counts without control-plane intervention, using sequential flushing or hybrid window techniques.
  • Designs the sliding window logic to minimize memory accesses per packet, ensuring compatibility with high-throughput 100Gbps switches.
  • Uses a set of hash tables with depth-dependent sizing and thresholds to prioritize accurate tracking of high-volume flows while filtering out low-volume flows early.
  • Supports tunability by allowing adjustment of memory allocation and window depth to balance accuracy, memory usage, and processing overhead.
  • Evaluates the approach using CAIDA network traces and compares it against Count-Min Sketch and existing sliding window methods under varying window sizes and thresholds.

Experimental results

Research questions

  • RQ1Can a sliding window mechanism be efficiently implemented in P4-programmable data planes to maintain real-time accuracy in heavy hitter detection?
  • RQ2How can memory usage and processing overhead be minimized in the data plane while maintaining low false positive rates for heavy hitter detection?
  • RQ3To what extent can the Gated Sketch outperform the standard Count-Min Sketch in terms of false positive reduction with the same memory budget?
  • RQ4What are the trade-offs between window size, threshold settings, and detection accuracy in a hardware-constrained environment?
  • RQ5Can sliding window mechanisms be designed to operate autonomously without control-plane intervention, thus avoiding memory flush inconsistencies?

Key findings

  • The Gated Sketch reduces false positives by a factor of 2 compared to the standard Count-Min Sketch when using the same amount of memory.
  • The sliding window approach with sequential flushing maintains high accuracy over time, reducing false positives to less than 10% even for large window sizes (N = 2^19), compared to up to 80% with periodic flushing.
  • The hybrid window method achieves a 95% confidence interval with minimal false positives across diverse CAIDA traces, demonstrating robustness under real-world traffic patterns.
  • The proposed solutions are tunable: increasing memory allocation improves accuracy without increasing processing time per packet.
  • The approach supports constant-time point queries and is compatible with P4 hardware, requiring only one read/modify/write per packet on average.
  • The method eliminates the need for control-plane intervention to flush memory, avoiding inconsistencies and improving scalability in high-speed switches.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.