计算机科学 ›› 2010, Vol. 37 ›› Issue (9): 36-39.

• 计算机网络与信息安全 • 上一篇    下一篇

使用Hash表和树位图的两级IPv6地址查找算法

王亚刚,杜慧敏,杨康平   

  1. (西安电子科技大学计算机学院 西安710071);(西安邮电学院计算机科学与技术系 西安710121)
  • 出版日期:2018-12-01 发布日期:2018-12-01
  • 基金资助:
    本文受国家自然科学基金(60976020)资助。

Two-stage IPv6 Address Lookup Scheme Based on Hash Tables and Tree Bitmaps

WANG Ya-gang,DU Hui-min,YANG Kang-ping   

  • Online:2018-12-01 Published:2018-12-01

摘要: 为了提高IPv6地址查找效率,在分析IPv6路由前缀长度分布规律的基础上,提出了基于哈希表及树位图(Tree-bitmap)的两级IPv6地址查找算法。算法将长度为16,32,48和64比特的前缀分别存储在4个Hash表中,其余前缀的前16,32和48比特利用已有的Hash表存储,剩余的不足16比特的部分前缀利用树位图存储,并将树位图的入口地址保存在Hash表中。IP地址查找时在Hash表和树位图中进行两级查找。实验表明,该查找算法的平均内存访问次数为1--2,最坏情况下为7,适用于高速IPv6地址查找。

关键词: IPv6,地址查找,哈希表,树位图

Abstract: IP address lookup is a key issue in modern high performance muter design, especially with the evolution of IPv6. In order to improve the efficiency of IP address lookup, a novel IPv6 address lookup scheme based on Hash tables and tree bitmaps was proposed, with an analysis on the prefix length distribution of routing table state-of-the-art. In this scheme,four Hash tables were used to store the prefixes with the length of 16,32,48 and 64 bits respectively; the subprefixes with length of 16,32,48 bits of the other prefixes were stored in these four Hash tables too, their remaining part shorter than 16 bits was coded into tree-bitmap and indexed by a certain Hash table entry, thereby to form a two-stage address lookup architecture. I}hc results show that the scheme can achieve an average memory access number of1--2 per IPv6 address lookup and 7 for the worst case, and can be applied in the high performance IPv6 address lookup implementation.

Key words: IPv6 , Routing lookup, Hash table, Tree bitmap

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!