Enhancing Network Traffic Matching with Speculative Parallel Pattern Matching
190 likes | 327 Vues
This paper presents a novel approach to network traffic matching by transitioning from traditional serial matching to speculative parallel pattern matching (SPPM). Traditional Deterministic Finite Automata (DFA) matching is fundamentally serial due to its pointer-chasing nature. Our method breaks this limitation by dividing input data into multiple chunks, allowing for parallel scanning. We propose initial state guesses for each chunk (except the first), ensuring accuracy through a validation mechanism. The evaluation demonstrates significant enhancements in processing efficiency while maintaining correct matching outcomes.
Enhancing Network Traffic Matching with Speculative Parallel Pattern Matching
E N D
Presentation Transcript
Speculative Parallel Pattern Matching Author: Daniel Luchaup, Randy Smith, Cristian Estan, Somesh Jha Publisher: IEEE Transactions on Information Forensics and Security Presenter: Zi-Yang Ou Date: 2012/04/11
Introduction • Matching network traffic against a DFA is inherently a serial activity. • We break this inherent serialization imposed by the pointer chasing nature of DFA matching using speculation. • Our method works by dividing the input into multiple chunks and scanning each of them in parallel using traditional DFA matching. • The main idea behind our algorithm is to guess the initial state for all but the first chunk, and then to make sure that this guess does not lead to incorrect results.
Signature Types • Suffix-closed regular expressions • Prefix-closed regular expressions (PREs) Ex: .*VIRUS.* • Anchored regular expressions (Non-PRE) Ex: VIRUS • General regular expressions (GREs) unrestricted, arbitrary regular expressions
Example of Using Speculation coupling validation region : IRUL
Statistical Support for Speculative Matching The typical maximum TCP packet length is 1500 bytes. We contend that the length of the validation region will be small.
Evaluation of Algorithm 3 (Single Threaded, Software Implementation)
Evaluation of Algorithm 4 (Basic SPPM for Prefix Closed Regular Expressions) Using Simulation
Evaluation of Algorithm 7 (SPPM for PRE, With Bounded Validation Region) Using Simulation