On-Demand Regular Expression Matching on FPGAs for Efficient Deep Packet Inspection
Deep Packet Inspection (DPI) faces significant bottlenecks in regular expression (regex) matching due to escalating rule complexity and traffic volume. Existing FPGA-based solutions inefficiently process all packets through every automaton, incurring substantial resource overhead. This article proposes OD-REM, an on-demand regex matching architecture for FPGAs that dramatically improves efficiency. In addition to this novel architecture, OD-REM also introduces three innovations: (1) A Counter-Enabled Fast Reconfigurable Automaton (cFRA) compresses regex states by 97.5% via counting semantics, eliminating state explosion for bounded repetitions; (2) A Ring Queue (RQ) scheduler dynamically dispatches packets only to automata relevant to their candidate rules (identified via pre-filtering); (3) A modular pipeline for per-packet, on-chip run-time reconfiguration. Implemented on a Xilinx VU9P FPGA with 32 parallel cFRAs, OD-REM achieves 41.18 Gbps throughput—roughly 3× to 40× higher than the similar works while still performing a full reconfiguration on every packet. It reduces packet latency by 3.73 µs versus sliding-window scheduling. Integrated with Pigasus, OD-REM offloads complex rules, accelerating Hyperscan software matching by up to 37×. This work demonstrates FPGA-centric regex matching as a scalable, high-throughput solution for modern DPI systems.
Authors
- Jiangxing Wu (ORCID: https://orcid.org/0009-0006-8269-2662)
- Y. Jiang (ORCID: https://orcid.org/0009-0009-2253-8008)
- Yin Tang (ORCID: https://orcid.org/0009-0000-8920-3442)
- Hang Yang (ORCID: https://orcid.org/0009-0002-1178-6523)
- Zheng Zhou (ORCID: https://orcid.org/0009-0000-3101-9765)
- W M Xu (ORCID: https://orcid.org/0009-0002-1321-7172)
- Jin Zhang (ORCID: https://orcid.org/0009-0007-9530-6393)
- Shifeng Huang (ORCID: https://orcid.org/0009-0007-1360-7468)
Institutions
- Purple Mountain Laboratories (CN)
- Southeast University (CN)
- Switch (CH)
Publication Details
- Journal
- ACM Transactions on Reconfigurable Technology and Systems
- Published
- 2025-11-11
- DOI
- https://doi.org/10.1145/3774651
- Primary Topic
- Network Packet Processing and Optimization
- Type
- article
- Field-Weighted Citation Impact
- 0.00