Efficient and Accurate Flow Record Collection With HashFlow

Zongyi Zhao, Xingang Shi, Zhiliang Wang, Qing Li, Han Zhang, Xia Yin

Abstract

Traditional tools like NetFlow face great challenges as both the speed and the complexity of the network traffic increase. To keep the pace up, we propose HashFlow for more efficient and accurate collection of flow records. HashFlow keeps large flows in its main flow table and uses an ancillary table to summarize the other flows when the main table is full. With our <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">flow collision resolution</i> and <italic xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">flow record promotion</i> schemes, a flow in the ancillary table is promoted back to the main flow table with a guaranteed probability when it becomes large enough. These operations can be performed highly efficiently, so HashFlow can keep up with ultra-high traffic speed. We implement HashFlow in a Tofino switch, and using traces from different operational networks, we compare its performance against some state-of-the-art flow measurement algorithms. Our experiments show that, for various types of traffic analysis applications, HashFlow consistently demonstrates clearly better performance than its competitors. For example, the performance of HashFlow in flow size estimation, flow size distribution estimation and heavy hitter detection is up to 21, 60 and 35 percent better than those of the best competitors respectively, and these merits of HashFlow come with almost no degradation of throughput.
BibTeX
@article{zhao2022efficient,
  author = {Zongyi Zhao and Xingang Shi and Zhiliang Wang and Qing Li and Han Zhang and Xia Yin},
  title = {{Efficient and Accurate Flow Record Collection With HashFlow}},
  journal = {IEEE Trans. Parallel Distributed Syst.},
  year = {2022},
  doi = {10.1109/tpds.2021.3099442},
}

Loading related content...

Figure