Giter Club home page Giter Club logo

network-wide-heavy-hitter-detection's Introduction

Network-wide heavy-hitter detection implementation in P4 language

Citation

@article{ding2020incrementally,
  title={An incrementally-deployable P4-enabled architecture for network-wide heavy-hitter detection},
  author={Ding, Damu and Savi, Marco and Antichi, Gianni and Siracusa, Domenico},
  journal={IEEE Transactions on Network and Service Management},
  year={2020},
  publisher={IEEE}
}

Installation

  1. Install docker if you don't already have it.

  2. Clone the repository to local

    git clone https://github.com/DINGDAMU/Network-wide-heavy-hitter-detection
    
  3.  cd Network-wide-heavy-hitter-detection
    
  4. If you want, put the p4app script somewhere in your path. For example:

    cp p4app /usr/local/bin
    

    I have already modified the default docker image to dingdamu/p4app-ddos:nwhhd, so p4app script can be used directly.

  5. ./p4app run nwhhd.p4app 
    

    After this step you'll see the terminal of mininet

  6. Open a new terminal

     cd nwhhd.p4app 
    
  7. Enter the terminal of Docker

     bash terminal.sh 
    
  8. Activate interface veth0 to monitor all packets in the Network

     ip link add name veth0 type veth peer name veth1
     ip link set dev veth0 up
     ip link set dev veth1 up
    
  9. Start controller in Docker

     sudo python3 controller.py
    
  10. Go back to mininet terminal and run following command within 5s (5s is the time interval) We set 10 time intervals in this case

    pingall
    
11. Check the results of controller


network-wide-heavy-hitter-detection's People

Contributors

dingdamu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

network-wide-heavy-hitter-detection's Issues

IOError: [Errno 21] Is a directory: '/tmp/app.tar.gz'

Hello. I'm getting this error at step 5.

v2-local@v2local-VirtualBox:~/Desktop/Network-wide-heavy-hitter-detection$ sudo ./p4app run nwhhd.p4app
Entering build directory.
Extracting package.
Traceback (most recent call last):
File "./p4apprunner.py", line 323, in
main()
File "./p4apprunner.py", line 286, in main
tar = tarfile.open(args.app)
File "/usr/lib/python2.7/tarfile.py", line 1673, in open
return func(name, "r", fileobj, **kwargs)
File "/usr/lib/python2.7/tarfile.py", line 1738, in gzopen
fileobj = gzip.GzipFile(name, mode, compresslevel, fileobj)
File "/usr/lib/python2.7/gzip.py", line 94, in init
fileobj = self.myfileobj = builtin.open(filename, mode or 'rb')
IOError: [Errno 21] Is a directory: '/tmp/app.tar.gz'

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.