Worst-Case TCAM Rule Expansion

Slides:



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

A Scalable and Reconfigurable Search Memory Substrate for High Throughput Packet Processing Sangyeun Cho and Rami Melhem Dept. of Computer Science University.
An On-Chip IP Address Lookup Algorithm Author: Xuehong Sun and Yiqiang Q. Zhao Publisher: IEEE TRANSACTIONS ON COMPUTERS, 2005 Presenter: Yu Hao, Tseng.
HybridCuts: A Scheme Combining Decomposition and Cutting for Packet Classification Author: Wenjun Li, Xianfeng Li Publisher: 2013 IEEE 21 st Annual Symposium.
A Ternary Unification Framework for Optimizing TCAM-Based Packet Classification Systems Author: Eric Norige, Alex X. Liu, and Eric Torng Publisher: ANCS.
On the Code Length of TCAM Coding Schemes Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel) 1.
Fast Filter Updates for Packet Classification using TCAM Authors: Haoyu Song, Jonathan Turner. Publisher: GLOBECOM 2006, IEEE Present: Chen-Yu Lin Date:
Worst-Case TCAM Rule Expansion Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel)
1 Energy Efficient Multi-match Packet Classification with TCAM Fang Yu
Efficient Multidimensional Packet Classification with Fast Updates Author: Yeim-Kuan Chang Publisher: IEEE TRANSACTIONS ON COMPUTERS, VOL. 58, NO. 4, APRIL.
Parallel-Search Trie-based Scheme for Fast IP Lookup
Performance Evaluation of IPv6 Packet Classification with Caching Author: Kai-Yuan Ho, Yaw-Chung Chen Publisher: ChinaCom 2008 Presenter: Chen-Yu Chaug.
1 DRES:Dynamic Range Encoding Scheme for TCAM Coprocessors Authors: Hao Che, Zhijun Wang, Kai Zheng and Bin Liu Publisher: IEEE Transactions on Computers,
1 A Fast IP Lookup Scheme for Longest-Matching Prefix Authors: Lih-Chyau Wuu, Shou-Yu Pin Reporter: Chen-Nien Tsai.
An Efficient IP Lookup Architecture with Fast Update Using Single-Match TCAMs Author: Jinsoo Kim, Junghwan Kim Publisher: WWIC 2008 Presenter: Chen-Yu.
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.
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.
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:
A prefix-based approach for managing hybrid specifications in complex packet filtering Author: Nizar Ben Neji, Adel Bouhoula Publisher: Computer Networks.
Block Permutations in Boolean Space to Minimize TCAM for Packet Classification Authors: Rihua Wei, Yang Xu, H. Jonathan Chao Publisher: IEEE INFOCOM,2012.
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.
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Minimizing Rulesets for TCAM Implementation.
An Improved Algorithm to Accelerate Regular Expression Evaluation Author: Michela Becchi, Patrick Crowley Publisher: 3rd ACM/IEEE Symposium on Architecture.
Author: Haoyu Song, Fang Hao, Murali Kodialam, T.V. Lakshman Publisher: IEEE INFOCOM 2009 Presenter: Chin-Chung Pan Date: 2009/12/09.
ORange: Multi Field OpenFlow based Range Classifier Liron Schiff Tel Aviv University Yehuda Afek Tel Aviv University Anat Bremler-Barr Inter Disciplinary.
Wire Speed Packet Classification Without TCAMs ACM SIGMETRICS 2007 Qunfeng Dong (University of Wisconsin-Madison) Suman Banerjee (University of Wisconsin-Madison)
Fast Packet Classification Using Bloom filters Authors: Sarang Dharmapurikar, Haoyu Song, Jonathan Turner, and John Lockwood Publisher: ANCS 2006 Present:
Packet Classifiers In Ternary CAMs Can Be Smaller Qunfeng Dong (University of Wisconsin-Madison) Suman Banerjee (University of Wisconsin-Madison) Jia Wang.
Multi-Field Range Encoding for Packet Classification in TCAM Author: Yeim-Kuan Chang, Chun-I Lee and Cheng-Chien Su Publisher: INFOCOM 2011 Presenter:
PEDS: A PARALLEL ERROR DETECTION SCHEME FOR TCAM DEVICES Author: Anat Bremler-Barr, David Hay, Danny Hendler and Ron M. Roth Publisher/Conf.: IEEE INFOCOM.
Author : Guangdeng Liao, Heeyeol Yu, Laxmi Bhuyan Publisher : Publisher : DAC'10 Presenter : Jo-Ning Yu Date : 2010/10/06.
1. Outline Introduction Related work on packet classification Grouper Performance Analysis Empirical Evaluation Conclusions 2/42.
On Finding an Optimal TCAM Encoding Scheme for Packet Classification Ori Rottenstreich (Technion, Israel) Joint work with Isaac Keslassy (Technion, Israel)
StrideBV: Single chip 400G+ packet classification Author: Thilan Ganegedara, Viktor K. Prasanna Publisher: HPSR 2012 Presenter: Chun-Sheng Hsueh Date:
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.
Author : Sarang Dharmapurikar, John Lockwood Publisher : IEEE Journal on Selected Areas in Communications, 2006 Presenter : Jo-Ning Yu Date : 2010/12/29.
High-Speed Policy-Based Packet Forwarding Using Efficient Multi-dimensional Range Matching Lakshman and Stiliadis ACM SIGCOMM 98.
AUTHOR: NIZAR BEN NEJI, ADEL BOUHOULA PUBLISHER: IEEE INTERNATIONAL CONFERENCE,2011 PRESENTER: KAI-YANG LIU DATE:2011/08/31 1 NAF Conversion: An Efficient.
Bit Weaving: A Non-Prefix Approach to Compressing Packet Classifiers in TCAMs Author: Chad R. Meiners, Alex X. Liu, and Eric Torng Publisher: 2012 IEEE/ACM.
Cross-Product Packet Classification in GNIFS based on Non-overlapping Areas and Equivalence Class Author: Mohua Zhang, Ge Li Publisher: AISS 2012 Presenter:
CS 740: Advanced Computer Networks IP Lookup and classification Supplemental material 02/05/2007.
A Scalable Architecture For High-Throughput Regular-Expression Pattern Matching Yao Song 11/05/2015.
Range Enhanced Packet Classification Design on FPGA Author: Yeim-Kuan Chang, Chun-sheng Hsueh Publisher: IEEE Transactions on Emerging Topics in Computing.
Parallel tree search: An algorithmic approach for multi- field packet classification Authors: Derek Pao and Cutson Liu. Publisher: Computer communications.
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:
IP Routing table compaction and sampling schemes to enhance TCAM cache performance Author: Ruirui Guo a, Jose G. Delgado-Frias Publisher: Journal of Systems.
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.
1 IP Routing table compaction and sampling schemes to enhance TCAM cache performance Author: Ruirui Guo, Jose G. Delgado-Frias Publisher: Journal of Systems.
Packet Classification Using Multi- Iteration RFC Author: Chun-Hui Tsai, Hung-Mao Chu, Pi-Chung Wang Publisher: 2013 IEEE 37th Annual Computer Software.
Scalable Multi-match Packet Classification Using TCAM and SRAM Author: Yu-Chieh Cheng, Pi-Chung Wang Publisher: IEEE Transactions on Computers (2015) Presenter:
2018/6/26 An Energy-efficient TCAM-based Packet Classification with Decision-tree Mapping Author: Zhao Ruan, Xianfeng Li , Wenjun Li Publisher: 2013.
The Variable-Increment Counting Bloom Filter
Toward Advocacy-Free Evaluation of Packet Classification Algorithms
Statistical Optimal Hash-based Longest Prefix Match
Yotam Harchol The Hebrew University of Jerusalem, Israel
Scalable Memory-Less Architecture for String Matching With FPGAs
SPEAKER: Yu-Shan Chou ADVISOR: DR. Kai-Wei Ke
Scalable Multi-Match Packet Classification Using TCAM and SRAM
Yotam Harchol The Hebrew University of Jerusalem, Israel
Author: Yaron Weinsberg ,Shimrit Tzur-David ,Danny Dolev and Tal Anker
Authors: A. Rasmussen, A. Kragelund, M. Berger, H. Wessing, S. Ruepp
Authors: Ding-Yuan Lee, Ching-Che Wang, An-Yeu Wu Publisher: 2019 VLSI
Packet Classification Using Binary Content Addressable Memory
Presentation transcript:

