Git Product home page Git Product logo

camp17-docker-nfv's Introduction

Docker NFV Platform for WIDE Camp 2017 Net

This platform uses OVS + OpenFlow + Ryu controller application for chaining.

Quick Start

Install dependencies

$ ./install-dep.sh

Running test case

$ ./setup.sh init
$ ryu-manager controller/controller.py

// In another window
$ cd packet-gen
$ sudo python test-case.py

Requirements for running NFs

  • OVS need to have attached interface named "downlink" and "uplink".
  • Foreach NFs, we need two interface which has following naming convension <nf name>_<up | down>. Interface <nf name>_up is for uplink side chaining. Interface <nf name>_down is for downlink side chining.
  • Incoming packets are needed to be tagged by 802.1Q.
  • IPv4 only.
  • You shouldn't touch to IPv4 DSCP field in your NF.

Configuring switch

Our controller has REST API endpoint. You can configure switch through that. It listen to TCP port 8080 by default.

End points

  1. /camp-nfv/api/get-available-datapath
  • Method: GET
  • Parameter: None
  • Output: JSON which contains configurable datapath from the controller
  • Example Output
{
  "datapath": ["00001e9302ed1640", "00003e9402ed1640"]
}
  1. /camp-nfv/api/{dpid}/get-chain-info
  • Method: GET
  • Parameter: Datapath Id needed to be embedded to URI
  • Output: JSON which contains available downlink, uplink, service function chain and VNF
  • Example Output
{
  "downlink": 1,
  "sf_chains": [],
  "uplink": 8,
  "vnf": {
    "nf1": {
      "down_port": 2,
      "up_port": 3
    },
    "nf2": {
      "down_port": 4,
      "up_port": 5
    },
    "nf3": {
      "down_port": 6,
      "up_port": 7
    }
  }
}
  1. /camp-nfv/api/{dpid}/add-chain
  • Method: POST
  • Parameter: JSON with following format
{
  "vlan": <VLAN ID for discriminate flow>,
  "chain": [<list of name string of nfs>]
}
  • Output: None

Using CLI

We have simple CLI which can easily configure switch through REST API

Installation

$ cd cli
$ pip install -r requirements.txt
$ python cli.py

You can see supported commands by typing "help". Most commands are straightly corresponding to API endpoint.

camp17-docker-nfv's People

Contributors

nelishiba avatar yutarohayakawa avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

nelishiba

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.