首页 | 本学科首页   官方微博 | 高级检索  
     

适用于高速检索的完美Hash函数
引用本文:王兴,鲍志伟. 适用于高速检索的完美Hash函数[J]. 计算机系统应用, 2016, 25(2): 250-256
作者姓名:王兴  鲍志伟
作者单位:浙江广厦建设职业技术学院 信息与工程控制学院, 东阳 322100;香港城市大学 电子工程系, 香港,香港城市大学 电子工程系, 香港
基金项目:香港研究资助局项目(CityU 119809);浙江广厦建设职业技术学院重点项目(2015005)
摘    要:软件实现的Hash函数在当前检索领域应用非常广泛,但是由于处理速度不高,很难满足骨干网以及服务器海量数据的高速实时查找要求.硬件Hash函数处理速度快,但普遍存在设计电路复杂、存储空间利用率不高以及无法支持数据集动态更新等问题.基于位提取(Bit-extraction)算法,利用位选择(Bit-Selection)操作与位逻辑运算在FPGA上仿真实现一种Hash函数,可生成负载因子(Load factor)接近于1的近似最小完美Hash表.仿真结果表明,该Hash函数中每个24 bits长度Key的存储空间只要2.8-5.6 bits,系统时钟频率可以达到300MHz左右(吞吐率超过14Gbps).可以应用于IP地址查找、数据包分类、字符串匹配以及入侵检测等需要实时高速表查找的场景.

关 键 词:硬件Hash表  完美Hash函数  高速搜索  最小完美Hash表
收稿时间:2015-05-16
修稿时间:2015-09-16

Perfect Hash Function for High-Speed Searching
WANG Xing and PAO Derek. Perfect Hash Function for High-Speed Searching[J]. Computer Systems& Applications, 2016, 25(2): 250-256
Authors:WANG Xing and PAO Derek
Affiliation:School of Information & Control Engineering, Zhejiang Guangsha College of Applied Construction Technology, Dongyang 322100, China;Department of Electronic Engineering, City University of Hong Kong, Hong Kong, China and Department of Electronic Engineering, City University of Hong Kong, Hong Kong, China
Abstract:Software-based hash function has been popularly applied to current networking searching area, but it is difficult to meet the demand of high-speed real-time applications in backbone network and services with mass data. In the general design of hardware-based hash function, there are still some drawbacks such as complex logic circuit memory inefficiency, and incremental updates for dataset needed to be solved. This paper proposed a design of hardware perfect hash function on FPGA based on bit-extraction algorithm, using simple bit-selection and bit logic operation. The achievable load factor can be up to 1, and the amortized memory cost of the hash function is about 2.8-5.6 bits/key for 32-bit keys, and the system clock frequency is about 300MHz(Throughput more than 14Gbps). The proposed method can be applied to real-time applications that require high-speed table lookup, e.g. IP address lookup, packet classification, string matching and intrusion detection systems.
Keywords:hardware-based hash table  perfect hash function  high-speed searching  minimal perfect hash table
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号