Statistical Optimal Hash-based Longest Prefix Match

Slides:



Advertisements
Similar presentations
Scalable Name Lookup in NDN Using Effective Name Component Encoding
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.
M. Waldvogel, G. Varghese, J. Turner, B. Plattner Presenter: Shulin You UNIVERSITY OF MASSACHUSETTS, AMHERST – Department of Electrical and Computer Engineering.
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.
1 Author: Ioannis Sourdis, Sri Harsha Katamaneni Publisher: IEEE ASAP,2011 Presenter: Jia-Wei Yo Date: 2011/11/16 Longest prefix Match and Updates in Range.
IP Address Lookup for Internet Routers Using Balanced Binary Search with Prefix Vector Author: Hyesook Lim, Hyeong-gee Kim, Changhoon Publisher: IEEE TRANSACTIONS.
1 MIPS Extension for a TCAM Based Parallel Architecture for Fast IP Lookup Author: Oğuzhan ERDEM Cüneyt F. BAZLAMAÇCI Publisher: ISCIS 2009 Presenter:
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,
Parallel-Search Trie-based Scheme for Fast IP Lookup
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 Performing packet content inspection by longest prefix matching technology Authors: Nen-Fu Huang, Yen-Ming Chu, Yen-Min Wu and Chia- Wen Ho Publisher:
Fast binary and multiway prefix searches for pachet forwarding Author: Yeim-Kuan Chang Publisher: COMPUTER NETWORKS, Volume 51, Issue 3, pp , February.
Lecture Week 8 The Routing Table: A Closer Look
1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.
OpenFlow-Based Server Load Balancing GoneWild Author : Richard Wang, Dana Butnariu, Jennifer Rexford Publisher : Hot-ICE'11 Proceedings of the 11th USENIX.
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
Authors: Yi Wang, Tian Pan, Zhian Mi, Huichen Dai, Xiaoyu Guo, Ting Zhang, Bin Liu, and Qunfeng Dong Publisher: INFOCOM 2013 mini Presenter: Chai-Yi Chu.
Packet Classification Using Multi-Iteration RFC Author: Chun-Hui Tsai, Hung-Mao Chu, Pi-Chung Wang Publisher: COMPSACW, 2013 IEEE 37th Annual (Computer.
Scalable Name Lookup in NDN Using Effective Name Component Encoding
Author: Haoyu Song, Fang Hao, Murali Kodialam, T.V. Lakshman Publisher: IEEE INFOCOM 2009 Presenter: Chin-Chung Pan Date: 2009/12/09.
Leveraging Traffic Repetitions for High- Speed Deep Packet Inspection Author: Anat Bremler-Barr, Shimrit Tzur David, Yotam Harchol, David Hay Publisher:
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.
CLUE: Achieving Fast Update over Compressed Table for Parallel Lookup with Reduced Dynamic Redundancy Author: Tong Yang, Ruian Duan, Jianyuan Lu, Shenjiang.
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 Power-Efficient TCAM Partitioning for IP Lookups with Incremental Updates Author: Yeim-Kuan Chang Publisher: ICOIN 2005 Presenter: Po Ting Huang 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.
Memory-Efficient IPv4/v6 Lookup on FPGAs Using Distance-Bounded Path Compression Author: Hoang Le, Weirong Jiang and Viktor K. Prasanna Publisher: IEEE.
Cross-Product Packet Classification in GNIFS based on Non-overlapping Areas and Equivalence Class Author: Mohua Zhang, Ge Li Publisher: AISS 2012 Presenter:
Research on TCAM-based OpenFlow Switch Author: Fei Long, Zhigang Sun, Ziwen Zhang, Hui Chen, Longgen Liao Conference: 2012 International Conference on.
Early Detection of DDoS Attacks against SDN Controllers
Updating Designed for Fast IP Lookup Author : Natasa Maksic, Zoran Chicha and Aleksandra Smiljani´c Conference: IEEE High Performance Switching and Routing.
A Fast Regular Expression Matching Engine for NIDS Applying Prediction Scheme Author: Lei Jiang, Qiong Dai, Qiu Tang, Jianlong Tan and Binxing Fang Publisher:
Lossy Compression of Packet Classifiers Author: Ori Rottenstreich, J’anos Tapolcai Publisher: 2015 IEEE International Conference on Communications Presenter:
Packet Classification Using Dynamically Generated Decision Trees
Evaluating and Optimizing IP Lookup on Many Core Processors Author: Peng He, Hongtao Guan, Gaogang Xie and Kav´e Salamatian Publisher: International Conference.
IP Routing table compaction and sampling schemes to enhance TCAM cache performance Author: Ruirui Guo a, Jose G. Delgado-Frias Publisher: Journal of Systems.
1 IP Routing table compaction and sampling schemes to enhance TCAM cache performance Author: Ruirui Guo, Jose G. Delgado-Frias Publisher: Journal of Systems.
Stochastic Pre-Classification for SDN Data Plane Matching Author : Luke McHale, C. Jasson Casey, Paul V. Gratz, Alex Sprintson Conference: 2014 IEEE 22nd.
Hierarchical Hybrid Search Structure for High Performance Packet Classification Authors : O˜guzhan Erdem, Hoang Le, Viktor K. Prasanna Publisher : INFOCOM,
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:
Authors: Jiang Xie, Ian F. Akyildiz
2018/4/23 Dynamic Load-balanced Path Optimization in SDN-based Data Center Networks Author: Yuan-Liang Lan , Kuochen Wang and Yi-Huai Hsu Presenter: Yi-Hsien.
IP Routers – internal view
Hardware accelerator to speed up packet processing in NDN router
Multiway range trees: scalable IP lookup with fast updates
Hash Table.
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
Binary Prefix Search Author: Yeim-Kuan Chang
A Small and Fast IP Forwarding Table Using Hashing
Scalable Multi-Match Packet Classification Using TCAM and SRAM
Compact DFA Structure for Multiple Regular Expressions Matching
A Semantic Peer-to-Peer Overlay for Web Services Discovery
Authors: A. Rasmussen, A. Kragelund, M. Berger, H. Wessing, S. Ruepp
A Hybrid IP Lookup Architecture with Fast Updates
Worst-Case TCAM Rule Expansion
A SRAM-based Architecture for Trie-based IP Lookup Using FPGA
2019/10/9 A Weighted ECMP Load Balancing Scheme for Data Centers Using P4 Switches Presenter:Hung-Yen Wang Authors:Jin-Li Ye, Yu-Huang Chu, Chien Chen.
Authors: Ding-Yuan Lee, Ching-Che Wang, An-Yeu Wu Publisher: 2019 VLSI
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:

Statistical Optimal Hash-based Longest Prefix Match Authors: Yi Wang, Zhuyun Qi, Huichen Dai, Hao Wu, Kai Lei, Bin Liu Publisher: 2017 Architectures for Networking and Communications Systems (ANCS) Presenter: Tzu-Chieh, Lin Date: 106/12/06 National Cheng Kung University CSIE Computer & Internet Architecture Lab

INTRODUCTION Packet transmission in current IP network is based on store-and-forward mechanism. To forward packets both correctly and effectively, a router should maintain the topology of the network in a routing table located in the control plane, and meanwhile converts its routing table to forwarding table which is optimized for fast address lookup and is downloaded into the packet forwarding engine in the data plane. Generally, prefixes in a routing table are aggregated to reduce the number of entries in the forwarding table. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Named Data Networking Different from IP-based network, Named Data Networking (NDN) , employs URL-like string names to identify contents and devices. An URL-like name, composed of components, has hierarchical structure. For example, name “/org/IEEE/www” is composed of three components “org”, “IEEE”, and “www”. Here, the character “/” is the delimiter. Specifically, the length of an NDN name is its component number and the name prefixes in a router’s routing table are aggregated in the granularity of a component. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

HASH-BASED LONGEST PREFIX MATCH Hash-based LPM(longest prefix match) algorithms divide prefixes into different sets according to their lengths. Compared to trie-based LPM algorithms, hash-based LPM approaches can achieve higher lookup speed and are more suitable for the variable and unbounded length addresses. The essence of hash-based LPM search process is to find a particular search path corresponding to the longest matching prefix. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

HASH-BASED LONGEST PREFIX MATCH Hash-based LPM algorithms implement fast lookup speed by leveraging the high lookup (exact match) performance of hash table. Logically, the prefixes in the FIB(forwarding information base, NDN) are partitioned into different sets according to their lengths. The prefixes having equal length are put into a same set, and prefixes in different sets have different lengths. To transfer the longest prefix match to the exact prefix match, the lookup engine first generates all the possible prefixes of the searched address as candidate prefixes; then it checks all the candidate prefixes to find the longest matching prefix. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

The optimal linear search scheme The search process of an address can be terminated when the lookup engine finds the longest matching prefix. Probing the prefixes in a descending order is simple and it is the optimal linear search path for the original FIB. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Binary search scheme To further shorten the search path of hash-based LPM, Waldvogel et al. break through the linear search by reconstructing the FIB data structure to add correlation among different prefixes sets. With the help of the reconstructed FIB, the lookup engine can search the longest matching prefix in the random mode. One of the most effective algorithm is the binary search algorithm that needs O(logN) probes to find the longest matching prefix on average Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

The statistical optimal search scheme Since the length distribution of prefixes in the routing table is known in advance, there should be an optimal search path for each address. The number of prefix sets is no greater than N, therefore even in the worst case we can find the optimal search path of an address by applying exhaustive search that has O(N!) time complexity. we design and implement a dynamic programming algorithm only with O( N 3 ) time complexity to find the optimal search path. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Dynamic Programming Algorithm For Optimizing LPM Assuming that the prefixes in the reconstructed FIB are partitioned into N prefix sets. 𝐶 𝑖𝑗 is the number of probes in the optimal search path from 𝑆𝑒𝑡 𝑖 to 𝑆𝑒𝑡 𝑗 ; 𝑃𝑅𝐸 𝑘 is the candidate prefix with k components; 𝑃 𝑖 is the matching probability of 𝑆𝑒𝑡 𝑖 in the original FIB; and 𝑃′ 𝑖 is the matching probability of 𝑆𝑒𝑡 𝑖 in the reconstructed FIB. The optimal search path of an address is equivalent to finding the minimal 𝐶 1𝑀 , if M <N; or the minimal 𝐶 1𝑁 , if M ≥ N. Here M is the length of the name or the IP address. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

The problem of finding the minimal 𝐶 𝑖𝑗 can be decomposed into two optimization sub-problems: 𝐶 𝑖(𝑘−1) and 𝐶 𝑘+1 𝑗 . i ≤ k ≤ j; and 𝐶 𝑖𝑗 =0, if i > j. As the reconstructed FIB supports random search, we suppose the candidate prefix 𝑃𝑅𝐸 𝑘 with k components will be checked at first. If 𝑃𝑅𝐸 𝑘 is dismatched, the length of the longest matching prefix will be less than k, and the lookup engine will search from 𝑃𝑅𝐸 𝑖 to 𝑃𝑅𝐸 𝑘−1 to lookup the exact longest matching prefix, i.e., to find the minimal 𝐶 𝑖(𝑘−1) ; Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Otherwise 𝑃𝑅𝐸 𝑘 is matched, the length of the longest matching prefix will be k or greater than k, and the lookup engine will search from 𝑃𝑅𝐸 𝑘+1 to 𝑃𝑅𝐸 𝑗 to lookup the exact longest matching prefix, i.e., to find the minimal 𝐶 𝑘+1 𝑗 . Therefore, the minimal 𝐶 𝑖𝑗 can be calculated in the following formula: Here, 1 ≤ i ≤ N, 1 ≤ i ≤ N, i ≤ k ≤ j and 𝐶 𝑖𝑖 = 1 according to Formula (1). By storing the solution of sub-problem (e.g., 𝐶 𝑖𝑗 ), the optimal search path 𝐶 1𝑁 is solved bottom-up. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

We assume the access probability of each prefix in the original FIB is equal, i.e., 𝑃 𝑖 = 𝑆𝑒𝑡 𝑖 /𝑁, here |𝑆𝑒𝑡 𝑖 | is the number of prefixes in 𝑆𝑒𝑡 𝑖 . The dynamic programming algorithm recalculates the matching probability 𝑃 𝑖 of 𝑆𝑒𝑡 𝑖 in the reconstructed FIB based on the matching probability 𝑃 𝑖 in the original probability. Given that the meta-prefixes of a prefix is inserted into the reconstructed FIB, there is 𝑃 𝑖 = 𝑘=𝑖 𝑁 𝑃 𝑘 . For example, in Figure 5, the original 𝑃 𝑖 (i from 1 to 4) are {0.1, 0.3, 0.4, 0.2}. Consequently, we can calculate 𝑃 𝑖 = {1, 0.9, 0.6, 0.2}. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

The dynamic programming algorithm, described in Algorithm 1, reduces the time complexity of finding the optimal search path from O(N!) to O( N 3 ) compared with the exhaustive search. for j = i+1 to N for k = i to j Computer & Internet Architecture Lab CSIE, National Cheng Kung University

𝐶 𝑝𝑎𝑡ℎ1 =1+ 1− 𝑃 ′ 3 ∗ 𝐶 32 + 𝑃 ′ 3 ∗ 𝐶 44 =1+0+0.6∗1=1.6 For example, there are two feasible ways to calculate 𝐶 34 , Path-1: < 𝐿 33 → 𝐿 44 > or Path-2: < 𝐿 44 → 𝐿 33 >. In Path-1, the prefix with 4 components ( 𝐿 44 ) will be probed if and only if the prefix with 3 components ( 𝐿 33 ) is matched. Therefore (choose k = 3), 𝐶 𝑝𝑎𝑡ℎ1 =1+ 1− 𝑃 ′ 3 ∗ 𝐶 32 + 𝑃 ′ 3 ∗ 𝐶 44 =1+0+0.6∗1=1.6 On the other side, in Path-2, the prefix with 3 components ( 𝐿 33 ) will be probed if and only if the prefix with 4 components ( 𝐿 44 ) is dismatched. Hence(k = 4), 𝐶 𝑝𝑎𝑡ℎ2 =1+ 1− 𝑃 ′ 4 ∗ 𝐶 33 + 𝑃 ′ 4 ∗ 𝐶 54 =1+0.4∗1+0=1.4 Consequently, the Paht-1 is chosen as the optimal search path, and there are 𝐶 34 =1.6 and 𝐿 34 =3. Computer & Internet Architecture Lab CSIE, National Cheng Kung University

C Matrix and L matrix 𝐶 𝑖𝑗 𝐿 𝑖𝑗 4 2.04 2 1.6 1 1.44 1.4 1.1 3 4 3 2 1   1.1 3 4 3 2   1 𝑖 𝑖 Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

EXPERIMENTAL RESULTS We combine the NameFilter with the 3 LPM search schemes introduced in Section 3 to increase the name lookup speed in NDN. Totally 4 methods are implemented. [NDN] The average search path lengths of the 4 methods on the IP tables of Sydney and Oregon under the Chicago trace are listed in Table 5. [IP lookup] Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University

Computer & Internet Architecture Lab CSIE, National Cheng Kung University