FSA-Hash: Flow-Size-Aware Sketch Hashing for Software Switches

  • Fuliang LI
  • , Kejun GUO
  • , Yiming LV
  • , Jiaxing SHEN
  • , Yuting LIU
  • , Xingwei WANG
  • , Jiannong CAO

Research output: Journal PublicationsJournal Article (refereed)peer-review

Abstract

In modern data centers and enterprise networks, software switches have become critical components for achieving flexible and efficient network management. Due to resource constraints in software switches, sketches have emerged as a promising approach for network traffic measurement. However, their accuracy is often impacted by hash collisions. Existing hash functions treat all collisions equally, failing to account for the differing impacts of collisions involving elephant flows versus mouse flows. We propose FSA-Hash, a novel flow-size-aware hashing scheme that separates elephant flows from each other and from mouse flows, minimizing the most detrimental collisions. FSA-Hash is designed based on two insights: separating elephant flows from mouse flows avoids overestimating mouse flows, while separating elephant flows from each other enables accurate heavy-hitter detection. We implement FSA-Hash using machine learning models trained on network traffic data (LFSA-Hash), and also design a lightweight online variant (OLFSA-Hash) that learns the hash model solely from sketch queries on the software switch, obviating traffic collection overheads. Evaluations across four sketches and two tasks demonstrate FSA-Hash’s superior accuracy over standard hash functions. Moreover, OLFSA-Hash closely matches LFSA-Hash’s performance, making it an attractive option for adaptively refining the hash model without monitoring traffic.
Original languageEnglish
Pages (from-to)3736-3749
Number of pages14
JournalIEEE Transactions on Computers
Volume74
Issue number11
Early online date1 Sept 2025
DOIs
Publication statusPublished - Nov 2025

Bibliographical note

Publisher Copyright:
© 2025 IEEE. All rights reserved.

Funding

This work was supported in part by the National Natural Science Foundation of China under Grant U22B2005, Grant 62432003, and Grant 92267206, in part by Liaoning Revitalization Talents Program under Grant XLYC2403086, and in part by the financial support of Lingnan University (LU) under Grant DB23A9.

Keywords

  • Software switch
  • hash collision.
  • network measurement
  • sketch

Fingerprint

Dive into the research topics of 'FSA-Hash: Flow-Size-Aware Sketch Hashing for Software Switches'. Together they form a unique fingerprint.

Cite this