A Small and Fast IP Forwarding Table Using Hashing

Slides:



Advertisements
Similar presentations
An On-Chip IP Address Lookup Algorithm Author: Xuehong Sun and Yiqiang Q. Zhao Publisher: IEEE TRANSACTIONS ON COMPUTERS, 2005 Presenter: Yu Hao, Tseng.
Advertisements

1 An Efficient, Hardware-based Multi-Hash Scheme for High Speed IP Lookup Hot Interconnects 2008 Socrates Demetriades, Michel Hanna, Sangyeun Cho and Rami.
IP Routing Lookups Scalable High Speed IP Routing Lookups.
Low Power TCAM Forwarding Engine for IP Packets Authors: Alireza Mahini, Reza Berangi, Seyedeh Fatemeh and Hamidreza Mahini Presenter: Yi-Sheng, Lin (
An Efficient IP Address Lookup Algorithm Using a Priority Trie Authors: Hyesook Lim and Ju Hyoung Mun Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: Mar. 11, 2008.
IP Address Lookup for Internet Routers Using Balanced Binary Search with Prefix Vector Author: Hyesook Lim, Hyeong-gee Kim, Changhoon Publisher: IEEE TRANSACTIONS.
1 Searching Very Large Routing Tables in Wide Embedded Memory Author: Jan van Lunteren Publisher: GLOBECOM 2001 Presenter: Han-Chen Chen Date: 2010/01/06.
Power Efficient IP Lookup with Supernode Caching Lu Peng, Wencheng Lu*, and Lide Duan Dept. of Electrical & Computer Engineering Louisiana State University.
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
1 An innovative low-cost Classification Scheme for combined multi-Gigabit IP and Ethernet Networks Department of Computer Science and Information Engineering.
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 HEXA: Compact Data Structures or Faster Packet Processing Author: Sailesh Kumar, Jonathan Turner, Patrick Crowley, Michael Mitzenmacher. Publisher: ICNP.
1 Performing packet content inspection by longest prefix matching technology Authors: Nen-Fu Huang, Yen-Ming Chu, Yen-Min Wu and Chia- Wen Ho Publisher:
1 HEXA : Compact Data Structures for Faster Packet Processing Department of Computer Science and Information Engineering National Cheng Kung University,
Fast binary and multiway prefix searches for pachet forwarding Author: Yeim-Kuan Chang Publisher: COMPUTER NETWORKS, Volume 51, Issue 3, pp , February.
Memory-Efficient Regular Expression Search Using State Merging Department of Computer Science and Information Engineering National Cheng Kung University,
1 Efficient packet classification using TCAMs Authors: Derek Pao, Yiu Keung Li and Peng Zhou Publisher: Computer Networks 2006 Present: Chen-Yu Lin Date:
1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.
High-Performance Packet Classification on GPU Author: Shijie Zhou, Shreyas G. Singapura and Viktor K. Prasanna Publisher: HPEC 2014 Presenter: Gang Chi.
Packet Classification using Rule Caching Author: Nitesh B. Guinde, Roberto Rojas-Cessa, Sotirios G. Ziavras Publisher: IISA, 2013 Fourth International.
PARALLEL TABLE LOOKUP FOR NEXT GENERATION INTERNET
IP Address Lookup Masoud Sabaei Assistant professor
Fast forwarding table lookup exploiting GPU memory architecture Author : Youngjun Lee,Minseon Jeong,Sanghwan Lee,Eun-Jin Im Publisher : Information and.
Packet Classification Using Multi-Iteration RFC Author: Chun-Hui Tsai, Hung-Mao Chu, Pi-Chung Wang Publisher: COMPSACW, 2013 IEEE 37th Annual (Computer.
LayeredTrees: Most Specific Prefix based Pipelined Design for On-Chip IP Address Lookups Author: Yeim-Kuau Chang, Fang-Chen Kuo, Han-Jhen Guo and Cheng-Chien.
High-Speed Packet Classification Using Binary Search on Length Authors: Hyesook Lim and Ju Hyoung Mun Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: Jan. 14, 2008.
A Hybrid IP Lookup Architecture with Fast Updates Author : Layong Luo, Gaogang Xie, Yingke Xie, Laurent Mathy, Kavé Salamatian Conference: IEEE INFOCOM,
EQC16: An Optimized Packet Classification Algorithm For Large Rule-Sets Author: Uday Trivedi, Mohan Lal Jangir Publisher: 2014 International Conference.
StriD 2 FA: Scalable Regular Expression Matching for Deep Packet Inspection Author: Xiaofei Wang, Junchen Jiang, Yi Tang, Bin Liu, and Xiaojun Wang Publisher:
1 Fast packet classification for two-dimensional conflict-free filters Department of Computer Science and Information Engineering National Cheng Kung University,
A Small IP Forwarding Table Using Hashing Yeim-Kuan Chang and Wen-Hsin Cheng Dept. of Computer Science and Information Engineering National Cheng Kung.
Memory-Efficient IPv4/v6 Lookup on FPGAs Using Distance-Bounded Path Compression Author: Hoang Le, Weirong Jiang and Viktor K. Prasanna Publisher: IEEE.
Author: Haoyu Song, Murali Kodialam, Fang Hao and T.V. Lakshman Publisher/Conf. : IEEE International Conference on Network Protocols (ICNP), 2009 Speaker:
Memory-Efficient and Scalable Virtual Routers Using FPGA Department of Computer Science and Information Engineering, National Cheng Kung University, Tainan,
Updating Designed for Fast IP Lookup Author : Natasa Maksic, Zoran Chicha and Aleksandra Smiljani´c Conference: IEEE High Performance Switching and Routing.
Binary-tree-based high speed packet classification system on FPGA Author: Jingjiao Li*, Yong Chen*, Cholman HO**, Zhenlin Lu* Publisher: 2013 ICOIN Presenter:
Boundary Cutting for Packet Classification Author: Hyesook Lim, Nara Lee, Geumdan Jin, Jungwon Lee, Youngju Choi, Changhoon Yim Publisher: Networking,
A Fast Regular Expression Matching Engine for NIDS Applying Prediction Scheme Author: Lei Jiang, Qiong Dai, Qiu Tang, Jianlong Tan and Binxing Fang Publisher:
Packet Classification Using Dynamically Generated Decision Trees
IP Routing table compaction and sampling schemes to enhance TCAM cache performance Author: Ruirui Guo a, Jose G. Delgado-Frias Publisher: Journal of Systems.
Hierarchical packet classification using a Bloom filter and rule-priority tries Source : Computer Communications Authors : A. G. Alagu Priya 、 Hyesook.
Author : Masanori Bando and H. Jonathan Chao Publisher : INFOCOM, 2010 Presenter : Jo-Ning Yu Date : 2011/02/16.
Hierarchical Hybrid Search Structure for High Performance Packet Classification Authors : O˜guzhan Erdem, Hoang Le, Viktor K. Prasanna Publisher : INFOCOM,
LightFlow : Speeding Up GPU-based Flow Switching and Facilitating Maintenance of Flow Table Author : Nobutaka Matsumoto and Michiaki Hayashi Conference:
Scalable Multi-match Packet Classification Using TCAM and SRAM Author: Yu-Chieh Cheng, Pi-Chung Wang Publisher: IEEE Transactions on Computers (2015) Presenter:
A Multi-dimensional Packet Classification Algorithm Based on Hierarchical All-match B+ Tree Author: Gang Wang, Yaping Lin*, Jinguo Li, Xin Yao Publisher:
Reorganized and Compact DFA for Efficient Regular Expression Matching
A DFA with Extended Character-Set for Fast Deep Packet Inspection
IP Routers – internal view
2018/6/26 An Energy-efficient TCAM-based Packet Classification with Decision-tree Mapping Author: Zhao Ruan, Xianfeng Li , Wenjun Li Publisher: 2013.
Multiway range trees: scalable IP lookup with fast updates
Statistical Optimal Hash-based Longest Prefix Match
2018/11/19 Source Routing with Protocol-oblivious Forwarding to Enable Efficient e-Health Data Transfer Author: Shengru Li, Daoyun Hu, Wenjian Fang and.
Parallel Processing Priority Trie-based IP Lookup Approach
Scalable Memory-Less Architecture for String Matching With FPGAs
2018/12/29 A Novel Approach for Prefix Minimization using Ternary trie (PMTT) for Packet Classification Author: Sanchita Saha Ray, Abhishek Chatterjee,
Binary Prefix Search Author: Yeim-Kuan Chang
Scalable Multi-Match Packet Classification Using TCAM and SRAM
A New String Matching Algorithm Based on Logical Indexing
EMOMA- Exact Match in One Memory Access
2019/5/2 Using Path Label Routing in Wide Area Software-Defined Networks with OpenFlow ICNP = International Conference on Network Protocols Presenter:Hung-Yen.
2019/5/5 A Flexible Wildcard-Pattern Matching Accelerator via Simultaneous Discrete Finite Automata Author: Hsiang-Jen Tsai, Chien-Chih Chen, Yin-Chi Peng,
Authors: A. Rasmussen, A. Kragelund, M. Berger, H. Wessing, S. Ruepp
A Hybrid IP Lookup Architecture with Fast Updates
A SRAM-based Architecture for Trie-based IP Lookup Using FPGA
MEET-IP Memory and Energy Efficient TCAM-based IP Lookup
Towards TCAM-based Scalable Virtual Routers
Packet Classification Using Binary Content Addressable Memory
Presentation transcript:

A Small and Fast IP Forwarding Table Using Hashing 2019/2/24 A Small and Fast IP Forwarding Table Using Hashing Authors: Yeim-Kuan Chang Publisher: IEICE TRANSACTIONS ON COMMUNICATIONS, Vol. E88-B, pp. 239-246, January 2005. (SCI) Present: Chen-Rong Chang Date: October, 29, 2008 Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C. CSIE CIAL Lab

Outline 1. Introduction 2. Related IP Lookups 3. Proposed Scheme 2019/2/24 Outline 1. Introduction 2. Related IP Lookups 3. Proposed Scheme 4. Performance Evaluation 5. Conclusion CSIE CIAL Lab

Introduction Among all the tasks performed by the routers, the IP lookup is the most critical one that must be able to keep up with the link speed and router bandwidth The binary trie is the basic data structure used in most of IP lookup algorithms Based upon this primitive trie structure, a set of prefix compression and transformation techniques are developed (such as path compression, and prefix expansion, et al.) One way to use prefix expansion technique is to transform a binary trie into a k-bit trie In this paper, we shall propose a new method that employs a novel hashing technique to avoid wasting the unused space in the multibit trie

Outline 1. Introduction 2. Related IP Lookups 3. Proposed Scheme 2019/2/24 Outline 1. Introduction 2. Related IP Lookups 3. Proposed Scheme 4. Performance Evaluation 5. Conclusion CSIE CIAL Lab

Related IP Lookups (cont.) Memory required for table Oix-120k

Related IP Lookups (cont.) Average IP lookup times for table Oix-120k.

Related IP Lookups (contd.) SFT(small forwarding table) is the best approach that a router can adopt because it has a very good performance both in memory size and lookup latency. The entire data structure for the first 16 levels is re-built when a prefix is inserted into one of the unused segment or all the prefixes in a segment are deleted. The re-building process is very time-consuming. It is still desirable to have a new lookup scheme that has a better performance in memory and lookup time than SFT and allows a similar incremental update to the schemes with a 16-bit segmentation table.

Outline 1. Introduction 2. Related IP Lookups 3. The Proposed Scheme 2019/2/24 Outline 1. Introduction 2. Related IP Lookups 3. The Proposed Scheme 4. Performance Evaluation 5. Conclusion CSIE CIAL Lab

Proposed Scheme (Hash Function) Hashing technique is developed to remove the unused pointers in a multibit trie. The proposed hash function, H, for an n-bit number ( bn−1 . . . b0 ) is formulated as follows. V0 and V1 are two pre-computed arrays of size n. At least one of the elements V0[i] and V1[i] is zero and the other is in the range from −2n−1 + 1 to 2n−1

Proposed Scheme (Hash Function) Consider a list of eight 4-bit numbers shown in Figure 1 The index for each prefix can be computed by using the pre-computed hash table The construction algorithm for arrays V0 and V1 is based on a form of exhaustive search

Proposed Scheme (Hash Function) Hashed value: H(0000)=0 H(0001)=1 H(0011)=2 H(0100)=3 H(0110)=4 H(0111)=5 H(1011)=6 H(1100)=7

Proposed Scheme (Added structure) Building an n-bit hash table uses an exhaustive search, it is not feasible for a large n In this paper, we select the hash table of size n = 4 as the building block for creating large routing tables In order to make the proposed hash technique work for the routing table lookup, two additional data are needed. total count of the hashed keys for the keys that are not in the hash table, we need a mechanism to avoid fault hits the hashed value of key 1111 is nine which exceeds the capacity of the hash table. the hashed key itself 0010&0001:the same hashed key, 0001 &0001, must also be stored along with other routing information.

Proposed Scheme (cont.) The proposed data structure for the routing table uses 4-bit hash tables as the building blocks. Instead of a 16-bit front-end segmentation table, we use an 8-bit pointer table as the front-end lookup array to avoid wasting too much memory. The hash table of the second level subtrie uses a data structure called format H block.

Proposed Scheme (cont.) Format H block Format G1 sub –block: 1-bit format selector 20-bit global pointer 8-bit port number 4-bit hashing count 20-bit hash table Format G2 sub –block: 4-bit prefix string 8-bit port number or local index 4-bit sub hashing count 20-bit sub hash table

Proposed Scheme (cont.) 31 24 23 20 19 16 15 11 10 8 7 15

Proposed Scheme (cont.) 31 24 23 20 19 16 15 11 10 8 7 16

Proposed Scheme (cont.) 31 24 IP[23 20] IP[23 20]&Vo&V1 23 20 19 16 15 11 10 8 7 17

Proposed Scheme (cont.) return 31 24 IP[20 23] Larger than count 23 20 19 16 15 11 10 8 7 18

Proposed Scheme (cont.) return 31 24 IP[20 23] match not found 23 20 19 16 15 11 10 8 7 19

Proposed Scheme (cont.) return match 31 24 IP[20 23] Match found and key count is zero leaf Hashed value 23 20 19 16 15 11 10 8 7 20

Proposed Scheme (cont.) match 31 24 IP[20 23] Match found and key count is not zero Internal node Hashed value 23 20 IP[19 16] 19 16 15 11 10 8 7 21

Proposed Scheme (cont.) match 31 24 IP[20 23] Match found and key count is not zero Hashed value 23 20 IP[19 16] 19 16 15 11 10 8 7 22

Proposed Scheme (cont.) return match 31 24 IP[20 23] Match found and key count is not zero Hashed value 23 20 IP[19 16] 19 16 15 Matched element not found in pointer table 11 10 8 7 23

Proposed Scheme (cont.) match 31 24 Match found and key count is not zero Hashed value 23 20 19 16 15 IP[15 11] 11 10 8 7 24

Proposed Scheme (cont.) match 31 24 Match found and key count is not zero Hashed value 23 20 19 16 15 IP[15 11] 11 10 8 7 25

Proposed Scheme (cont.) match 31 24 Match found and key count is not zero Hashed value 23 20 19 16 15 IP[15 11] 11 10 8 7 26

Proposed Scheme (contd.) Two optimization techniques are developed to further improve the performance of the proposed scheme level-compression (LC) approach reduce the number of memory references (total number of memory accesses for an IP lookup operation becomes 1 to 5) The front-end level-8 pointer table can be combined with the format G1 sub-blocks of the level-16 hash tables (only one format G1 sub-block in each level-16 hash table) The level-16 pointer table can be combined with the format G1 sub-blocks of the level-24 hash tables maptable approach (create a 2-D maptable) further reduce the memory consumption

Outline 1. Introduction 2. Related IP Lookups 3. Proposed Scheme 2019/2/24 Outline 1. Introduction 2. Related IP Lookups 3. Proposed Scheme 4. Performance Evaluation 5. Conclusion CSIE CIAL Lab

Performance Evaluation The SFT scheme is in general better than other existing lookup schemes. The sizes of the routing tables for all the proposed 8-8-8-8 schemes are smaller than SFT. The performance of the proposed schemes in lookup latency is better than SFT for all the tables of various sizes.

Outline 1. Introduction 2. Related IP Lookups 3. Proposed Scheme 2019/2/24 Outline 1. Introduction 2. Related IP Lookups 3. Proposed Scheme 4. Performance Evaluation 5. Conclusion CSIE CIAL Lab

Conclusion We found out that the compressed 16-x scheme is the fastest one and the SFT scheme is the smallest one. To further reduce the table size, we introduced a new hashing technique that can compact the routing table and produce a smaller data structure than SFT. Hash tables of 4-bit addresses are the basic building blocks to construct hash tables of 8-bit addresses which in turn were used to build the proposed 8-8-8-8 routing table. The basic hash table is further optimized in term of access latency and memory size by the level compression and maptable techniques. The experiments showed that the proposed data structure is smaller and faster than the SFT scheme.