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 条
  • [1] Accelerating Pattern Matching Using a Novel Multi-Pattern-Matching Algorithm on GPU
    celebi, Merve
    Yavanoglu, Uraz
    APPLIED SCIENCES-BASEL, 2023, 13 (14):
  • [2] An efficient parallel-network packet pattern-matching approach using GPUs
    Hung, Che-Lun
    Lin, Chun-Yuan
    Wang, Hsiao-Hsi
    JOURNAL OF SYSTEMS ARCHITECTURE, 2014, 60 (05) : 431 - 439
  • [3] Parallelization and Characterization of Pattern Matching using GPUs
    Vasiliadis, Giorgos
    Polychronakis, Michalis
    Ioannidis, Sotiris
    2011 IEEE INTERNATIONAL SYMPOSIUM ON WORKLOAD CHARACTERIZATION (IISWC), 2011, : 216 - 225
  • [4] SMOG: Accelerating Subgraph Matching on GPUs
    Wang, Zhibin
    Meng, Ziheng
    Li, Xue
    Lin, Xi
    Zheng, Long
    Tian, Chen
    Zhong, Sheng
    2023 IEEE HIGH PERFORMANCE EXTREME COMPUTING CONFERENCE, HPEC, 2023,
  • [5] A Novel Hierarchical Parallelism for Accelerating NIDS Using GPUs
    Lin, Cheng-Hung
    Hsieh, Cheng-Hung
    PROCEEDINGS OF 4TH IEEE INTERNATIONAL CONFERENCE ON APPLIED SYSTEM INNOVATION 2018 ( IEEE ICASI 2018 ), 2018, : 578 - 581
  • [6] Parallel Source Scanning Algorithm using GPUs
    Leandro, Waldson P. N.
    Santana, Flavio L.
    Carvalho, Bruno M.
    do Nascimento, Aderson F.
    COMPUTERS & GEOSCIENCES, 2020, 140
  • [7] Accelerating the Critical Line Algorithm for Portfolio Optimization Using GPUs
    Singh, Raja H.
    Barford, Lee
    Harris, Frederick, Jr.
    INFORMATION TECHNOLOGY: NEW GENERATIONS, 2016, 448 : 315 - 325
  • [8] Accelerating a Massively Parallel Numerical Simulation in Electromagnetism Using a Cluster of GPUs
    Augonnet, Cedric
    Goudin, David
    Pujols, Agnes
    Sesques, Muriel
    PARALLEL PROCESSING AND APPLIED MATHEMATICS (PPAM 2013), PT I, 2014, 8384 : 593 - 602
  • [9] Accelerating NMR reconstructions with GPUs using cuBLAS and parallel NUFFT algorithms
    Capozzoli, A.
    Curcio, C.
    Liseno, A.
    2014 IEEE ANTENNAS AND PROPAGATION SOCIETY INTERNATIONAL SYMPOSIUM (APSURSI), 2014, : 1624 - 1625
  • [10] Hierarchical Parallelism of Bit-Parallel Algorithm for Approximate String Matching on GPUs
    Lin, Cheng-Hung
    Wang, Guan-Hong
    Huang, Chun-Cheng
    2014 IEEE SYMPOSIUM ON COMPUTER APPLICATIONS AND COMMUNICATIONS (SCAC), 2014, : 76 - 81