Top Banner
1 Route Table Partitioning an d Load Balancing for Parall el Searching with TCAMs Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C. Authors: Dong Lin, Yue Zhang, Chengchen Hu, Gin Liu, Xin Zhang, and Derek pao Publisher: IPDPS (Parallel and Distributed Proce ssing Symposium) 2007. IEEE International Present: Yu-Tso Chen Date: October, 16, 2007
27

1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

Dec 26, 2015

Download

Documents

Samson Price
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

1

Route Table Partitioning and Load Balancing for Parallel Searching wi

th TCAMs

Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.

Authors: Dong Lin, Yue Zhang, Chengchen Hu, Gin Liu, Xin Zhang, and Derek pao

Publisher: IPDPS (Parallel and Distributed Processing Symposium) 2007. IEEE International

Present: Yu-Tso Chen

Date: October, 16, 2007

Page 2: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

2

Outline

1. Introduction 2. Definitions and problem description 3. Smart Route table Partition 4. Logical Cache for Load Balancing 5. Performance Analysis 6. Conclusion

Page 3: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

3

Introduction

When IPv6 is widely deployed, even more storage space is needed.

In pursuit of an ultra-high lookup throughput matching the ever-increasing link transmission speed and the rapidly growing route table.

Multi-chips system is necessary• We strive to multiply the lookup rate by using parallel

processing techniques with minimal overhead.

Page 4: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

4

Introduction (cont.)

There are some major concerns in chip-level parallel lookup system design :• 1)Partitioning method is need here to split route ta

ble into sub-tables that could be stored in separate TCAMs.

• 2)Dynamic load balancing is required for the sake of higher and robust throughput performance in parallel system.

Page 5: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

5

Outline

1. Introduction 2. Definitions and problem

description 3. Smart Route table Partition 4. Logical Cache for Load Balancing 5. Performance Analysis 6. Conclusion

Page 6: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

6

Algorithm Based on TCAM

Chip-level parallel TCAMs were deployed to circumvent the limitation of a single TCAM, where issues should be addressed :• 1)High memory efficiency

• 2)Economical power dissipation

• 3)Balanced traffic load distribution among parallel TCAMs

Page 7: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

7

Outline

1. Introduction 2. Definitions and problem description 3. Smart Route table Partition 4. Logical Cache for Load Balancing 5. Performance Analysis 6. Conclusion

Page 8: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

8

Smart Route table Partition

We proposed a range-based partitioning algorithm that can evenly allocate the route entries among the TCAM chips to ensure high memory utilization.• Split the routing table into multiple buckets

with identical size

Page 9: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

9

Pre-order Splitting

Page 10: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

10

Pre-order Splitting

We use reference nodes to calculate the other boundary points of TCAM bucket.• For instance, P* is the reference node of

TCAM bucket u (not the last one)• TCAM bucket[ u ]’s High range point

= ( P0…0 - 1 )

• TCAM bucket[u+1]’s Low range point

= ( P0…0 )

Page 11: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

11

Pre-order Splitting-Prefix Update

Insert• Prefix P will be compared with boundary points and be

copied to the corresponding buckets.

Page 12: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

12

Prefix Update (cont.)

Delete• Non-boundary prefix – no extra operation

• Boundary prefix – new range of its TCAM bucket should be re-calculated.• We just need to find a new reference node.

• It can determined by a simple pre-order searching in the 1-bit trie.

• Example : the prefix node 1* is deleted, the new reference node for bucket No.2 will be 110*

• The range for bucket No.2 & No.3 will be changed• No.2=> ( 000111 , 101111 )

• No.3=> ( 110000 , 111100 )

Page 13: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

13

Indexing Logic for TCAM block Selection

Page 14: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

14

Evaluate the Pre-order Splitting

In order to prevent the large size of the last bucket, we chose as the average size instead of

The key-ID approach suffers from uneven sub-table sizes

Page 15: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

15

Outline

1. Introduction 2. Definitions and problem description 3. Smart Route table Partition 4. Logical Cache for Load Balancing 5. Performance Analysis 6. Conclusion

Page 16: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

16

Cache Organization

(a) The cache is required to operate at N times the speed of TCAM if there are N parallel TCAMs in the system.

Page 17: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

17

Parallel Lookup Engine

Page 18: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

18

Logical Caches for Load Balancing

Indexing Logic will return a partition number indicating the “home” TCAM

A feed back logic is also settled to operate the cache-missed packets.

The Re-ordering logic maintains the original sequence by using the time stamp attached.

Page 19: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

19

Slow-Update

TCAM chip is not available to perform IP lookup during cache updates.

Only one cache–missed element is updated within a predefined interval.• D clock cycle

During the period, the other cache-missed elements are ignored.

Page 20: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

20

Slow-Update (cont.)

Page 21: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

21

Slow-Update (conclude)

1)Hard to say that bigger or smaller D is absolutely good or not for the performance when the cache is quite large.

2)As the cache size is increased, impact of D becomes less significant.

3)By increasing the cache size, we can achieve a higher cache hit rate while the system can also tolerate a large D.

Large D leads to more fluctuations. Use a small D at beginning to achieve a

reasonable cache hit rate quickly.

Page 22: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

22

Outline

1. Introduction 2. Definitions and problem description 3. Smart Route table Partition 4. Logical Cache for Load Balancing 5. Performance Analysis 6. Conclusion

Page 23: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

23

Performance Analysis

Update cost of proposed system is only N/D, when D is large enough.• The update cost can be ignored

• MWmax = the maximum bandwidth of one TCAM

• M stands for the speedup factor of TCAM

• X = the average hit rate of cache

• NWmax = throughput in a system with N TCAMs

Page 24: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

24

Experiments and Simulations

Here we choose M=4/3,N=4,D=5000 and b=32 for demonstration.

Page 25: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

25

Simulations Result

The buffer length is also decreased as the increasing cache size

The cache size 1024 and D = 5000

Page 26: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

26

Outline

1. Introduction 2. Definitions and problem description 3. Smart Route table Partition 4. Logical Cache for Load Balancing 5. Performance Analysis 6. Conclusion

Page 27: 1 Route Table Partitioning and Load Balancing for Parallel Searching with TCAMs Department of Computer Science and Information Engineering National Cheng.

27

Conclusion

A sample but efficient TCAM table partitioning method.• Could easily extend to IPv6

Devised an adaptive load balance scheme with logical cache to solve the bursty traffic.