Code Monkey home page Code Monkey logo

p4io's Introduction

P4I/O Prototype Software

This is the official repository of the P4I/O prototype.

P4I/O

P4I/O is an intent-based networking platform to generate and run network functionality on P4 switches. This repository contains a prototype-grade software version of the P4I/O platform. The idea behind this prototype is described in detail in the P4I/O paper.

Please cite the original paper instead if you would like to give credit for or refer to the software:

Mohammad Riftadi and Fernando A. Kuipers. 2019. P4I/O: Intent-Based Networking with P4. Proc. of 2019 2nd International Workshop on Emerging Trends in Softwarized Networks (ETSN 2019 at NetSoft). Paris, France.

or you can use the following bibtex text:

@INPROCEEDINGS{Rift1906:P4IO,
    AUTHOR="Mohammad Riftadi and Fernando A. Kuipers",
    TITLE="{P4I/O:} {Intent-Based} Networking with {P4}",
    BOOKTITLE="2019 2nd International Workshop on Emerging Trends in Softwarized Networks
    (ETSN 2019 at NetSoft)",
    ADDRESS="Paris, France",
    DAYS=28,
    MONTH=jun,
    YEAR=2019
}

Dependent Software Installation

The system was developed on Ubuntu 16.04 LTS, so please use it for optimum compatibility. Before you can run the prototype, you need to build and install the required software. Please use the script available in the utils/ directory:

sudo utils/bootstrap.sh

The script should install all of the required dependencies. It was last tested on 17-Apr-2019 on a fresh installation of Ubuntu 16.04 LTS.

Usage

You can run the software using the following command:

cd src
make

# you will get mininet console here..

# to stop mininet and clean the build dirs after exit
# mininet> exit

make clean

To change the intent while the virtual switch is running, you can run the intent_listener.py program:

cd src
sudo python intent_listener.py

From another session, you can then send an intent via a HTTP POST request with the data in the data. For example (if you use curl):

curl -d "@intent.txt" -X POST http://localhost:5050/intent

Content example of intent.txt:

import drop_heavy_hitters

define intent dropHeavyHitters:
  to     any
  for    traffic('any')
  apply  drop_heavy_hitters
  with   threshold('more',50)

Support

Support is not available for this software. If you have any question, you can open an issue in this repository or mail to [email protected]. Please note that, however, an answer is not guaranteed.

Credits

  • Lead Developer: Mohammad Riftadi
  • Mentor: Fernando Kuipers

License

The MIT License (MIT)

Copyright (c) 2019 Mohammad Riftadi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

p4io's People

Contributors

riftadi avatar

Watchers

 avatar

p4io's Issues

Can't use "make" command.

I'm trying to run "make" command from /src folder and it is showing this:

./p4codegen.py
21.3849544525
Done! Exiting..
mkdir -p build pcaps logs
p4c-bm2-ss --p4v 16 --p4runtime-file build/s1_running.p4info --p4runtime-format text -o build/s1_running.json s1_running.p4
make: p4c-bm2-ss: Command not found
Makefile:42: recipe for target 'build/s1_running.json' failed
make: *** [build/s1_running.json] Error 127

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.