首页 | 本学科首页   官方微博 | 高级检索  
     

一组提高存储效率的深度包检测算法
引用本文:于强,霍红卫.一组提高存储效率的深度包检测算法[J].软件学报,2011,22(1):149-163.
作者姓名:于强  霍红卫
作者单位:西安电子科技大学,计算机学院,陕西,西安,710071
基金项目:国家自然科学基金(69601003); 青年科学基金(60705004)
摘    要:随着深度包检测规则数目的剧烈增长,为了适应网络处理的需求,必须对表示正则表达式的DFA(deterministic finite automata,确定的有限自动机)进行高效的存储.一方面,对DFA的状态点数目进行压缩,提出了一种复合的FSM(有限自动机)的构造方法,通过对正则表达转化成DFA的状态点数目复杂度的分析,将不同复杂度的正则表达式采用不同的方式构建DFA,使得所有平方级和指数级复杂度的状态点数目降低到了线性级.另一方面,对DFA的状态转移数目进行压缩,给出了一种高效的压缩算法,即WD2FA(weighted delayed input DFA,带权延迟DFA)算法,对于任意复杂度的正则表达式都可以将状态转移数目压缩为原来的5%左右,相对于D2FA(delayed input DFA,延迟的DFA)有更好的压缩能力,并且使得D2FA是WD2FA在权值为0情况下的特例.实验结果表明,有限自动机的状态点数目能够控制在线性级,并且在状态点压缩的基础上将状态转移数目压缩为原来的7%.

关 键 词:深度包检测  正则表达式  多模式匹配  复合的FSM  D2FA(delayed  input  DFA)  WD2FA(weighted  delayed  input  DFA)
收稿时间:2008/10/17 0:00:00
修稿时间:2009/8/19 0:00:00

Algorithms Improving the Storage Efficiency of Deep Packet Inspection
YU Qiang and HUO Hong-Wei.Algorithms Improving the Storage Efficiency of Deep Packet Inspection[J].Journal of Software,2011,22(1):149-163.
Authors:YU Qiang and HUO Hong-Wei
Affiliation:YU Qiang,HUO Hong-Wei (School of Computer Science and Technology,Xidian University,Xi'an 710071,China)
Abstract:With the rapid increase in the number of deep packet inspection rules, it is necessary to store deterministic finite automata (DFA) representations of regular expressions efficiently in order to meet the practical requirements of network processing. First, a new hybrid FSM construction method is proposed for compressing the states of DFA. DFAs are built in different ways for the regular expressions. By analyzing the states of the converted DFAs, the distinguished complexities of DFAs become noticeable. This leads to a change in state of the DFA from a quadratic/exponential expression to a linear expression. Next, an efficient compressing algorithm, called Weighted Delayed Input DFA (WD2FA), is proposed for state transitions of the DFAs. This algorithm can reach a reduction rate of about 95% for the regular expressions with any complexity. The analysis shows that the performance of the WD2FA is better than the delayed input DFA (D2FA), and D2FA is a special case of WD2FA with weight 0. The experimental results show that the number of states for the FSM can be controlled at the level of linearity, and transitions are reduced to 7% based on the compression states.
Keywords:deep packet inspection  regular expression  multi-pattern matching  hybrid FSM  D2FA (delayed input DFA)  WD2FA (weighted delayed input DFA)
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《软件学报》浏览原始摘要信息
点击此处可从《软件学报》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号