Ask Your Question
0

Does the "controller" project support OpenFlow 1.3?

asked 2015-02-03 03:39:24 -0700

yijung0325 gravatar image

Dear ODL experts,

I try to build an ODL app on Helium and the environment is based on controller project. However, my OVS can not connect to the ODL controller while its protocol is set to OpenFlow 1.3. And the log shows that my OVS fails to create a connection to the ODL controller and thus keep trying.

> ovs-vsctl add-br s1
> ovs-vsctl set bridge s1 protocols=OpenFlow13
> ovs-vsctl set-controller ovs-br tcp:127.0.0.1
> ovs-vsctl show
084b03f8-2f6a-4424-843d-857bac0f0324
Bridge "s1"
    Controller "tcp:127.0.0.1"
    fail_mode: secure
    Port "s1"
        Interface "s1"
            type: internal
ovs_version: "2.3.1"

2015-02-03 18:27:59.933 CST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller - Switch:127.0.0.1:55480 is connected to the Controller
2015-02-03 18:28:00.025 CST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller - Switch:127.0.0.1:55481 is connected to the Controller
2015-02-03 18:28:02.024 CST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller - Switch:127.0.0.1:55482 is connected to the Controller
2015-02-03 18:28:06.025 CST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller - Switch:127.0.0.1:55483 is connected to the Controller
2015-02-03 18:28:14.027 CST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller - Switch:127.0.0.1:55484 is connected to the Controller
2015-02-03 18:28:22.025 CST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller - Switch:127.0.0.1:55485 is connected to the Controller

However, while I run the pre-built Helium SR1.1 version and install odl-l2switch and openflowplugin features, everything goes very well. Moreover, when my OVS is set to OpenFlow 1.0, everything is fine, too.

==========

My environment is based on the Helium controller project, then checked out to the latest version, SR1.1, and then compiled to run. Besides, I run the base edition (i.e., Equinox) because I do not know how to install my bundle on Karaf.

> git clone https://git.opendaylight.org/gerrit/p/controller.git
> git checkout release/helium-sr1.1
> cd controller
> mvn clean install -DskipTests
> ./opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/run.sh

When I add an argument '-of13', an error shows: "unknown option -of13"

> ../distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/run.sh -of13
Unknown option -of13
Use -help for more information.

If I miss any helpful information (e.g., environment settings) that could help you experts debug, please kindly let me know. I am an ODL newer who has to learn many things from you. Please teach me how to debug, configure, or even modify the source code of a bundle (openflowplugin?). I really really appreciate. Thank you very much.

Sincerely,

Yi-Jung

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-02-03 04:50:46 -0700

Vishal Thapar gravatar image

updated 2015-02-03 22:27:40 -0700

With Helium you should't be using run.sh but karaf. I couldn't get ODL to run off run.sh but works with karaf. If you want to get your bundle working with karaf, this link should help you out:

https://wiki.opendaylight.org/view/Karaf:StepbyStep_Guide

UPDATE: Once you have karaf working, make sure following is uncommented in etc/custom.properties

ovsdb.of.version=1.3

This should enable OpenFlow 1.3

edit flag offensive delete publish link more

Comments

Thank you Vishal, but even though I do not install my app on the Karaf of the "controller" project, my OVS still can not connect to the ODL controller (neither OpenFlow 1.0 nor OpenFlow 1.3). Could you help me again? If you need me to try something, please let me know. Thanks again.

yijung0325 ( 2015-02-03 20:10:01 -0700 )edit

Sorry, forgot to add information to actually enable 1.3. Updated the original answer, this should work.

Vishal Thapar ( 2015-02-03 22:27:27 -0700 )edit

Thanks Vishal. It still doesn't work though I did uncomment it. What other information should I let you know? BTW, I found that (1) the Karaf of the controller project doesn't listen on port 6633 nor 6653, and (2) the default "ovsdb.of.version=1.3" is uncommented in distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/configuration/congif.ini

yijung0325 ( 2015-02-04 00:26:38 -0700 )edit

What are the features have you installed? Since I use ODL+Openstack I do a feature:install odl-ovsdb-openstack and it takes care of everything for me. For starters you could try with that.

Vishal Thapar ( 2015-02-04 00:31:18 -0700 )edit

Thanks Vishal. I did not install any feature on the "controller" project, and I do not find the odl-ovsdb-openstack while I enter "feature:list | grep ovsdb". Do I miss anything? Please kindly let me know. Thank you again!

yijung0325 ( 2015-02-04 00:42:25 -0700 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Follow
2 followers

Stats

Asked: 2015-02-03 03:39:24 -0700

Seen: 1,052 times

Last updated: Feb 03 '15