On the Code Length of TCAM Coding Schemes Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel) 1.

Slides:



Advertisements
Similar presentations
Compressing Forwarding Tables Ori Rottenstreich (Technion, Israel) Joint work with Marat Radan, Yuval Cassuto, Isaac Keslassy (Technion, Israel) Carmi.
Advertisements

Fast Updating Algorithms for TCAMs Devavrat Shah Pankaj Gupta IEEE MICRO, Jan.-Feb
Packet Classification using Hierarchical Intelligent Cuttings
1 IP-Lookup and Packet Classification Advanced Algorithms & Data Structures Lecture Theme 08 – Part I Prof. Dr. Th. Ottmann Summer Semester 2006.
1 An Efficient, Hardware-based Multi-Hash Scheme for High Speed IP Lookup Hot Interconnects 2008 Socrates Demetriades, Michel Hanna, Sangyeun Cho and Rami.
Fast Firewall Implementation for Software and Hardware-based Routers Lili Qiu, Microsoft Research George Varghese, UCSD Subhash Suri, UCSB 9 th International.
Fast Algorithms For Hierarchical Range Histogram Constructions
Bio Michel Hanna M.S. in E.E., Cairo University, Egypt B.S. in E.E., Cairo University at Fayoum, Egypt Currently is a Ph.D. Student in Computer Engineering.
Outline Introduction Related work on packet classification Grouper Performance Empirical Evaluation Conclusions.
A Ternary Unification Framework for Optimizing TCAM-Based Packet Classification Systems Author: Eric Norige, Alex X. Liu, and Eric Torng Publisher: ANCS.
1 TCAM Razor: A Systematic Approach Towards Minimizing Packet Classifiers in TCAMs Department of Computer Science and Information Engineering National.
High-Performance Networking Group Isaac Keslassy, Nick McKeown
Hash Tables With Finite Buckets Are Less Resistant to Deletions Yossi Kanizo (Technion, Israel) Joint work with David Hay (Columbia U. and Hebrew U.) and.
Firewall Policy Queries Author: Alex X. Liu, Mohamed G. Gouda Publisher: IEEE Transaction on Parallel and Distributed Systems 2009 Presenter: Chen-Yu Chang.
Worst-Case TCAM Rule Expansion Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel)
Efficient Multidimensional Packet Classification with Fast Updates Author: Yeim-Kuan Chang Publisher: IEEE TRANSACTIONS ON COMPUTERS, VOL. 58, NO. 4, APRIL.
Performance Evaluation of IPv6 Packet Classification with Caching Author: Kai-Yuan Ho, Yaw-Chung Chen Publisher: ChinaCom 2008 Presenter: Chen-Yu Chaug.
張 燕 光 資訊工程學系 Dept. of Computer Science & Information Engineering,
PEDS: Parallel Error Detection Scheme for TCAM Devices David Hay, Politecnico di Torino Joint work with Anat Bremler Barr (IDC), Danny Hendler (BGU) and.
Two stage packet classification using most specific filter matching and transport level sharing Authors: M.E. Kounavis *,A. Kumar,R. Yavatkar,H. Vin Presenter:
Algorithms for Advanced Packet Classification with TCAMs Karthik Lakshminarayanan UC Berkeley Joint work with Anand Rangarajan and Srinivasan Venkatachary.
1 Wire Speed Packet Classification Without TCAMs: A Few More Registers (And A Bit of Logic) Are Enough Author: Qunfeng Dong, Suman Banerjee, Jia Wang, Dheeraj.
Fundamental Complexity of Optical Systems Hadas Kogan, Isaac Keslassy Technion (Israel)
Worst-Case TCAM Rule Expansion Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel)
Fast binary and multiway prefix searches for pachet forwarding Author: Yeim-Kuan Chang Publisher: COMPUTER NETWORKS, Volume 51, Issue 3, pp , February.
Chapter 9 Classification And Forwarding. Outline.
Existing Range Encoding Schemes Presenter: Kai-Yang, Liu Date: 2011/11/23.
1 Efficient packet classification using TCAMs Authors: Derek Pao, Yiu Keung Li and Peng Zhou Publisher: Computer Networks 2006 Present: Chen-Yu Lin Date:
ECE 526 – Network Processing Systems Design Network Processor Architecture and Scalability Chapter 13,14: D. E. Comer.
PEDS: Parallel Error Detection Scheme for TCAM Devices David Hay, Politecnico di Torino Joint work with Anat Bremler Barr (IDC, Israel), Danny Hendler.
Layered Interval Codes for TCAM-based Classification David Hay, Politecnico di Torino Joint work with Anat Bremler-Barr (IDC), Danny Hendler (BGU) and.
Applied Research Laboratory Edward W. Spitznagel 7 October Packet Classification for Core Routers: Is there an alternative to CAMs? Paper by: Florin.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Minimizing Rulesets for TCAM Implementation.
CEDAR Counter-Estimation Decoupling for Approximate Rates Erez Tsidon (Technion, Israel) Joint work with Iddo Hanniel and Isaac Keslassy ( Technion ) 1.
An Improved Algorithm to Accelerate Regular Expression Evaluation Author: Michela Becchi, Patrick Crowley Publisher: 3rd ACM/IEEE Symposium on Architecture.
CEDAR Counter-Estimation Decoupling for Approximate Rates Erez Tsidon Joint work with Iddo Hanniel and Isaac Keslassy Technion, Israel 1.
ORange: Multi Field OpenFlow based Range Classifier Liron Schiff Tel Aviv University Yehuda Afek Tel Aviv University Anat Bremler-Barr Inter Disciplinary.
Geometric Matching on Sequential Data Veli Mäkinen AG Genominformatik Technical Fakultät Bielefeld Universität.
Wire Speed Packet Classification Without TCAMs ACM SIGMETRICS 2007 Qunfeng Dong (University of Wisconsin-Madison) Suman Banerjee (University of Wisconsin-Madison)
Palette: Distributing Tables in Software-Defined Networks Yossi Kanizo (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel) and David Hay.
Multi-Field Range Encoding for Packet Classification in TCAM Author: Yeim-Kuan Chang, Chun-I Lee and Cheng-Chien Su Publisher: INFOCOM 2011 Presenter:
1. Outline Introduction Related work on packet classification Grouper Performance Analysis Empirical Evaluation Conclusions 2/42.
1 Space-Efficient TCAM-based Classification Using Gray Coding Anat Bremler – Barr Interdisciplianry Center Danny Hendler Ben-Gurion University Infocom.
On Finding an Optimal TCAM Encoding Scheme for Packet Classification Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel)
The Bloom Paradox Ori Rottenstreich Joint work with Yossi Kanizo and Isaac Keslassy Technion, Israel.
Guaranteed Smooth Scheduling in Packet Switches Isaac Keslassy (Stanford University), Murali Kodialam, T.V. Lakshman, Dimitri Stiliadis (Bell-Labs)
1 Fast packet classification for two-dimensional conflict-free filters Department of Computer Science and Information Engineering National Cheng Kung University,
A Smart Pre-Classifier to Reduce Power Consumption of TCAMs for Multi-dimensional Packet Classification Yadi Ma, Suman Banerjee University of Wisconsin-Madison.
High-Speed Policy-Based Packet Forwarding Using Efficient Multi-dimensional Range Matching Lakshman and Stiliadis ACM SIGCOMM 98.
The Bloom Paradox Ori Rottenstreich Joint work with Isaac Keslassy Technion, Israel.
AUTHOR: NIZAR BEN NEJI, ADEL BOUHOULA PUBLISHER: IEEE INTERNATIONAL CONFERENCE,2011 PRESENTER: KAI-YANG LIU DATE:2011/08/31 1 NAF Conversion: An Efficient.
Minimizing Delay in Shared Pipelines Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel) Yoram Revah, Aviran Kadosh.
Range Enhanced Packet Classification Design on FPGA Author: Yeim-Kuan Chang, Chun-sheng Hsueh Publisher: IEEE Transactions on Emerging Topics in Computing.
1 Bit Weaving: A Non-Prefix Approach to Compressing Packet Classifiers in TCAMs Author: Chad R. Meiners, Alex X. Liu, and Eric Torng Publisher: IEEE/ACM.
Lossy Compression of Packet Classifiers Author: Ori Rottenstreich, J’anos Tapolcai Publisher: 2015 IEEE International Conference on Communications Presenter:
Dynamic Algorithms with Worst-case Performance for Packet Classification Pankaj Gupta and Nick McKeown Stanford University {pankaj,
Compression for Fixed-Width Memories Ori Rottenstriech, Amit Berman, Yuval Cassuto and Isaac Keslassy Technion, Israel.
1 Space-Efficient TCAM-based Classification Using Gray Coding Authors: Anat Bremler-Barr and Danny Hendler Publisher: IEEE INFOCOM 2007 Present: Chen-Yu.
Hierarchical packet classification using a Bloom filter and rule-priority tries Source : Computer Communications Authors : A. G. Alagu Priya 、 Hyesook.
A Classification for Access Control List To Speed Up Packet-Filtering Firewall CHEN FAN, LONG TAN, RAWAD FELIMBAN and ABDELSHAKOUR ABUZNEID Department.
Scalable Multi-match Packet Classification Using TCAM and SRAM Author: Yu-Chieh Cheng, Pi-Chung Wang Publisher: IEEE Transactions on Computers (2015) Presenter:
The Variable-Increment Counting Bloom Filter
Yotam Harchol The Hebrew University of Jerusalem, Israel
Scalable Multi-Match Packet Classification Using TCAM and SRAM
Yotam Harchol The Hebrew University of Jerusalem, Israel
Power-efficient range-match-based packet classification on FPGA
Worst-Case TCAM Rule Expansion
Authors: Ding-Yuan Lee, Ching-Che Wang, An-Yeu Wu Publisher: 2019 VLSI
MEET-IP Memory and Energy Efficient TCAM-based IP Lookup
Packet Classification Using Binary Content Addressable Memory
Presentation transcript:

On the Code Length of TCAM Coding Schemes Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel) 1

