GPU-based NFA Implementation for Memory Efficient High Speed Regular Expression Matching

被引:35
|
作者
Zu, Yuan
Yang, Ming
Xu, Zhonghu
Wang, Lin
Tian, Xin
Peng, Kunyang
Dong, Qunfeng [1 ]
机构
[1] Univ Sci & Technol China, Inst Networked Syst IONS, Hefei 230026, Anhui, Peoples R China
基金
中国国家自然科学基金;
关键词
Algorithm; Design; Experimentation; Performance; Security; CUDA; Deep Packet Inspection; GPU; NFA; Pattern Matching; Regular Expression Matching;
D O I
10.1145/2370036.2145833
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Regular expression pattern matching is the foundation and core engine of many network functions, such as network intrusion detection, worm detection, traffic analysis, web applications and so on. DFA-based solutions suffer exponentially exploding state space and cannot be remedied without sacrificing matching speed. Given this scalability problem of DFA-based methods, there has been increasing interest in NFA-based methods for memory efficient regular expression matching. To achieve high matching speed using NFA, it requires potentially massive parallel processing, and hence represents an ideal programming task on Graphic Processor Unit (GPU). Based on in-depth understanding of NFA properties as well as GPU architecture, we propose effective methods for fitting NFAs into GPU architecture through proper data structure and parallel programming design, so that GPU's parallel processing power can be better utilized to achieve high speed regular expression matching. Experiment results demonstrate that, compared with the existing GPU-based NFA implementation method [ 9], our proposed methods can boost matching speed by 29 similar to 46 times, consistently yielding above 10Gbps matching speed on NVIDIA GTX-460 GPU. Meanwhile, our design only needs a small amount of memory space, growing exponentially more slowly than DFA size. These results make our design an effective solution for memory efficient high speed regular expression matching, and clearly demonstrate the power and potential of GPU as a platform for memory efficient high speed regular expression matching.
引用
收藏
页码:129 / 139
页数:11
相关论文
共 50 条
  • [1] Fast, memory-efficient regular expression matching with NFA-OBDDs
    Yang, Liu
    Karim, Rezwana
    Ganapathy, Vinod
    Smith, Randy
    [J]. COMPUTER NETWORKS, 2011, 55 (15) : 3376 - 3393
  • [2] NFA Based Regular Expression Matching on FPGA
    Sert, Kamil
    Bazlamacci, Cuneyt F.
    [J]. PROCEEDINGS OF THE 2021 IEEE INTERNATIONAL CONFERENCE ON COMPUTER, INFORMATION, AND TELECOMMUNICATION SYSTEMS (IEEE CITS 2021), 2021, : 144 - 148
  • [3] HIGH-SPEED REGULAR EXPRESSION MATCHING ENGINE USING MULTI-CHARACTER NFA
    Yamagaki, Norio
    Sidhu, Reetinder
    Kamiya, Satoshi
    [J]. 2008 INTERNATIONAL CONFERENCE ON FIELD PROGRAMMABLE AND LOGIC APPLICATIONS, VOLS 1 AND 2, 2008, : 131 - +
  • [4] CAVLCU: an efficient GPU-based implementation of CAVLC
    Fuentes-Alventosa, Antonio
    Gomez-Luna, Juan
    Maria Gonzalez-Linares, Jose
    Guil, Nicolas
    Medina-Carnicer, R.
    [J]. JOURNAL OF SUPERCOMPUTING, 2022, 78 (06): : 7556 - 7590
  • [5] CAVLCU: an efficient GPU-based implementation of CAVLC
    Antonio Fuentes-Alventosa
    Juan Gómez-Luna
    José Maria González-Linares
    Nicolás Guil
    R. Medina-Carnicer
    [J]. The Journal of Supercomputing, 2022, 78 : 7556 - 7590
  • [6] Efficient GPU-based Graph Cuts for Stereo Matching
    Choi, Young-kyu
    Park, In Kyu
    [J]. 2013 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION WORKSHOPS (CVPRW), 2013, : 642 - 648
  • [7] ENREM: An efficient NFA-based regular expression matching engine on reconfigurable hardware for NIDS
    Tran Trung Hieu
    Tran Ngoc Thinh
    Tomiyama, Shigenori
    [J]. JOURNAL OF SYSTEMS ARCHITECTURE, 2013, 59 (4-5) : 202 - 212
  • [8] High-speed Regular Expression Matching with Pipelined Memory-based Automata
    Matousek, Denis
    Matousek, Jiri
    Korenek, Jan
    [J]. PROCEEDINGS 26TH IEEE ANNUAL INTERNATIONAL SYMPOSIUM ON FIELD-PROGRAMMABLE CUSTOM COMPUTING MACHINES (FCCM 2018), 2018, : 214 - 214
  • [9] A Modular NFA Architecture for Regular Expression Matching
    Wang, Hao
    Pu, Shi
    Knezek, Gabriel
    Liu, Jyh-Charn
    [J]. FPGA 10, 2010, : 209 - 217
  • [10] Fine-tuned High-speed Implementation of a GPU-based Median Filter
    Perrot, Gilles
    Domas, Stephane
    Couturier, Raphael
    [J]. JOURNAL OF SIGNAL PROCESSING SYSTEMS FOR SIGNAL IMAGE AND VIDEO TECHNOLOGY, 2014, 75 (03): : 185 - 190