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

面向IP流测量的哈希算法研究
引用本文:程光,龚俭,丁伟,徐加羚.面向IP流测量的哈希算法研究[J].软件学报,2005,16(5):652-658.
作者姓名:程光  龚俭  丁伟  徐加羚
作者单位:东南大学,计算机科学与工程系,江苏,南京,210096;江苏省计算机网络重点实验室,江苏,南京,210096
基金项目:Supported by the National Natural Science Foundation of China under Grant No.90104031(国家自然科学基金);the National Grand Fundamental Research 973 Program of China under Grant No.2003CB314803(国家重点基础研究发展规划(973));the Foundation of Southeast University of China under Grant NO.9209002157(东南大学基金)
摘    要:为了解决计算资源和高速网络流量之间的矛盾,需要对IP流进行抽样或负载均衡等处理,而哈希算法是资源代价的核心.首先提出评价哈希算法性能的随机测度;其次从理论上证明比特之间异或运算和位移运算能够提高哈希值的随机特性,提出比特流之间哈希算法的原则;然后分析IP报文的4个字段:源IP、宿IP、源端口和宿端口的特性,由此提出相关的哈希算法;最后使用CERNET主干流量和PMA的数据验证算法的性能,并与IPSX和CRC32算法进行比较.研究表明,基于异或、位移原则的比特流哈希算法的执行效率和哈希值的均匀性两方面具有较好的性质,能够满足高速网络流量测量需求.

关 键 词:哈希算法  网络流量  异或  位移  流量测量
文章编号:1000-9825/2005/16(05)0652
收稿时间:2004/4/14 0:00:00
修稿时间:2004年4月14日

A Hash Algorithm for IP Flow Measurement
CHENG Guang,GONG Jian,DING Wei and XU Jia-Ling.A Hash Algorithm for IP Flow Measurement[J].Journal of Software,2005,16(5):652-658.
Authors:CHENG Guang  GONG Jian  DING Wei and XU Jia-Ling
Abstract:In order to solve the problems with computing resource and high-speed network traffic, it is necessary to deal with the network traffic by some measuring technologies, such as sampling measurement and load balance, etc, while the hash algorithm is one of the key measuring technologies. In this paper, firstly, a random metric is provided to evaluate the performance of the hash algorithms. Secondly, the randomicity of XOR and shift operations are analyzed, and it is proved that the two operations can improve the bit randomicity. Thirdly, this paper analyzes the four fields of IP packet, such as source IP, destination IP, source port, and destination port, and a hash algorithm named XOR_SHIFT is provided based on the analysis. Finally, using the CERNET backbone traffic and PMA traffic, this paper analyzes the character of the XOR_SHIFT hash algorithm and compares with the performance among XOR_SHIFT, IPSX and CRC32 hash algorithms. This study shows that the XOR_SHIFT hash function provided in this paper has two advantages: algorithm performance and hash randomicity, and it can be applied to measure the high-speed network traffic.
Keywords:hash algorithm  network traffic  XOR  shift  traffic measurement
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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