Giter VIP home page Giter VIP logo

openstate.p4's Introduction

openstate.p4

How to test the P4 OpenState applications?

##P4 download

Download a clean Mininet 2.2.1 VM on Ubuntu 14.04 (64 bit) at this link.

You need to clone two p4lang Github repositories:

cd ~
git clone https://github.com/p4lang/behavioral-model.git bmv2
git clone https://github.com/p4lang/p4c-bm.git p4c-bmv2

Install the following Python packages:

sudo apt-get update && sudo apt-get install python-pip
sudo pip install scapy thrift networkx

Each of these repositories comes with dependencies:

cd ~/p4c-bmv2
sudo pip install -r requirements.txt

cd ~/bmv2
./install_deps.sh

Do not forget to build the code once all the dependencies have been installed:

cd ~/bmv2
./autogen.sh
./configure
make

##P4 OpenState applications download

Clone the P4 OpenState repository:

cd ~
git clone https://github.com/OpenState-SDN/openstate.p4

Now you can test the following OpenState-based applications:

  • mac_learning
  • portknocking
  • fwd_consistency
  • SPIDER: Fault Resilient SDN Pipeline with Recovery Delay Guarantees

To run an application:

cd ~/openstate.p4/{app_name}
./run_demo.sh

Each application's folder has its own README file.

openstate.p4's People

Contributors

davidesanvito avatar lupo89 avatar ccascone avatar

Watchers

James Cloos avatar Yu Zhou 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.