Abstract
Distributed Denial of Service (DDoS) attacks have become more prominent recently, both in frequency of occurrence, as well as magnitude. Such attacks render key Internet resources unavailable and disrupt its normal operation. It is therefore of paramount importance to quickly identify malicious Internet activity. The DDoS threat model includes characteristics such as: (i) heavy-hitters that transmit large volumes of traffic towards "victims", (ii) persistent-hitters that send traffic, not necessarily large, to specific destinations to be used as attack facilitators, (iii) host and port scanning for compiling lists of un-secure servers to be used as attack amplifiers, etc. This conglomeration of problems motivates the development of space/time efficient summaries of data traffic streams that can be used to identify heavy-hitters associated with the above attack vectors. This paper presents a hashing-based framework and fast algorithms that take into account the large-dimensionality of the incoming network stream and can be employed to quickly identify the culprits. The algorithms and data structures proposed provide a synopsis of the network stream that is not taxing to fast-memory, and can be efficiently implemented in hardware due to simple bit-wise operations. The methods are evaluated using real-world Internet data from a large academic network.
Introduction
In the landscape of modern network security, speed and efficiency are critical. When a Distributed Denial of Service (DDoS) attack occurs, network engineers must identify both the culprits and the victims within a "Relevant Time Scale"—seconds or minutes—to mitigate damage. However, the sheer volume of data on modern high-speed links presents two significant hurdles. First, the space constraint: storing every packet header in expensive fast memory (SRAM) is not feasible. Second, the dimensionality problem: with $2^{32}$ possible IPv4 addresses, finding the top $k$ "heavy hitters" among billions of packets is a classic "needle in a haystack" challenge.
Existing identification methods often rely on heavy computation, such as Singular Value Decomposition, or require massive historical traces, making them impractical for real-time monitoring on actual hardware. This paper introduces "Hashing Pursuit," a framework designed to identify these heavy-hitters—the IP addresses responsible for the most traffic or suspicious activity—with near-perfect accuracy and a minimal memory footprint.
The Hashing Pursuit Framework
The core of the Hashing Pursuit framework is the ability to not just detect the presence of a heavy hitter, but to actually "pursue" and identify their specific IP address. This is achieved by combining invertible hashing with compact "sketch" data structures.
Key components of the framework include:
- Reversible Hashing (IP Mangling): Unlike standard one-way hashes, the authors utilize bit-wise permutations (mangling) that are both computationally fast and invertible. This allows the system to map an IP to a "bin" in a small array and later reverse the process to recover the original IP address.
- Sketching Algorithms: Instead of maintaining a full lookup table, the framework uses sketches—compact summaries of data. The paper proposes four specific algorithms tailored for different constraints and signal types.
These algorithms include Simple Hashing Pursuit (SHP) for basic volume tracking, Max-Count Hashing Pursuit which uses stream thinning to reduce collisions, and Max-Stable Hashing Pursuit (MSHP). MSHP is particularly notable for its use of 1-Fréchet random variables to estimate the number of unique items (cardinality), such as destination ports, which is vital for detecting port scanners.
Experimental Evaluation
The proposed methods were evaluated using real-world data, including Netflow traces from the Merit Network (a large academic ISP) containing approximately 4.7 million flow records and 103GB of traffic. Additionally, "Darknet" data from unallocated address spaces was used to test IP spoofing detection via Time-to-Live (TTL) values.
Key Results
- High Accuracy: The Max-Count and Boyer-Moore variants achieved 100% accuracy in identifying the top heavy hitters in byte volume across multiple time windows.
- Memory Efficiency: While a naive dynamic hash table required 13MB of memory to track a large stream, the Hashing Pursuit algorithms maintained a constant footprint of only 0.4MB to 0.5MB.
- Hardware Compatibility: The reliance on simple bit-wise operations and comparisons makes these algorithms ideal for implementation on FPGAs or high-speed routers.
- Precision in Estimation: Beyond identification, the algorithms estimated traffic volumes with high precision, often matching ground truth exactly.
Conclusion and Future Work
The Hashing Pursuit framework effectively addresses the "Birthday Problem" in network monitoring. By "thinning" the stream into sub-streams, the framework reduces the probability of collisions that typically ruin accuracy in simple hashing schemes. Furthermore, because these sketches are linearly combinable, they are well-suited for distributed monitoring systems where multiple routers can send small sketches to a central controller to identify network-wide attacks.
Future work may address the trade-off between the number of heavy hitters sought ($k$) and the number of bins ($m$) in the sketch, as accuracy can drop if $k$ is too high relative to $m$. Additionally, improving performance in scenarios with small cardinality, such as TTL-based spoofing detection, remains an area for further refinement.
Summary updated