北京邮电大学学报

  • EI核心期刊

北京邮电大学学报 ›› 2016, Vol. 39 ›› Issue (3): 85-90.doi: 10.13190/j.jbupt.2016.03.015

• 论文 • 上一篇    下一篇

自适应非线性流采样算法的硬件实现

黎阳, 武昊, 刘斌   

  1. 清华大学 计算机科学与技术系, 北京 100084
  • 收稿日期:2015-11-16 出版日期:2016-06-28 发布日期:2016-06-27
  • 作者简介:黎阳(1989-),男,博士生;刘斌(1964-),男,教授,博士生导师,E-mail:liub@tsinghua.edu.cn.
  • 基金资助:

    国家高技术研究发展计划(863计划)项目(2013AA013502);国家自然科学基金项目(61373143,61432009);教育部博士点基金项目(20131019172)

The Hardware Implementation of Adaptive Non-Linear Sampling Algorithm

LI Yang, WU Hao, LIU Bin   

  1. Department of Computer Science and Technology, Tsinghua University, Beijing 100084, China
  • Received:2015-11-16 Online:2016-06-28 Published:2016-06-27

摘要:

针对自适应非线性流采样(DISCO)算法硬件实现面临的一系列挑战,设计了利于硬件处理的改进算法,采用多查找表结构和“归一化”方法进行处理,完成了正确性仿真和基于现场可编程门阵列(FPGA)平台的原型验证.实验结果表明,改进算法能够实现40 Gbit/s链路的线速每流统计,消耗FPGA上的硬件逻辑资源较少,并且平均相对误差和最大相对误差均与基准DISCO算法性能接近.

关键词: 网络流测量, 现场可编程门阵列, 非线性流量测量

Abstract:

In flow-based passive measurement of the Internet, the measurement of flow size and flow volume is a basic requirement. To resolve the contradiction of increasing network link speed and small-sized fast memory chipset, a non-linear sampling algorithm which is named discrete counting (DISCO), was proposed in related research work. In order to meet the need of wire-speed network traffic measurement, DISCO is suggested to be implemented by hardware approaches, such as field-programmable gate array (FPGA). However, DISCO involves complex calculations with high precision, which give rise to a series of challenges in hardware acceleration. To solve the problems, a hardware-friendly refined algorithm was designed, which employs multiple lookup tables and a normalization method. Simulation was conducted to verify the validity of the refined algorithm. An FPGA-based prototype was made. Experiments show that the refined algorithm can achieve wire-speed flow measurement of a 40 Gbit/s link, with small hardware logic resources consumption of FPGA. The average relative error and maximum relative error of the refined DISCO algorithm are close to the original one.

Key words: flow measurement, field-programmable gate array, non-linear sampling

中图分类号: