1 A Fast IP Lookup Scheme for Longest-Matching Prefix Authors: Lih-Chyau Wuu, Shou-Yu Pin Reporter: Chen-Nien Tsai.

Slides:



Advertisements
Similar presentations
IP Router Architectures. Outline Basic IP Router Functionalities IP Router Architectures.
Advertisements

August 17, 2000 Hot Interconnects 8 Devavrat Shah and Pankaj Gupta
1 IP-Lookup and Packet Classification Advanced Algorithms & Data Structures Lecture Theme 08 – Part I Prof. Dr. Th. Ottmann Summer Semester 2006.
Network Algorithms, Lecture 4: Longest Matching Prefix Lookups George Varghese.
An On-Chip IP Address Lookup Algorithm Author: Xuehong Sun and Yiqiang Q. Zhao Publisher: IEEE TRANSACTIONS ON COMPUTERS, 2005 Presenter: Yu Hao, Tseng.
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.
1 Fast Routing Table Lookup Based on Deterministic Multi- hashing Zhuo Huang, David Lin, Jih-Kwon Peir, Shigang Chen, S. M. Iftekharul Alam Department.
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.
Hybrid Data Structure for IP Lookup in Virtual Routers Using FPGAs Authors: Oĝuzhan Erdem, Hoang Le, Viktor K. Prasanna, Cüneyt F. Bazlamaçcı Publisher:
Digital Search Trees & Binary Tries Analog of radix sort to searching. Keys are binary bit strings.  Fixed length – 0110, 0010, 1010,  Variable.
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.
Router Architecture : Building high-performance routers Ian Pratt
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.
A supernetwork.
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.
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,
Power Efficient IP Lookup with Supernode Caching Lu Peng, Wencheng Lu*, and Lide Duan Dept. of Electrical & Computer Engineering Louisiana State University.
Efficient IP-Address Lookup with a Shared Forwarding Table for Multiple Virtual Routers Author: Jing Fu, Jennifer Rexford Publisher: ACM CoNEXT 2008 Presenter:
Scalable IPv6 Lookup/Update Design for High-Throughput Routers Authors: Chung-Ho Chen, Chao-Hsien Hsu, Chen -Chieh Wang Presenter: Yi-Sheng, Lin ( 林意勝.
CS 268: Lectures 13/14 (Route Lookup and Packet Classification) Ion Stoica April 1/3, 2002.
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.
張 燕 光 資訊工程學系 Dept. of Computer Science & Information Engineering,
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.
Address Lookup in IP Routers. 2 Routing Table Lookup Routing Decision Forwarding Decision Forwarding Decision Routing Table Routing Table Routing Table.
1 Efficient packet classification using TCAMs Authors: Derek Pao, Yiu Keung Li and Peng Zhou Publisher: Computer Networks 2006 Present: Chen-Yu Lin Date:
Sarang Dharmapurikar With contributions from : Praveen Krishnamurthy,
PARALLEL TABLE LOOKUP FOR NEXT GENERATION INTERNET
IP Address Lookup Masoud Sabaei Assistant professor
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.
Data : The Small Forwarding Table(SFT), In general, The small forwarding table is the compressed version of a trie. Since SFT organizes.
Advance Computer Networking L-8 Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan Seshan.
Fast Packet Classification Using Bloom filters Authors: Sarang Dharmapurikar, Haoyu Song, Jonathan Turner, and John Lockwood Publisher: ANCS 2006 Present:
Packet Classification on Multiple Fields 참고 논문 : Pankaj Gupta and Nick McKeown SigComm 1999.
Compact Trie Forest: Scalable architecture for IP Lookup on FPGAs Author: O˘guzhan Erdem, Aydin Carus and Hoang Le Publisher: ReConFig 2012 Presenter:
IP Address Lookup Masoud Sabaei Assistant professor
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.
A Small IP Forwarding Table Using Hashing Yeim-Kuan Chang and Wen-Hsin Cheng Dept. of Computer Science and Information Engineering National Cheng Kung.
PARALLEL-SEARCH TRIE- BASED SCHEME FOR FAST IP LOOKUP Author: Roberto Rojas-Cessa, Lakshmi Ramesh, Ziqian Dong, Lin Cai Nirwan Ansari Publisher: IEEE GLOBECOM.
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:
CS 740: Advanced Computer Networks IP Lookup and classification Supplemental material 02/05/2007.
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,
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.
A NOVEL LEVEL-BASED IPV6 ROUTING LOOKUP ALGORITHM Author: Xiaohong Huang, Xiaoyu Zhao, Guofeng Zhao, Wenjian Jiang, Dongqu Zheng, Qiong Sun and Yan Ma.
1 IP Routing table compaction and sampling schemes to enhance TCAM cache performance Author: Ruirui Guo, Jose G. Delgado-Frias Publisher: Journal of Systems.
Author : Masanori Bando and H. Jonathan Chao Publisher : INFOCOM, 2010 Presenter : Jo-Ning Yu Date : 2011/02/16.
DESIGN AND IMPLEMENTATION OF DYNAMIC ROUTING TABLES Author: Yeim-Kuan Chang and Dung-Jiun Lin Publisher/Conf.: The graduation paper of CIAL master student,
Ofir Luzon Supervisor: Prof. Michael Segal Longest Prefix Match For IP Lookup.
Packet Classification Using Multi- Iteration RFC Author: Chun-Hui Tsai, Hung-Mao Chu, Pi-Chung Wang Publisher: 2013 IEEE 37th Annual Computer Software.
IP Address Lookup Masoud Sabaei Assistant professor Computer Engineering and Information Technology Department, Amirkabir University of Technology.
Exploiting Graphics Processors for High-performance IP Lookup in Software Routers Jin Zhao, Xinya Zhang, Xin Wang, Yangdong Deng, Xiaoming Fu IEEE INFOCOM.
IP Routers – internal view
AN ON-CHIP IP ADDRESS LOOKUP ALGORITHM
Multiway range trees: scalable IP lookup with fast updates
Statistical Optimal Hash-based Longest Prefix Match
Parallel Processing Priority Trie-based IP Lookup Approach
A Small and Fast IP Forwarding Table Using Hashing
Author: Xianghui Hu, Xinan Tang, Bei Hua Lecturer: Bo Xu
A SRAM-based Architecture for Trie-based IP Lookup Using FPGA
Presentation transcript:

1 A Fast IP Lookup Scheme for Longest-Matching Prefix Authors: Lih-Chyau Wuu, Shou-Yu Pin Reporter: Chen-Nien Tsai

2 Outline Introduction Previous IP Lookup Scheme New IP Lookup Scheme Performance Analysis Conclusion

3 What is IP Lookup IP lookup is an important action in router that is to find the next hop of each incoming packet with a longest-prefix- match address in the routing table. The major bottleneck in Internet is slow packet forwarding rate, which cannot fit the fast link speed in the router.

4 The IP lookup steps 1.The router finds the set of routing entries that match the beginning IP destination address of the incoming packet. 2.Among this set of matched routes, the router selects the one with the longest prefix to forward the packet. Note: The longest prefix matching is complex.

5 How to Implement Software  For the complex longest prefix matching, IP lookup is often designed in software a first.  Not suitable for high speed network. Hardware  Recently, several hardware lookup mechanisms have been presented.  These mechanisms almost based on indirect lookup.

6 Outline Introduction Previous IP Lookup Scheme New IP Lookup Scheme Performance Analysis Conclusion

7 1. Binary Trie What is the trie?  A tree for storing strings in which there is one node for every common prefix. The strings are stored in extra leaf nodes. For the IPv4, an IP lookup is up to 32 memory accesses in the worst case. Therefore, this trie structure is not efficient when used in IP lookup.

8 1. Binary Trie (cont.)

9 2. Complete Binary Trie To decrease the memory access. Only one memory access is needed if use array to implement the complete trie. But, for an IPv4 routing table, we need 2 32 (4 GB) entries. It is infeasible to have such a large memory in a router.

10 2. Complete Binary Trie (cont.)

11 3. Indirect Lookup To reduce the size of the above complete trie structure. The routing table are transformed into a forwarding table which consisting of:  One segment array  Several next hop array (NHA).

12 Complete binary trie 2 6 entries IPNext Hop A 。。。。。。 A A Next HopOffset 0000ANull 0001ANull 0010ANull 0011ANull Indirect lookup 4 entries An Indirect Lookup Example PrefixNext Hop 00*A Routing Table (a entry)

13 3. Indirect Lookup (cont.) Number of entries: 256 → 48

14 Outline Introduction Previous IP Routing Lookup Scheme New IP Lookup Scheme Hardware Implementation Performance Analysis Conclusion

15 Data Structure of the Forwarding Table The Forwarding Table consists of four small tables:  Level one forwarding table  Level two forwarding table  Level three forwarding table  Level four forwarding table Next hop array Segment array

16 The Forwarding Table

17 How to Construct the Forwarding Table 1.Using Haung’s algorithm to constructs the segment array and NHA. 2.Transform the segment array to L1FT and L2FT. 3.Transform the NHA to L3FT and L4FT.

18 Segment Array Construction For a 32-bit IP address in IPv4, the size of the segment array is Algorithm steps: 1.If the length of a route prefix larger than 16, then construct the corresponding NHA. 2.Otherwise, determine the range of the segment array to store the next hop information.

19 An Example (for one entry and 8-bit IP) Next HopOffset 0000ANull 0001ANull 0010ANull 0011ANull PrefixNext Hop 0/2A The length of prefix: 2 The size of segment array: 2 4. Let S and E denote the range that the next hop is A. Goal: S = 0000 and E = 0011 S = 0000 AND 1100 E = 0000 OR 0011

20

21 Next Hop Array Construction Algorithm steps: 1.For each prefixes which have the same segment, calculate maximum offset. 2.Similar to segment array, determine the range of the NHA to store the next hop information.

22

23 L1FT/L2FT construction To reduce the segment array size, we scan the segment array in a group of 2 4 entries. Thus, the L1FT has 2 12 entries. If all entries in a group have the same next hop, then it become one entry in the L1FT. Otherwise, we need construct L2FT and calculate compression bit map (CBM) for IP lookup operation.

24 L1FT/L2FT construction (cont.) Number of entries: 32 → 6

25

26 L3FT/L4FT construction For each segment with its longest length larger than four, its associated NHA is replaced by L3FT/L4FT, otherwise the NHA becomes L3FT directly. The algorithm is similar with previous one. Because the length of a NHA offset is varied, we need adjust the algorithm.

27 L3FT/L4FT construction (cont.) Number of entries: 32 → 5

28

29 IP Lookup Operation (An Example) BTW, Number of entries: 48 → 26

30 IP Lookup Operation (Flow Chart)

31

32 Hardware Implementation

33 Outline Introduction Previous IP Lookup Scheme New IP Lookup Scheme Performance Analysis Conclusion

34 Performance Analysis The Internet routing table at web site for the IPMA project is used to evaluate the forwarding table size. The proposed scheme was compared with these four lookup schemes:  DIR-24-8  DIR  SFT scheme  Huang’s scheme

35 Performance Analysis (cont.)

36 Conclusion The forwarding table of this proposed scheme is small enough to fit into SRAM. The scheme offers lookup speed of 100 million packets per second. (using current 10ns SRAM) When the routing table changes, the forwarding table will reconstruct from scratch.

37 THE END