Network Structure 2

Packet Classification Action ---- RuleAction Policy Database (classifier) Packet Classification Forwarding Engine Incoming Packet HEADERHEADER 3 Switch

The TCAM Architecture Encoder Match lines deny accept deny accept deny accept  1  00   10    1110  010  0  11   01    1010    row 3   Each entry is a word in {0,1,  } W Packet Header TCAM Array Source Port 4 Width W

Range Rules RuleSource address Source port Dest- address Dest- port Prot ocol Action Rule / /32 80TCP Accept Rule /24> / TCP Deny Rule / UDP Accept Rule / TCP Limit Rule ICMP Log  Range rule = rule that contains range field  Usually source-port or dest-port 5 How many TCAM entries are required for representing one range field?

Range Rule Representation in TCAM  Coding objective: minimize the number of TCAM entries needed to code the range  More TCAM entries represent more power consumption  Some ranges are easy to represent Example: W=3: [4, 7] = {100,101,110,111} = 1   But what about [1,6] ? 6

 Range [1,6] in tree of all elements with W=3 bits: (Internal) Coding of [1,6] Known result: expansion in 2W-2 TCAM entries Here: 2W-2=4 TCAM entries 7

Upper Bounds on the TCAM Range Expansion 2W-2 (Srinivasan et al., 1998) 2W-4 (Bremler-Barr et al., 2007) 2W-5 (Roth, 2009) W (Rottenstreich et al., 2010; Cohen et al., 2010) ??? 8 Is W also the lower bound?

