Presentation is loading. Please wait.

Presentation is loading. Please wait.

Gregex: GPU based High Speed Regular Expression Matching Engine Date:101/1/11 Publisher:2011 Fifth International Conference on Innovative Mobile and Internet.

Similar presentations


Presentation on theme: "Gregex: GPU based High Speed Regular Expression Matching Engine Date:101/1/11 Publisher:2011 Fifth International Conference on Innovative Mobile and Internet."— Presentation transcript:

1 Gregex: GPU based High Speed Regular Expression Matching Engine Date:101/1/11 Publisher:2011 Fifth International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing Author:Lei Wang, Shuhui Chen, Yong Tang, Jinshu Su Presenter : Shi-qu Yu

2 INTRODUCTION Gregex, a Graphics Processing Unit (GPU) based regular expression matching engine for deep packet inspection (DPI). Gregex leverages the computational power and high memory bandwidth of GPUs by storing data in proper GPU memory space and executing massive GPU thread concurrently to process lots of packets in parallel

3 THE PROPOSED GREGEX- Framework

4 Matching result buffer is a single dimension array allocated in the global device memory; the size of the array is equal to the number of packets that are processed by GPU at a time

5 THE PROPOSED GREGEX- Framework

6 THE PROPOSED GREGEX- Workflow pre-processing phase signature matching phase post-processing phase

7 Pre-processing phase Compiling regular expressions to DFA Once the DFA has been constructed, the state transition table is copied to texture memory of GPU by two steps: 1. Copy state transition table from CPU memory to GPU global memory; 2. Bind the state transition table in global memory to texture cache. Transferring packets to GPU Gregex chooses to copy packets to device memory in batches.

8 Signature matching phase

9 Post-processing phase When all GPU threads finish matching, the matching result array is copied to the CPU memory. The kth cell of the matching result array contains the ID of the regular expression that matches the kth packet;if no match occurs, it is set to zero.

10 Optimizations 1) Asynchronous packets Transfer with Page-locked memory(ATP): Asynchronous copy:using cudaMemcpyAsync function is nonblocking transfers, control is returned immediately to the host. thread.Zero copy: Zero copy requires mapped page-locked memory and enables GPU threads to directly access host memory.

11 Optimizations 2)Coalesced global memory access in regular expression matching Coalesced global memory Access by Buffering packets to shared Memory (CAB) In this work, coalesced global memory access is obtained by having each half warp reading contiguous locations of global memory to shared memory. We use s packets which is a 32×32 shared memory array of 32-bit words, to ”buffer” packet from global memory for every thread.

12 EVALUATION RESULTS PC with a 2.66 GHz Intel Core 2 Duo processor, 4 GB memory and a NVIDIA GeForce GTX 260 GPU card. GTX260 GPU contains 216 SPs organized in 27 SMs, running at 1.35 GHz with 896 MB of global memory. Gregex uses signatures in the rule set released with Snort 2.7. The rule set consists of 56 different signature sets.

13 Packets Transfer Performance

14 Regular Expression Matching Performance

15

16 Overall throughput of Gregex


Download ppt "Gregex: GPU based High Speed Regular Expression Matching Engine Date:101/1/11 Publisher:2011 Fifth International Conference on Innovative Mobile and Internet."

Similar presentations


Ads by Google