Packet Classification Using Multidimensional Cutting Sumeet Singh (UCSD) Florin Baboescu (UCSD) George Varghese (UCSD) Jia Wang (AT&T Labs-Research) Reviewed.

Slides:



Advertisements
Similar presentations
A Search Memory Substrate for High Throughput and Low Power Packet Processing Sangyeun Cho, Michel Hanna and Rami Melhem Dept. of Computer Science University.
Advertisements

Router/Classifier/Firewall Tables Set of rules—(F,A)  F is a filter Source and destination addresses. Port number and protocol. Time of day.  A is an.
Packet Classification using Hierarchical Intelligent Cuttings
Multi-dimensional Packet Classification on FPGA: 100Gbps and Beyond
Balajee Vamanan, Gwendolyn Voskuilen, and T. N. Vijaykumar School of Electrical & Computer Engineering SIGCOMM 2010.
New Directions in Traffic Measurement and Accounting Cristian Estan – UCSD George Varghese - UCSD Reviewed by Michela Becchi Discussion Leaders Andrew.
A Scalable and Reconfigurable Search Memory Substrate for High Throughput Packet Processing Sangyeun Cho and Rami Melhem Dept. of Computer Science University.
Network Algorithms, Lecture 4: Longest Matching Prefix Lookups George Varghese.
Fast Firewall Implementation for Software and Hardware-based Routers Lili Qiu, Microsoft Research George Varghese, UCSD Subhash Suri, UCSB 9 th International.
Ultra-High Throughput Low-Power Packet Classification
M. Waldvogel, G. Varghese, J. Turner, B. Plattner Presenter: Shulin You UNIVERSITY OF MASSACHUSETTS, AMHERST – Department of Electrical and Computer Engineering.
HybridCuts: A Scheme Combining Decomposition and Cutting for Packet Classification Author: Wenjun Li, Xianfeng Li Publisher: 2013 IEEE 21 st Annual Symposium.
Outline Introduction Related work on packet classification Grouper Performance Empirical Evaluation Conclusions.
Survey of Packet Classification Algorithms. Outline Background and problem definition Classification schemes – One dimensional classification – Two dimensional.
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.
Efficient Multi-match Packet Classification with TCAM Fang Yu Randy H. Katz EECS Department, UC Berkeley {fyu,
Fast Filter Updates for Packet Classification using TCAM Authors: Haoyu Song, Jonathan Turner. Publisher: GLOBECOM 2006, IEEE Present: Chen-Yu Lin Date:
B+-tree and Hashing.
1 A Tree Based Router Search Engine Architecture With Single Port Memories Author: Baboescu, F.Baboescu, F. Tullsen, D.M. Rosu, G. Singh, S. Tullsen, D.M.Rosu,
CSIE NCKU High-performance router architecture 高效能路由器的架構與設計.
1 On Constructing Efficient Shared Decision Trees for Multiple Packet Filters Author: Bo Zhang T. S. Eugene Ng Publisher: IEEE INFOCOM 2010 Presenter:
Packet Classification on Multiple Fields Pankaj Gupta and Nick McKeown Stanford University {pankaj, September 2, 1999.
1 Energy Efficient Multi-match Packet Classification with TCAM Fang Yu
CS 268: Lectures 13/14 (Route Lookup and Packet Classification) Ion Stoica April 1/3, 2002.
Efficient Multidimensional Packet Classification with Fast Updates Author: Yeim-Kuan Chang Publisher: IEEE TRANSACTIONS ON COMPUTERS, VOL. 58, NO. 4, APRIL.
Efficient Multi-Match Packet Classification with TCAM Fang Yu
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 Energy Efficient Packet Classification Hardware Accelerator Alan Kennedy, Xiaojun Wang HDL Lab, School of Electronic Engineering, Dublin City University.
Packet Classification George Varghese. Original Motivation: Firewalls Firewalls use packet filtering to block say ssh and force access to web and mail.
1 EffiCuts : Optimizing Packet Classification for Memory and Throughput Author: Balajee Vamanan, Gwendolyn Voskuilen and T. N. Vijaykumar Publisher: ACM.
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)
Chapter 9 Classification And Forwarding. Outline.
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.
PARALLEL TABLE LOOKUP FOR NEXT GENERATION INTERNET
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.
Multi-dimensional Packet Classification on FPGA 100 Gbps and Beyond Author: Yaxuan Qi, Jeffrey Fong, Weirong Jiang, Bo Xu, Jun Li, Viktor Prasanna Publisher:
Timothy Whelan Supervisor: Mr Barry Irwin Security and Networks Research Group Department of Computer Science Rhodes University Hardware based packet filtering.
Vladimír Smotlacha CESNET Full Packet Monitoring Sensors: Hardware and Software Challenges.
Wire Speed Packet Classification Without TCAMs ACM SIGMETRICS 2007 Qunfeng Dong (University of Wisconsin-Madison) Suman Banerjee (University of Wisconsin-Madison)
Packet Classification on Multiple Fields 참고 논문 : Pankaj Gupta and Nick McKeown SigComm 1999.
Packet Classifiers In Ternary CAMs Can Be Smaller Qunfeng Dong (University of Wisconsin-Madison) Suman Banerjee (University of Wisconsin-Madison) Jia Wang.
Author: Sriram Ramabhadran, George Varghese Publisher: SIGMETRICS’03 Presenter: Yun-Yan Chang Date: 2010/12/29 1.
Multi-Field Range Encoding for Packet Classification in TCAM Author: Yeim-Kuan Chang, Chun-I Lee and Cheng-Chien Su Publisher: INFOCOM 2011 Presenter:
Applied Research Laboratory Edward W. Spitznagel 24 October Packet Classification using Extended TCAMs Edward W. Spitznagel, Jonathan S. Turner,
Balajee Vamanan and T. N. Vijaykumar School of Electrical & Computer Engineering CoNEXT 2011.
1. Outline Introduction Related work on packet classification Grouper Performance Analysis Empirical Evaluation Conclusions 2/42.
1 ECE 526 – Network Processing Systems Design System Implementation Principles II Varghese Chapter 3.
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,
Scalable High Speed IP Routing Lookups Scalable High Speed IP Routing Lookups Authors: M. Waldvogel, G. Varghese, J. Turner, B. Plattner Presenter: Zhqi.
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.
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.
Memory-Efficient and Scalable Virtual Routers Using FPGA Department of Computer Science and Information Engineering, National Cheng Kung University, Tainan,
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.
Author: Weirong Jiang and Viktor K. Prasanna Publisher: The 18th International Conference on Computer Communications and Networks (ICCCN 2009) Presenter:
Ultra-High Throughput Low-Power Packet Classification Author: Alan Kennedy and Xiaojun Wang Accepted by IEEE Transactions on VLSI.
Hierarchical packet classification using a Bloom filter and rule-priority tries Source : Computer Communications Authors : A. G. Alagu Priya 、 Hyesook.
Packet Classification Using Multi- Iteration RFC Author: Chun-Hui Tsai, Hung-Mao Chu, Pi-Chung Wang Publisher: 2013 IEEE 37th Annual Computer Software.
Toward Advocacy-Free Evaluation of Packet Classification Algorithms
Transport Layer Systems Packet Classification
Packet Classification Using Coarse-Grained Tuple Spaces
Scalable Multi-Match Packet Classification Using TCAM and SRAM
Publisher : TRANSACTIONS ON NETWORKING Author : Haoyu Song, Jonathan S
High-performance router/switch architecture 高效能路由器/交換器的 架構與設計
Presentation transcript:

Packet Classification Using Multidimensional Cutting Sumeet Singh (UCSD) Florin Baboescu (UCSD) George Varghese (UCSD) Jia Wang (AT&T Labs-Research) Reviewed by Michela Becchi Discussion Leader Haoyu Song

Michela Becchi - 2/25/2016 Outline n Introduction n Related works »HiCuts n HyperCuts n Evaluation n Conclusions

Michela Becchi - 2/25/2016 Packet Classification n Rule-based packets’ handling »Destination address »Source address »Protocol type »Destination and source port »TCP flags RulesDestinationSourceDest. PortAction Rule1 * Block Rule ** Redirect

Michela Becchi - 2/25/2016 Applications n Security n QoS n Network address translation n Traffic shaping n Monitoring n …

Michela Becchi - 2/25/2016 Challenge n Classify packets at packets’ processing speed n Increasing link speed »14% links between core routers OC-768 (40 Gbps) »21% links between edge routers OC-192 (10 Gbps) n Memory-time tradeoff

Michela Becchi - 2/25/2016 Terminology n Classifier: N rules R 1,R 2,…,R N n Rule R j: array of k values (fields, dimensions ) n R j [ i ] : value of the i-th header field of a packet »Exact match: source address equal to »Prefix match: destination address matches * »Range match: destination port in range 0 to 255 n action j: action associated to R j E.g. R=( *,*,TCP,23,*), action=block »Pkt 1 =( , ,TCP,23,1025) »Pkt 2= ( , ,TCP,79,1025)

Michela Becchi - 2/25/2016 Memory-time tradeoff n Time-memory tradeoff: »O((log N)^(k-1)) time and linear space »Log N time and O(N^k) space n SRAM vs. DRAM n Hardware solutions: Ternary CAMs n Algorithmic solutions: »Linear search »EGT-PC »HiCuts Note: Update complexity not considered for core routers

Michela Becchi - 2/25/2016 TCAMs n Uses parallelism in hardware n Pros: »Low latency and high throughput »Simple on-chip management scheme n Cons: »Power scaling (parallel comparisons) »Density scaling (more board area) »Time scaling (highest match arbitration) »Rule Multiplication for ranges (prefix format) => Suitable for small classifiers

Michela Becchi - 2/25/2016 EGT-PC Extended Grid-Of-Tries with Path Compression n Idea: Regardless of database size, any packet matches only a few rules. This is true even when the rules are projected to only source or destination fields n Extend efficient two-field classification algorithm with linear search n Worst case search time ~ HiCuts optmized for speed n Memory requirement ~ HiCuts optmized for space

Michela Becchi - 2/25/2016 HiCuts Hierarchical Intelligent Cutting n Decision-tree based algorithm n Linear search on leaves n Storage ~ depth of tree n Local optimization decisions at each node to test next dimension to cut »Limit amount of linear search »Limit amount of storage increase n Range checks => cut=hyperplane

Michela Becchi - 2/25/2016 HiCuts: an example Field 2 Field 4 Field 3 R9 R10 R11 R8 R9 R10 R11 R7 R10 R11 R3 R7 R10 R11 R2 R7 R10 R11 R4 R7 R10 R11 R7 R10 R11 R7 R11 R0 R5 R6 R10 R7 R10 R11 Field 5 R1 R7 R10 R11 R0 R5 R6 R7 R10 R11 R2 R3 R4 R7 R10 R11 R0 R1 R5 R6 R7 R10 R Bucket size = 4 (0010,1101,00,01,TCP)

Michela Becchi - 2/25/2016 From HiCuts to Hypercuts n Multiple cuts per node possible »Reduce depth of the tree (memory) »Through array indexing one memory access per node n Hypercube instead of hyperspace

Michela Becchi - 2/25/2016 Hypercube * Slide taken from S. Singh’s presentation

Michela Becchi - 2/25/2016 Building Decision Tree (1) Step1: Select dimensions to cut n Goal: Pick dimensions leading to the most uniform distribution of rules n Alternatives: »Largest number of unique elements »# unique elements > mean of unique elements »# unique elements / size of region n Idea: dimensions with highest entropia

Michela Becchi - 2/25/2016 Building Decision Tree (2) Step2: Select number of cuts n Goal: Create search tree with minimal memory requirement n Alternative 1: »Minimum number of rules in each child node »Maximum number of children limited by space factor * sqrt(# rules in current node) n Alternative 2 (Greedy approach): »Determine local optimum nc(i) for each dimension »Determine iteratively best combination

Michela Becchi - 2/25/2016 Refinements (1) n Node Merging: nodes with same rules n Rule Overlap: overlapping rules and different priorities

Michela Becchi - 2/25/2016 Refinements (2) n Region Compaction: shrink the region of a node depending on its rules n Pushing Common Rule Subset Upwards: »rules to non-leaf nodes. »Bitmap in header to avoid extra memory accesses

Michela Becchi - 2/25/2016 Search Algorithm * Slide taken from S.Singh’s presentation

Michela Becchi - 2/25/2016 Search Algorithm * Slide taken from S.Singh’s presentation

Michela Becchi - 2/25/2016 Search Algorithm * Slide taken from S.Singh’s presentation

Michela Becchi - 2/25/2016 Search Algorithm * Slide taken from S.Singh’s presentation

Michela Becchi - 2/25/2016 Evaluation n Memory: up to an order of magnitude less than HiCuts optimized for memory and EGT-PC n Time: 3 to 10 times faster than HiCuts n On ERs: HyperCuts ~ HiCuts (only IP source and destination specified => 2 dimensions) n On FWs: wildcard-rules on IP addresses make HyperCuts ouperform HiCuts n Synthetic databases: memory requirement grows linearly with number of rules (except for FWs – wildcards)

Michela Becchi - 2/25/2016 Conclusions n Idea of cutting in more than one direction »Improvement in memory requirement »Still one access per node n Refinements to reduce memory wasting n Evaluation on industrial firewall databases and synthetic databases n Limited depth of the tree: possible hardware implementation using pipelining and on-chip SRAM

Michela Becchi - 2/25/2016 n Questions?

Michela Becchi - 2/25/2016 Evaluation Data (1)

Michela Becchi - 2/25/2016 Evaluation Data (2)