Top Banner
Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher: IEEE INFOCOM 2014 Presenter: Yen-Chun Tseng Date: 2014/09/24 Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.
31

Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Dec 14, 2015

Download

Documents

Jordyn Leyland
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Deep Packet Inspection with DFA-trees and Parametrized Language

Overapproximation

Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach

Publisher: IEEE INFOCOM 2014

Presenter: Yen-Chun Tseng

Date: 2014/09/24

Department of Computer Science and Information Engineering National Cheng Kung University, Taiwan R.O.C.

Page 2: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Introduction

Use DFA-tree to improve the speed of matching in NFA and the state-space explosion problem in DFA.

Use the concept of Compact Overapproximate DFA (CODFA) as the building block for the DFA-tree construction.

National Cheng Kung University CSIE Computer & Internet Architecture Lab

2

Page 3: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

DFA-tree

National Cheng Kung University CSIE Computer & Internet Architecture Lab

3

Page 4: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

DFA combination

National Cheng Kung University CSIE Computer & Internet Architecture Lab

4

Page 5: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

CODFA(Compact Overapproximate DFA) only keeps the most frequent or “hot” states

of DFA and the transitions between them, and collapses the remaining states into a single state.

call this “shrink”

National Cheng Kung University CSIE Computer & Internet Architecture Lab

5

Page 6: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

CODFA

National Cheng Kung University CSIE Computer & Internet Architecture Lab

6

Page 7: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

DFA-tree

National Cheng Kung University CSIE Computer & Internet Architecture Lab

7

Page 8: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Encounter problem

If input strings are dirty. Approximation errors. How to choose the “hot” state.

National Cheng Kung University CSIE Computer & Internet Architecture Lab

8

Page 9: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

If input strings are dirty

Such attacks or poor performance are easy to detect and, if persistent, the ISP can temporary switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

9

Page 10: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

10

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 11: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

11

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 12: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

12

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 13: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

13

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 14: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

14

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 15: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

15

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 16: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

16

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 17: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

17

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 18: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

18

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 19: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

19

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 20: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

20

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

Page 21: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

21

D12

D9 D10 D11

D1 D2 D3 D4 D5 D8D7D6

It need to check 12 states in the worst case

Page 22: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

switch to DFA-set matching

National Cheng Kung University CSIE Computer & Internet Architecture Lab

22

D1 D2 D3 D4 D5 D8D7D6

This is 1.5X (50%) faster than if DFA-trees was used

Only needs 8 states

Page 23: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Approximation Errors

National Cheng Kung University CSIE Computer & Internet Architecture Lab

23

D3

D1 D2

VIRUS VIRAL

VIR*

Input : VIRUL

Page 24: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Approximation Errors

National Cheng Kung University CSIE Computer & Internet Architecture Lab

24

D3

D1 D2

VIRUS VIRAL

VIR*

Input : VIRUL

Page 25: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Approximation Errors

National Cheng Kung University CSIE Computer & Internet Architecture Lab

25

D3

D1 D2

VIRUS VIRAL

VIR*

Input : VIRUL

Page 26: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Approximation Errors

National Cheng Kung University CSIE Computer & Internet Architecture Lab

26

D3

D1 D2

VIRUS VIRAL

VIR*

Input : VIRUL

Page 27: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Approximation Errors

Select more hot states.

National Cheng Kung University CSIE Computer & Internet Architecture Lab

27

Page 28: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

choose the “hot” state

a solution may exist, but we may fail to find it. However, we have not encountered this in practice.

National Cheng Kung University CSIE Computer & Internet Architecture Lab

28

Page 29: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

choose the “hot” state

If Q is ordered as {q0, q1, ..., q|Q|−1}, we restrict our search for H to the |Q| sets of valid candidates of the form Hk={q0, q1, ..., qk}

{q0}=H0 H⊂ 1 ...H⊂ k... H⊂ |Q|−1=Q. We aim F+I (DHk ,D) ≤ ɛ.

National Cheng Kung University CSIE Computer & Internet Architecture Lab

29

Page 30: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Experimental Evaluation

The average space overhead was 15%. Worst-case attacks can only achieve a 26% slow- down on average.

Shrinking is effective:

an approximation error rate of 0.2%

the average compression is 97%.

National Cheng Kung University CSIE Computer & Internet Architecture Lab

30

Page 31: Deep Packet Inspection with DFA-trees and Parametrized Language Overapproximation Author: Daniel Luchaup, Lorenzo De Carli, Somesh Jha, Eric Bach Publisher:

Experimental Evaluation

National Cheng Kung University CSIE Computer & Internet Architecture Lab

31