Waldvogel et al. [10] have proposed a collection of hash tables (CHT) organization for an IP router table. IP lookup can be done with O(log ldist) hash-table searches, where ldist is the number of distinct prefix-lengths (also equal to the number of hash tables in the CHT). Srinivasan and Varghese [9] have proposed the use of controlled prefix-expansion to reduce the value of ldist. The algorithm of [8] does not minimize the storage required by the prefixes and markers for the resulting set of prefixes. We develop an algorithm that minimizes storage requirement but takes O(nW3 + kW4) time, where k is the desired number of distinct lengths, n is the number of prefixes, and W is the length of the longest prefix. Also, we propose improvements to the heuristic of [8].
Index Terms:
Packet routing, router tables, longest-prefix matching, controlled prefix expansion, binary search on length, dynamic programming
Citation:
Kun Suk Kim, Sartaj Sahni, "IP Lookup By Binary Search On Prefix Length," iscc, pp.77, Eighth IEEE Symposium on Computers and Communications, 2003