Introduction
In modern web-scale environments, identifying "persistent" items—those that appear consistently across multiple time windows—is a critical task for network security and system monitoring. Unlike frequent items, which are characterized by high total volume, persistent items are defined by their temporal regularity. This distinction is vital for detecting stealthy threats like low-rate DDoS attacks and botnet communications, which intentionally avoid high-frequency signatures to evade traditional detection systems.
The Persistence Challenge
Detecting persistence in high-velocity data streams presents significant technical hurdles. At line-rate speeds, it is impossible to record every individual item. Consequently, engineers rely on "sketches"—probabilistic data structures that provide approximate counts within a small memory footprint. However, persistence is a "fragile" metric. Because an item's persistence count only increments by one per time window, it grows much slower than frequency. Existing sketches often suffer from hash collisions, where transient "noise" (non-persistent traffic) can prematurely evict a truly persistent item from the summary, leading to high false-negative rates.
The Pontus Methodology
We propose Pontus, a novel sketch architecture designed to protect persistent items from eviction while maintaining high processing speeds. Pontus organizes memory into a 2D array of buckets, each tracking an item's key and its persistence count. The core innovation lies in a streamlined two-flag system:
- Arrival Flag ($F$): This bit tracks whether an item has been recorded in the current time window, preventing "double-counting" and ensuring that persistence reflects temporal distribution rather than raw frequency.
- Collision Decay Flag ($R$): This flag ensures that a bucket’s persistence count can only be decremented once per time window due to a collision. This mechanism prevents a flood of transient items from rapidly eroding the count of a legitimate persistent item.
Probabilistic Decay Eviction
Pontus employs a probabilistic decay strategy for item replacement. When a new item hashes into a full bucket, it does not automatically replace the resident. Instead, there is a mathematically determined probability of decrementing the existing item's persistence. This "favors the old," making it increasingly difficult for newcomers to dislodge items that have demonstrated long-term persistence.
For extremely memory-constrained environments, we also developed a fingerprint-based variant. This version compresses long keys (such as network 5-tuples) into short bit-strings, allowing for a higher density of buckets within the same memory allocation.
Experimental Evaluation
We evaluated Pontus using real-world network traces, including the CAIDA 2018/2019 datasets and the highly skewed MAWI 2020 dataset.
- Accuracy: Pontus demonstrated a significant leap in recall, outperforming state-of-the-art benchmarks like On-Off Sketch and Stable-Sketch by 18% to 686% on CAIDA traces.
- Precision: Across all tests, Pontus maintained a precision of 1.0, effectively eliminating false positives.
- Throughput: The system achieved update speeds of approximately 25 million operations per second (Mops), doubling the performance of several competing methods.
Hardware Feasibility
To demonstrate practical utility, Pontus was implemented on industry-grade Intel Tofino programmable switches. The implementation proved highly efficient, utilizing only 8.2% of the switch's hardware resources. Furthermore, it introduced a negligible latency of 117 nanoseconds over standard packet forwarding, proving its suitability for deployment in high-speed production networks.
Conclusion
Pontus provides a robust solution for persistence-based item lookup, balancing the competing demands of accuracy, memory efficiency, and processing speed. By utilizing a minimal two-bit flagging system and a protective decay strategy, it offers a hardware-friendly approach to identifying critical anomalies in massive data streams. Future research will explore the integration of Pontus with sliding window models and real-time machine learning frameworks for enhanced anomaly detection.
Summary updated