External Coding Reduced number of TCAM entries: exploiting TCAM entry order by coding range complimentary as well Recent result: expansion in W TCAM entries Here: W=3 TCAM entries (instead of 4) Is this new coding scheme optimal? 9

Basic Definitions  Let be the number of TCAM entries required for representing the range R using the coding scheme.  We define the range code length f(W) as the best achievable code length for W-bit ranges given all coding schemes  Likewise, we define f p (W) as the minimal code length given all prefix coding schemes. 10

Basic Definitions (2)  We define the range code length g(W) as the best achievable code length for extremal W-bit ranges given all coding schemes R=[0,0]R=[0,1]R=[0,2]R=[0,3]R=[0,7] 11

Results KnownOur Contribution Optimality over all coding schemes 12 Optimality over prefix coding schemes which are the most common coding schemes

Optimality Proof Intuition a1a1 a2a2 a3a3  Assume W = 2 and R = [0,2]. If a 1 (01), a 3 (10) R are encoded in the same TCAM entry, it must be **. Therefore, a 2 (11) R also matches this entry R 13 The range R = [0,2] cannot be coded in a single TCAM entry.

Hull Property We define the hull of a set of W -bit strings in the W - dimensional string space: Definition (Hull): Let (n, W) N 2, and consider n strings a 1, …, a n of W bits each, with a i = (a i 1, …, a i W ) for each i [1,n]. Then the hull of (a 1, …, a n ), denoted H(a 1, …, a n ), is the smallest cuboid containing a 1, …, a n in the W-dimensional string space, and is defined as 14 H(a 1, a 3 ) = H(10, 01) = {00, 01, 10, 11} R a1a1 a2a2 a3a3

