TailoredSketch: A Fast and Adaptive Sketch for Efficient Per-Flow Size Measurement

Published: 2025, Last Modified: 14 Jan 2026IEEE Trans. Netw. Sci. Eng. 2025EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: Accurate and fast per-flow size traffic measurement is fundamental to some network applications, especially in face of the processing and memory constraints of switches. Sketch, a compact data structure, can output high-fidelity approximate per-flow statistics. However, most existing sketches, such as Count-Min, are trapped in the dilemma between a large counting range and memory waste, due to the highly skewed characteristics of network traffic size distribution. In this paper, we propose an adaptive counter-splicing-based sketch for per-flow size measurement, called TailoredSketch. Specifically, we divide each counter of TailoredSketch into two parts, named basic and carry-in counters. When the basic counters overflow, the carry-in counters work, and meanwhile several carry-in counters in different positions can be spliced to expand the counting range. We also incorporate sampling into TailoredSketch, where we set different sampling probabilities at each layer to distinguish between elephant and mouse flows better. In order to further increase the memory utilization of TailoredSketch, we optimize it by removing the flag bits of each counter. Extensive experiments based on the real-world dataset CAIDA show that our sketch can achieve better overall performance compared to several existing algorithms.
Loading