Worst-Case TCAM Rule Expansion AUTHOR: ORI ROTTENSTREICH AND ISSAC KESLASSY PUBLISHER: IEEE INFOCOM 2010 PRESENTER: ZONG-LIN SIE DATE: 2010/09/15

Outline Introduction Background Range Expansion Guarantees Experimental Result Suggested Architectures

Introduction In this paper , given several type of rules , provide new upper bounds on the TCAM worst-case rule expansions. For a W-bit range: previously known upon bound:2W-5 TCAMs. this paper’s method provide:W TCAMs. Also propose a modified TCAM architecture that uses additional logic to significantly reduce the rule expansion.

Background (1/3) What is TCAM? Ternary Content Addressable Memory. Packet classification is the core function behind many network application.(routing、filtering…) Hardware-based TCAMs are the standard devices for high-speed packet classification. 1.講出TCAM high-speed的原因(parallel)。

Background (2/3) What is rule expansion? two types of rules: (1) simple rules:need single entry per rule. (2) range rules:might need many entries per rule. Thus cause rule expansion. for example: range[2,4] means 01* and 100 range[1,14] means 0001,001*,01**,10**,11**,1110

Background (3/3) However , power consumption constitutes a bottleneck for TCAM scaling. Given same access rate , a TCAM chip consumes up to 30 times more power than equivalent SRAM chip with a software-based solution. Goal of this paper is to gain a more fundamental understanding of the worst-case number of TCAM entries needed to encode a rule . Provide upper bounds.

