Bitmap algorithms for counting active flows on high-speed links

被引:117
作者
Estan, Cristian
Varghese, George
Fisk, Michael
机构
[1] Univ Wisconsin, Dept Comp Sci, Madison, WI 53706 USA
[2] Univ Calif San Diego, Dept Comp Sci & Engn, La Jolla, CA 92093 USA
基金
美国国家科学基金会;
关键词
counting distinct elements; traffic measurements;
D O I
10.1109/TNET.2006.882836
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
This paper presents a family of bitmap algorithms that address the problem of counting the number of distinct header patterns (flows) seen on a high-speed link. Such counting can be used to detect DoS attacks and port scans and to solve measurement problems. Counting is especially hard when processing must be done within a packet arrival time (8 ns at OC-768 speeds) and, hence, may perform only a small number of accesses to limited, fast memory. A naive solution that maintains a hash table requires several megabytes because the number of flows can be above a million. By contrast, our new probabilistic algorithms use little memory and are fast. The reduction in memory is particularly important for applications that run multiple concurrent counting instances. For example, we replaced the port-scan detection component of the popular intrusion detection system Snort with one of our new algorithms. This reduced memory usage on a ten minute trace from 50 to 5.6 MB while maintaining a 99.77% probability of alarming on a scan within 6 s of when the large-memory algorithm would. The best known prior algorithm (probabilistic counting) takes four times more memory on port scan detection and eight times more on a measurement application. This is possible because our algorithm's can be customized to take advantage of special features such as a large number of instances that have very small counts or prior knowledge of the likely range of the count.
引用
收藏
页码:925 / 937
页数:13
相关论文
共 21 条
[1]  
[Anonymous], CISCO NETFLOW
[2]  
DUFFIELD N, 2002, SIGCOMM INT MEAS WOR
[3]  
DURAND M, 2003, EUR S ALG ESA BUD HU
[4]  
ESTAN C, BMPCOUNT LIB FLOW CO
[5]  
ESTAN C, 2003, 0738 U CAL COMP SCI
[6]  
ESTAN C, 2002, ACM SIGCOMM PITSSB P
[7]  
ESTAN C, 2003, INT MEAS C IMC 03 MI
[8]  
Fang WJ, 1999, GLOBECOM'99: SEAMLESS INTERCONNECTION FOR UNIVERSAL SERVICES, VOL 1-5, P1859, DOI 10.1109/GLOCOM.1999.832484
[9]   PROBABILISTIC COUNTING ALGORITHMS FOR DATABASE APPLICATIONS [J].
FLAJOLET, P ;
MARTIN, GN .
JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1985, 31 (02) :182-209
[10]  
FYODOR, 1998, PHRACK, V54