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 条
  • [31] Increasing the Efficiency of TCAM-based Packet Classifiers using intelligent Cut Technique in Geometric Space
    Vakilian, Shakoor
    Abbasi, Mahdi
    Fanian, Ali
    2015 23RD IRANIAN CONFERENCE ON ELECTRICAL ENGINEERING (ICEE), 2015, : 625 - 630
  • [32] A Power-Efficient Approach to TCAM-based Regular Expression Matching
    Huang, Kun
    Chen, Xuelin
    2018 27TH INTERNATIONAL CONFERENCE ON COMPUTER COMMUNICATION AND NETWORKS (ICCCN), 2018,
  • [33] Fast and space-efficient adaptive arithmetic coding
    Ryabko, B
    Fionov, A
    CRYPTOGRAPHY AND CODING, 1999, 1746 : 270 - 279
  • [34] Packet classification using space-efficient pipelined multibit tries
    Lu, Wencheng
    Sahni, Sartaj
    IEEE TRANSACTIONS ON COMPUTERS, 2008, 57 (05) : 591 - 605
  • [35] Efficient Gray-Code-Based Range Encoding Schemes for Packet Classification in TCAM
    Chang, Yeim-Kuan
    Su, Cheng-Chien
    Lin, Yung-Chieh
    Hsieh, Sun-Yuan
    IEEE-ACM TRANSACTIONS ON NETWORKING, 2013, 21 (04) : 1201 - 1214
  • [36] An ultra high throughput and power efficient TCAM-based IP lookup engine
    Zheng, K
    Hu, CC
    Lu, HB
    Liu, B
    IEEE INFOCOM 2004: THE CONFERENCE ON COMPUTER COMMUNICATIONS, VOLS 1-4, PROCEEDINGS, 2004, : 1984 - 1994
  • [37] Efficient entry-reduction algorithm for TCAM-based IP forwarding engine
    Wang, PC
    Chan, CT
    Chen, RC
    Chang, HY
    IEE PROCEEDINGS-COMMUNICATIONS, 2005, 152 (02): : 172 - 176
  • [38] MEET-IP: Memory and Energy Efficient TCAM-based IP Lookup
    Li, Wenjun
    Li, Xianfeng
    Li, Hui
    2017 26TH INTERNATIONAL CONFERENCE ON COMPUTER COMMUNICATION AND NETWORKS (ICCCN 2017), 2017,
  • [39] Efficient IP lookup using hybrid trie-based partitioning of TCAM-based open flow switches
    Veeramani, S.
    Mahammad, Sk Noor
    PHOTONIC NETWORK COMMUNICATIONS, 2014, 28 (02) : 135 - 145
  • [40] Efficient IP lookup using hybrid trie-based partitioning of TCAM-based open flow switches
    S. Veeramani
    Sk. Noor Mahammad
    Photonic Network Communications, 2014, 28 : 135 - 145