本文针对 SDN 多字段分组分类问题,提出基于 R-Tree 的方法,将 IP 地址映射为二维点并拼接其余字段,借助规则 ID 和二进制标志完成最高优先级匹配,仿真显示其提升速度并显著减少内存访问。
摘要:
软件定义网络是一种为企业网络提出的、将基于软件的控制平面与基于硬件的数据平面解耦的方法;OpenFlow 是最著名的灵活协议,可管理控制平面与数据平面之间的网络流量。软件定义网络(SDN)需要对照庞大的多字段规则集检查分组首部中多达 18 个字段,以将分组归类为流,而将分组归类为流的过程称为分组分类。网络交换机通过应用相应规则中定义的相同动作,以类似方式处理属于同一流的所有分组。分组分类有助于支持新服务,例如过滤、阻止不安全站点流量、基于分组首部信息路由分组,以及为特定流赋予优先级。用于多字段分组分类的高性能算法已在研究界引起广泛关注。本文提出了一种使用 Rectangle Tree(R-Tree,矩形树)实现 SDN 流表多字段分组分类的新方法。在该方法中,每个流表项中的源 IP 地址和目的 IP 地址已被转换为一个二维点。规则字段的其余部分通过提取最重要的位与规则 ID 拼接成单个字段,以便插入到 R-tree 中;对于每条规则,使用一个有效的小型二进制标志来指示字段的大小、类型和范围。随后,在矩形树上执行搜索,以根据最高优先级找到匹配规则。在使用 class-bench 数据库的仿真中,结果表明该方法取得了非常好的性能和分类速度,并显著减少了内存访问次数。
英文摘要:
Software-defined Networking is an approach that decouples the software-based control plane from the hardware-based data plane proposed for enterprise networks; OpenFlow is the most famous flexible protocol that can manage network traffic between the control and the data plane. Software-Defined Networking (SDN) requires up to 18 fields of the packets header to be checked against a big many-fields ruleset to categorize packets into flows, the process of categorizing packets into flows is called packet classification. Network switches process all packets belonging to the same flow in a similar manner by applying the same actions defined in the corresponding rule. Packet classification facilitates supporting new services such as filtering, blocking unsafe sites traffic, routing packets based on the packet's header information, and giving priority to specific flows. High-performance algorithms for many-field packet classification had been gained much interest in the research communities. This paper presents a new method to implement the many-fields packet classification of SDN flow table using Rectangle Tree (R-Tree). In this method, source and destination IP addresses from each flow table entry have been converted to a two-dimensional point. The remainders of the rule's fields have been concatenated into a single field by taking the most important bits with rules' ID in order to be inserted into the R-tree, for each rule an effective small binary flag is used to indicate the field's size, type, and ranges. Subsequently, searching is performed on the rectangle tree to find the matched rules according to the highest priority. In the simulation using the class-bench databases, the results show that this method achieves very good performance, classification speed and reduces the number of memory accesses significantly.
An Approximate Inner Bound to the QoS Aware Throughput Region of a Tree Network under IEEE 802.15.4 CSMA/CA and Application to Wireless Sensor Network Design
Fast and reconfigurable packet classification engine in FPGA-based firewall
在互联网上的数据通信中,安全性成为影响最大的方面之一。支持它的一种方法是在网络设备中对以太网数据包进行分类和过滤。数据包分类是路由器、防火墙和入侵检测系统等网络设备的基本任务。本文提出了一种快速可重构的分组分类引擎(PCE)的体系结构。该引擎用于基于FPGA的防火墙。我们的PCE检查多维字段的包头顺序基于树的算法。该算法简化了整个系统的规模,并导致一个更安全的系统。PCE与系统中的单周期处理器架构的适配一起工作。以太网数据包由PCE根据数据包报头的源IP地址、目的IP地址、源端口、目的端口和协议字段进行检查。这些是在检查内容之前知道它是危险的还是正常的数据包的基本字段。该体系结构采用树型算法,将防火墙规则重构为24位的子规则,并在检测过程中作为处理器指令读取。检查过程是每个时钟周期将一个子规则与报头的输入字段进行比较。所提出的PCE在Cyclone II EP2C70F896C6中显示了91 MHz的时钟频率,从输入到输出生成的平均吞吐量为13个时钟。使用基于树的算法简化了多维数据包检测,并给我们提供了可重构以及可扩展的系统。该结构具有快速、可靠、适应性强的特点,能够很好地发挥算法的优势。虽然PCE具有高频率和少量时钟,但防火墙的过滤速度还取决于其他组件,例如包FIFO缓冲器。需要快速可靠的FIFO缓冲器来支持PCE。该PCE还没有完成规则更新机制。在NIOS II平台上,利用FP…