针对大多数基于软件的流量采集器不能实时处理高速环境下网络流量的问题,设计并实现一种基于NetFPGA的流量采集器,以达到在线流量的采集和分类。本设计采用模块化的架构,利用循环冗余检验算法来标识一个流,同时生成存储器的地址,在采集流量之前运用灵活的过滤规则对网络流量进行过滤,以减少待分类的网络流,使得采集器可以根据不同的需要采集流量。将采集器应用于千兆交换机网络环境进行在线数据采集实验,结果显示,该网络流量采集器能以线速工作在吉比特网络中。
Traffic collector is useful in network analysis, management, accounting, data mining, etc. Most software-based traffic col- lectors can't handle high speed network traffic in real time due to performance limitation. In this paper, a NetFPGA-based network traffic collector is proposed to achieve online traffic collection and classification. By defining a modular architecture, the design can be upgraded easily. The design takes CRC algorithm as hash function to identify a flow and generate memory address. Different filter rules are applied on incoming flows to reduce flow numbers. Experiment results show that the design can work in a gigabit network at line speed.