Coder Social home page Coder Social logo

dscano / qos-slicing Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 10.0 405 KB

Onos application for deploying network slicing and performance isolation, in terms of both connectivity and performance.

Java 98.95% Python 1.05%
sdn sdn-controller sdn-network 5g slicing onos onos-app

qos-slicing's Introduction

This code implements an application to be installed and utilized within the SDN controller ONOS (Open Network Operating System). The ONOS controller is an open-source project that can be cloned at this link:

git clone https://gerrit.onosproject.org/onos 

QoS-Slicing

The QoSlicing application provides network slicing with performance isolation to netwrk slices created with the VPLS ONOS application.

The folders/file contain:

  • ONOS File: contains the files that you have to change in the onos master repository for utilizing the QoS-Slicing application.
  • target: contains compiled QoS-Slicing application, i.e. the oar file. The compiled file is needed to install the application on ONOS.
  • src: contains the application java source code.
  • topology: is a python script for creating a mininet network.

Changes in ONOS master repository

The folder ONOS File contains the files that you have to sobstitute in the ONOS master folder. The files in the ONOS File folder have the same name of the files in the onos master folder. So you have to simply copy/paste it in the right folder.

Steps to install QoS-Slice in Onos

Before to install QoS-Slice you have to activate the VPLS application, that is included in the ONOS master distribution. To install and activate the QoS-Slicing app you have to run this command in the the Qos-Slicing folder:

onos-app localhost install! org.qosslice.app target/qosslice-app-2.3.0-rc3.oar  

Once you have activated the QoS-Slicing you can configure the slices, via CLI or REST interface.

Example steps to configure QoS-Slice app using the ONOS Command Line Interface

To define a slice without performance isolation form host h1 to host h2, you have to run these commands in the onos CLI:

 interface-add of:0000000000000001/1 h1             
 interface-add of:0000000000000004/1 h2 
 vpls create VPLS-1                                 
 vpls add-if VPLS-1 h1                              
 vpls add-if VPLS-1 h2

To add/enrich a slice with performance isolation using the "elastic bandwidth isolation" solution, you have to run these commands in the onos CLI:

band -br -uk -b 1000 -dp 1 -nb band1 add-band     
qos-slice create SLICE-1 VPLS-1                    
qos-slice add-band SLICE-1 band1                
qos-slice add-meter SLICE-1

With these commands a number REMARK meters are installed in the switches belonging to the slice SLICE-1 to remark the packets exceeding 1 Mbps. Moreover, a drop meter is installed for each output port used by SLICE-1 to limit the total excess traffic while allowing bandwidth borrowing with other defined slices. Finally, the flow rules originally installed by the VPLS app are updated to use the created meters.

VPLS app documentation page: https://wiki.onosproject.org/display/ONOS/VPLS+User+Guide

qos-slicing's People

Contributors

alessiocnit avatar dscano avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

qos-slicing's Issues

ID_Meter java file

Hello dears,

I want to try your app, but I got an error. Firsly I am using onos 2.7.0.
The first issue is that I don't know where to put the ID_Meter.java file. I have searched also in the onos github repositories, I don't find a path.
After sobstituting these files (LinkCollectionCompiler.java; MeterManager.java, MeterServiceAdapter.java, MeterService.java
and VirtualNetworkMeterManager.java
). And trying to lunch onos, I got this error:
"""
web/api/src/main/java/org/onosproject/rest/resources/MetersWebResource.java:158: error: incompatible types: MeterCellId cannot be converted to MeterId
final Meter meter = nullIsNotFound(meterService.getMeter(did, meterCellId),
^
web/api/src/main/java/org/onosproject/rest/resources/MetersWebResource.java:181: error: method getMeters in interface MeterService cannot be applied to given types;
final Iterable meters = meterService.getMeters(did, meterScope);
^
required: DeviceId
found: DeviceId,MeterScope
reason: actual and formal argument lists differ in length
web/api/src/main/java/org/onosproject/rest/resources/MetersWebResource.java:250: error: incompatible types: MeterCellId cannot be converted to MeterId
meterService.withdraw(meterRequest, mid);
^
web/api/src/main/java/org/onosproject/rest/resources/MetersWebResource.java:280: error: incompatible types: MeterCellId cannot be converted to MeterId
meterService.withdraw(meterRequest, meterCellId);
^
Target //:onos-local_current-jdk failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 105.937s, Critical Path: 100.00s
INFO: 46 processes: 5 internal, 16 linux-sandbox, 25 worker.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
"""
Please where can I put the ID_Meter.java file. Or what to do?

Best regards,
MOHAMED.

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.