Using bit selection to do routing table lookup

  • Authors:
  • Zhenqiang Li;Dongqu Zheng;Yan Ma

  • Affiliations:
  • School of Computer Science and Technology, Beijing University of Posts and Telecommunications, Beijing, China;Network Information Center, Beijing University of Posts and Telecommunications, Beijing, China;School of Computer Science and Technology, Beijing University of Posts and Telecommunications, Beijing, China and Network Information Center, Beijing University of Posts and Telecommunications, Be ...

  • Venue:
  • FAW'07 Proceedings of the 1st annual international conference on Frontiers in algorithmics
  • Year:
  • 2007

Quantified Score

Hi-index 0.00

Visualization

Abstract

Tree-based algorithms, such as Patricia, LC-trie, LPFST, etc, are widely used to do longest prefix matching (LPM). These algorithms use all the bits of the prefix to build the tree and the bits are used from the most significant bit to the least significant bit sequentially. Thus the tree is not balanced and the tree depth is high. In this paper, we propose bit selection tree (BS-tree) to do LPM. The bits of the prefix are selected to build BS-tree based on their costs defined in this paper. BS-tree has lower tree depth and is more balanced compared to other tree-based schemes. BS-tree has good scalability to the length of the IP address and is suitable for both IPv4 and IPv6. We evaluate the performances of BS-tree using both IPv4 and IPv6, and specially refine it for IPv6 based on the observations on IPv6 address and real IPv6 routing tables.