Space-Efficient TCAM-Based Classification Using Gray Coding

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, howev...

Full description

Saved in:
Bibliographic Details
Published inIEEE transactions on computers Vol. 61; no. 1; pp. 18 - 30
Main Authors Bremler-Barr, A., Hendler, D.
Format Journal Article
LanguageEnglish
Published New York IEEE 01.01.2012
The Institute of Electrical and Electronics Engineers, Inc. (IEEE)
Subjects
Online AccessGet full text
ISSN0018-9340
1557-9956
DOI10.1109/TC.2010.267

Cover

Abstract 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.
AbstractList 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.
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 {\cal A} is database-independent if, for all ranges r, it encodes r independently of the database in which it appears; otherwise, we say that {\cal 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.
Author Bremler-Barr, A.
Hendler, D.
Author_xml – sequence: 1
  givenname: A.
  surname: Bremler-Barr
  fullname: Bremler-Barr, A.
  email: bremler@idc.ac.il
  organization: Interdiscipl. Center, Sch. of Comput. Sci., Herzeliya, Israel
– sequence: 2
  givenname: D.
  surname: Hendler
  fullname: Hendler, D.
  email: hendlerd@cs.bgu.ac.il
  organization: Dept. of Comput. Sci., Ben-Gurion Univ., Beer-Sheva, Israel
BookMark eNp1kL1PwzAQxS1UJNrCxMgSsSIXfycWU7HKh1TEQDpbjmMjVyUpdjr0v8eliAGJ6e50v3f39CZg1PWdA-ASoxnGSN7WakZQHogoT8AYc15CKbkYgTFCuIKSMnQGJimtEUKCIDkGd29bYx1ceB9scN1Q1Gr-Au9Ncm2hNialkBdmCH1XrFLo3ovHaPaF6tvcn4NTbzbJXfzUKVg9LGr1BJevj89qvoSWMjFA32DGykYgLjCnFbWWudJbwlqCvXRNdtxaKiomPalMY4SsjEEEN2UpqWk4nYLr491t7D93Lg163e9il19qiQRnAuMyQ_gI2dinFJ3XNgzfxodowkZjpA8R6VrpQ0Q6R5Q1N3802xg-TNz_Q18d6eCc-yW5EJJUkn4BEuFvSw
CODEN ITCOB4
CitedBy_id crossref_primary_10_1109_TNET_2015_2407831
crossref_primary_10_1109_TVLSI_2022_3198492
crossref_primary_10_1016_j_vehcom_2017_02_005
crossref_primary_10_1016_j_vlsi_2024_102153
crossref_primary_10_1109_TC_2012_59
crossref_primary_10_1016_j_comnet_2021_108630
crossref_primary_10_1016_j_jnca_2021_103307
crossref_primary_10_1016_j_comcom_2017_05_001
crossref_primary_10_1155_2021_9926619
crossref_primary_10_1109_TNSM_2023_3285749
crossref_primary_10_1145_2523069
crossref_primary_10_1145_3586577
crossref_primary_10_1109_COMST_2023_3344351
crossref_primary_10_3390_electronics8101159
crossref_primary_10_1007_s11227_022_04377_8
crossref_primary_10_1145_3409109
crossref_primary_10_1109_TNET_2020_2977477
crossref_primary_10_1016_j_csa_2023_100015
crossref_primary_10_1145_3105958
crossref_primary_10_1186_s13638_019_1617_8
crossref_primary_10_1145_2377677_2377749
crossref_primary_10_4304_jcp_8_10_2724_2729
crossref_primary_10_1109_TVLSI_2016_2576281
crossref_primary_10_3390_su12083068
crossref_primary_10_1109_TC_2011_255
crossref_primary_10_1109_TNET_2016_2608441
crossref_primary_10_1109_TNET_2014_2382031
crossref_primary_10_1016_j_ins_2012_09_050
crossref_primary_10_1016_j_comnet_2017_02_016
crossref_primary_10_1016_j_comcom_2017_11_011
crossref_primary_10_1109_TNET_2021_3140124
crossref_primary_10_1145_2740070_2626294
crossref_primary_10_1145_3328103
crossref_primary_10_1016_j_comcom_2020_12_027
crossref_primary_10_1109_TNET_2020_2979400
crossref_primary_10_1109_TVLSI_2016_2518219
Cites_doi 10.1109/JSAC.2003.810527
10.1109/infocom.2007.44
10.1109/INFCOM.2003.1208658
10.1109/TNET.2007.893156
10.1109/TC.2007.70838
10.1109/TPDS.2008.216
10.1145/1140277.1140313
10.1145/1108956.1108958
10.1007/s00453-002-1000-7
10.1145/285243.285282
10.1109/INFCOM.2004.1354607
10.1109/ICNP.2009.5339695
10.1109/INFCOM.1999.749256
10.1109/INFOCOM.2008.31
10.1145/1555349.1555359
10.1109/ICNP.2007.4375857
10.1109/CONECT.2002.1039263
10.1007/11535706_15
10.1016/j.dam.2004.08.009
10.1109/TC.2006.123
10.1109/CONECT.2004.1375197
10.1109/65.912717
ContentType Journal Article
Copyright Copyright The Institute of Electrical and Electronics Engineers, Inc. (IEEE) Jan 2012
Copyright_xml – notice: Copyright The Institute of Electrical and Electronics Engineers, Inc. (IEEE) Jan 2012
DBID 97E
RIA
RIE
AAYXX
CITATION
7SC
7SP
8FD
JQ2
L7M
L~C
L~D
DOI 10.1109/TC.2010.267
DatabaseName IEEE All-Society Periodicals Package (ASPP) 2005–Present
IEEE All-Society Periodicals Package (ASPP) 1998–Present
IEEE Electronic Library (IEL)
CrossRef
Computer and Information Systems Abstracts
Electronics & Communications Abstracts
Technology Research Database
ProQuest Computer Science Collection
Advanced Technologies Database with Aerospace
Computer and Information Systems Abstracts – Academic
Computer and Information Systems Abstracts Professional
DatabaseTitle CrossRef
Technology Research Database
Computer and Information Systems Abstracts – Academic
Electronics & Communications Abstracts
ProQuest Computer Science Collection
Computer and Information Systems Abstracts
Advanced Technologies Database with Aerospace
Computer and Information Systems Abstracts Professional
DatabaseTitleList
Technology Research Database
Database_xml – sequence: 1
  dbid: RIE
  name: IEEE Electronic Library (IEL)
  url: https://proxy.k.utb.cz/login?url=https://ieeexplore.ieee.org/
  sourceTypes: Publisher
DeliveryMethod fulltext_linktorsrc
Discipline Engineering
Computer Science
EISSN 1557-9956
EndPage 30
ExternalDocumentID 2522812801
10_1109_TC_2010_267
5669289
Genre orig-research
GroupedDBID --Z
-DZ
-~X
.55
.DC
0R~
29I
3EH
3O-
4.4
5GY
5VS
6IK
85S
97E
AAJGR
AARMG
AASAJ
AAWTH
ABAZT
ABFSI
ABQJQ
ABVLG
ACGFO
ACIWK
ACNCT
AENEX
AETEA
AETIX
AGQYO
AGSQL
AHBIQ
AI.
AIBXA
AKJIK
AKQYR
ALLEH
ALMA_UNASSIGNED_HOLDINGS
ASUFR
ATWAV
BEFXN
BFFAM
BGNUA
BKEBE
BPEOZ
CS3
DU5
E.L
EBS
EJD
HZ~
H~9
IAAWW
IBMZZ
ICLAB
IEDLZ
IFIPE
IFJZH
IPLJI
JAVBF
LAI
M43
MS~
MVM
O9-
OCL
P2P
PQQKQ
RIA
RIE
RNI
RNS
RXW
RZB
TAE
TN5
TWZ
UHB
UKR
UPT
VH1
X7M
XJT
XOL
XZL
YXB
YYQ
YZZ
ZCG
AAYXX
CITATION
7SC
7SP
8FD
JQ2
L7M
L~C
L~D
RIG
ID FETCH-LOGICAL-c346t-fb1447b605615383cc4e7fc24d21f9eb201dc36849f28aba698aa021b7793ab53
IEDL.DBID RIE
ISSN 0018-9340
IngestDate Sun Jun 29 15:14:26 EDT 2025
Wed Oct 01 06:39:51 EDT 2025
Thu Apr 24 23:01:11 EDT 2025
Wed Aug 27 02:49:02 EDT 2025
IsPeerReviewed true
IsScholarly true
Issue 1
Language English
License https://ieeexplore.ieee.org/Xplorehelp/downloads/license-information/IEEE.html
LinkModel DirectLink
MergedId FETCHMERGED-LOGICAL-c346t-fb1447b605615383cc4e7fc24d21f9eb201dc36849f28aba698aa021b7793ab53
Notes ObjectType-Article-1
SourceType-Scholarly Journals-1
ObjectType-Feature-2
content type line 14
PQID 906546117
PQPubID 85452
PageCount 13
ParticipantIDs crossref_citationtrail_10_1109_TC_2010_267
crossref_primary_10_1109_TC_2010_267
ieee_primary_5669289
proquest_journals_906546117
ProviderPackageCode CITATION
AAYXX
PublicationCentury 2000
PublicationDate 2012-Jan.
2012-01-00
20120101
PublicationDateYYYYMMDD 2012-01-01
PublicationDate_xml – month: 01
  year: 2012
  text: 2012-Jan.
PublicationDecade 2010
PublicationPlace New York
PublicationPlace_xml – name: New York
PublicationTitle IEEE transactions on computers
PublicationTitleAbbrev TC
PublicationYear 2012
Publisher IEEE
The Institute of Electrical and Electronics Engineers, Inc. (IEEE)
Publisher_xml – name: IEEE
– name: The Institute of Electrical and Electronics Engineers, Inc. (IEEE)
References ref13
ref15
ref14
Venkatachary (ref9)
Meiners (ref18)
ref10
ref2
ref1
ref17
ref16
ref19
(ref27) 2006
Taylor (ref12)
ref24
ref23
ref26
ref25
Turner (ref28)
ref20
Kim (ref11)
Varghese (ref4) 2005
ref22
ref21
ref29
ref8
ref7
ref3
ref6
ref5
References_xml – ident: ref8
  doi: 10.1109/JSAC.2003.810527
– ident: ref21
  doi: 10.1109/infocom.2007.44
– start-page: 1834
  volume-title: Proc. Global Telecomm. Conf. (Globecom)
  ident: ref11
  article-title: Efficient Gray Code Based Range Encoding Schemes for Packet Classification in TCAM
– ident: ref5
  doi: 10.1109/INFCOM.2003.1208658
– ident: ref29
  doi: 10.1109/TNET.2007.893156
– volume-title: Ports Numbers
  year: 2006
  ident: ref27
– volume-title: Proc. IEEE Int’l Conf. Network Protocols (ICNP ’03)
  ident: ref12
  article-title: Packet Classification Using Extended TCAMs
– ident: ref13
  doi: 10.1109/TC.2007.70838
– ident: ref23
  doi: 10.1109/TPDS.2008.216
– ident: ref15
  doi: 10.1145/1140277.1140313
– volume-title: Network Algorithmics: An Interdisciplinary Approach to Designing Fast Networked Devices
  year: 2005
  ident: ref4
– volume-title: Proc. IEEE INFOCOM
  ident: ref28
  article-title: Classbench: A Packet Classification Benchmark
– ident: ref2
  doi: 10.1145/1108956.1108958
– ident: ref17
  doi: 10.1007/s00453-002-1000-7
– ident: ref6
  doi: 10.1145/285243.285282
– ident: ref26
  doi: 10.1109/INFCOM.2004.1354607
– ident: ref19
  doi: 10.1109/ICNP.2009.5339695
– volume-title: Proc. ACM SIGCOMM ’05
  ident: ref9
  article-title: Algorithms for Advanced Packet Classification with Ternary Cams
– ident: ref14
  doi: 10.1109/INFCOM.1999.749256
– volume-title: Proc. ACM SIGCOMM
  ident: ref18
  article-title: Topological Transformation Approaches to Optimizing TCAM-Based Packet Processing Systems
– ident: ref20
  doi: 10.1109/INFOCOM.2008.31
– ident: ref24
  doi: 10.1145/1555349.1555359
– ident: ref16
  doi: 10.1109/ICNP.2007.4375857
– ident: ref7
  doi: 10.1109/CONECT.2002.1039263
– ident: ref22
  doi: 10.1007/11535706_15
– ident: ref1
  doi: 10.1016/j.dam.2004.08.009
– ident: ref25
  doi: 10.1109/TC.2006.123
– ident: ref10
  doi: 10.1109/CONECT.2004.1375197
– ident: ref3
  doi: 10.1109/65.912717
SSID ssj0006209
Score 2.3355658
Snippet Ternary content-addressable memories (TCAMs) are increasingly used for high-speed packet classification. TCAMs compare packet headers against all rules in a...
SourceID proquest
crossref
ieee
SourceType Aggregation Database
Enrichment Source
Index Database
Publisher
StartPage 18
SubjectTerms Algorithm design and analysis
Algorithms
Classification
Comparative analysis
Encoding
Gray code
packet classification
Pattern matching
range encoding
Redundancy
Reflective binary codes
TCAM
Throughput
Title Space-Efficient TCAM-Based Classification Using Gray Coding
URI https://ieeexplore.ieee.org/document/5669289
https://www.proquest.com/docview/906546117
Volume 61
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
journalDatabaseRights – providerCode: PRVIEE
  databaseName: IEEE Electronic Library (IEL)
  customDbUrl:
  eissn: 1557-9956
  dateEnd: 99991231
  omitProxy: false
  ssIdentifier: ssj0006209
  issn: 0018-9340
  databaseCode: RIE
  dateStart: 19680101
  isFulltext: true
  titleUrlDefault: https://ieeexplore.ieee.org/
  providerName: IEEE
link http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV07T8MwED6VTjDwKojyUoZOiJTEcZxYTBC1VEhloZXYItu9LKAWlXSAX8_ZSQoCBrYMF8vy-Xz32Xf3AfQI9Mik4GRpnGufS2S-LDTzEWOUGjn5VFuNPH4Qoym_f4qfWnC5roVBRJd8hn376d7yZwuzsldlVxR6SAIIG7CRpKKq1VqfuqJJ5wjJgCMe1LV4YSCvJlmVwsUcmfyX93F0Kr_OYOdYhjswbqZU5ZM891el7puPH90a_zvnXdiuI0zvptoSe9DC-T7sNOwNXm3M-7D1rRVhB64fCTyjP3AdJWhEb5LdjP1b8nEzzxFn2pQip0XPZRl4d0v17mUL6_oOYDocTLKRXxMr-CbiovQLTTAq0cKiBzrwImM4JoVhfMbCQhLWDsKZiUTKZcFSpZWQqVIUDOiErFnpODqE9nwxxyPwNDMUgpgYVSR4QSKxMTLARLEUhVa8CxfNguem7jpuyS9ecoc-AplPstxqJyftdKG3Fn6tmm38Ldax67wWqZe4CyeNJvPaEN9y6ejewzA5_vunE9ikYVl1qXIK7XK5wjMKM0p97vbXJ94Pzao
linkProvider IEEE
linkToHtml http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwjV07T8MwED4VGICBRwuiPDN0QqQkjpPUYoKIUqDtQiqxRbZ7WUAtgnaAX8_ZSQoCBrYMl8Ty-Xz32Xf3AbQI9Ig452RpnCuXC2SuyBVzEUMUCjn5VFONPBhGvRG_ewwfa3C2qIVBRJt8hm3zaO_yx1M9N0dl5xR6CAIIS7AScs7Dolprse9GVUKHTyYccK-sxvM9cZ4mRRIXs3TyX_7HEqr82oWta-luwqAaVJFR8tSez1Rbf_zo1_jfUW_BRhljOpfFotiGGk7qsFnxNzilOddh_VszwgZcPBB8Rvfa9pSgLzppcjlwr8jLjR1LnWmSiqweHZtn4Ny8yncnmRrntwOj7nWa9NySWsHVAY9mbq4ISMUqMviBtrxAa45xrhkfMz8XhLY9f6yDqMNFzjpSyUh0pKRwQMVkz1KFwS4sT6YT3ANHMU1BiA5RBhHPSSTUWngYS9bBSEnehNNqwjNd9h039BfPmcUfnsjSJDPayUg7TWgthF-Kdht_izXMPC9EyiluwkGlyaw0xbdMWMJ334_3_37pBFZ76aCf9W-H9wewRr9gxRHLISzPXud4REHHTB3btfYJz6XQ9w
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Space-Efficient+TCAM-Based+Classification+Using+Gray+Coding&rft.jtitle=IEEE+transactions+on+computers&rft.au=Bremler-Barr%2C+Anat&rft.au=Hendler%2C+Danny&rft.date=2012-01-01&rft.pub=The+Institute+of+Electrical+and+Electronics+Engineers%2C+Inc.+%28IEEE%29&rft.issn=0018-9340&rft.eissn=1557-9956&rft.volume=61&rft.issue=1&rft.spage=18&rft_id=info:doi/10.1109%2FTC.2010.267&rft.externalDBID=NO_FULL_TEXT&rft.externalDocID=2522812801
thumbnail_l http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/lc.gif&issn=0018-9340&client=summon
thumbnail_m http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/mc.gif&issn=0018-9340&client=summon
thumbnail_s http://covers-cdn.summon.serialssolutions.com/index.aspx?isbn=/sc.gif&issn=0018-9340&client=summon