Title :
A Multi-dimensional Packet Classification Algorithm Based on Hierarchical All-Match B+ Tree
Author :
Gang Wang ; Yaping Lin ; Jinguo Li ; Xin Yao
Author_Institution :
Coll. of Inf. Sci. & Eng., Hunan Univ., Changsha, China
Abstract :
Packet classification is one of the most important enabling functions for network services. The previous trie-based hierarchical search structure suffers from backtracking and address length. This paper proposes a multi-dimensional packet classification algorithm based on hierarchical all-match B+tree. By utilizing the property that the IP prefixes of a rule set are nested to each other, we develop an all-match prefix tree (APT) based on B+tree and propose a two-stage hierarchical search structure HAPT. We further propose the packet classification and rule update algorithms on HAPT. By performing multi-way search without backtracking, the proposed classification algorithm can classify packets in O(logmN) and update rules in O(mlogmN). Furthermore, the proposed algorithm is suitable for both IPv4 and IPv6. Theoretical analysis and evaluation results show that the proposed multi-dimensional packet classification algorithm improves the speed by a factor of 2-4 compared to state-of-the-art algorithm H-trie.
Keywords :
IP networks; computational complexity; pattern classification; tree data structures; tree searching; trees (mathematics); HAPT; IP prefixes; IPv4; IPv6; O(logmN); O(mlogmN); address length; all-match prefix tree; hierarchical all match B+ tree; multidimensional packet classification algorithm; multiway search; network services; rule update algorithm; trie-based hierarchical search structure; Algorithm design and analysis; Classification algorithms; Data structures; IP networks; Indexes; Time complexity; b+tree; hierarchical matching; packet classification; rules; update;
Conference_Titel :
High Performance Computing and Communications & 2013 IEEE International Conference on Embedded and Ubiquitous Computing (HPCC_EUC), 2013 IEEE 10th International Conference on
Conference_Location :
Zhangjiajie
DOI :
10.1109/HPCC.and.EUC.2013.189