A new fast pattern matching algorithm(called BMHF algorithm)is proposed to improve the detecting efficiency of network data based on attack signature and to decrease the packet loss rate in the intrusion detection system(IDS)
by analyzing popular pattern matching algorithms such as BM algorithm
BMH algorithm and BMHS algorithm. A new function Q(X)is employed in BMHF to identify the number of a character X matching in the pattern string. When Q(X)equals one
the matched information is used to enlarge the shifting distance. A new shifting distance is also calculated according to the character next to non-matched characters in the pattern string. The maximum distance among these shifting distances is used in the BMHF algorithm. The process is repeated until the matching is completed. Experimental results show that the BMHF algorithm has better efficiency. The decrease in the operation time of CPU is 5.7 percent
and the decrease in the average number of matchings is 12.5 percent.
关键词
Keywords
references
YAN Weimin, WU Weimin. Data structure [M]. Beijing, China: Tsinghua University Press,1997.
MU Yongmin, LI Meigui,LIANG Qi. The survey of the pattern matching algorithm in intrusion detection system [J]. Acta Electronica Sinica,2006,34(12A):2488-2490.