A Multi-dimensional Packet Classification Algorithm Based on Hierarchical All-Match B+ Tree

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.

[1]  George Varghese,et al.  Packet classification for core routers: is there an alternative to CAMs? , 2003, IEEE INFOCOM 2003. Twenty-second Annual Joint Conference of the IEEE Computer and Communications Societies (IEEE Cat. No.03CH37428).

[2]  Paul F. Tsuchiya,et al.  A search algorithm for table entries with non-contiguous wildcarding , 1991 .

[3]  T. N. Vijaykumar,et al.  EffiCuts: optimizing packet classification for memory and throughput , 2010, SIGCOMM '10.

[4]  Nick McKeown,et al.  Classifying Packets with Hierarchical Intelligent Cuttings , 2000, IEEE Micro.

[5]  Yeim-Kuan Chang,et al.  Efficient TCAM Encoding Schemes for Packet Classification Using Gray Code , 2007, IEEE GLOBECOM 2007 - IEEE Global Telecommunications Conference.

[6]  Jonathan S. Turner,et al.  ClassBench: A Packet Classification Benchmark , 2005, IEEE/ACM Transactions on Networking.

[7]  Chad R. Meiners,et al.  All-Match Based Complete Redundancy Removal for Packet Classifiers in TCAMs , 2008, IEEE INFOCOM 2008 - The 27th Conference on Computer Communications.

[8]  Hyesook Lim,et al.  Survey and proposal on packet classification algorithms , 2010, 2010 International Conference on High Performance Switching and Routing.

[9]  Yeim-Kuan Chang,et al.  Multi-field range encoding for packet classification in TCAM , 2011, 2011 Proceedings IEEE INFOCOM.

[10]  George Varghese,et al.  Fast and scalable layer four switching , 1998, SIGCOMM '98.

[11]  George Varghese,et al.  Multiway range trees: scalable IP lookup with fast updates , 2004, Comput. Networks.

[12]  Viktor K. Prasanna,et al.  Hierarchical hybrid search structure for high performance packet classification , 2012, 2012 Proceedings IEEE INFOCOM.

[13]  Gang Wang,et al.  Towards Dynamic and Scalable High-Speed IP Address Lookup Based on B+ Tree , 2012, IEICE Trans. Inf. Syst..

[14]  George Varghese,et al.  Packet classification using multidimensional cutting , 2003, SIGCOMM '03.