期刊文献+

基于哈希表的最长前缀匹配算法改进 被引量:2

Improved long prefix matching algorithm based on hash table
下载PDF
导出
摘要 在实际应用中经常需要查找某IP地址其在数据库中对应的真实的物理地址,而数据库的数据量往往很大,显然直接去查询数据库不能满足大量数据以及高速查找的要求。在最长前缀匹配算法的基础上,提出了一种基于哈希查找表的IP地址查找算法。将数据库中的信息建立为一个哈希表,并将点分十进制IP地址的部分前缀作为键值,映射到哈希表中的一条记录,从而得到所需的信息。最后用C#语言实现了该算法,实验表明该算法具有很高的效率。 In practical applications, it's often need to translate the IP address into physical address according to the database that stores the detail information about the IP address. However the database is often too large, so that it's low efficient to search massive data directly in the database. On the basis of the longest-prefix matching algorithm, a hash table based IP address search algorithm is proposed. The information in the database is established as a hash table, and takes the prefix of an IP address in decimal format as a key to map to the corresponding item in the hash table, and then it can be obtain the necessary information. Finally, the algorithm is realized with C# language, and it's proved to be efficient according to the experiments.
出处 《微计算机信息》 2009年第30期143-144,142,共3页 Control & Automation
关键词 IP 最长前缀匹配 哈希表 IP longest prefix matching hash table
  • 相关文献

参考文献4

二级参考文献8

共引文献8

同被引文献15

  • 1崔尚森,张白一.一种基于哈希表和Trie树的快速IP路由查找算法[J].计算机工程与应用,2005,41(9):156-158. 被引量:7
  • 2程光,龚俭,丁伟,徐加羚.面向IP流测量的哈希算法研究[J].软件学报,2005,16(5):652-658. 被引量:54
  • 3戴特.SQL与关系数据库理论[M].周成兴,译.清华大学出版社.2010.
  • 4科曼.算法导论[M].潘金贵,译.机械工业出版社,2006.
  • 5史蒂文斯,拉戈.UNIX环境高级编程[M].尤晋元,张亚英,戚正伟,译.人民邮电出版社,2006.
  • 6Vócking B.How Asymmetry Helps Load Balancing[J].Journal of the ACM on Computer,2003,50(4):568-589.
  • 7Fall K R,Stevens W R.TCP/IP Illustrated[M].[S.l.]:Addison-Wesley Professional,2011.
  • 8Kumar S,Crowley P.Segmented Hash:An Efficient Hash Table Implementation for High Performance Networking Subsystems[C]//Proceedings of ACM Symposium on Architecture for Networking and Communications Systems.[S.l.]:ACM Press,2005:91-103.
  • 9Kumar S,Turner J,Crowley P.Peacock Hashing:Deterministic and Updatable Hashing for High Performance Networking[C]//Proceedings of the27th Conference on Computer Communications.[S.l.]:IEEE Press,2008:101-105.
  • 10Mac Kenzie P D,Plaxton C G,Rajaraman R.On Contention Resolution Protocols and Associated Probabilistic Phenomena[C]//Proceedings of the26th Annual ACM Symposium on Theory of Computing.[S.l.]:ACM Press,1994:153-162.

引证文献2

二级引证文献13

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部