Fast and scalable conflict detection for packet classifiers

被引:28
作者
Baboescu, F [1 ]
Varghese, G [1 ]
机构
[1] Univ Calif San Diego, Dept Comp Sci & Engn, La Jolla, CA 92093 USA
关键词
packet classification; filter conflicts; classifiers; IP lookups;
D O I
10.1016/S1389-1286(03)00213-5
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Packet filters provide rules for classifying packets based on header fields. High speed packet classification has received much study. However, the twin problems of fast updates and fast conflict detection have not received much attention. A conflict occurs when two classifiers overlap, potentially creating ambiguity for packets that match both filters. For example, if Rule 1 specifies that all packets going to CNN be rate controlled and Rule 2 specifies that all packets coming from Walmart be given high priority, the rules conflict for traffic from Walmart to CNN. There has been prior work on efficient conflict detection for two-dimensional classifiers. However, the best known algorithm for conflict detection for general classifiers is the naive O(N(2)) algorithm of comparing each pair of rules for a conflict. In this paper, we describe an efficient and scalable conflict detection algorithm for the general case that is significantly faster. For example, for a database of 20 000 rules, our algorithm is 40 times faster than the naive implementation. Even without considering conflicts, our algorithm also provides a packet classifier with fast updates and fast lookups that can be used for stateful packet filtering. (C) 2003 Elsevier B.V. All rights reserved.
引用
收藏
页码:717 / 735
页数:19
相关论文
共 16 条
[1]  
BABOESCU F, 2001, P ACM SIGC
[2]  
BUDDHIKOT M, 1999, P C PROT HIGH SPEED
[3]  
Eppstein D, 2001, SIAM PROC S, P827
[4]  
FELDMAN A, 2000, P INF, V1, P397
[5]  
GUPTA P, 1999, P HOT INT 7 STANF
[6]  
GUPTA P, 1999, P ACM SIGC
[7]  
HARI A, 2000, P INF
[8]  
INC M, 2000, IPMA STAT
[9]  
LAKSHMAN TV, 1998, P ACM SIGC
[10]  
QIU L, 2001, P 9 INT C NETW PROT