Abstract
In the high-speed backbone network, with the increasing speed of network link, the number of network flows increase rapidly. Meanwhile, with restrictions on hardware computing and storage resources, so, how to identify and measure large flows timely and accurately in massive data become a hot issue in high speed network flow measurement area. In this paper, we propose a new algorithm based on double hash algorithm to realize large flow frequent items identification, according to the defect of MF algorithm which produces false positive easily and frequent updates to bring the huge pressure to the system. The complexity and false positive rate of the algorithm was analyzed. The effect of large flow frequent items statistical accuracy and discard rate for parameter configuration was analyzed through simulation. The theoretical analysis and the simulation result indicate that compare to MF algorithm, our algorithm can identify large flow frequent items more accurately, and satisfies the need of actual measurement.
Introduction
In high-speed backbone networks, data moves at a staggering pace. Processing a single packet in an OC-768 link must happen within roughly 8 nanoseconds. In this firehose of information, identifying "large flows"—the few heavy-hitter streams that account for the vast majority of traffic—is critical for network management and security. This paper introduces a "Double Hash" algorithm designed to find these frequent items more accurately and with less hardware strain than traditional methods.
Network traffic follows a "heavy-tailed" distribution: a tiny fraction of flows (the "elephants") carry most of the data, while a massive number of small flows (the "mice") make up the rest. To manage a network effectively, administrators need to identify these elephants in real-time. Existing solutions, like the Multistage Filter (MF), often struggle with false positives and update pressure.
The Double Hash Algorithm
The core innovation is the Double Hash Algorithm, which uses two specialized filters in tandem: a Time-out Bloom Filter (TBF) and a Counting Bloom Filter (CBF).
Time-out Bloom Filter (TBF)
Unlike a standard Bloom filter that stores bits, the TBF stores timestamps. When a packet arrives, the TBF checks the time elapsed since the last packet in that hash bucket. If the interval is greater than a threshold ($t_0$), the packet is discarded as likely belonging to a "small flow." This acts as a temporal gatekeeper, leveraging the fact that large flows are typically dense in time.
Counting Bloom Filter (CBF)
Packets that survive the TBF are passed to the CBF, which maintains counters. If the counters for a flow exceed a predefined threshold ($T$), it is officially recorded as a "frequent item." The algorithm also uses a secondary threshold ($n_0$) within the CBF. If a flow times out in the TBF but its CBF count is still low ($< n_0$), it’s discarded. This adds an extra layer of protection against hash collisions.
Performance Evaluation
The researchers evaluated their algorithm using a real-world trace from CAIDA, consisting of over 6 million packets and 68,000 flows. The Double Hash algorithm consistently outperformed the standard MF algorithm in simulations.
Key results include:
- Higher Accuracy: The measurement error for the Double Hash method was significantly lower than MF, particularly for smaller frequent item thresholds.
- Optimal Thresholding: A timeout interval ($t_0$) of approximately 0.1 seconds provided the best balance—filtering out small streams without accidentally discarding the beginning of large flows.
- Efficiency: The computational complexity remains $O(k)$, where $k$ is the number of hash functions, making it fast enough for nanosecond-scale hardware implementation.
Conclusion
The Double Hash algorithm addresses the limitations of traditional multistage filters by incorporating temporal density as a filtering criterion. By pre-filtering "mice" flows using timestamps, it reduces the load on counting mechanisms and improves the accuracy of "elephant" flow identification. Future work will involve hardware implementation on FPGA or ASIC platforms to validate performance at 100Gbps+ line rates.
Summary updated