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 条
  • [21] A Memory-Efficient Pattern Matching with Hardware-Based Bit-Split String Matchers for Deep Packet Inspection
    Kim, Hyunjin
    Kim, Hong-Sik
    Lee, Jung-Hee
    Ahn, Jin-Ho
    Kang, Sungho
    IEICE TRANSACTIONS ON COMMUNICATIONS, 2010, E93B (02) : 396 - 398
  • [22] A Memory-Efficient Bit-Split Pattern Matching Architecture Using Shared Match Vectors for Deep Packet Inspection
    Kim, HyunJin
    IEICE TRANSACTIONS ON COMMUNICATIONS, 2012, E95B (11) : 3594 - 3596
  • [23] Module-Based Finite Automata: A Scalable and Memory-Efficient Architecture for Multi-pattern Matching in Deep Packet Inspection
    Jiang, Junchen
    Tang, Yi
    Wang, Xiaofei
    Liu, Bin
    COMMUNICATION AND NETWORKING, 2009, 56 : 149 - +
  • [24] A Memory-Efficient Deterministic Finite Automaton-Based Bit-Split String Matching Scheme Using Pattern Uniqueness in Deep Packet Inspection
    Kim, HyunJin
    Choi, Kang-Il
    Choi, Sang-Il
    PLOS ONE, 2015, 10 (05):