14
Deflating the Big Bang: Fast and Scalable Deep Packet Inspection with Extended Finite Automata Date:101/3/21 Publisher:SIGCOMM 08 Author:Randy Smith Cristian Estan Somesh Jha Shijin KongIoannidis Presenter : Shi-qu Yu

Deflating the Big Bang: Fast and Scalable Deep Packet Inspection with Extended Finite Automata

  • Upload
    glenda

  • View
    51

  • Download
    0

Embed Size (px)

DESCRIPTION

Deflating the Big Bang: Fast and Scalable Deep Packet Inspection with Extended Finite Automata. Date:101/3/21 Publisher:SIGCOMM 08 Author: Randy Smith Cristian Estan Somesh Jha Shijin Kong Ioannidis Presenter : Shi- qu Yu. Introduction. - PowerPoint PPT Presentation

Citation preview

Page 1: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

Deflating the Big Bang: Fast and Scalable Deep Packet Inspection with Extended Finite Automata

Date:101/3/21Publisher:SIGCOMM 08Author:Randy Smith Cristian Estan Somesh Jha Shijin KongIoannidisPresenter : Shi-qu Yu

Page 2: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

IntroductionRegular expressions are typically implemented as either

deterministic finite automata (DFAs) or nondeterministic finite automata (NFAs). Like strings, DFAs are fast and can be readily combined. However, for many common signatures their combination exhibits an explosion in the state space

Page 3: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

UNDERSTANDING STATE EXPLOSION

Page 4: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

Eliminating Ambiguity Through Auxiliary Variables

Theorem 1. Let D1 and D2 be DFAs with D1+D2 their standard product combination. If D1 and D2 are unambiguous, then |D1 + D2| < |D1| + |D2|, where |D| is the number of states in D.

Theorem 2. If D1 and D2 are unambiguous, then D1 + D2 is unambiguous.

Page 5: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata
Page 6: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

XFAXFA Construction[31]Combining XFAsMatching to Input

Page 7: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata
Page 8: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

OPTIMIZATIONExposing Runtime InformationCombining Independent VariablesCode Motion and Instruction Merging

Page 9: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

Combining Independent Variables

Dataflow AnalysisCompatibility Analysis

Page 10: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

Dataflow Analysis

Definition 2. Let Q be the set of states containing a set operation for counter C. Then, C is active at state S if there is at least one sequence of input symbols forming a path of states from a state in Q to S in which no state in the path contains a reset operation for C. Otherwise C is inactive.

Page 11: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

Compatibility AnalysisTwo counters can be reduced to one if they are

compatible at all states in the automaton

Page 12: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

Combining Independent Variables

Page 13: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

Dataflow AnalysisA stream is a sequence of operations that

execute in order. While the stream is executing, the CPU is able

to collect the next batch of packets.

Page 14: Deflating the Big Bang: Fast and Scalable Deep  Packet Inspection  with Extended Finite Automata

EXPERIMENTAL EVALUATIONData Set:XFAs on FTP, SMTP, and HTTP signatures

from Snort [28] and Cisco Systems.CPU:3.0 GHz Pentium 4