Issue No. 07 - July (2005 vol. 54)
DOI Bookmark: http://doi.ieeecomputersociety.org/10.1109/TC.2005.104
Haibin Lu , IEEE
Sartaj Sahni , IEEE
We propose B-tree data structures for dynamic router-tables for the cases when the filters are prefixes as well as when they are nonintersecting ranges. A crucial difference between our data structure for prefix filters and the MRT (Multiway Range Trees) is that, in our data structure, each prefix is stored in O(1) B-tree nodes per B-tree level, whereas, in MRT, each prefix is stored in O(m) nodes per level (m is the order of the B-tree). As a result of this difference, the measured average insert and delete times using our structure are about 30 percent less than when MRT is used. Further, an update operation of MRT will, in the worst case, make 2.5 times as many cache misses as made when our structure is used. The asymptotic complexity to find the longest matching prefix is the same and the measured time for this operation also is nearly the same for both data structures. Both B-tree structures for prefix router-tables take O(n) memory. However, our structure is more memory efficient by a constant factor. For the case of nonintersecting ranges, our data structure requires O(n\log_mn) memory and O(\log_m n) nodes are accessed during an operation (finding the highest-priority matching range, insert and delete a range).
Index Terms- Packet routing, dynamic router-tables, longest-prefix matching, highest-priority-range matching, nonintersecting ranges, B-trees.
S. Sahni and H. Lu, "A B-Tree Dynamic Router-Table Design," in IEEE Transactions on Computers, vol. 54, no. , pp. 813-824, 2005.