PTME: A Regular Expression Matching Engine Based on Speculation and Enumerative Computation on FPGA

被引:0
作者
Sun, Mingqian [1 ]
Xie, Guangwei [2 ]
Zhang, Fan [3 ]
Gho, Wei [3 ]
Fan, Xitian [4 ]
Li, Tianyang [3 ]
Chen, Li [3 ]
Du, Jiayu [5 ]
机构
[1] Southeast Univ, Sch Cyber Sci & Engn, 2 Southeast Univ Rd, Nanjing 211102, Peoples R China
[2] Fudan Univ, Sch Comp Sci, 220 Han Dan Rd, Shanghai 056004, Peoples R China
[3] Natl Digital Switching Syst Engn & Technol Res Ctr, 7 Jian Xue Rd, Zhengzhou 450011, Henan, Peoples R China
[4] Shanghai HONGZHEN Informat Sci & Technol Corp, 1588 Lian Hang Rd, Shanghai 201112, Peoples R China
[5] Purple Mt Labs, 9 Mozhou East Rd, Nanjing 211111, Jiangsu, Peoples R China
关键词
Regular expression matching; DFA; speculation and enumerative compu-tation; FPGA;
D O I
10.1145/3655626
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Fast regular expression matching is an essential task for deep packet inspection. In previous works, the regular expression matching engine on FPGA struggled to achieve an ideal balance between resource consumption and throughput. Speculation and enumerative computation exploits the statistical properties of deterministic finite automata, allowing for more efficient pattern matching. Existing related designs mostly revolve around vector instructions and multiple processors/cores or SIMD instruction sets, with a lack of implementation on FPGA platforms. We design a parallelized two-character matching engine on FPGA for efficiently fast filtering off fields with no pattern features. We transform the state transitions with sequential dependencies to the existing problem of elements in one set, enabling the proposed design to achieve high throughput with low resource consumption and support dynamic updates. Results show that compared with the traditional DFA matching, with a maximum resource consumption of 25% for on-chip FFs (74323/1045440) and LUTs (123902/522720), there is an improvement in throughput of 8.08-229.96x speedup and 87.61-99.56% speed-up(percentage improvement) for normal traffic, and 11.73-39.59x speedup and 91.47-97.47% speed-up(percentage improvement) for traffic with high-frequency match hits. Compared with the state-of-the-art similar implementation, our circuit on a single FPGA chip is superior to existing multi-core designs.
引用
收藏
页数:28
相关论文
共 34 条
  • [21] High Speed Regular Expression Matching Engine with Fast Pre-Processing
    Zhe Fu
    Jun Li
    中国通信, 2019, 16 (02) : 177 - 188
  • [22] A Design Method of a Regular Expression Matching Circuit Based on Decomposed Automaton
    Nakahara, Hiroki
    Sasao, Tsutomu
    Matsuura, Munehiro
    IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 2012, E95D (02): : 364 - 373
  • [23] Efficient Regular Expression Matching Based on Positional Inverted Index
    Qiu, Tao
    Yang, Xiaochun
    Wang, Bin
    Wang, Wei
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2022, 34 (03) : 1133 - 1148
  • [24] An innovative approach for regular expression matching based on noc architecture
    Linhai, C. (cuilinhai@hrbust.edu.cn), 1600, Science and Engineering Research Support Society, 20 Virginia Court, Sandy Bay, Tasmania, Australia (08): : 45 - 52
  • [25] A Power-Efficient Approach to TCAM-based Regular Expression Matching
    Huang, Kun
    Chen, Xuelin
    2018 27TH INTERNATIONAL CONFERENCE ON COMPUTER COMMUNICATION AND NETWORKS (ICCCN), 2018,
  • [26] Pattern-Unit Based Regular Expression Matching with Reconfigurable Function Unit
    Cong, Ming
    An, Hong
    Cao, Lu
    Liu, Yuan
    Li, Peng
    Wang, Tao
    Yu, Zhi-hong
    Liu, Dong
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS - ICCSA 2010, PT 4, PROCEEDINGS, 2010, 6019 : 427 - +
  • [27] A novel JSON']JSON based regular expression language for pattern matching in the internet of things
    Rasool, Raihan Ur
    Najam, Maleeha
    Ahmad, Hafiz Farooq
    Wang, Hua
    Anwar, Zahid
    JOURNAL OF AMBIENT INTELLIGENCE AND HUMANIZED COMPUTING, 2019, 10 (04) : 1463 - 1481
  • [28] A Novel Regular Expression Matching Algorithm Based on Multi-Dimensional Finite Automata
    Gong, Yangyang
    Liu, Qinrang
    Shao, Xiangyu
    Pan, Cong
    Jiao, Huijuan
    2014 IEEE 15TH INTERNATIONAL CONFERENCE ON HIGH PERFORMANCE SWITCHING AND ROUTING (HPSR), 2014, : 90 - 97
  • [29] Efficient regular expression matching over hybrid dictionary-based compressed data
    Sun, Xiuwen
    Mo, Da
    Wu, Di
    Ye, Chunhui
    Yu, Qingying
    Cui, Jie
    Zhong, Hong
    JOURNAL OF NETWORK AND COMPUTER APPLICATIONS, 2023, 215
  • [30] A memory-based NFA regular expression match engine for signature-based intrusion detection
    Pao, Derek
    Or, Nga Lam
    Cheung, Ray C. C.
    COMPUTER COMMUNICATIONS, 2013, 36 (10-11) : 1255 - 1267