arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.13132cs.NIcs.DC
收藏

利用共享HyperLogLog计数器实现滑动时间窗下的基数估计

Cardinalities estimation under sliding time window by sharing HyperLogLog Counter

Jie Xu

摘要:

基数估计是网络管理和安全中的一个重要研究课题。如何在滑动时间窗下解决这一问题是一个热门话题。HyperLogLog是一种在固定时间窗口下工作的内存高效算法。滑动版本的HyperLogLog可以在滑动时间窗口下工作,通过将HyperLogLog的每个计数器替换为特征可能最大值列表(LFPM)。但LFPM是一个动态结构,其大小在运行时是可变的。本文提出了一种新的计数器HyperLogLog,它消耗更小的内存大小比LFPM。我们的计数器被称为位距离记录器BDR,因为它保持每个最左边的“1”位位置的距离。BDR的大小是固定的。在BDR的基础上,设计了一种滑动时间窗下的多主机基数估计算法--虚拟比特距离记录器VBDR。VBDR为每台主机分配一个虚拟的BDR向量,每个物理BDR由多台主机共享,以提高内存使用率。经过一个小的修改,我们提出了另外两个并行版本的VBDR,可以运行在GPU上处理高速流量。这些并行VBDR中的一个在IP对扫描中是快速的,另一个是内存有效的。BDR也适用于其他基数估计算法,如PCSA,LogLog。

英文摘要:

Cardinalities estimation is an important research topic in network management and security. How to solve this problem under sliding time window is a hot topic. HyperLogLog is a memory efficient algorithm work under a fixed time window. A sliding version of HyperLogLog can work under sliding time window by replacing every counter of HyperLogLog with a list of feature possible maxim (LFPM). But LFPM is a dynamic structure whose size is variable at running time. This paper proposes a novel counter for HyperLogLog which consumes smaller size of memory than that of LFPM. Our counter is called bit distance recorder BDR, because it maintains the distance of every left most "1" bit position. The size of BDR is fixed. Based on BDR, we design a multi hosts' cardinalities estimation algorithm under sliding time window, virtual bit distance recorder VBDR. VBDR allocate a virtual vector of BDR for every host and every physical BDR is shared by several hosts to improve the memory usage. After a small modifcation, we propose another two parallel versions of VBDR which can run on GPU to handle high speed traffic. One of these parallel VBDR is fast in IP pair scanning and the other one is memory efficient. BDR is also suitable for other cardinality estimation algorithms such as PCSA, LogLog.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