Giter VIP home page Giter VIP logo

sdn-project's Introduction

SDN Project

環境

預設系統 Ubuntu

Mininet

  • 安裝 mininet install mininet
$ sudo apt-get install mininet
  • 建立拓樸並開啟 controller 與 nat 模式 launch mininet with defined topology
$ sudo mn --topo single,5 --mac --switch ovsk --controller remote --nat
  • 看到以下畫面即表示成功 success if you see the picture below image

環境建立(需新開終端機)

  • 建立 venv 虛擬環境 create a virtual environment named venv
$ virtualenv venv
  • 啟動虛擬環境 launch the virtual environment
$ source venv/bin/activate
  • 下載獎勵式學習系統 clone repo from Github
$ git clone https://github.com/qaz5823091/SDN-Project.git
  • 重新命名目錄 rename the directory
$ mv SDN-Project/ project/
  • 安裝套件 install target packages
(venv) $ pip install -r project/requirements.txt

Controller

  • 下載 ryu clone ryu controller from Github
$ git clone https://github.com/faucetsdn/ryu.git
  • 把系統放在 ryu/app 底下 move the project directory to the ryu/app/
$ mv project/ ryu/ryu/app/project/
  • 進入 ryu/ 目錄 enter the ryu directory
$ cd ryu
  • 啟動虛擬環境 launch the virtual environment
$ source venv/bin/activate
  • 啟動 controller 程式 start ryu application
(venv) $ sh ryu/app/project/auto-start.sh
  • 看到以下畫面即表示成功 success if you see the picture below image

  • 伺服器會架設在 port 8080 API server is setup on localhost:8080

Web Console(需新開終端機)

  • 啟動虛擬環境 launch the virtual environment
$ source venv/bin/activate
  • 進入網頁後台的目錄 enter ryu/ryu/app/project/console/
(venv) $ cd ryu/ryu/app/project/console/
  • 啟動網頁 launch the flask server
(venv) $ flask run
  • 系統會假設在 port 5000 rewarded learning system is setup on localhost:5000 image

注意!Notice!

瀏覽器需安裝允許 CORS 的插件,網頁才會運作正常

sdn-project's People

Contributors

qaz5823091 avatar shang47 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.