高级检索
    刘兴奎, 邵宗有, 刘新春, 孙凝晖. 面向深度包检测的DFA细粒度并行匹配方法[J]. 计算机研究与发展, 2014, 51(5): 1061-1070.
    引用本文: 刘兴奎, 邵宗有, 刘新春, 孙凝晖. 面向深度包检测的DFA细粒度并行匹配方法[J]. 计算机研究与发展, 2014, 51(5): 1061-1070.
    Liu Xingkui, Shao Zongyou, Liu Xinchun, Sun Ninghui. Fine-Grained Parallel Regular Expression Matching for Deep Packet Inspection[J]. Journal of Computer Research and Development, 2014, 51(5): 1061-1070.
    Citation: Liu Xingkui, Shao Zongyou, Liu Xinchun, Sun Ninghui. Fine-Grained Parallel Regular Expression Matching for Deep Packet Inspection[J]. Journal of Computer Research and Development, 2014, 51(5): 1061-1070.

    面向深度包检测的DFA细粒度并行匹配方法

    Fine-Grained Parallel Regular Expression Matching for Deep Packet Inspection

    • 摘要: 确定性有限自动机(DFA)是实现正则表达式匹配的一种有效手段,但DFA的状态跳转是串行的,导致匹配速度慢、难以满足高速骨干网环境深度包检测(DPI)的性能需求.提出了一种称为LBDFA(Loopback DFA)的细粒度并行化状态跳转方法,通过将在Loopback状态上的连续跳转并行化,提高了匹配速度.此外,利用Bloom filter消除该并行跳转中的临时偏离现象,进一步提高了并行潜力.在L7-filter以及Snort规则集上的测试结果表明,LBDFA能够满足10 Gbps以上的正则表达式匹配需求.

       

      Abstract: Regular expression matching plays an important role in many critical network applications. Deterministic finite automata (DFA) is an effective way to implement regular expression matching, however, DFAs’ inherent sequential state transition makes them impractical for high-speed backbone networks. In this paper, a novel fine-grained parallel DFA, called LBDFA (Loopback DFA), is proposed to improve the matching performance of DFAs. The method is based on the observation that most transitions occur among a small number of states while other states are rarely accessed. Furthermore, the frequently traversed states, called Loopback states in this paper, usually remain unchanged for a large number of consecutive input characters in the process of state transitions. Therefore a remarkable improvement can be achieved by parallelizing the consecutive state transitions on Loopback states. A Bloom filter is employed to eliminate the temporary deviation in transitions in order to further improve the parallelism of LBDFAs. Experimental results on rule sets from L7-filter and Snort show that the LBDFA can meet the demand of regular expression matching for backbone networks with bandwidth of more than 10Gbps.

       

    /

    返回文章
    返回