Supported versions of MiniNet for OpenFlow 1.0 and 1.3

by RuDr on ‎05-08-2014 12:56 PM

Question

What are the supported versions and configuration requirements for OpenFlow and MiniNet in an SDN Controller environment? 

Answer

The following will describe OpenFlow connectivity between mininet (running on Ubuntu) and the HP SDN Controller.

  • Mininet version 1.9 only supports OpenFlow 1.0
  • Starting with version 1.10, it supports OpenFlow 1.3

Versions can be checked as follows:

$mn –version

2.1.0

$ovs-vsctl –version

ovs-vsctl (Open vSwitch) 2.0.1

Compiled Feb 23 2014 14:42:32

 

If the mininet version being used is before 1.10, it should be removed and the latest should be installed. 

In order to remove all versions of mininet and OVS, do the following:

$sudo rm -rf /usr/local/bin/mn /usr/local/bin/mnexec /usr/local/lib/python*/*/*mininet*

$sudo rm –rf /usr/local/bin/ovs-* /usr/local/sbin/ovs-*

 

Then install Mininet by entering only one of the following commands:

Mininet 2.1.0 on Ubuntu 13.10: $sudo apt-get install mininet

Mininet 2.0.0 on Ubuntu 13.04: $sudo apt-get install mininet

Mininet 2.0.0 on Ubuntu 12.10: $sudo apt-get install mininet/quantal-backports

Mininet 2.0.0 on Ubuntu 12.04: $sudo apt-get install mininet/precise-backports

 

[This will also install the latest OVS (2.0.1) ]

 

mininet supports the following format (as an example):

$sudo mn --controller remote,ip=15.234.166.46 --switch ovsk,protocols=OpenFlow13

This is misleading because mininet will perform ovsk (Open Virtual Switch Kernel) by default.

And: the “protocols=OpenFlow13” will not have any effect.

 

Immediately after the mininet command is entered, another cli session can list details about the switch:

$sudo ovs-vsctl list bridge s1 | grep protocols

(you can also enter in a different switch name if you started mininet with multiple switches)

The following should appear:

protocols           : []

 

This shows that the protocols can be modified, and since there are no protocols listed, it is using Open Flow 1.0.    

The switch will appear in the SDN Controller OpenFlow Monitor as OpenFlow version 1.0.

Open Flow 1.3 must be added to the list of protocols.

 

The following are examples of what can be entered to achieve this:

  • sudo ovs-vsctl set bridge s1 protocols=OpenFlow13
  • sudo ovs-vsctl set bridge s1 protocols=”OpenFlow13”
  • sudo ovs-vsctl set bridge s1 protocols=OpenFlow10,OpenFlow13
  • sudo ovs-vsctl set bridge s1 protocols=”OpenFlow10,OpenFlow13”

The protocols parameter is case-sensitive.  It does not matter if the double quotes surround the list or not.

 

It is easiest to simply enter the following:

sudo ovs-vsctl set bridge s1 protocols=OpenFlow13

 

Once the ovs-vsctl command is entered, check again:

sudo ovs-vsctl list bridge s1 | grep protocols

protocols           : ["OpenFlow13"]

By entering the ovs-vsctl command to set the switch to OpenFlow13, it causes the switch to close its connection with the Controller and establish a new one.

 

Now the switch should appear in the SDN Controller OpenFlow Monitor as OpenFlow version 1.3.

                                                                                                                                                

Search
Showing results for 
Search instead for 
Do you mean 
Contributors
HP Blog

HP Networking

Featured


Follow Us
Twitter Stream
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.