Accelerating Pattern Matching Using a Novel Parallel Algorithm on GPUs

被引:58
|
作者
Lin, Cheng-Hung [1 ]
Liu, Chen-Hsiung
Chien, Lung-Sheng [2 ]
Chang, Shih-Chieh [3 ]
机构
[1] Natl Taiwan Normal Univ, Dept Technol Applicat & Human Resource Dev, Taipei 106, Taiwan
[2] Natl Tsing Hua Univ, Dept Math, Hsinchu 30013, Taiwan
[3] Natl Tsing Hua Univ, Dept Comp Sci, Hsinchu 30013, Taiwan
关键词
Graphics processing units; pattern matching; parallel algorithm; Aho-Corasick; INTRUSION DETECTION;
D O I
10.1109/TC.2012.254
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Graphics processing units (GPUs) have attracted a lot of attention due to their cost-effective and enormous power for massive data parallel computing. In this paper, we propose a novel parallel algorithm for exact pattern matching on GPUs. A traditional exact pattern matching algorithm matches multiple patterns simultaneously by traversing a special state machine called an Aho-Corasick machine. Considering the particular parallel architecture of GPUs, in this paper, we first propose an efficient state machine on which we perform very efficient parallel algorithms. Also, several techniques are introduced to do optimization on GPUs, including reducing global memory transactions of input buffer, reducing latency of transition table lookup, eliminating output table accesses, avoiding bank-conflict of shared memory, coalescing writes to global memory, and enhancing data transmission via peripheral component interconnect express. We evaluate the performance of the proposed algorithm using attack patterns from Snort V2.8 and input streams from DEFCON. The experimental results show that the proposed algorithm performed on NVIDIA GPUs achieves up to 143.16-Gbps throughput, 14.74 times faster than the Aho-Corasick algorithm implemented on a 3.06-GHz quad-core CPU with the OpenMP. The library of the proposed algorithm is publically accessible through Google Code.
引用
收藏
页码:1906 / 1916
页数:11
相关论文
共 50 条
  • [41] Efficient parallel pattern matching using partition method
    Raju, S. Viswanadha
    Mantena, S. R.
    Babu, A. Vinaya
    Raju, G. V. S.
    SEVENTH INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED COMPUTING, APPLICATIONS AND TECHNOLOGIES, PROCEEDINGS, 2006, : 427 - +
  • [42] Inexact pattern matching using genetic algorithm
    Auwatanamongkol, Surapong
    GECCO 2005: Genetic and Evolutionary Computation Conference, Vols 1 and 2, 2005, : 1567 - 1568
  • [43] Efficient Pattern Matching on GPUs for Intrusion Detection Systems
    Tumeo, Antonino
    Villa, Oreste
    Sciuto, Donatella
    PROCEEDINGS OF THE 2010 COMPUTING FRONTIERS CONFERENCE (CF 2010), 2010, : 87 - 88
  • [44] cuZK: Accelerating Zero-Knowledge Proof with A Faster Parallel Multi-Scalar Multiplication Algorithm on GPUs
    Lu T.
    Wei C.
    Yu R.
    Chen C.
    Fang W.
    Wang L.
    Wang Z.
    Chen W.
    IACR Transactions on Cryptographic Hardware and Embedded Systems, 2023, 2023 (03): : 194 - 220
  • [45] Accelerating SWHE Based PIRs Using GPUs
    Dai, Wei
    Doroez, Yarkin
    Sunar, Berk
    FINANCIAL CRYPTOGRAPHY AND DATA SECURITY (FC 2015), 2015, 8976 : 160 - 171
  • [46] Accelerating geospatial analysis on GPUs using CUDA
    Yingjie XIA Li KUANG Xiumei LI Hangzhou Institute of Service EngineeringHangzhou Normal UniversityHangzhou China Department of AutomationSchool of Electronic Information and Electrical EngineeringShanghai Jiao Tong UniversityShanghai China Provincial Key Laboratory for Computer Information Processing TechnologySoochow UniversitySoochow China
    JournalofZhejiangUniversity-ScienceC(Computers&Electronics), 2011, 12 (12) : 990 - 999
  • [47] Accelerating Stochastic Simulations on GPUs Using OpenCL
    Kang, Pilsung
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2019, E102D (11): : 2253 - 2256
  • [48] Accelerating geospatial analysis on GPUs using CUDA
    Ying-jie XIA 1
    Frontiers of Information Technology & Electronic Engineering, 2011, (12) : 990 - 999
  • [49] Accelerating geospatial analysis on GPUs using CUDA
    Xia, Ying-jie
    Kuang, Li
    Li, Xiu-mei
    JOURNAL OF ZHEJIANG UNIVERSITY-SCIENCE C-COMPUTERS & ELECTRONICS, 2011, 12 (12): : 990 - 999
  • [50] Accelerating geospatial analysis on GPUs using CUDA
    Ying-jie Xia
    Li Kuang
    Xiu-mei Li
    Journal of Zhejiang University SCIENCE C, 2011, 12 : 990 - 999