Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article

Wire speed packet classification without tcams: a few more registers (and a bit of logic) are enough

Published: 12 June 2007 Publication History

Abstract

Packet classification is the foundation of many Internet functions such as QoS and security. A long thread of research has proposed efficient software-based solutions to this problem. Such software solutions are attractive because they require cheap memory systems for implementation, thus bringing down the overall cost of the system. In contrast, hardware-based solutions use more expensive memory systems, e.g., TCAMs, but are often preferred by router vendors for their faster classification speeds. The goal of this paper is to find a "best-of-both-worlds" solution -- a solution that incurs the cost of a software-based system and has the speed of a hardware-based one. Our proposed solution, called smart rule cache achieves this goal by using minimal hardware -- a few additional registers -- to cache evolving rules which preserve classification semantics, and additional logic to match incoming packets to these rules. Using real traffic traces and real rule sets from a tier-1 ISP, we show such a setup is sufficient to achieve very high hit ratios for fast classification in hardware. Cache miss ratios are 2 ∼ 4 orders of magnitude lower than flow cache schemes. Given its low cost and good performance, we believe our solution may create significant impact on current industry practice.

References

[1]
Controlling Network Access With Access Control Lists, 2004. http://cisco.com/univercd/cc/td/doc/product/lan/cat6000/mod icn/fwsm/fwsm_2_2/fwsm cfg/mngacl.pdf.
[2]
F. Baboescu, S. Singh, and G. Varghese. Packet classification for core routers: is there an alternative to CAMs? In IEEE INFOCOM, 2003.
[3]
F. Baboescu and G. Varghese. Scalable packet classification. In ACM SIGCOMM, 2001.
[4]
F. Chang, W. C. Feng, and K. Li. Approximate caches for packet classification. In IEEE INFOCOM, 2004.
[5]
E. Cohen and C. Lund. Packet classification in large ISPs: Design and evaluation of decision tree classifiers. In ACM SIGMETRICS, 2005.
[6]
Q. Dong, S. Banerjee, J. Wang, D. Agrawal, and A. Shukla. Packet classifiers in ternary CAMs can be smaller. In ACM SIGMETRICS, 2006.
[7]
C. Estan and G. Varghese. New directions in traffic measurement and accounting. In ACM SIGCOMM, 2002.
[8]
C. Estan and G. Varghese. Data streaming in computer networking. In Workshop on Management and Processing of Data Streams, 2003.
[9]
P. Gupta and N. McKeown. Packet classification on multiple fields. In ACM SIGCOMM, August 1999.
[10]
P. Gupta and N. McKeown. Packet classification using hierarchical intelligent cuttings. In Hot Interconnects, 1999.
[11]
H. Hamed, A. El-Atawy, and E. Al-Shaer. Adaptive statistical optimization techniques for firewall packet filtering. In IEEE INFOCOM, 2006.
[12]
M. E. Kounavis, A. Kumar, H. Vin, R. Yavatkar, and A. T. Campbell. Directions in packet classification for network processors. In NP2 Workshop, 2003.
[13]
T. Lakshman and D. Stiliadis. High-speed policy-based packet forwarding using efficient multidimensional range matching. In ACM SIGCOMM, 1998.
[14]
K. Lakshminarayanan, A. Rangarajan, and S. Venkatachary. Algorithms for advanced packet classification with Ternary CAMs. In ACM SIGCOMM, 2005.
[15]
A. X. Liu and M. G. Gouda. Removing redundancy from packet classifiers. Technical Report TR-04-26, Department of Computer Sciences, The University of Texas at Austin, Austin, Texas, U.S.A., June 2004.
[16]
H. Liu. Efficient mapping of range classifier into Ternary-CAM. In Hot Interconnects, 2002.
[17]
R. K. Montoye. Apparatus for storing "don't care" in a content addressable memory cell. United States Patent 5,319,590, June 1994.
[18]
M. H. Overmars and A. F. van der Stappen. Range searching and point location among fat objects. Journal of Algorithms, 21(3):629--656, November 1996.
[19]
C. Partridge. Locality and route caches. In NSF Workshop on Internet Statistics Measurement and Analysis, February 1999.
[20]
L. Qiu, G. Varghese, and S. Suri. Fast firewall implemention for software and hardware based routers. In IEEE ICNP, 2001.
[21]
S. Singh, F. Baboescu, G. Varghese, and J. Wang. Packet classification using multidimensional cutting. In ACM SIGCOMM, 2003.
[22]
E. Spitznagel, D. Taylor, and J. Turner. Packet classification using extended tcams. In IEEE ICNP, 2003.
[23]
V. Srinivasan, G. Varghese, S. Suri, and M. Waldvogel. Fast and scalable layer four switching. In ACM SIGCOMM, pages 191--202, September 1998.
[24]
V. Srinivasan, G. Varghese, S. Suri, and M.Waldvogel. Packet classification using tuple space search. In ACM SIGCOMM, 1999.
[25]
D. E. Taylor and J. S. Turner. Scalable packet classification using distributed crossproducting of field labels. In IEEE INFOCOM, 2005.
[26]
J. van Lunteren and T. Engbersen. Fast and scalable packet classification. IEEE Journal on Selected Areas in Communications, 21(4):560--571, 2003.
[27]
T. Y. Woo. A modular approach to packet classification: Algorithms and results. In IEEE INFOCOM, 2000.
[28]
J. Xu, M. Singhal, and J. Degroat. A novel cache architecture to support layer-four packet classfication at memory access speeds. In IEEE INFOCOM, 2000.
[29]
F. Yu and R. H. Katz. Efficient multi-match packet classification with TCAM. In Hot Interconnects, 2004.
[30]
F. Zane, G. Narlikar, and A. Basu. Coolcams: Power-efficient tcams for forwarding engines. In IEEE INFOCOM, 2003.

