作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2009, Vol. 35 ›› Issue (20): 261-263. doi: 10.3969/j.issn.1000-3428.2009.20.092

• 开发研究与设计技术 • 上一篇    下一篇

一种基于Linux内核的高效包分类算法

雷渊明1,张大方1,谢 鲲2,何施茗2,杨 虎1   

  1. (1. 湖南大学软件学院,长沙 410082;2. 湖南大学计算机与通信学院,长沙 410082)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2009-10-20 发布日期:2009-10-20

Efficient Packet Classification Algorithm Based on Linux Kernel

LEI Yuan-ming1, ZHANG Da-fang1, XIE Kun2, HE Shi-ming2, YANG Hu1   

  1. (1. College of Software, Hunan University, Changsha 410082;2. College of Computer and Communication, Hunan University, Changsha 410082)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-10-20 Published:2009-10-20

摘要: 针对iptables核心包分类算法的低效问题,提出一种符合Linux内核限制条件并充分利用已有内核机制的高效包分类算法。该算法具备动态更新、多维匹配、实施速度快等主流包分类算法的特点,适合实际应用。实验结果表明在规则库较大的情况下,算法性能有很大提高。

关键词: 范围定位, 包分类, Linux内核

Abstract: The iptables’ core packet classification algorithm has lower capability. Focusing on this issue, this paper presents an efficient packet classification algorithm according to the limits of the Linux kernel, as well as sufficient usage of the mechanisms in the kernel. It provides the characteristics, such as multi-dimensional packet classification, dynamic operations and quick matching, which are required by the mainstream. Experimental results show that the algorithm greatly improves the performance, especially in the condition of big rule sets.

Key words: range location, packet classification, Linux kernel

中图分类号: