期刊文献+

对Linux系统中的iptables过滤模块的改进 被引量:2

The Improvement of Iptables Filter Module in Linux Operating System
下载PDF
导出
摘要 为了改善现有linux系统内核iptables模块在数据包过滤中线性匹配规则的效率。采用了散列表和动态平衡树来组织过滤表,提出了按照三层递进式的搜索规则,减少了原来的线性查找重复匹配的次数,改进了过滤效率,并确保原有功能不变。把A个IP地址、B个网络设备和C个协议规则的过滤表查找时间复杂度从O(A*B*C)降低到m*O(log2A)+n*O(B)+k*O(log2C),(m,n,k为系数因子)。通过适当增加数据结构,安排合理的搜索规则,在有限的系统开销内,可以提高数据包过滤的规则匹配效率。 In this paper, the filter efficiency of iptables filter module in Linux kernel is analyzed. In order to improve the filter efficiency, new data structures are proposed including hash tables and height balanced trees.New three-layer incremental filter rules are propssed instead of linear matching rules foreduce the number of iterative matching.It guarantees that the original functions of iptables filter module remainun changed. In a system consisting of A IP addresses, B net devices and C protocols , matching time complexity decreases from O (A*B*C) to m*O(log_2A)+n*O(B)+k*O(log_2C)(m,n and k are coefficients).
出处 《南京邮电学院学报(自然科学版)》 2005年第2期91-94,共4页 Journal of Nanjing University of Posts and Telecommunications
关键词 LINUX IPTABLES 散列表 平衡树 Linux Iptables Hash tables Height balanced trees
  • 相关文献

参考文献5

  • 1RUSSELL P R.Linux Netfilter Hacking HOWTO 2002[EB/OL].http://www.netfilter.org/documentation/HOWTO/netfilter-hacking-HOWTO.html.
  • 2SALZMAN P J,POMERANTZ O.The Linux Kernel Module Programming Guide 2003[EB/OL].http://www.faqs.org/docs/kernel/.
  • 3WEISS M A.Data Structures and Algorithm Analysis in C[M].2nd Edition.Beijing:Addison Vesley Publishing Company,2003.
  • 4RUBINIA CORBETJ 魏永明 骆刚 姜君 译.Linux Device Drivers 2nd Edition[M].北京:中国电力出版社,2001..
  • 5RUSSELL P R.Unreliable Guide To Hacking The Linux Kernel 2000[EB/OL].http://www.people.netfilter.org/~rusty/unreliable-guides/kernel-hacking/lk-hacking-guide.html.

同被引文献7

引证文献2

二级引证文献2

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部