Author Login Editor-in-Chief Peer Review Editor Work Office Work

Computer Engineering ›› 2009, Vol. 35 ›› Issue (7): 125-126,. doi: 10.3969/j.issn.1000-3428.2009.07.042

• Security Technology • Previous Articles     Next Articles

Improved Sunday Pattern Matching Algorithm

WAN Xiao-yu, YANG Bo, FAN Zi-fu   

  1. (Next Generation Network Technology Institute, Chongqing University of Post and Telecommunication, Chongqing 400065)
  • Received:1900-01-01 Revised:1900-01-01 Online:2009-04-05 Published:2009-04-05

改进的Sunday模式匹配算法

万晓榆,杨 波,樊自甫   

  1. (重庆邮电大学下一代网络应用技术研究所,重庆 400065)

Abstract: Pattern matching algorithm is an important method in intrusion detection. The matching efficiency is the bottleneck of intrusion detection, which indirectly affects the real-time performance of the system. By analyzing four pattern matching algorithms, this paper proposes an improved Sunday algorithm. It finds the character-word in the pattern string before matching, and then compares the character-word and the last word of the pattern string with the text. If the matching fails, the character-word will be moved as far as possible. Experiment of result proves that its match efficiency is better than Sunday algorithm.

Key words: character string, pattern matching, character-word, computational complexity

摘要: 在基于模式匹配的检测方法中,匹配效率是检测技术的瓶颈,间接影响入侵检测系统的实时性能。该文对4种模式匹配算法进行分析后,选择最优的Sunday算法进行改进。该算法进行匹配前先找到模式串中的特征字符(出现概率最小的字符),进行特征字符与尾字符双重匹配,失败则移动尽可能远的距离。实验结果证明匹配效率比Sunday算法有一定的提高。

关键词: 字符串, 模式匹配, 特征字符, 计算复杂度

CLC Number: