Academia.eduAcademia.edu

Outline

Multi-field range encoding for packet classification in TCAM

2011, 2011 Proceedings IEEE INFOCOM

https://doi.org/10.1109/INFCOM.2011.5935001

Abstract

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.

FAQs

sparkles

AI

What improvements does multi-field range encoding provide over traditional methods?add

The proposed multi-field range encoding reduces TCAM memory usage by 12% to 86% compared to traditional single-field methods, enhancing efficiency for classifiers with up to 10,000 rules.

How does the proposed scheme handle range data efficiently in TCAM?add

The layered approach minimizes the length of ternary strings by optimizing codeword assignments, resulting in a more compact representation of rules.

What encoding methods were compared in the experimental results?add

The study compared the proposed scheme against direct range-to-prefix conversion, SRGE, EIGC, DIRPE, and PPC across various classifiers, highlighting performance differences.

What role do virtual regions play in maintaining encoding efficiency?add

Virtual regions are introduced to satisfy graph constraints necessary for codeword assignment, thereby preventing complexity increases while ensuring codeword mapping remains valid.

How was the performance of the proposed encoding scheme evaluated?add

Performance was evaluated using ClassBench-generated classifiers simulating real-world conditions, assessing memory size and entry counts across different encoding schemes.

References (20)

  1. A Bremler-Barr and D. Hendler, "Space-Efficient TCAM-based Classification Using Gray Coding," in IEEE INFOCOM, 2007.
  2. A Bremler-Barr, D. Hayy, and D. Hendler, "Layered Interval Codes for TCAM-based Classification," in IEEE INFOCOM, 2009.
  3. A L. Buchsbaum, G. S. Fowler, B. Krishnamurthy, K.-P. Vo, and 1. Wang, "Fast Prefix Matching of Bounded Strings", ACM Journal of Experimental Algorithmics, vol. 8, Jan. 2003.
  4. H.1. Chao, "Next Generation Routers," in Proc. of the IEEE, vol. 90, no. 9, pp.1518-1558, Sep. 2002.
  5. Y.-K. Chang and Y.-C. Lin, "Dynamic Segment Trees for Ranges and Prefixes," IEEE Trans. Computers, vol. 56, no. 6, pp. 769-784, June 2007.
  6. Y.-K. Chang and c.c. Su, "Efficient TCAM Encoding Schemes for Packet Classification using Gray Code," in IEEE Globecom, 2007.
  7. H. Che, Z. Wang, K. Zheng, and B. Liu, "DRES: Dynamic Range Encoding Scheme for TCAM Coprocessors," IEEE Trans. on Computers, vol. 57, no. 7, pp.902-915, June 2008.
  8. R. Cohen and D. Raz, "Simple Efficient TCAM Based Range Classification," in IEEE INFOCOM Mini-Conference, 2010.
  9. Q. Dong , S. Banerjee , 1. Wang , D. Agrawal , A Shukla, "Packet Classifiers in Ternary CAMs Can Be Smaller," in ACM SIGMETRICS, 2006,.
  10. F. Gray, "Pulse Code Communication," U. S. Patent 2 632 058, March 17, 1953.
  11. P. Gupta and N. McKeown, "Algorithms for Packet Classification," IEEE Network, vol. 15, no. 2, pp. 24-32, 2001.
  12. K. Lakshminarayanan, S. Venkatachary, and A Rangarajan,"Algorithms for Advanced Packet Classification With Ternary CAMs," in ACM SIGCOMM, 2005.
  13. Y.-K. Chang, C.-I Lee and c.-C. Su, "Multi-Dimensional Range Encoding for Packet Classification in TCAM," NCKU Technical Report, http://cial.csie.ncku.edu.tw/pubJication/ncku-cial-201 O-Ol.pdf
  14. H. Liu, "Efficient Mapping of Range Classifier into Ternary-CAM," in IEEE HOT!, 2002.
  15. J. Lunteren and T. Engbersen, "Fast and Scalable Packet Classification," IEEE Journal on Selected Areas in Communications, vol. 21, no. 4, pp.560-571, May 2003.
  16. AX. Liu, C.R. Meiners, and E. Torng, "TCAM Razor: A Systematic Approach Towards Minimizing Packet Classifiers in TCAMs," IEEEIACM Trans. on Networking, vol. 18, no. 2, pp. 490-500, Apr. 2010.
  17. O. Rottenstreich and I. Keslassy, "Worst-Case TCAM Rule Expansion," in IEEE INFOCOM Mini-Conference, 2010.
  18. O. Rottenstreich and I. Keslassy, "On the Code Length of TCAM Coding Schemes," in IEEE ISIT, 2010.
  19. D. Taylor, "Survey and taxonomy of packet classification techniques," ACM Computer Surveys, vol. 37, no. 3, pp. 238-275, Sep. 2005.
  20. D. Taylor and 1. Turner, "ClassBench: A Packet Classification Benchmark," in IEEE INFOCOM, 2005.