1 efficient trie braiding in scalable virtual routers author: haoyu song, murali kodialam, fang hao,...
TRANSCRIPT
![Page 1: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/1.jpg)
1
Efficient Trie Braiding in Scalable Virtual Routers
Author:Haoyu Song, Murali Kodialam, Fang Hao, T.V. LakshmanPublisher:IEEE/ACM TRANSACTIONS ON NETWORKINGPresenter:Zi-Yang OuDate:2012/10/17
![Page 2: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/2.jpg)
Introduction
2
This paper proposes a mechanism called trie braiding that can be used
to combine tries from different virtual routers into just one trie. Trie braiding enables each trie node to swap its left child node and
right child node freely. The changed shape is memorized by a single bit at each trie node. Two optimal dynamic programming algorithms and a faster heuristic
algorithm are presented. Trie braiding leads to significant savings in high-speed memory, and
hence improves scalability.
![Page 3: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/3.jpg)
3
![Page 4: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/4.jpg)
Trie Braiding In Fig. b, we swap node a’s child nodes and node c’s child nodes.
4
a
c b
d
e f
a
c b
d
e f
![Page 5: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/5.jpg)
Problem Formulation Definition 1: A mapping M of T2 to T1
Definition 2: A permissible mapping
5
![Page 6: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/6.jpg)
Definition 3:
Definition 4: Distance
6
![Page 7: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/7.jpg)
7
![Page 8: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/8.jpg)
Braid : A DP Algorithm Input : T1 and T2
Output :
8
![Page 9: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/9.jpg)
Step1: Compute Leaf Weights
Step2: Distance Computation
Step3: It starts from r2 and uses S( , ) to obtain the optimal mapping
and braiding bit for each node v2.
9
![Page 10: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/10.jpg)
10
![Page 11: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/11.jpg)
11
![Page 12: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/12.jpg)
FAST-BRAID: Braiding With Isomorphism Detection The motivation is the result in Lemma 1. If we can identify the fact that , then we need
to compute the value of only once. Using the technique developed by [26] in linear time algorithm for tree
isomorphism to keep track of the nodes with isomorphic subtrees. We first process each tree separately. Two nodes will be given the same label if and only if the subtrees
rooted at those two nodes are isomorphic. In the FAST-BRAID algorithm, we have to compute the value of
for two labels, each from a different tree.
12
![Page 13: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/13.jpg)
k-Braid: A k-Step Lookahead Heuristic for Braiding This heuristic algorithm determines the mapping from root to leaves.
13
![Page 14: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/14.jpg)
Combining Multiple Trees So far, we have dealt with the problem of combining two trees. If we want to combine more than two trees, then the running time of
the optimal algorithm grows exponentially with the number of trees. We use an incremental approach where we first merge T1 and T2 and
then merge Ti (i >= 3) onto combined tree.
14
![Page 15: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/15.jpg)
Algorithm Evaluation
15
![Page 16: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/16.jpg)
16
![Page 17: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/17.jpg)
17
![Page 18: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/18.jpg)
18
![Page 19: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/19.jpg)
19
![Page 20: 1 Efficient Trie Braiding in Scalable Virtual Routers Author: Haoyu Song, Murali Kodialam, Fang Hao, T.V. Lakshman Publisher: IEEE/ACM TRANSACTIONS ON](https://reader035.vdocuments.net/reader035/viewer/2022062500/56649f145503460f94c291b3/html5/thumbnails/20.jpg)
20