Installing Mininet, OpenDaylight and Open vSwitch

Installing Mininet, OpenDaylight and Open vSwitch

Installing Mininet, OpenDaylight and Open vSwitch

The easiest way to get started with a quick SDN lab image is using the Mininet image that is now managed by the ONLAB which is part of the ONRC. They do a nice job keeping the images maintained. Ideally the will incorporate ODL into the image soon since the ODL GUI is great for folks to get started with SDN.

Download and Bring up Mininet

You can use your prefered hypervisor of choice to run the image. The Mininet guide has instructions for each. Download Mininet and get the image up and running with the following guide:

Download and Get Started With Mininet

Open vSwitch should already be running when you boot mininet. You can stop and start the process with:

Stop the controller if you are using ODL for control.

Download and Start OpenDaylight

Performing the following will get OpenDaylight up and running on your mininet instance or you can run it on the host OS (or any other with IP connectivity). It is a simple two node network. If you run into issues head to the #opendaylight irc channel on irc.freenode.net.
From Mininet run the following:

Upgrade Open vSwitch to v2.0

If you want to upgrade the Mininet OVS instance to the latest v2.0 you can pull from the following repo.

For a more advanced tutorial and topologies see the following link:

OpenDaylight Controller with Mininet →


A nice video by James Ahn is at the following:
Youtube Installation Instructions →

 


If you want to ssh to the host and run Wireshark you need to have X enabled in the SSH session. On a MAC until Wireshark fully evacuates QT use XQuartz.

 

Install a Linux GUI

Install LightDM or Gnomae Desktop if you want a GUI
If you want a GUI either of the following will install a stripped down build (no office etc).

A simple remote remote desktop application is XRDP. For installation instructions see this post here.

ONLab Chat with ODL

The ONLAB recently presented their work to the Technical Work Stream OpenDaylight call that is open to anyone along with the TSC weekly call. Take a look at the recording if interested. They are doing some interesting stuff with network topologies and also expanding Mininet to a multi-node distribution.


OpenDaylight Tech Work Stream (See the September 30, 2013 meeting Recording at the Bottom)

Update: I ran into a nice, relatively new blog that had a nice post with a clear custom topology explanation and other good hands on posts:

Tools used with Opendaylight – Sreenivas Makam’s Blog


Thanks and happy hacking!

 

About the Author

Brent SalisburyBrent Salisbury works as a Network Architect, CCIE #11972. He blogs at NetworkStatic.net with a focus on disruptive technologies, that have a focus on operational efficiencies. Brent can be reached on Twitter @NetworkStatic.View all posts by Brent Salisbury →

  1. Jason ParragaJason Parraga10-21-2013


    nice, keep up the datalove

  2. JosephJoseph10-22-2013


    Hi Brent,
    Thank you for your all wonderful posts in this blog

  3. FedorFedor10-22-2013


    I started studying SDN a few months ago, and honestly this website is the best.

    Thanks to your website I got into pox controller fast, and now also studying opendaylight.(though it looks more difficult). Good work Brent!

  4. David GeeDavid Gee10-25-2013


    Keep up the ace work!

  5. Brent SalisburyBrent Salisbury10-29-2013


    Thanks guys, that is very kind of you all. If you are on irc.freenode.net say hi to me and lets do some cool stuff!

    Respect,
    -Brent

  6. Gregory GeeGregory Gee10-30-2013


    Just a note about Mininet. If you want to whip up a custom network topology really quick, try MiniEdit. It came as an example script in Mininet, but I have taken and evolved it quite a bit.

    http://gregorygee.wordpress.com/category/miniedit/

    Great posts by the way. Your blog is a subscription in my RSS reader.

  7. Srikanth S MarthiSrikanth S Marthi10-30-2013


    Great tutorial here.
    I am new to the SDN stuff and am a research student working with the ODL controller.
    I have a couple of questions. Can I run the daylight controller on a remote node connected to one of the pronto (p 3290) switches which are OF 1.3 capable. Is it possible to remotely deploy the controller or do I have to use, say my p.c as the controller?
    Thanks!
    Srikanth

  8. Brent SalisburyBrent Salisbury11-08-2013


    Hi Srikanth, so sorry for the delay and Im sure you already found the answer but in case anyone had the same question you can certainly run the controller anywhere. As long as there is TCP connectivity to 6633 (or whatever the OF port is) you are in great shape.
    Cheers,
    -Brent

  9. Fernando SanchezFernando Sanchez11-15-2013


    A question on the upgrade of Openvswitch to 2.0: The repository you point to doesn’t seem to have a 2.0 package for the controller (or at least my system is not able to find a candidate package). After upgrading the switch, I am getting an error from mininet showing that it can’t find a controller, did you run into this situation?

    Thanks
    Fernando

  10. Fernando SanchezFernando Sanchez11-15-2013


    Let me reply to my own question: mininet requires the openvswitch-controller binary to be in the system, but it actually asks you to shut it down before starting.

    Even if you upgrade the rest of the system to 2.0, you can keep the controller in an older version. I am running Ubuntu 13.10 in my test system which comes with openvswitch controller version 1.10-2. After upgrading the rest of the Openvswitch packages to 2.0 with the repository mentioned in this article, I was able to manually reinstall the controller downloading the .deb package from here (https://launchpad.net/ubuntu/saucy/+package/openvswitch-controller) and installing it with “dpkg -i –force-all openvswitch-controller_1.10.2-0ubuntu2_amd64.deb).

    This is probably not the most orthodox way of running this thing but it seems to work fine… I hope the repository above will soon provide a proper controller package, but in the meantime…

    Hope this helps!!
    Fernando

  11. Fedor GoncharovFedor Goncharov11-18-2013


    Hi Brent!
    I’ve a question about the ovs-switch. I’ve been looking(and thinking) for some nice solutions to use the controller with a set of clusters and found out that Opendaylight Controller proposes to use High Avalability Model in this case(in general distributed set of multiple controllers act as one). Looks very attractive, plus current OF specification gives some definitions on multi-homed switches(exactly the switches which may connect to multiple controllers) but the sad thing that(as I understood) support of multi-connections is left to vendors of the switches. I just wonder, does ovs support multiple connections? Maybe there are some other switches that can do that?

  12. Omer AnsariOmer Ansari01-01-2014


    Hi Brent, love what you’re doing with SDN. Huge Fan. Any chance you know when the first download for opendaylight will come out? I’ve not received any updates on the newsletter and this URL (http://www.opendaylight.org/downloads) is still stating the download will be available Q4 ’13 … Figure you may know the inside scoop..details.

    Omer

  13. Rampras VMRampras VM04-18-2014


    Thanks a lot for a detailed explanation
    I have actually installed OpendayLight components on direct physical machine
    How do I uninstall completely all the components of ODL

    Thanks,
    -Ram

  14. Rampras VMRampras VM04-18-2014


    OK I figured it myself
    Following command removes the opendaylight project:

    mvn build-helper:remove-project-artifact

    [INFO] — build-helper-maven-plugin:1.8:remove-project-artifact (default-cli) @ distribution.opendaylight —
    [INFO] /root/.m2/repository/org/opendaylight/controller/distribution.opendaylight removed.

Leave a Reply