期刊文献+

DHSWM:一种改进的WM多模式匹配算法 被引量:8

DHSWM: An improved multi-pattern matching algorithm based on WM algorithm
下载PDF
导出
摘要 针对WM算法的查找效率随着模式集规模的增大而降低的问题,提出一种改进算法。在预处理阶段,改变原有Hash表中的链表结构,采用双哈希法将模式串存放在Hash1表中指定的区间,Hash表中存放该存储区间的起始位置与区间长度;Prefix表用于判断模式集中是否存在与当前匹配窗口中文本前缀相同的模式;当Shift表中出现移动值为0时,根据后缀出现在模式串其他位置的信息计算匹配窗口可滑动的最大距离并存于Shift1表中。在查找阶段,采用双哈希法在Hash1表的某一区间中查找模式串,避免在大规模模式集情况下查找过长的模式链表,扩大匹配操作后匹配窗口滑动的距离,减少冗余的匹配操作,缩短查找时间。研究结果表明:在模式集规模较大时,改进后的算法显著地提高了匹配速度;当模式串数目超过5 000条时,改进算法的查找时间要比WM算法缩短40%~47%。 To resolve the problem that with the constant increase of the number of rules,the performance of Wu-Manber algorithm will become less efficient,an improved Wu-Manber algorithm named double Hash searching Wu-Manber algorithm(DHSWM) was proposed.In the pre-processing stage,the patterns were stored in specified intervals in Hash1 table by double Hash method while Hash table was used to store the parameters which indicate the start address of the interval and its length.Prefix table was used to determine whether the patterns in set and the text of current matching window had the same prefix.When the shifting distance was 0 in Shift table,Shift1 table was used to store the maximum sliding distance of matching window according to the suffixes appearing in other locations of pattern string.In the searching stage,double Hash method was used to look up patterns in the interval of Hash1 table to avoid searching for overlong linked list in the case of large scale pattern set.The sliding distance of matching window was enlarged after the matching procedure,so redundant matching operations was reduced and the search time was shortened.The results indicate that the algorithm can improve the speed of pattern matching when the scale of the pattern set is large.Compared with the WM algorithm,the DHSWM algorithm can reduce the search time by 40%?47% when the number of patterns is more than 5 000.
出处 《中南大学学报(自然科学版)》 EI CAS CSCD 北大核心 2011年第12期3765-3771,共7页 Journal of Central South University:Science and Technology
基金 国家自然科学基金资助项目(61073187)
关键词 入侵检测 模式匹配 WU-MANBER算法 双哈希查找 intrusion detection pattern matching Wu-Manber algorithm double Hash searching
  • 相关文献

参考文献15

  • 1Mott DM, Kida Y, Nyomba BL. Human skeletal muscle, type-1 protein phosphatase and insulin resistance. Adv Prot Phosph,1993,7:413-427.
  • 2Hansen L, Hansen T, Vestergaard H, et al. Widespread amino acid polymorphism at codon 905 of the glycogen-associated regulatory subunit of protein phosphatase-1 is associated with insulin resistance and hypersecretion of insulin. Hum Mol Genet, 1995,4:131
  • 3Xia J, Scherer SW, Cohen PT, et al. A common variant in PPP1R3 associated with insulin resistance and type 2 diabetes.Diabetes , 1998,47:1519-1524.
  • 4Hansen L, Reneland R, Berglund L, et al. Polymorphism in the glycogen-associated regulatory subunit of type 1 protein phosphatase(PPP1R3) gene and insulin sensitivity. Diabetes, 2000,49:298-301.
  • 5Shen GQ, Ikegami H, Fujisawa T et al. Asp905Tyr polymorphism of the gene for the skeletal muscle-specific glycogen-targeting subunit of protein phosphatase 1 in NIDDM. Diabetes Care,1998,21 : 1086-1089.
  • 6YANG Dong-hong,XU Ke.An improved Wu-Manber multiplepatterns matching algorithm[C]//The 25th IEEE InternationalPerformance,Computing,and Communications Conference.Phoenix,USA,2006:675-680.
  • 7Sunday D M.A very fast substring search algorithm[J].Communications of the ACM,1990,33(8):132-142.
  • 8Choi Y H,Jung M Y,Seo S W.L+1-MWM:A fast patternmatching algorithm for high-speed packet filtering[C]//2008Proceedings IEEE INFOCOM.Phoenix,USA,2008:261-265.
  • 9吴冰,云晓春,高琪.基于网络的恶意代码检测技术[J].通信学报,2007,28(11):87-91. 被引量:8
  • 10ZHANG Bao-jun,CHEN Xiao-ping,PING Ling-di.Addressfiltering based Wu-Manber multiple patterns matchingalgorithm[C]//Proceedings of the 2009 Second InternationalWorkshop on Computer Science and Engineering(WCSE 2009).Qingdao,China,2009:408-412.

二级参考文献18

  • 1颜松远.2500年研究探寻相亲数(英文)[J].数学进展,2004,33(4):385-400. 被引量:24
  • 2代六玲,黄河燕,陈肇雄.一种改进的多模式串匹配算法[J].模式识别与人工智能,2006,19(1):47-51. 被引量:4
  • 3GILDER G. Telecosm: How Infinite Bandwidth Will Revolutionize Our World[M]. The Free Press, New York, 2000
  • 4WEI S G, MIRKOVIC J. A realistic simulation of Internet-scale events[A]. Proceedings of the 1st Tnternafional Conference on Performance Evaluation Methodolgies and Tools Valuetools[C]. Italy, 2006.
  • 5AHO A V, CORASICK M J. Efficient string matching: an aid to bibliographic search[A]. Communications of the ACM 18[C]. 1975. 333- 340.
  • 6BOYER R S, MOORE J S. A fast string searching algorithm[A]. Communications of the ACM 20[C]. 1977. 762-772.
  • 7WU S, MANBER U. A Fast Algorithm For Multi-Pattern Searching[R]. Technical Report TR 94-17, University of Arizona at Tuscon, 1994.
  • 8YANG D H, XU K, CUI Y. An improved wu-manber multiple patterns matching algorithm[A]. Performance, Computing, and Communications Conference[C]. 2006.
  • 9Fisk M,Varghese G.An analysis of fast string matching applied to content-based forwarding and intrusion detection,CS2001-0670[R]. California,San Diego,2002.
  • 10Wu S,Mankr U.A fast algorithm for multi-pattern searching,TR- 94-17[R].Department of Computer Science,University of Arizona, 1994.

共引文献24

同被引文献64

引证文献8

二级引证文献28

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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