Space-Efficient TCAM-Based Classification Using Gray Coding

被引:67
|
作者
Bremlerr-Barr, Anat [1 ]
Hendler, Danny [2 ]
机构
[1] Interdisciplinary Ctr, Sch Comp Sci, IL-46150 Herzliyya, Israel
[2] Ben Gurion Univ Negev, Dept Comp Sci, IL-84105 Beer Sheva, Israel
关键词
TCAM; packet classification; range encoding; Gray code; PACKET CLASSIFICATION;
D O I
10.1109/TC.2010.267
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Ternary content-addressable memories (TCAMs) are increasingly used for high-speed packet classification. TCAMs compare packet headers against all rules in a classification database in parallel and thus provide high throughput unparalleled by software-based solutions. TCAMs are not well-suited, however, for representing rules that contain range fields. Such rules typically have to be represented (or encoded) by multiple TCAM entries. The resulting range expansion can dramatically reduce TCAM utilization. A TCAM range-encoding algorithm A is database-independent if, for all ranges r, it encodes r independently of the database in which it appears; otherwise, we say that A is database-dependent. Typically, when storing a classification database in TCAM, a few dozens of so-called extra bits in each TCAM entry remain unused. These extra bits are used by some (both database-dependent and database-independent) prior algorithms to reduce range expansion. The majority of real-life database ranges are short. We present a novel database-independent algorithm called Short Range Gray Encoding (SRGE) for the efficient representation of short range rules. SRGE encodes range endpoints as binary-reflected Gray codes and then represents the resulting range by a minimal set of ternary strings. To the best of our knowledge, SRGE is the first algorithm that achieves a reduction in range expansion in general, and a significant expansion reduction for short ranges in particular, without resorting to the use of extra bits. The "traditional" database-independent technique for representing range entries in TCAM is prefix expansion. As we show, SRGE significantly reduces the expansion of short ranges in comparison with prefix expansion. We also prove that the SRGE algorithm's range expansion is at least as good as that of prefix expansion for any range. Real-world classification databases contain a small number of unique long ranges, some of which appear in numerous rules. These long ranges cause high expansion which is not significantly reduced by any database-independent range encoding scheme that we are aware of, including SRGE. We introduce hybrid SRGE, a database-dependent encoding scheme that uses SRGE for reducing the expansion of short ranges and uses extra bits for reducing the expansion caused by long ones. Our comparative analysis establishes that hybrid SRGE utilizes TCAM more efficiently than previously published range-encoding algorithms. This work also makes a more theoretic contribution. Prefix expansion for ranges defined by W-bit endpoints has worst-case expansion ratio of 2W 2. It follows from the work of Schieber et al. [1] that the SRGE algorithm has a slightly better worst-case expansion ratio of 2W -4. We prove that any independent TCAM encoding scheme has worst-case expansion ratio of at least W.
引用
收藏
页码:18 / 30
页数:13
相关论文
共 50 条
  • [41] EaseCAM: An energy and storage efficient TCAM-based router architecture for IP lookup
    Ravikumar, VC
    Mahapatra, RN
    Bhuyan, LN
    IEEE TRANSACTIONS ON COMPUTERS, 2005, 54 (05) : 521 - 533
  • [42] TCAM-Based IP Address Lookup Using Longest Suffix Split
    Huang, Jhih-Yu
    Wang, Pi-Chung
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2018, 26 (02) : 976 - 989
  • [43] TCAM-based distributed parallel packet classification algorithm with range-matching solution
    Zheng, K
    Che, H
    Wang, ZJ
    Bin, L
    IEEE INFOCOM 2005: THE CONFERENCE ON COMPUTER COMMUNICATIONS, VOLS 1-4, PROCEEDINGS, 2005, : 293 - 303
  • [44] DPPC-RE: TCAM-based distributed parallel packet classification with range encoding
    Zheng, Kai
    Che, Hao
    Wang, Zhijun
    Liu, Bin
    Zhang, Xin
    IEEE TRANSACTIONS ON COMPUTERS, 2006, 55 (08) : 947 - 961
  • [45] Simple Efficient TCAM Based Range Classification
    Cohen, Rami
    Raz, Danny
    2010 PROCEEDINGS IEEE INFOCOM, 2010,
  • [46] Fast and space-efficient shapelets-based time-series classification
    Gordona, Daniel
    Hendler, Danny
    Rokach, Lior
    INTELLIGENT DATA ANALYSIS, 2015, 19 (05) : 953 - 981
  • [47] Space-efficient memory-based heuristics
    Zhou, R
    Hansen, EA
    PROCEEDING OF THE NINETEENTH NATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND THE SIXTEENTH CONFERENCE ON INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2004, : 677 - 682
  • [48] Fast Lookup Is Not Enough: Towards Efficient and Scalable Flow Entry Updates for TCAM-based OpenFlow Switches
    Qiu, Kun
    Yuan, Jing
    Zhao, Jin
    Wang, Xin
    Secci, Stefano
    Fu, Xiaoming
    2018 IEEE 38TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS (ICDCS), 2018, : 918 - 928
  • [49] Efficient multi-category packet classification using TCAM
    Zhong, Jincheng
    Chen, Shuhui
    COMPUTER COMMUNICATIONS, 2021, 169 : 1 - 10
  • [50] Multi-Context TCAM-Based Selective Computing: Design Space Exploration for a Low-Power NN
    Arakawa, Ren
    Onizawa, Naoya
    Diguet, Jean-Philippe
    Hanyu, Takahiro
    IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS I-REGULAR PAPERS, 2021, 68 (01) : 67 - 76