Multi-field range encoding for packet classification in TCAM

Packet classification has wide applications such as unauthorized access prevention in firewalls and Quality of Service supported in Internet routers. The classifier containing pre-defined rules is processed by the router for finding the best matching rule for each incoming packet and for taking appropriate actions. Although many software-based solutions had been proposed, high search speed required for Internet backbone routers is not easy to achieve. To accelerate the packet classification, the state-of-the-art ternary content-addressable memory (TCAM) is a promising solution. In this paper, we propose an efficient multi-field range encoding scheme to solve the problem of storing ranges in TCAM and to decrease TCAM usage. Existing range encoding schemes are usually single-field schemes that perform range encoding processes in the range fields independently. Our performance experiments on real-life classifiers show that the proposed multi-field range encoding scheme uses less TCAM memory than the existing single field schemes. Compared with existing notable single-field encoding schemes, the proposed scheme uses 12% ∼ 33% of TCAM memory needed in DRIPE or SRGE and 56% ∼ 86% of TCAM memory needed in PPC for the classifiers of up to 10k rules.

[1]  Antonius P. J. Engbersen,et al.  Fast and scalable packet classification , 2003, IEEE J. Sel. Areas Commun..

[2]  Isaac Keslassy,et al.  Worst-Case TCAM Rule Expansion , 2010, 2010 Proceedings IEEE INFOCOM.

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

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

[5]  Anand Rangarajan,et al.  Algorithms for advanced packet classification with ternary CAMs , 2005, SIGCOMM '05.

[6]  Isaac Keslassy,et al.  On the code length of TCAM coding schemes , 2010, 2010 IEEE International Symposium on Information Theory.

[7]  Danny Hendler,et al.  Space-Efficient TCAM-Based Classification Using Gray Coding , 2007, IEEE INFOCOM 2007 - 26th IEEE International Conference on Computer Communications.

[8]  E TaylorDavid Survey and taxonomy of packet classification techniques , 2005 .

[9]  Danny Hendler,et al.  Space-Efficient TCAM-Based Classification Using Gray Coding , 2007, IEEE Transactions on Computers.

[10]  Balachander Krishnamurthy,et al.  Fast prefix matching of bounded strings , 2003, ACM J. Exp. Algorithmics.

[11]  Nick McKeown,et al.  Algorithms for packet classification , 2001, IEEE Netw..

[12]  Randy H. Katz,et al.  Efficient multi-match packet classification with TCAM , 2004, Proceedings. 12th Annual IEEE Symposium on High Performance Interconnects.

[13]  Nick McKeown,et al.  Packet classification on multiple fields , 1999, SIGCOMM '99.

[14]  Robert K. Brayton,et al.  Logic Minimization Algorithms for VLSI Synthesis , 1984, The Kluwer International Series in Engineering and Computer Science.

[15]  David E. Taylor Survey and taxonomy of packet classification techniques , 2005, CSUR.

[16]  M. Livingston,et al.  Embeddings in hypercubes , 1988 .

[17]  Baruch Schieber,et al.  Computing the minimum DNF representation of Boolean functions defined by intervals , 2005, Discret. Appl. Math..

[18]  Jia Wang,et al.  Packet classifiers in ternary CAMs can be smaller , 2006, SIGMETRICS '06/Performance '06.

[19]  Huan Liu Routing Table Compaction in Ternary CAM , 2002, IEEE Micro.

[20]  Ramei Cohen,et al.  Simple Efficient TCAM Based Range Classification , 2010, 2010 Proceedings IEEE INFOCOM.

[21]  Manoj Sachdev,et al.  Low power dual matchline ternary content addressable memory , 2004, 2004 IEEE International Symposium on Circuits and Systems (IEEE Cat. No.04CH37512).

[22]  Bin Liu,et al.  DRES: Dynamic Range Encoding Scheme for TCAM Coprocessors , 2008, IEEE Transactions on Computers.

[23]  Hung-Hsiang Jonathan Chao,et al.  Next generation routers , 2002, Proc. IEEE.

[24]  Eric Torng,et al.  TCAM Razor: a systematic approach towards minimizing packet classifiers in TCAMs , 2010, TNET.

[25]  T. V. Lakshman,et al.  High-speed policy-based packet forwarding using efficient multi-dimensional range matching , 1998, SIGCOMM '98.

[26]  George Papageorgiou,et al.  The Complexity of Cubical Graphs , 1985, Inf. Control..

[27]  Yung-Chieh Lin,et al.  Dynamic Segment Trees for Ranges and Prefixes , 2007, IEEE Transactions on Computers.

[28]  Danny Hendler,et al.  Layered Interval Codes for TCAM-Based Classification , 2009, INFOCOM.

[29]  Huan Liu,et al.  Efficient mapping of range classifier into ternary-CAM , 2002, Proceedings 10th Symposium on High Performance Interconnects.