Coder Social home page Coder Social logo

tutorial_ik2220's Introduction

IK2220 - Pox + Click

This repository contains some simple examples on how you can integrate POX with Click.

The mininet topology is composed by 2 hosts connected via 2 chained switches:

        ┌───────────────────┐
        │  POX Controller   │
        │                   │
        └──┬──────────────┬─┘
           │              │
           ▼              ▼
        ┌──────┐     ┌──────┐
       1│ SW1  │2   1│ SW2  │2
    ┌───┤id=0x1├─────┤id=0xf├──┐
    │   └──────┘     └──────┘  │
   0│                          │0
 ┌──┴──┐                    ┌──┴──┐
 │ H1  │                    │ H2  │
 └─────┘                    └─────┘

We'll replace SW2 with a Click-based forwarder, which will steal packets and do the forwarding instead of OpenVSwitch.

  • controller_base.py is a simple POX controller that will start the standard LearningSwitch for all switches
  • controller_click_base.py replaces the second controller/switch with Click
  • controller.py is a complete example with also process termination management
  • forwarder.click is a simple L2 forwarder with 2 ports (a.k.a. a bridge)
  • forwarder.click is a L2 forwarder demonstrating Print, Script and DriverManager elements

How to use

  • Start your network with sudo python topology.py
  • Start a controller with PYTHONPATH=. python /opt/ik2220/pox/pox.py controller
  • Send some packets from the mininet console: h1 ping h2
  • Have fun!

Copyright

(C) Massimo Girondi 2022 - [email protected] - BY-NC-SA 4.0

tutorial_ik2220's People

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.