PR-sketch
Authors:
Open Access
- 1 June 2021
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the VLDB Endowment
- Vol. 14 (10) , 1783-1796
Abstract
Computing per-key aggregation is indispensable in streaming data analysis formulated as two phases, an update phase and a recovery phase. As the size and speed of data streams rise, accurate per-key information is useful in many applications like anomaly detection, attack prevention, and online diagnosis. Even though many algorithms have been proposed for per-key aggregation in stream processing, their accuracy guarantees only cover a small portion of keys. In this paper, we aim to achieve nearly full accuracy with limited resource usage. We follow the line of sketch-based techniques. We observe that existing methods suffer from high errors for most keys. The reason is that they track keys by complicated mechanism in the update phase and simply calculate per-key aggregation from some specific counter in the recovery phase. Therefore, we present PR-Sketch, a novel sketching design to address the two limitations. PR-Sketch builds linear equations between counter values and per-key aggregations to improve accuracy, and records keys in the recovery phase to reduce resource usage in the update phase. We also provide an extension called fast PR-Sketch to improve processing rate further. We derive space complexity, time complexity, and guaranteed error probability for both PR-Sketch and fast PR-Sketch. We conduct trace-driven experiments under 100K keys and 1M items to compare our algorithms with multiple state-of-the-art methods. Results demonstrate the resource efficiency and nearly full accuracy of our algorithms.Keywords
This publication has 45 references indexed in Scilit:
- Synopses for Massive Data: Samples, Histograms, Wavelets, SketchesFoundations and Trends® in Databases, 2011
- Mining anomalies using traffic feature distributionsACM SIGCOMM Computer Communication Review, 2005
- Profiling internet backbone trafficACM SIGCOMM Computer Communication Review, 2005
- Data streaming algorithms for efficient and accurate estimation of flow size distributionACM SIGMETRICS Performance Evaluation Review, 2004
- New directions in traffic measurement and accountingACM Transactions on Computer Systems, 2003
- Compressed Bloom filtersIEEE/ACM Transactions on Networking, 2002
- Summary cache: a scalable wide-area Web cache sharing protocolIEEE/ACM Transactions on Networking, 2000
- Empirically derived analytic models of wide-area TCP connectionsIEEE/ACM Transactions on Networking, 1994
- A linear-time probabilistic counting algorithm for database applicationsACM Transactions on Database Systems, 1990
- Space/time trade-offs in hash coding with allowable errorsCommunications of the ACM, 1970