作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (15): 70-71,8. doi: 10.3969/j.issn.1000-3428.2007.15.024

• 软件技术与数据库 • 上一篇    下一篇

一种前缀长度二分查找的改进算法

崔尚森1,2,冯博琴2,张白一1   

  1. (1. 长安大学信息工程学院,西安 710064;2. 西安交通大学电子与信息工程学院,西安 710049)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-08-05 发布日期:2007-08-05

Improved Algorithm for Prefix Length Binary Search

CUI Shang-sen1,2, FENG Bo-qin2, ZHANG Bai-yi1   

  1. (1. College of Information and Engineering, Chang’an University, Xi’an 710064; 2. School of Electronics and Information Engineering, Xi’an Jiaotong University, Xi’an 710049)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-08-05 Published:2007-08-05

摘要: 在研究路由表地址前缀分布特点的基础上,提出了前缀长度二分查找方案。该方案采用前缀扩展技术,将前缀数量相对稀少的若干种前缀合并成一种,降低了查找树的高度,减少了存储器访问次数,提高了查找速度,分析了一种实用的Marker存储算法,探讨了IPv6的路由查找问题。

关键词: IP路由, 前缀长度, 最长前缀匹配, 二分查找

Abstract: Analyzing on the distribute of IP address prefix in core routers, this paper describes an improved algorithm for the longest matching prefix using binary search on hash tables organized by prefix lengths. It uses prefix expansion to reduce the numbers of the prefix length. Thereby, it decreases the number of hash tables and lowered the height of the search tree. The paper provides a concise and utility Marker store algorithm also, and gives some viewpoints for IPv6 routing lookups.

Key words: IP routing, prefix length, longest match prefix, binary search

中图分类号: