1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng,...

20
1 On a trie partitioning al gorithm for power-efficie nt TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林林林 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL JOURNAL OF COMMUNICATION SYSTEMS Dept. of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.
  • date post

    19-Dec-2015
  • Category

    Documents

  • view

    214
  • download

    0

Transcript of 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng,...

Page 1: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

1

On a trie partitioning algorithm for power-efficient TCAMs

Authors: Haibin Lu Presenter: Yi-Sheng, Lin (林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL JOURNAL OF COMMUNICATION SYSTEMS

Dept. of Computer Science and Information Engineering National Cheng Kung University,

Taiwan R.O.C.

Page 2: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

2

Outline

1. Introduction

2. Related Work

3. LOGSPLIT: A New Trie-Partitioning Algorithm

4. Experiment

Page 3: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

3

Introduction(1/2)

Zane et al. [3] use two partitioning algorithms to reduce the number of TCAM entries that are checked during lookup. The schemes use multiple TCAMs or a single TCAM with multiple blocks.

SubtreeSplit may waste many entries of data TCAM, and thus is too space-inefficient to be practical.

PostOrderSplit fully utilizes each data TCAM block except the last one. However, it generates a large index TCAM. Each data TCAM block contributes up to W + 1 entries to the index TCAM.

[3]. Zane F, Narlikar G, Basu A. CoolCAMs: power-efficient TCAMs for forwarding engines. IEEE INFOCOM, San Francisco, CA, U.S.A., 2003.

Page 4: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

4

Introduction(2/2)

Since the index TCAM is always on, its power consumption is significant, especially for IPv6 router tables.

The router hardware designers have to use the worst-case bound to determine the size of an index TCAM and the power budget.

The contribution of this paper is a new trie-partitioning algorithm, LogSplit, in which each data TCAM block adds at most log2 m entries to the index TCAM, where m is the number of entries in one data TCAM block.

Page 5: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

5

Related Work

Page 6: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

6

Related Work- SubtreeSplit

Page 7: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

7

Related Work--PostOrderSplit

Page 8: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

8

Related Work

Page 9: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

9

LOGSPLIT: A New Trie-Partitioning Algorithm

If count(x)>s where s is a positive integer, then there is a node y in subtrie(x) such that

Page 10: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

10

LOGSPLIT: A New Trie-Partitioning Algorithm

5 6

6 6

4 1

3 25

Ex: e = 5 3 ≤ count(y) ≤ 5

Page 11: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

11

LOGSPLIT: A New Trie-Partitioning Algorithm

7

1

1

12

2

5

1

2

3

2

42

5

1

2

1

m = 4, e = 3

m = 4, e = 3

m = 4, e = 3

Step 1 Step 2

Step 3

Page 12: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

12

LOGSPLIT: A New Trie-Partitioning Algorithm

Page 13: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

13

LOGSPLIT: A New Trie-Partitioning Algorithm

Page 14: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

14

LOGSPLIT: A New Trie-Partitioning Algorithm

The algorithm makes at most log2m iterations to fill each bucket and each iteration invokes getNodeY(), which takes O(W) time each. Hence, it takes O(W log2m) time to fill each bucket.

The total time of adding the prefixes to the buckets is the size of the trie, which is O(nW).

Therefore, the overall time complexity of LogSplit is O(nW).

The time complexities of SubtreeSplit and PostOrderSplit [3] are also O(nW).

Page 15: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

15

Experiment

Page 16: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

16

Experiment

Page 17: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

17

Experiment

Power reduce factor : n / (m + number of index prefixes)

Page 18: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

18

Experiment

Page 19: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

19

Experiment

Page 20: 1 On a trie partitioning algorithm for power-efficient TCAMs Authors: Haibin Lu Presenter: Yi-Sheng, Lin ( 林意勝 ) Date: 2009.3.11 Publisher/Conf. : INTERNATIONAL.

20

Conclusion

In this paper we develop a new trie-partitioning algorithm, LogSplit, to reduce power consumption. Each data TCAM block contributes at most log2 m entries to the index TCAM for both IPv4 and IPv6, where m is the maximum number of entries in one data TCAM block.

Since the index TCAM is always enabled for search and it counts for a significant portion of the overall power consumption, especially when m is small, reducing the size of the index TCAM makes lookup engines cooler.