引用本文:程光,龚俭,丁伟,徐加羚.面向IP流测量的哈希算法研究.软件学报,2005,16(5):652-658
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 5485次   下载 9840 本文二维码信息
码上扫一扫!
分享到: 微信 更多
面向IP流测量的哈希算法研究
程光1,2, 龚俭1,2, 丁伟1,2, 徐加羚1,2
1.东南大学,计算机科学与工程系,江苏,南京,210096;2.江苏省计算机网络重点实验室,江苏,南京,210096
摘要:
为了解决计算资源和高速网络流量之间的矛盾,需要对IP流进行抽样或负载均衡等处理,而哈希算法是资源代价的核心.首先提出评价哈希算法性能的随机测度;其次从理论上证明比特之间异或运算和位移运算能够提高哈希值的随机特性,提出比特流之间哈希算法的原则;然后分析IP报文的4个字段:源IP、宿IP、源端口和宿端口的特性,由此提出相关的哈希算法;最后使用CERNET主干流量和PMA的数据验证算法的性能,并与IPSX和CRC32算法进行比较.研究表明,基于异或、位移原则的比特流哈希算法的执行效率和哈希值的均匀性两方面具有较好的性质,能够满足高速网络流量测量需求.
关键词:  哈希算法  网络流量  异或  位移  流量测量
DOI:
分类号:
基金项目: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(东南大学基金)
A Hash Algorithm for IP Flow Measurement
CHENG Guang,GONG Jian,DING Wei,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.
Key words:  hash algorithm  network traffic  XOR  shift  traffic measurement

引用本文:
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览次   下载  
分享到: 微信 更多
摘要:
关键词:  
DOI:
分类号:
基金项目:
Abstract:
Key words: