Skip to content
This repository has been archived by the owner on Jun 15, 2024. It is now read-only.

diveshuttam/sdn-divesh

Repository files navigation

Mininet topology and configuraitons for my thesis project

How to run

Open 3 terminals

  • terminal 1:

    • sudo mn --controller remote --mac bigtopo.py --topo bigtopo
    • (Inside mn shell)
      • py net.addLink(c0, h1)
      • h1 ifconfig h1-eth3 192.168.1.2 netmask 255.255.255.0
      • c0 ifconfig c0-eth0 192.168.1.3 netmask 255.255.255.0
      • xterm h1 h1 h2 h6 # this will open 4 xterm terminals we will use these later
    • sudo ovs-vsctl -- set Bridge s1 mirrors=@m -- --id=@s1-eth1 get Port s1-eth1 -- --id=@s1-eth2 get Port s1-eth2 -- --id=@s1-eth3 get Port s1-eth3 -- --id=@s1-eth4 get Port s1-eth4 -- --id=@m create Mirror name=mymirror select-dst-port=@s1-eth1,@s1-eth2,@s1-eth3 select-src-port=@s1-eth1,@s1-eth2,@s1-eth3 output-port=@s1-eth4
  • terminal 2:

    • cd viewer
    • python3 viewer.py
    • open localhost:8050 in chrome
  • terminal 3:

    • cd controller
    • python3 controller.py
  • xterm h2

    • python3 command_server.py
  • xterm h6

    • python3 command_server.py
  • xterm h1 # 1st

    • cd collector
    • python3 main.py
  • xterm h1 # 2nd/different one

    • cd collector
    • # before running the following command, change the experments.py file, it contains parameters to control the experiments to run
    • python3 experiments.py

About

sdn, cemon, nquist

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published