190 likes | 313 Views
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.
E N D
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