Learning-Enhanced High-Throughput Pattern Matching Based on Programmable Data Plane
Guanglin Duan, Yucheng Huang, Zhengxin Zhang, Qing Li, Dan Zhao, Zili Meng, Dirk Kutscher, Ruoyu Li, Yong Jiang, Mingwei Xu
Abstract
Pattern matching is critical in various network security applications. However, existing pattern matching solutions struggle to maintain high throughput and low cost in the face of growing network traffic and increasingly complex patterns. Besides, managing and updating these systems is labor intensive, requiring expert intervention to adapt to new patterns and threats. In this paper, we propose Trochilus, a novel framework that enables high-throughput and accurate pattern matching directly on programmable data planes, making it highly relevant to modern large-scale network systems. Trochilus innovated by combining the learning ability of model inference with the high-throughput and cost-effective advantages of data plane processing. It leverages a byte-level recurrent neural network (BRNN) to model complex patterns, preserving expert knowledge while enabling automated updates for sustained accuracy. To address the challenge of limited labeled data, Trochilus proposes a semi-supervised knowledge distillation (SSKD) mechanism, converting the BRNN into a lightweight, data-plane-friendly soft multi-view forest (SMF), which can be efficiently deployed as match-action tables. Trochilus minimizes the need for expensive TCAM through a novel entry cluster algorithm, making it scalable to large network environments. Our evaluations show that Trochilus achieves multi-Tbps throughput, supports various pattern sets, and maintains high accuracy through automatic updates.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 7529443f-2cad-4880-9d66-b326abe2d66fBuilds on8
- Jaqen: A High-Performance Switch-Native Approach for Detecting and Mitigating Volumetric DDoS Attacks with Programmable SwitchesZaoxing Liu, Hun Namkung, Georgios Nikolaidis, Jeongkeun Lee et al.USENIX Security 2021 · 221 citations
- Impala: Algorithm/Architecture Co-Design for In-Memory Multi-Stride Pattern MatchingElaheh Sadredini, Reza Rahimi, Marzieh Lenjani, Mircea Stan et al.HPCA 2020 · 43 citations
- Achieving 100Gbps Intrusion Prevention on a Single ServerZhipeng Zhao, Hugo Sadok, Nirav Atre, James C. Hoe et al.OSDI 2020 · 38 citations
- DeeP4R: Deep Packet Inspection in P4 using Packet RecirculationSahil Gupta, Devashish Gosain, Minseok Kwon, Hrishikesh B. AcharyaINFOCOM 2023 · 24 citations
- Pontus: Finding Waves in Data StreamsZhengxin Zhang, Qing Li, Guanglin Duan, Dan Zhao et al.SIGMOD 2023 · 7 citations
Related papers
- Metis: Understanding and Enhancing In-Network Regular ExpressionsZhengxin Zhang, Yucheng Huang, Guanglin Duan, Qing Li et al.NeurIPS 2023 · 3 citations
- Synecdoche: Efficient and Accurate In-Network Traffic Classification via Direct Packet Sequential Pattern MatchingMinyuan Xiao, Yunchun Li, Yuchen Zhao, Tong Guan et al.INFOCOM 2026 · 2 citations
- Making Multi-String Pattern Matching Scalable and Cost-Efficient with Programmable Switching ASICsShicheng Wang, Menghao Zhang, Guanyu Li, Chang Liu et al.INFOCOM 2021 · 5 citations
- Brain-on-Switch: Towards Advanced Intelligent Network Data Plane via NN-Driven Traffic Analysis at Line-SpeedJinzhu Yan, Haotian Xu, Zhuotao Liu, Qi Li et al.NSDI 2024 · 60 citations
- PatternSketch: General and Runtime Reconfigurable Time-series Network Traffic Pattern DetectionYang Du, Dan Wang, He Huang, Hanwen Zhang et al.EuroSys 2026
