Fast and memory-efficient regular expression matching for deep packet inspection
Yu Fang, Zhifeng Chen, Yanlei Diao et al. · 2006
Packet content scanning at high speed has become extremely important due to its applications in network security, network monitoring, HTTP load balancing, etc. In content scanning, the packet payload is compared against a set of patterns specified as regular expressions. In this paper, we first show that memory requirements using traditional methods are prohibitively high for many patterns used in packet scanning applications. We then propose regular expression rewrite techniques that can effectively reduce memory usage. Further, we develop a grouping scheme that can strategically compile a set of regular expressions into several engines, resulting in remarkable improvement of regular expression matching speed without much increase in memory usage. We implement a new DFA-based packet scanner using the above techniques. Our experimental results using real-world traffic and patterns show that our implementation achieves a factor of 12 to 42 performance improvement over a commonly used DFA-based scanner. Compared to the state-of-art NFA-based implementation, our DFA-based packet scanner achieves 50 to 700 times speedup.
Cited by 464 works. doi:10.1145/1185347.1185360
Authors
References
- Introduction to automata theory, languages and computation
- Introduction to the Cell multiprocessor
- Fast Regular Expression Matching Using FPGAs
- Assisting network intrusion detection with reconfigurable hardware
- Implementation of a content-scanning module for an Internet firewall
- Deep packet inspection using parallel bloom filters
- Fast and memory-efficient regular expression matching for deep packet inspection
- Algorithms to accelerate multiple regular expressions matching for deep packet inspection
- Enhancing byte-level network intrusion detection signatures with context
- Scalable Pattern Matching for High Speed Networks