TaPaC: A TCAM-Assisted Algorithmic Packet Classification with Bounded Worst-Case Performance

Packet classification is an indispensable yet challenging functionality of modern network devices. Despite more than fifteen years of research, algorithmic solutions still fall short of meeting the line-speed of high performance routers or switches. As a result, the industry is still relying on TCAMbased hardware solutions for parallel lookups. SAX-PAC, a recently proposed hybrid framework, uses a TCAM much smaller than pure TCAM-based technique to accommodate part of the classification rules, and handles the rest of rules with algorithmic lookups. However, the worst- case performance of SAX-PAC is O(logN), which scales with the size of the rule set, thus the line-speed requirement cannot be guaranteed. In this paper, we propose TaPaC, an algorithmic framework assisted by two very small TCAMs, which are used for handling two difficult problems observed by this work. Under this framework, we are able to bound the worst-case performance irrespective of the rule sets. In the meantime, TaPaC is also more memory efficient than existing techniques. Our experimental results show that using ClassBench, the TCAM requirement of TaPaC is two orders of magnitude less than a pure TCAM-based solution, and an order of magnitude less than what SAX- PAC needs. Furthermore, the decisiontrees generated all have short and bounded heights, leading to bounded worst-case performance. Compared to state-of-the-art algorithmic solutions, TaPaC achieves a memory reduction over 200% on average. In essence, TaPaC provides a new algorithmic packet classification technique with the performance comparable to a pure TCAM-based solution, but without the problems of TCAM- based solutions.

[1]  Pankaj Gupta,et al.  Packet Classification using Hierarchical Intelligent Cuttings , 1999 .

[2]  Sartaj Sahni,et al.  PC-TRIO: A Power Efficient TCAM Architecture for Packet Classifiers , 2015, IEEE Transactions on Computers.

[3]  George Varghese,et al.  Scalable packet classification , 2001, SIGCOMM 2001.

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

[5]  Xiang Wang,et al.  ParaSplit: A Scalable Architecture on FPGA for Terabit Packet Classification , 2012, 2012 IEEE 20th Annual Symposium on High-Performance Interconnects.

[6]  Baohua Yang,et al.  Packet Classification Algorithms: From Theory to Practice , 2009, IEEE INFOCOM 2009.

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

[8]  Xianfeng Li,et al.  HybridCuts: A Scheme Combining Decomposition and Cutting for Packet Classification , 2013, 2013 IEEE 21st Annual Symposium on High-Performance Interconnects.

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

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

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

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

[13]  Patrick Th. Eugster,et al.  Exploiting Order Independence for Scalable and Expressive Packet Classification , 2016, IEEE/ACM Transactions on Networking.

[14]  Xianfeng Li,et al.  GreenTCAM: A memory- and energy-efficient TCAM-based packet classification , 2016, 2016 International Conference on Computing, Networking and Communications (ICNC).

[15]  Suman Banerjee,et al.  A smart pre-classifier to reduce power consumption of TCAMs for multi-dimensional packet classification , 2012, SIGCOMM '12.

[16]  H. Jonathan Chao,et al.  High-Throughput and Memory-Efficient Multimatch Packet Classification Based on Distributed and Pipelined Hash Tables , 2014, IEEE/ACM Transactions on Networking.

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

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