期刊文献+

基于参数设定的正则表达式匹配算法

Regular expression matching algorithm based on parameters setting
在线阅读 下载PDF
导出
摘要 为了解决现有正则表达式匹配算法在时间复杂度与空间复杂之间的平衡问题,提出一种通过参数动态设定的确定有限自动机(dynamic parameters DFA,DPDFA)的正则表达式匹配算法.首先对现有典型正则表达式匹配算法进行性能分析,指出它们在内存占用、规则匹配时间、可扩展性方面存在的不足.然后给出DPDFA算法的设计思想:先设定组合后状态数上限,分离组合表达式之间的互斥性,从而降低内存占用;再设定状态数增长率参数,将表达式进行切片,隔离状态数膨胀片段,降低它们之间的歧义匹配,从而节约匹配时间.试验结果表明,DPDFA算法在时间复杂度方面优于D2FA约23%,在空间复杂度方面优于m DFA约43%,在拓展性方面优于XFA近260%,整体匹配效率方面也优于其他算法. To well balance time complexity and space complexity in regular expression,a matching algorithm for regular expression of deterministic finite automata was proposed through dynamic parameters DFA( DPDFA). The performance of current typical matching algorithm of regular expression was analyzed,and the insufficiencies in CPU memory occupation,matching time and expandability were indicated to give the design concept of DPDFA. The top-limit of state number after combination was set up,and the exclusivity among the combination expressions was separated to reduce the CPU occupation.The growth rate parameter of state number was set up,and the expression was sliced up. The expanding section of state number was isolated to reduce matching ambiguity and matching time. The experimental results show that the DPDFA algorithm is at least 23% overmatching than D2 FA in time complexity with43% overmatching than m DFA in space complexity and 260% overmatching than XFA in expandability.It is briefly more superior to other algorithm in overall matching efficiency.
出处 《江苏大学学报(自然科学版)》 EI CAS CSCD 北大核心 2016年第2期194-200,共7页 Journal of Jiangsu University:Natural Science Edition
基金 国家自然科学基金资助项目(60932005) 特殊环境机器人技术四川省重点实验室基金资助项目(13ZXTK07)
关键词 正则表达式 确定有限自动机 互斥性 多模式匹配 歧义匹配 regular expression deterministic finite automata exclusivity multi-method matching ambiguity matching
  • 相关文献

参考文献12

  • 1金军航,张大方,黄昆.高性能正则表达式匹配算法评估[J].计算机工程,2010,36(19):269-271. 被引量:4
  • 2SMITH R, ESTAN C, Ilia S. XFA: faster signature matching with extended automata [ C ] //Proceedings of 2008 IEEE Symposium on Security and Privacy. Oak- land, CA, USA:IEEE, 2008:187-201.
  • 3SMITH R, ESTAN C, JHA S, et al. Deflating the big bang: fast and scalable deep packet inspection with ex- tended finite automata [ C ] //Proceeding of the ACM SIGCOMM 2008 Conference on Data Communication. Seattle, WA, USA:ACM, 2008:207-218.
  • 4BECCHI M, CROWLEY P. A-DFA: a time and space- efficient DFA compression algorithm for fast regular ex- pression evaluation [ J ]. Transactions on Architecture and Code Optimization, 2013, doi- 10. 1145/2445572. 2445576.
  • 5KUMAR P, SINGH V. Efficient regular expression pat- tern matching for network intrusion detection systems using modified word-based automata [ C ]//Proceedings of the 5th International Conference on Security of Infor- mation and Networks. Jaipur, India: ACM, 2012:103 -110.
  • 6VALGENTI V C, CHHUGANI J, SUN Y, et al. GPP- grep: high-speed regular expression processing engine on general purpose processors [ C ]//Proceedings of the 15th International Symposium on Research in At|acks, Intrusions and Defenses. Amsterdam, Netherlands: Springer Verlag, 2012: 334- 353.
  • 7GUO D H, BHUYAN L N, I,IU B. An efficient paralle- lized L7-fiher design for multieore servers [J]. IEEE/ ACM Transactions on Networking ,2012,20 ( 5 ) : 1426 - 1439.
  • 8YU X D, BECCHI M. Exploring different automata rep- resentations tor efficient regular expression matching on GPUs [ C ] //Proceedings of the 18th ACM SIGPLAN Symposium on Principles and Practice of Parallel Pro- gramming. [S. l. ] :ACM, 2013:287-288.
  • 9PENG K Y, TANG S Y, CHEN M, et al. Chain-based DFA deflation for fast and scalable regular expression matching using TCAM [ C ]//Proceedings of the 2011 7th ACM/IEEE Symposium on Architectures tot Networking and Communications Systems. Brooklyn: IEEE Compu- ter Society, 2011 : 24 -35.
  • 10PENG K Y, DONG Q F, CHEN M. TCAM-based DFA deflation: a novel approach to fasl and scalable regular expression matching [ C ] // Proceedings of the 2011 IEEE 19th International Workshop on Quality of Ser-vice. San Jose: IEEE, 2011 , doi: 10. 1109/IWQOS.2011.5931323.

二级参考文献5

  • 1Yu Fang, Chen Zhifeng, Diao Yanlei, et al. Fast and Memory- efficient Regular Expression Matching for Deep Packet lnspection[C]//Proc, of the 2006 IEEE Syrup. on Architectures for Networking and Communications Systems. San Jose, CA, USA: [s. n.], 2006: 93- 102.
  • 2Randy S, Cristian E, Somesh J. XFA: Faster Signature Matching with Extended Automata[C]//Proc. of IEEE Symposium on Security and Privacy. Oakland, CA, USA: Is. n.], 2008: 187-201.
  • 3Randy S, Cristian E, Somesh J. Deflating the Big Bang: Fast and Scalable Deep Packet Inspection with Extended Finite Automata[C]//Proc. of ACM SIGCOMM'08. Seattle, WA, USA: [s. n.], 2008: 207-218.
  • 4Kumar.S, Dharmapurikar S, Yu Fang, et al. Algorithms to Accelerate Multiple Regular Expressions Matching for Deep Packet Inspection[C]//Proc. of ACM SIGCOMM'06. Pisa, Italy: [s. n.], 2006: 339-350.
  • 5Kumar S, Turner J, Williams J. Advanced Algorithms for Fast and Scalable Deep Packet Inspection[C]//Proc. of Architectures for Networking and Communications Systems. San Jose, CA, USA: [s. n.], 2006: 81-92.

共引文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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