1 / 13

Bit-Splitting method for regular expression

Bit-Splitting method for regular expression. Presented by Tamer Abuhmed. Contents. Introduction Applying the Bit-split method on the Aho-Corasick Algorithm. The efficiency of bit-splitting. Applying bit-splitting on regular expression Examples about bit-splitting on Reg.Ex . Analysis

guido
Download Presentation

Bit-Splitting method for regular expression

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Bit-Splitting method for regular expression Presented by Tamer Abuhmed Information Security Research Laboratory http://seclab.inha.ac.kr/

  2. Contents • Introduction • Applying the Bit-split method on the Aho-Corasick Algorithm. • The efficiency of bit-splitting. • Applying bit-splitting on regular expression • Examples about bit-splitting on Reg.Ex. • Analysis • Discussion

  3. start state accept state accept state accept state accept state Classical Aho-Corasick (AC) DFA: example 1 • A set of keywords • {he, her, him, his} Failure edges back to state 1 are shown as dash line. Failure edges back to state 0 are not shown.

  4. Bit-AC DFA (Lin’s Bit-Split) Need 8 bit-DFA Simple one bit example Lin Tan,”Bit-split string-matching engines for intrusion detection and prevention”, ACM Transactions on Architecture and Code Optimization 2006.

  5. Bit-AC DFA (Lin’s Bit-Split) Con't 4th5th Bits - DFA

  6. Comparison AHO-Memory Implementation AHO-(bit split) Memory Implementation

  7. Benefits of Bit-split method • Eliminate the non-output states so the result binary tree has less number of states than the original DFA. • Reduce the next stat pointer size(15bit-9bit) • Reduce the transition records from 27000 to 300

  8. Regular Expression Types DFA: Reg. Exp ^ABCD(Explicit ) DFA: Reg. Exp ^AB.*CD (with wildcards .* ) ASCII CHAR. Fang Yu,Fast and Memory-Efficient Regular Expression Matching for Deep Packet Inspection, ACM, ANCS 2006

  9. Regular Expression Types Con't • At least RE  AB.{2+}CD • At mostRE  AB.{0,2}CD

  10. Regular Expression Types Con't • Exact arbitrary char. RE.A.{2}CD

  11. Statistics Sailesh Kumar,Algorithms to accelerate multiple regular expressions matching for deep packet inspection. SIGCOMM 2006

  12. Thank You

More Related