1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information...
-
Upload
lewis-woods -
Category
Documents
-
view
237 -
download
1
Transcript of 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information...
![Page 1: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/1.jpg)
1
Recursively Partitioned Static IP Router Table
Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.
Authors : Wencheng Lu, Sartaj Sahni
Publisher : ISCC 2007
Present : Kuang-Ying Ho 何冠穎
Date : 2007/11/06(Tue.)
![Page 2: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/2.jpg)
2
Introduction
A method–recursive partitioning–to partition a static IP router table so that when each partition is represented using a base structure such as a multibit trie (MST) or a hybrid shape shifting trie (HSST).
Reduce both
Total memory required for router table.
Number of memory access.
Compare with popular front-end table methed.
![Page 3: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/3.jpg)
3
*Shape Shifting Trie
K: node size in STT
SBM Shape Bitmap 2K bit
IBM Internal Bitmap
(valid bit)
K bits
EBM External Bitmap (exit point)
K+1 bits
![Page 4: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/4.jpg)
4
Recursive Partitioning
R s : 3 R
First-level partitions of Tpartition L(R)the auxiliary partition
s : stride, 1 ≤ s ≤ T.height+1
s : 2
![Page 5: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/5.jpg)
5
Q(N) : bit stringIndex of ST(N)
Data structure
![Page 6: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/6.jpg)
6
Hash table - Entry types
R s : 2
![Page 7: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/7.jpg)
For first levels : stride
ht : address of first hash table entry
h : perfect hash function
d : destination IP
7
Lookup
q u
![Page 8: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/8.jpg)
Incorporating Leaf Pushing
8
R
![Page 9: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/9.jpg)
9
Lookup after leaf pushing
![Page 10: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/10.jpg)
10
Dynamic Programming Recurrence
B(N, l, r) be the minimum memory required to represent levels 0 through l of the subtree of T rooted at N by a base structure such as MBT or HSST take no more than r memory accesses.
H(N, l) be the memory required for a stride l hash table for the paths from node N of T to nodes in Dl(N)
C(N, l, r) be the minimum memory required by a recursively partitioned representation of the subtrie defined by levels 0 through l of ST(N).
r = 4, 5 0 < l ≤ N.height N
N
Q
N.height
l
Recurrences for B may be obtained from Sahni and Kim [12] for fixed- and variable-stride MBTs and Lu and Sahni [6] for HSSTs.
![Page 11: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/11.jpg)
Optimization
11
A. when auxiliary partitions L(R) are restricted to be resented by base structures, the memory requirement is reduced.
B. either a hash table or a simple array with 2l entries can be use when the partition stride is l.
![Page 12: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/12.jpg)
12
Implementation
For benchmarking purposes we assumed that the router table will reside on a QDRII SRAM (dual burst), which supports the retrieval of 72 bits of data with a single memory access. We considered two hash-table designs–36 bit and 72 bit.
![Page 13: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/13.jpg)
13
Implementation for IPv4
In the 36-bit design for IPv4, we allocated 36 bits to each hash entry with: 8 bits for Q(N), 2 bits for the stride of the next-level partition (5-8), 8 bits for the mask, 17 bits for the pointer.
In the 72-bit design for IPv4, we allocated 72 bits for each hash-table entry with17 bits for Q(N), 5 bits for the stride of the next-level partition (1-17),17 bits for the mask,19 bits for the pointer
![Page 14: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/14.jpg)
14
Implementation for IPv6
In the 36-bit design for IPv6, we allocated 36 bits to each hash entry with: 7 bits for Q(N), 2 bits for the stride of the next-level partition (4-7), 7 bits for the mask, 19 bits for the pointer.
In the 72-bit design for IPv6, we allocated 72 bits for each hash-table entry with17 bits for Q(N), 5 bits for the stride of the next-level partition (1-17),17 bits for the mask,19 bits for the pointer
![Page 15: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/15.jpg)
15
Performance for IPv4
![Page 16: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/16.jpg)
16
Performance for IPv6
![Page 17: 1 Recursively Partitioned Static IP Router Table Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.](https://reader033.fdocuments.net/reader033/viewer/2022061612/56649ee05503460f94bf1066/html5/thumbnails/17.jpg)
17
Contributions