Git Product home page Git Product logo

bandwidth-management-application-in-sdn's Introduction

Bandwidth-Management-Application-in-SDN

Set-up environment

1.Install mininet http://mininet.org/download/
2.Install floodlight or clone this following repo. as example https://github.com/wallnerryan/floodlight-qos-beta
3.Extract floodlight-qos-beta files
4.Clone and copy project492.py of mininet topo to your /mininet/custom folder

Run Floodlight

(Used example one)
$cd floodlight-qos-beta
$ant
$ java -jar target/floodlight.jar

To visit Floodlight ui -> 127.0.0.1:8080/ui/index.html

Run Mininet use my topo

$sudo mn --custom ~/mininet/custom/project492.py --topo mytopo --controller remote

Bandwidth test

mininet> iperf h1 h3 (Test connection between h1 and h3)
or
mininet>xterm h1 h3
h3>iperf -s (open TCP socket reciever)
h1>iperf -c 10.0.0.3 (h3 IP)

**If dont have xterm -> sudo apt-get xterm

Control client side BW

Follow this repo. PHP side

Control income from server

Add queue

$cd floodlight-qos-beta; $cd apps
$sudo ./mininet-add-queues.py

Now queues are ready for each interface

Enable QoS

$sudo ./qosmanager2 -e

List Policies

$sudo ./qosmanager2 -L -t policies

Set Queue for each IP (Now control src 10.0.0.3 and des 10.0.0.1)

$sudo ./qospath2.py -a -S 10.0.0.3 -D 10.0.0.1 -N 2Bits3-1 -J '{"eth-type":"0x0800","queue";"2"}'
  [-a = add ,-S source IP , -D destination IP , -N name of policy , -J json object

**Then test bandwidth again by let 10.0.0.1 as receiver from 10.0.0.3

To delete Queue

$sudo ./qospath2.py -d -N 2Bits3-1

bandwidth-management-application-in-sdn's People

Contributors

napornapon avatar

Watchers

 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.