Affiliation:
1. Purdue University, West Lafayette, IN
Abstract
The problem of efficient data structures for IP lookups has been well studied in the literature. Techniques such as LC tries and extensible hashing are commonly used. In this paper, we address the problem of generalizing LC tries, based on traces of past lookups, to provide performance guarantees for memory suboptimal structures. As a specific example, if a memory-optimal (LC) trie takes 6 MB and the total memory at the router is 8 MB, how should the trie be modified to make best use of the 2 MB of excess memory? We present a greedy algorithm for this problem and prove that, if for the optimal data structure there are
b
fewer memory accesses on average for each lookup compared with the original trie, the solution produced by the greedy algorithm will have at least 9 ×
b
/11 fewer memory accesses on average (compared to the original trie). An efficient implementation of this algorithm presents significant additional challenges. We describe an implementation with a time complexity of
O
(ξ(
d
)
n
log
n
) and a space complexity of
O
(
n
), where
n
is the number of nodes of the trie and
d
its depth. The depth of a trie is fixed for a given version of the Internet protocol and is typically
O
(log
n
). In this case, ξ(
d
) =
O
(log
2
n
). We also demonstrate experimentally the performance and scalability of the algorithm on actual routing data.
Publisher
Association for Computing Machinery (ACM)
Subject
Theoretical Computer Science
Cited by
2 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献