Cited By

View all
  • (2024)Exploring Dynamic Rule Caching Under Dependency Constraints for Programmable Switches: Theory, Algorithm, and ImplementationIEEE Transactions on Network and Service Management10.1109/TNSM.2024.342209221:4(4830-4843)Online publication date: 1-Aug-2024
  • (2023)FASTeller: A Hardware Partial Aggregator for Accurate Flow Counting in Cloud Networks2023 IEEE 31st International Conference on Network Protocols (ICNP)10.1109/ICNP59255.2023.10355603(1-12)Online publication date: 10-Oct-2023
  • (2021)AIR: An AI-based TCAM Entry Replacement Scheme for Routers2021 IEEE/ACM 29th International Symposium on Quality of Service (IWQOS)10.1109/IWQOS52092.2021.9521314(1-10)Online publication date: 25-Jun-2021
  • Show More Cited By

Index Terms

  1. Wire speed packet classification without tcams: a few more registers (and a bit of logic) are enough

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM SIGMETRICS Performance Evaluation Review
    ACM SIGMETRICS Performance Evaluation Review  Volume 35, Issue 1
    SIGMETRICS '07 Conference Proceedings
    June 2007
    382 pages
    ISSN:0163-5999
    DOI:10.1145/1269899
    Issue’s Table of Contents
    • cover image ACM Conferences
      SIGMETRICS '07: Proceedings of the 2007 ACM SIGMETRICS international conference on Measurement and modeling of computer systems
      June 2007
      398 pages
      ISBN:9781595936394
      DOI:10.1145/1254882
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 12 June 2007
    Published in SIGMETRICS Volume 35, Issue 1

    Check for updates

    Author Tags

    1. packet classification
    2. rule cache
    3. rule evolution

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)2
    • Downloads (Last 6 weeks)1
    Reflects downloads up to 31 Jan 2025

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)Exploring Dynamic Rule Caching Under Dependency Constraints for Programmable Switches: Theory, Algorithm, and ImplementationIEEE Transactions on Network and Service Management10.1109/TNSM.2024.342209221:4(4830-4843)Online publication date: 1-Aug-2024
    • (2023)FASTeller: A Hardware Partial Aggregator for Accurate Flow Counting in Cloud Networks2023 IEEE 31st International Conference on Network Protocols (ICNP)10.1109/ICNP59255.2023.10355603(1-12)Online publication date: 10-Oct-2023
    • (2021)AIR: An AI-based TCAM Entry Replacement Scheme for Routers2021 IEEE/ACM 29th International Symposium on Quality of Service (IWQOS)10.1109/IWQOS52092.2021.9521314(1-10)Online publication date: 25-Jun-2021
    • (2021)FastUp: Fast TCAM Update for SDN Switches in Datacenter Networks2021 IEEE 41st International Conference on Distributed Computing Systems (ICDCS)10.1109/ICDCS51616.2021.00089(887-897)Online publication date: Jul-2021
    • (2020)T-cache: Dependency-free Ternary Rule Cache for Policy-based ForwardingIEEE INFOCOM 2020 - IEEE Conference on Computer Communications10.1109/INFOCOM41043.2020.9155470(536-545)Online publication date: 6-Jul-2020
    • (2018)Adaptive Wildcard Rule Cache Management for Software-Defined NetworksIEEE/ACM Transactions on Networking10.1109/TNET.2018.281598326:2(962-975)Online publication date: 1-Apr-2018
    • (2018)BigMaC: Reactive Network-Wide Policy Caching for SDN Policy EnforcementIEEE Journal on Selected Areas in Communications10.1109/JSAC.2018.287129636:12(2675-2687)Online publication date: 1-Dec-2018
    • (2017)Unified nvTCAM and sTCAM architecture for improving packet matching performanceACM SIGPLAN Notices10.1145/3140582.308103452:5(91-100)Online publication date: 21-Jun-2017
    • (2017)Unified nvTCAM and sTCAM architecture for improving packet matching performanceProceedings of the 18th ACM SIGPLAN/SIGBED Conference on Languages, Compilers, and Tools for Embedded Systems10.1145/3078633.3081034(91-100)Online publication date: 21-Jun-2017
    • (2017)Flexible line speed network packet classification using hybrid on-chip matching circuits2017 IEEE 18th International Conference on High Performance Switching and Routing (HPSR)10.1109/HPSR.2017.7968678(1-8)Online publication date: Jun-2017
    • Show More Cited By

    View Options

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Figures

    Tables

    Media

    Share

    Share

    Share this Publication link

    Share on social media