• DocumentCode
    5545
  • Title

    Exact Worst Case TCAM Rule Expansion

  • Author

    Rottenstreich, O. ; Cohen, R. ; Raz, D. ; Keslassy, I.

  • Author_Institution
    Dept. of Electr. Eng., Technion - Israel Inst. of Technol., Haifa, Israel
  • Volume
    62
  • Issue
    6
  • fYear
    2013
  • fDate
    Jun-13
  • Firstpage
    1127
  • Lastpage
    1140
  • Abstract
    In recent years, hardware-based packet classification has became an essential component in many networking devices. It often relies on ternary content-addressable memories (TCAMs), which can compare in parallel the packet header against a large set of rules. Designers of TCAMs often have to deal with unpredictable sets of rules. These result in highly variable rule expansions, and can only rely on heuristic encoding algorithms with no reasonable guarantees. In this paper, given several types of rules, we provide new upper bounds on the TCAM worst case rule expansions. In particular, we prove that a W-bit range can be encoded in W TCAM entries, improving upon the previously known bound of 2W - 5. We further prove the optimality of this bound of W for prefix encoding, using new analytical tools based on independent sets and alternating paths. Next, we generalize these lower bounds to a new class of codes called hierarchical codes that includes both binary codes and Gray codes. Last, we propose a modified TCAM architecture that can use additional logic to significantly reduce the rule expansions, both in the worst case and using real-life classification databases.
  • Keywords
    Gray codes; binary codes; content-addressable storage; memory architecture; pattern classification; set theory; Gray codes; TCAM architecture; W TCAM entries; W-bit range; exact worst case TCAM rule expansion; hardware-based packet classification; heuristic encoding algorithms; hierarchical codes; networking devices; packet header; prefix encoding; real-life classification databases; ternary content-addressable memories; variable rule expansions; Databases; Encoding; Power demand; Reflective binary codes; Simulation; Upper bound; TCAM; packet classification; range encoding;
  • fLanguage
    English
  • Journal_Title
    Computers, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    0018-9340
  • Type

    jour

  • DOI
    10.1109/TC.2012.59
  • Filename
    6165260