Coder Social home page Coder Social logo

cyh0512 / ruleset_analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26.2 MB

Analyze the ruleset and use data from different dimensions to create disjoint layers. The rules stored in each layer must be disjoint in a specific dimension and overlap will not occur.

C++ 86.61% Python 8.77% Shell 4.62%

ruleset_analysis's Introduction

Ruleset Analysis

Analyze the ruleset and use data from different dimensions to create disjoint layers. The rules stored in each layer must be disjoint in a specific dimension and overlap will not occur.

Source file description:

  • all_sublayer_disjoint_5.cpp:

使用5-field建立layer

  • all_sublayer_disjoint_3.cpp:

使用srcIP+dstIP建立layer,如果有srcIP+dstIP cover range完全相同的rules,不視為overlapped,要放在同個layer。

  • all_sublayer_disjoint_edit_5.cpp:

使用5-field建立layer,removing all the rules whose source and dst IP fields are of length <= 5

  • all_sublayer_disjoint_edit_3.cpp:

使用srcIP+dstIP建立layer,removing all the rules whose source and dst IP fields are of length <= 5,如果有srcIP+dstIP cover range完全相同的rules,不視為overlapped,要放在同個layer。

Compile in CIAL server 172(or under GCC 4.7.2):

g++ -std=c++11 all_sublayer_disjoint_edit_3.cpp -o all_sublayer_disjoint_edit_3

g++ -std=c++11 all_sublayer_disjoint_edit_5.cpp -o all_sublayer_disjoint_edit_5

g++ -std=c++11 all_sublayer_disjoint_3.cpp -o all_sublayer_disjoint_3

g++ -std=c++11 all_sublayer_disjointt_5.cpp -o all_sublayer_disjoint_5

Run result

output結果會在./TABLE目錄下:

./all_sublayer_disjoint_5 ./TABLE/acl1_100K

Or you can run script for all 12 rulesets:

./cpp_run_100k_data_5.sh

ruleset_analysis's People

Contributors

cyh0512 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.