a classified multi-suffix trie for ip lookup and update

17
A Classified Multi- Suffix Trie for IP Lookup and Update Author: Sun-Yuan Hsieh, Ying-Chi Yang Publisher: IEEE TC Presenter: Jia-Wei Yo Date: 2011/10/12 1

Upload: berit

Post on 23-Feb-2016

45 views

Category:

Documents


0 download

DESCRIPTION

A Classified Multi-Suffix Trie for IP Lookup and Update. Author : Sun-Yuan Hsieh, Ying-Chi Yang Publisher : IEEE TC Presenter: Jia -Wei Yo Date: 2011/10/12. Introduction. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: A Classified Multi-Suffix  Trie for IP  Lookup and Update

A Classified Multi-Suffix Trie for IP Lookup and Update

Author:Sun-Yuan Hsieh, Ying-Chi YangPublisher:IEEE TCPresenter: Jia-Wei YoDate:2011/10/12 1

Page 2: A Classified Multi-Suffix  Trie for IP  Lookup and Update

Introduction• Propose a trie-based data structure called Classified Multi-

Suffix Trie (CMST) for designing dynamic router-tables.

• Each node can store more than one prefix and can return the longest matching prefix immediately when it is found in some internal node.

• Also propose a data structure called the Partitioning Classified Multi-Suffix Trie (PCMST) to reduce the height of a trie and expedite router-table operations.

• Two proposed data structures can be applied to both IPv4 and IPv6 routing databases.

2

Page 3: A Classified Multi-Suffix  Trie for IP  Lookup and Update

*Prefix tree

3

Insert : 1*

Page 4: A Classified Multi-Suffix  Trie for IP  Lookup and Update

Prefix tree deletion operation

4

Page 5: A Classified Multi-Suffix  Trie for IP  Lookup and Update

CMST• A k-stride Classified Multi-Suffix Trie (k-CMST) contains two

types of nodes, a major node (m-node) and a secondary node (s-node)

• An m-node that has children is called an internal m-node, and an m-node without children is called an external m-node.

• An m-node whose stride is k has children corresponding to the possible values for the k used bits.

5

Page 6: A Classified Multi-Suffix  Trie for IP  Lookup and Update

6

1. (): can be ε or a suffix, such that if (v) ≠ ε, then len((v)) > k. Port() output port of

(v) = ε, Port() = -1.2. store output port with the length of suffix is equal to k. Otherwise , let 3. (): 0 ≤ t(v) ≤ is the number of suffixes stored in v.

4. c(): 0 ≤ c(v) ≤ is the number of (v)s with (v) −1.

5. s_pointer(): a pointer that points to a prefix tree PT comprised of s-nodes. which are used to store some suffixes q with 1 ≤ len(q) < k

Page 7: A Classified Multi-Suffix  Trie for IP  Lookup and Update

CMST Insert

7

Insert : ( 00100* , Q )

Page 8: A Classified Multi-Suffix  Trie for IP  Lookup and Update

CMST Insert

8

Insert : ( 0011* , R )

Page 9: A Classified Multi-Suffix  Trie for IP  Lookup and Update

CMST Insert

9

Insert : ( 0010011* , S )

Page 10: A Classified Multi-Suffix  Trie for IP  Lookup and Update

CMST Insert

10

Insert : ( 001101* , T )

Page 11: A Classified Multi-Suffix  Trie for IP  Lookup and Update

CMST Insert

11

=> Insert : ( 111* , I )Insert : ( 001101* , T )

Page 12: A Classified Multi-Suffix  Trie for IP  Lookup and Update

CMST Lookup

12

Search : 00100011* Port : Default portBAO

Page 13: A Classified Multi-Suffix  Trie for IP  Lookup and Update

CMST Delete

13

Delete : 0010010*

Delete

Page 14: A Classified Multi-Suffix  Trie for IP  Lookup and Update

PCMST

14Set as the length of the shortest prefix in the given router table.=> Avoid duplicate storage of the same prefix in k-PCMST

Page 15: A Classified Multi-Suffix  Trie for IP  Lookup and Update

K-CMST & K-PCMST

15

Page 16: A Classified Multi-Suffix  Trie for IP  Lookup and Update

Experimental Result

16

Page 17: A Classified Multi-Suffix  Trie for IP  Lookup and Update

17