作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (16): 116-118.

• 网络与通信 • 上一篇    下一篇

基于移位加速和TCAM的高速多模式匹配算法

贾明志,汪斌强,黄 霄,张 进   

  1. (国家数字交换系统工程技术研究中心,郑州 450002)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-08-20 发布日期:2008-08-20

Fast Multi-patterns Matching Algorithm Based on Shift-acceleration and TCAM

JIA Ming-zhi, WANG Bin-qiang, HUANG Xiao, ZHANG Jin   

  1. (National Digital Switching System Engineering & Technological Research Center, Zhengzhou 450002)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-08-20 Published:2008-08-20

摘要: 在研究流行的多模式匹配实现方案的基础上,利用TCAM实现高速、并行查找,提出一个基于TCAM的多模式匹配改进算法。该算法通过对模式的移位加速和移动步长的灵活控制,使平均移动步长得到很大提高。实验表明,在TCAM位宽为8 Byte的情况下,该算法使平均移动步长由1 Byte增加到5 Byte,匹配速率也由2 Gb/s增加到10 Gb/s。

关键词: 多模式匹配, TCAM技术, 移位加速

Abstract: Based on the research of the most fashionable projects of multi-pattern matching, this paper proposes an improved multiple patterns matching algorithm. This algorithm realizes that TCAM can perform parallel search at high speed. Furthermore, the improved algorithm achieves the shift-acceleration of patterns and flexibly controls the step length. This is the reason that the average shift-step is highly increased. Experimental results show, if the width of TCAM is 8 Byte, the average step length increases from 1 Byte to 5 Byte, the matching speed increases from 2 Gb/s to 10 Gb/s.

Key words: multi-pattern matching, TCAM, shift-acceleration

中图分类号: