DocumentCode
1534794
Title
IP lookups using multiway and multicolumn search
Author
Lampson, Butler ; Srinivasan, Venkatachary ; Varghese, George
Author_Institution
Microsoft Res., Seattle, WA, USA
Volume
7
Issue
3
fYear
1999
fDate
6/1/1999 12:00:00 AM
Firstpage
324
Lastpage
334
Abstract
IP address lookup is becoming critical because of increasing routing table sizes, speed, and traffic in the Internet. Given a set S of prefixes and an IP address D, the IP address lookup problem is to find the longest matching prefix of D in set S. This paper shows how binary search can be adapted for solving the best-matching prefix problem. Next, we show how to improve the performance of any best-matching prefix scheme using an initial array indexed by the first X bits of the address. We then describe how to take advantage of cache line size to do a multiway search with six-way branching. Finally, we show how to extend the binary search solution and the multiway search solution for IPv6. For a database of N prefixes with address length W, naive binary search would take O(W*log N); we show how to reduce this to O(W+log N) using multiple-column binary search. Measurements using a practical (Mae-East) database of 38000 entries yield a worst-case lookup time of 490 ns, five times faster than the Patricia trie scheme used in BSD UNIX. Our scheme is attractive for IPv6 because of its small storage requirement (2N nodes) and speed (estimated worst case of 7 cache line reads per lookup)
Keywords
Internet; search problems; table lookup; telecommunication network routing; telecommunication traffic; transport protocols; BSD UNIX; IP address lookup; IPv6; Internet; Mae-East database; Patricia trie scheme; address length; best-matching prefix problem; binary search; cache line size; database; longest matching prefix; measurements; multicolumn search; multiway search; performance; routing table size; six-way branching; speed; storage requirement; traffic; worst-case lookup time; Associate members; Bandwidth; Cache storage; Databases; Home appliances; Internet; Routing protocols; Spine; Time measurement; Videoconference;
fLanguage
English
Journal_Title
Networking, IEEE/ACM Transactions on
Publisher
ieee
ISSN
1063-6692
Type
jour
DOI
10.1109/90.779199
Filename
779199
Link To Document