Space-Efficient TCAM-Based Classification Using Gray Coding

被引:68
|
作者
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 条
  • [1] Space-efficient TCAM-based oassification using gray coding
    Bremler-Barr, Anat
    Hendler, Danny
    [J]. INFOCOM 2007, VOLS 1-5, 2007, : 1388 - +
  • [2] TCAM-PC: Space-efficient TCAM-based packet classification with packet-forwarding-rate constraints
    Wang Kai
    Wu Hengkui
    [J]. PROCEEDINGS OF 2015 IEEE 12TH INTERNATIONAL CONFERENCE ON ELECTRONIC MEASUREMENT & INSTRUMENTS (ICEMI), VOL. 1, 2015, : 211 - 215
  • [3] Layered Interval Codes for TCAM-based Classification
    Bremler-Barr, Anat
    Hay, David
    Hendler, Danny
    [J]. IEEE INFOCOM 2009 - IEEE CONFERENCE ON COMPUTER COMMUNICATIONS, VOLS 1-5, 2009, : 1305 - +
  • [4] Efficient Searching with a TCAM-based Parallel Architecture
    Zhang, Bin
    Qin, Donghong
    Diao, Xingchun
    Ding, Kun
    Yan, Hao
    [J]. JOURNAL OF INTERNET TECHNOLOGY, 2018, 19 (07): : 2214 - 2225
  • [5] IMPROVEMENT OF TCAM-BASED PACKET CLASSIFICATION ALGORITHM
    Xu Zhen Zhang Jun Rui Liyang Sun Jun (The School of Electronics and information Engineering
    [J]. Journal of Electronics(China), 2008, (02) : 239 - 245
  • [6] Layered interval codes for TCAM-based classification
    Bremler-Barr, Anat
    Hay, David
    Hendler, Danny
    [J]. COMPUTER NETWORKS, 2012, 56 (13) : 3023 - 3039
  • [7] Layered Interval Codes for TCAM-based Classification
    Bremler-Barr, Anat
    Hay, David
    Hendler, Danny
    Farber, Boris
    [J]. SIGMETRICS'08: PROCEEDINGS OF THE 2008 INTERNATIONAL CONFERENCE ON MEASUREMENT & MODELING OF COMPUTER SYSTEMS, 2008, 36 (01): : 445 - +
  • [8] An encoding scheme for TCAM-based packet classification
    Pao, D
    Li, YK
    Zhou, P
    [J]. 8TH INTERNATIONAL CONFERENCE ON ADVANCED COMMUNICATION TECHNOLOGY, VOLS 1-3: TOWARD THE ERA OF UBIQUITOUS NETWORKS AND SOCIETIES, 2006, : U470 - U475
  • [9] GreenTCAM: A Memory- and Energy-efficient TCAM-based Packet Classification
    Li, Xianfeng
    Lin, Yuanxin
    Li, Wenjun
    [J]. 2016 INTERNATIONAL CONFERENCE ON COMPUTING, NETWORKING AND COMMUNICATIONS (ICNC), 2016,
  • [10] TCAM-Based Classification Using Divide-and-Conquer for Range Expansion
    Sun, Hai
    Sun, Yan
    Valgenti, Victor C.
    Kim, Min Sik
    [J]. 2014 23RD INTERNATIONAL CONFERENCE ON COMPUTER COMMUNICATION AND NETWORKS (ICCCN), 2014,