Giter Club home page Giter Club logo

sms-sdn-flow-management's Introduction

SMS SDN Flow Management

Personal Communication Services

Department of Computer Science and Information Engineering, National Taiwan University

Server

  • Run the Node.js server
node server.js
  • Run the Node.js server continuously
npm install forever
forever start server.js
forever stop 0

Usage (http://[SERVER_IP]:8787)

Check the Global Network State

show

Check the Information of an Individual Device (OpenFlow Switch)

[DEVICE_ID]

E.g., s1, s2, s3, etc. For example:

s1

Add flow rule

Drop flow

drop [SRC_IP] [DST_IP] [DEVICE_ID]

For example:

drop 10.0.0.1 10.0.0.2 2
SRC_IP = 10.0.0.1
DST_IP = 10.0.0.2
OUTPUT_PORT = {NOACTION}
DEVICE_ID = 2 (of:0000000000000002)

Change flow rule

add [SRC_IP] [DST_IP] [OUTPUT_PORT] [DEVICE_ID]

For example:

add 10.0.0.1 10.0.0.2 3 2
SRC_IP = 10.0.0.1
DST_IP = 10.0.0.2
OUTPUT_PORT = 3
DEVICE_ID = 2 (of:0000000000000002)

Prerequisite

npm install express
npm install twilio
npm install axios

Twilio

Information needed (in Twilio console):

  • ACCOUNT SID
  • AUTH TOKEN
  • TRIAL NUMBER

Parameter Setup

Usage

Testing

SMS same as Postman:

Issue fixed

ONOS

REST API DOCUMENT

http://[ONOS_Controller_IP]:8181/onos/v1/docs/

sms-sdn-flow-management's People

Contributors

enfyshsu 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.