Coder Social home page Coder Social logo

mininet's Introduction

Internet & Multimedia Project

Mininet/POX (Ubuntu 22.04)

Requirements

Three basic applications:

Note: assume pox folder is into the home folder

  1. Load Balancer
    Use POX controller as a load balancer. Follow these steps:

    • Open a terminal and move to the load_balancer folder:

    • Launch the Mininet topology with:

      sudo python3 lb_topo.py

    • Open a new terminal and launch the POX controller with:

      python3 /home/pox/pox.py log.level --DEBUG samples.pretty_log misc.ip_loadbalancer --ip=10.0.1.1 --servers=10.0.0.1,10.0.0.2

    • In the Mininet CLI run many times (replace X with the host number):

      hX curl 10.0.1.1

    • Watch the outputs/redirects on the POX terminal

  2. Firewall
    Use POX controller as a network firewall. Follow these steps:

    • Copy the firewall.py file into the pox/pox/misc folder

    • Edit firewall.py rules list, to set your firewall rules

    • Open a terminal and launch the POX controller with:

      python3 /home/pox/pox.py log.level --DEBUG samples.pretty_log openflow.of_01 forwarding.l2_learning misc.firewall

    • Open a new terminal and move to the firewall folder

    • Launch the Mininet topology with:

      sudo python3 firewall_topo.py

    • In the Mininet CLI run:

      pingall

    • Watch the failed pings, according to the set firewall rules

  3. Routing
    Use POX controller to forward traffic as a router. Follow these steps:

    • Open a terminal and launch the POX controller with:

      python3 home/pox/pox.py log.level --DEBUG samples.pretty_log forwarding.l2_pairs

    • Open a new terminal and move to the routers folder

    • Launch the Mininet topology with:

      sudo python3 router_topo.py

    • In the Mininet CLI, run:

      pingall

      h1 traceroute h2

    • In the Mininet CLI, simulate a network/link failure with:

      link r1 r2 down

    • In the Mininet CLI, run again:

      pingall

      h1 traceroute h2

    • Watch the new routes, network is still working

mininet's People

Contributors

danilomodica avatar

Stargazers

 avatar  avatar  avatar

Watchers

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