###
DOI:
计算机系统应用英文版:2016,25(2):250-256
本文二维码信息
码上扫一扫!
适用于高速检索的完美Hash函数
(1.浙江广厦建设职业技术学院 信息与工程控制学院, 东阳 322100;2.香港城市大学 电子工程系, 香港)
Perfect Hash Function for High-Speed Searching
(1.School of Information & Control Engineering, Zhejiang Guangsha College of Applied Construction Technology, Dongyang 322100, China;2.Department of Electronic Engineering, City University of Hong Kong, Hong Kong, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 1316次   下载 2940
Received:May 16, 2015    Revised:September 16, 2015
中文摘要: 软件实现的Hash函数在当前检索领域应用非常广泛,但是由于处理速度不高,很难满足骨干网以及服务器海量数据的高速实时查找要求.硬件Hash函数处理速度快,但普遍存在设计电路复杂、存储空间利用率不高以及无法支持数据集动态更新等问题.基于位提取(Bit-extraction)算法,利用位选择(Bit-Selection)操作与位逻辑运算在FPGA上仿真实现一种Hash函数,可生成负载因子(Load factor)接近于1的近似最小完美Hash表.仿真结果表明,该Hash函数中每个24 bits长度Key的存储空间只要2.8-5.6 bits,系统时钟频率可以达到300MHz左右(吞吐率超过14Gbps).可以应用于IP地址查找、数据包分类、字符串匹配以及入侵检测等需要实时高速表查找的场景.
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.
文章编号:     中图分类号:    文献标志码:
基金项目:香港研究资助局项目(CityU 119809);浙江广厦建设职业技术学院重点项目(2015005)
引用文本:
王兴,鲍志伟.适用于高速检索的完美Hash函数.计算机系统应用,2016,25(2):250-256
WANG Xing,PAO Derek.Perfect Hash Function for High-Speed Searching.COMPUTER SYSTEMS APPLICATIONS,2016,25(2):250-256