Related Work (1/3) Internal expansion : only uses entries from within the range . W-bit field can be encoded in 2W-2 entries for W ≥ 2 . Rule with d fields , can be encoded up to entries . For instance : W=3 , single field R = [1,6] needs 2W-2 = 4 entries. (see 111 as default)

Related Work (2/3) The same way but rely on Gray codes instead of binary codes reduce the worst-case internal range expansion from 2W-2 to 2W-4 for sufficient large W. Using more complex coding , improve to 2W-5 .

Related Work (3/3) External encoding : the same instance , W=3 , R = [1,6] . we encode the range exterior first , and then the range itself is encoded indirectly. So , only 3 entries!

Range Expansion Guarantees (Model and Notations) Definition 1(Header) : is a W-bit string defined on the d fields . Each sub-string of length corresponds to field with . Definition 2(Range Rule) : The range rule in field is defined as an integer range[r1,r2] . r1≤r2 ,both W-bit integers. if xi match , . Match if r1 <= xi <= r2

Range Expansion Guarantees (Model and Notations) Definition 3(TCAM entry) :A TCAM entry is composed of a TCAM rule S = , where {0,1} are bit values and * stands for don’t-care , And an action , where A is a set of actions . A W- bit string b = matches S , denoted as , if for all .

Range Expansion Guarantees (Model and Notations) Ex: R = [1,6] A = {accept ,deny}, ,

Optimal Range Expansion Problem We want to find a TCAM encoding scheme that minimizes the worst-case TCAM expansion over all possible ranges R .

Optimal Range Expansion Problem Then the range expansion f(W) is defined as the best-achievable range expansion for W-bit ranges given all encoding schemes , i.e. To find the range expansion ,we first characterize the extremal range expansion g(W) , which is defined : A range R over is called extremal if R = [0,y] or R = for some arbitrary value of y.

Range Expansion Guarantees Theorem 1 : for all W ≥ 1 , the extremal range expansion satisfies the following upper-bound : (by induction on W) example :for W=3 , the extremal range R = [0,6] can encoded with only 2 TCAMs .(111 , ***) This is better than the best internal encoding (0**,10* ,110) ,which use W=3 TCAMs entries.

Range Expansion Guarantees Theorem 2: for all W≥ 1 , the worst-case range expansion satisfies the following upper-bound: proof: by induction on W ≥ 1. (1) for W = 1 , all non-empty ranges are extremal , therefore , the result follows by Theorem 1. for W = 2 , all non-empty and non-extremal ran- ges are either single points , or[1,2] can be enco- ded in 2 TCAMs.

Range Expansion Guarantees (2) induction step:Now let W ≥ 3 ,and assume the claim true until W – 1. Consider any range , and cut it into 4 sub-ranges. , which and distinguish the following cases:

Range Expansion Guarantees case(1):if , then by induction R can be encoded in at most W-1 entries . case(2):Else if , then this is just a shifted version of the previo- us case and , by lemma 2 ,R can be encoded in at most W-1 entries .

Range Expansion Guarantees case(3) : (a) If is a right –extremal range on , and by lemma 1,can be encoded in g(W-1) TCAM entries . Further by lemma 2 can be encoded in g(W-2) TCAM entries . (b) if can be encoded in g(W-2) TCAM entries , and in g(W-1) TCAM entries .

Range Expansion Guarantees Therefore , in both sub-cases , by theorem 1 , R can be encoded in up to TCAM entries . case(4) : we use 2 different techniques according to the parity of W .

Range Expansion Guarantees

Range Expansion Guarantees

Range Expansion Guarantees Exponential Number of TCAM Entries: Theorem 4: For any classification rule R = of d fields , there is an encoding scheme Linear Number of TCAM Entries Theorem 5:Any classification rule R on d fields can be encoded in at most d.W TCAM entries with- out any additional logic.

Range Expansion Guarantees Example of linear number entries: we first negatively encode the four striped regions , using an encoding of four one-dimensional extremal intervals , 4W . And a default positive entry . Total 4W+1 .

Experimental Result Internal binary-prefix approach 2W-2 = 14. Suggested scheme W = 8.

Suggested Architecture (1/3) Standard INTERNAL –RRODUCT Assume d=2 ,W=4 ,k=2 R1 = [1,14] ×[5,14] R2 = [7,10] ×[2,3] use 6×5 to encode R1 use 3×1 to encode R2 total 33 entries

Suggested Architecture (2/3) Proposed COMBINED-PRODUCT (using complementary to encode , upper bound W) Assume d=2 ,W=4 ,k=2 R1 = [1,14] ×[5,14] R2 = [7,10] ×[2,3] use 12 to encode R1 use 3 to encode R2 total 15 entries

Suggested Architecture (3/3) Proposed COMBINED-SUM (each field of each range is encoded separately) Assume d=2 ,W=4 ,k=2 R1 = [1,14] ×[5,14] R2 = [7,10] ×[2,3] use 3+4 to encode R1 use 3+1 to encode R2 total 11 entries

Suggested Architecture