Giter Site home page Giter Site logo

ksingh25 / switchtree Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 10.0 182 KB

In-network detection of network attacks using Random Forests and P4

License: MIT License

Makefile 0.02% P4 29.42% Jupyter Notebook 69.18% Python 1.38%
random-forest detection packets p4

switchtree's People

Contributors

ksingh25 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

switchtree's Issues

Is it possible to use another PCAP?

Hello, good afternoon. I want to ask you if the PCAP (UNSW_1000_packets.pcap) has any special processing? I tried the solution with another dataset but it only counts the packets, it does not count the flows nor does it detect the attacks.
Thanks

Kindly help me

I want to write my own randomforest.p4 file for classification on this dataset. I am using three features (Protocol, ipv4.src and ipv4.dst). How should I proceed, I already have trained the model in python.

evaluation: results from the resgister to extern python program

Hi,
i am wondering could we directly read the results value from the register to extern python program for a further evaluation?
i notice that in SwitchTree, you counted the number of detected attacks and normal packets based on the port respectively. However, when i prefer to use these values to draw a result figure, i have no idea to input these value directly into the python program. Or can i only manually record them and input into the python?

Thank you~~
Best regards,
Louisa

When I transform the tree to p4 some zeros are added to some values

Hello good evening, I am trying to convert my tree to P4 with your script (rftop4_v2.py).
But I have a problem, when I transform the tree to p4 some zeros are added to some values. For example, I have 234 and in the txt it appears 23400000. I can see that in commands_1_tree.txt and commands_3_tree.txt the same thing happens.

The question is: Is this a bug?
I really appreciate your help.

is it necessary to modify the topology during tcpreplay

Becasue of fixed interface during the tcpreplay, should i modfify the ip address of host to match the pcap.file packets?
For example, in pcap.file there are some malware packets whose srcip is 175.45.176.0. However, when i makerun in mininet, the host1 ip address maybe initialized to 10.0.1.1. When i tcpreplay intf1=h1-eth0, is it ok without changing the h1 ip address?

Thank you~~~

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.