Alternating Path and Independent Set Let n and W be positive integers and let α:{0,1} W →{0,1} be a classifier function. A n = (a 1, …, a 2n-1 ) is an alternating path if it satisfies the following conditions: Alternation: For i [1,2n-1], α(a 1 ) = α(a 3 ) = … = α(a 2n-1 ) = 1 α(a 2 ) = α(a 4 ) = … = α(a 2n-2 ) = 0 Hull: For any i 1, i 2, i 3 such that i 1 ≤ i 2 ≤ i 3 ≤2n-1, a i2 H(a i1, a i3 ) 15 In such an alternating path (a 1, a 3, a 5, …, a 2n-3, a 2n-1 ) is an independent set

Example a1a1 a2a2 a3a3  W = 2 and R = [0,2]. Alternation: α(a 1 ) = α(a 3 ) = 1, α(a 2 )=0. Hull: a 2 H(a 1, a 3 ). (a 1, a 2, a 3 ) is an alternating path and (a 1, a 3 ) is an independent set R 16

Alternating Path and Independent Set  Theorem: A classifier function with an independent set of size n cannot be coded in less than n TCAM entries. 17

Extremal Range Code-Length Optimality  Assume W=4. Let R = [0, c] = [0, {1010}]. Define: a 1 = 0101 a 2 = 1101 a 3 = 1001, a 4 = 1011 a 5 = c =  Observe: a 1, a 3, a 5 ≤ c = 1010, a 2, a 4 > c =  Alternation: α(a 1 ) = α(a 3 ) = α(a 5 )= 1, α(a 2 ) = α(a 4 )= 0. Hull: a i2 H(a i1, a i3 ) for i 1 ≤ i 2 ≤ i 3. (a 1, a 3, a 5 ) is an independent set. The range R = [0,{1010}] cannot be coded in less than 3 TCAM entries. 18

Extremal Range Code-Length Optimality  We showed optimality for g(W) with W=2 and W=4, let’s show it for any even W. Let R = [0, c] = [0, {10} W ] = [0,2/3(2 W -1)]. Define: a 1 = {01} W/2, a 2 = 11{01} W/2-1, a 3 = 10{01} W/2-1, a 4 = 1011{01} W/2-2, a 5 = 1010{01} W/2-2, …, a W+1 = c = {10} W/2  Observe: a 2k+1 ≤ c a 2k ≥ c.  Alternation: α(a 2k+1 ) = 1, α(a 2k ) = 0. Hull: a i2 H(a i1, a i3 ) for i 1 ≤ i 2 ≤ i 3.  (a 1, a 2, …, a W+1 ) is an alternating path and (a 1, a 3, …, a W+1 ) is an independent set. The upper bound of g(W) is tight. 19

General Range Code-Length Optimality  In this paper, we present a range R that cannot be coded in less than W prefix TCAM entries, whether the first TCAM entry encodes the range R (internal coding) or its complementary (external coding).  Future Direction: Coding scheme optimality over all coding schemes 20

Summary  TCAM coding optimality g(W) (Extremal ranges, all coding schemes) f p (W) (All ranges, prefix coding schemes)  New tools for TCAM: Independent sets and alternating paths 21

Thank You 22