OD-REM: On-Demand Regular Expression Matching on FPGAs for Efficient Deep Packet Inspection

被引:0
|
作者
Xu, Weihai [1 ,2 ]
Zhou, Zheng [1 ,2 ]
Zhang, Jin [2 ]
Jiang, Yiming [3 ]
Yi, Peng [3 ]
机构
[1] Southeast Univ, Sch Cyber Sci & Engn, Nanjing, Peoples R China
[2] Purple Mt Labs, Endogenous Secur Res Ctr, Nanjing, Peoples R China
[3] Natl Digital Switching Engn & Technol Res Ctr, Zhengzhou, Peoples R China
关键词
FPGA; regex matching; deep packet inspection;
D O I
10.1109/ICFPT59805.2023.00029
中图分类号
TM [电工技术]; TN [电子技术、通信技术];
学科分类号
0808 ; 0809 ;
摘要
regex (regular expression) matching is one of the most demanding stages of deep packet inspection process. Numerous studies explored FPGA-based acceleration techniques for regex matching. Existing FPGA-based regex matching engines, such as Grapefruit, assume that each packet potentially match all rules and employ a pipelined structure where each packet traverses each automata sequentially. However, in practical DPI systems, it is often the case that only a small subset of rules needs to be applied to a given packet. Consequently, subjecting every packet to processing by all automata incurs significant throughput wastage. In fact, prior to regex matching, a fast pattern matching stage can ascertain the rules that a packet may satisfy (these rules are referred to as 'candidate rules' for the packet). Based on this observation, we propose OD-REM, an On-Demand Regex Matching architecture on FPGAs. Within OD-REM, each packet is processed by automata corresponding to its candidate rules only, with these automata being dynamically generated as needed. We design a simple yet efficient scheduler to allocate packets to their candidate automata. We implemented ODREM containing 64 automata on Xilinx U200 smart NIC. ODREM obtained a throughput of 27.6Gbps (13.8times faster than Grapefruit), and consumed 6.06% logic resources and 10.28% BRAMs of the on-board FPGA (Xilinx VU9P), respectively. It is worth pointing out that OD-REM only need more UltraRAMs to accommodate more regex rules, leaving logic resource and BRAM consumption unchanged.
引用
收藏
页码:217 / 226
页数:10
相关论文
共 24 条
  • [1] Efficient Parallelization of Regular Expression Matching for Deep Inspection
    Fu, Zhe
    Liu, Zhi
    Li, Jun
    2017 26TH INTERNATIONAL CONFERENCE ON COMPUTER COMMUNICATION AND NETWORKS (ICCCN 2017), 2017,
  • [2] Efficient regular expression compression algorithm for deep packet inspection
    Xu, Qian
    Y.-P., et al.
    Ge, Jing-Guo
    Qian, Hua-Lin
    Ruan Jian Xue Bao/Journal of Software, 2009, 20 (08): : 2214 - 2226
  • [3] Regular expression matching for reconfigurable packet inspection
    Bispo, Joao
    Sourdis, Ioannis
    Cardoso, Joao M. P.
    Vassiliadis, Stamatis
    2006 IEEE INTERNATIONAL CONFERENCE ON FIELD PROGRAMMABLE TECHNOLOGY, PROCEEDINGS, 2006, : 119 - 126
  • [4] Fine-grained parallel regular expression matching for deep packet inspection
    Liu, X. (xingkuiliu@ncic.ac.cn), 1600, Science Press (51):
  • [5] A Multiple Simple Regular Expression Matching Architecture and Coprocessor for Deep Packet Inspection
    Zhang, Wei
    Xue, Yibo
    Wang, Dongsheng
    Song, Tian
    2008 13TH ASIA-PACIFIC COMPUTER SYSTEMS ARCHITECTURE CONFERENCE, 2008, : 245 - +
  • [6] PrivRE: Regular Expression Matching for Encrypted Packet Inspection
    Hou, Xiaoyang
    Liu, Jian
    Tu, Tianyu
    Zhang, Rui
    Ren, Kui
    2024 IEEE 44TH INTERNATIONAL CONFERENCE ON DISTRIBUTED COMPUTING SYSTEMS, ICDCS 2024, 2024, : 1306 - 1317
  • [7] A Survey on Regular Expression Matching for Deep Packet Inspection: Applications, Algorithms, and Hardware Platforms
    Xu, Chengcheng
    Chen, Shuhui
    Su, Jinshu
    Yiu, S. M.
    Hui, Lucas C. K.
    IEEE COMMUNICATIONS SURVEYS AND TUTORIALS, 2016, 18 (04): : 2991 - 3029
  • [8] StriD2FA: Scalable Regular Expression Matching for Deep Packet Inspection
    Wang, Xiaofei
    Jiang, Junchen
    Tang, Yi
    Liu, Bin
    Wang, Xiaojun
    2011 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS (ICC), 2011,
  • [9] Compressing Regular Expression Sets for Deep Packet Inspection
    Bartoli, Alberto
    Cumar, Simone
    De Lorenzo, Andrea
    Medvet, Eric
    PARALLEL PROBLEM SOLVING FROM NATURE - PPSN XIII, 2014, 8672 : 394 - 403
  • [10] Algorithms to accelerate multiple regular expressions matching for deep packet inspection
    Kumar, Sailesh
    Dharmapurikar, Sarang
    Yu, Fang
    Crowley, Patrick
    Turner, Jonathan
    ACM SIGCOMM COMPUTER COMMUNICATION REVIEW, 2006, 36 (04) : 339 - 350