ACM SIGCOMM Computer Communication Review · 2008 · 218 citations · 31 references
ComputingComputer EngineeringComputer ScienceComputer NetworksDigital CommunicationFormal MethodsAutomata TheoryFinite AutomataNetwork ProtocolsRegular LanguagesDeep Packet InspectionFinite Automata TheoryPacket InspectionRegular ExpressionsState Space Explosion
Deep packet inspection is playing an increasingly important role in the design of novel network services. Regular expressions are the language of choice for writing signatures, but standard DFA or NFA representations are unsuitable for high-speed environments, requiring too much memory, too much time, or too much per-flow state. DFAs are fast and can be readily combined, but doing so often leads to state-space explosion. NFAs, while small, require large per-flow state and are slow. We propose a solution that simultaneously addresses all these problems. We start with a first-principles characterization of state-space explosion and give conditions that eliminate it when satisfied. We show how auxiliary variables can be used to transform automata so that they satisfy these conditions, which we codify in a formal model that augments DFAs with auxiliary variables and simple instructions for manipulating them. Building on this model, we present techniques, inspired by principles used in compiler optimization, that systematically reduce runtime and per-flow state. In our experiments, signature sets from Snort and Cisco Systems achieve state-space reductions of over four orders of magnitude, per-flow state reductions of up to a factor of six, and runtimes that approach DFAs.
31
E. M. Clarke, Orna Grümberg, D. Long · 1996 · 6.9K citations
Introduction to automata theory, languages, and computation
Computer Languages · 1980 · 6.9K citations
Snort - Lightweight Intrusion Detection for Networks
Martin Roesch · 1999 · 3.1K citations
Alfred V. Aho, Margaret J. Corasick · Communications of the ACM · 1975 · 2.9K citations · Full text