Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


Changing path of traffic

asked 2016-05-10 00:42:10 -0700

peterjus gravatar image


I am pretty new to odl.

I have setup a triangle topology in Mininet using 3 switches. The link between s1 and s3 has a bandwidth of 1, while those between s1 and s2 / s2 and s3 have 100M

                      / \
                    /     \
             h1---s1 -----s3---h3

Is there any way to change the path packets take to go over s2?

Afaik l2switch has a loopremover implemented, does this mean STP is being used?

Can the pathcost be altered to do this?

Any help is greatly appreciated!

Best regards Peter

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-05-11 12:57:49 -0700

peterjus gravatar image

Thank you for the answer!!

I looked at the loopremover's code but i have no idea how to implement it.

Is there any other (perhaps more simple) way to get traffic to go over s2 instead of the direct way between s1 and s3? Is this possible to achieve this behavior with any of the stock features in ODL?

Maybe my understanding of how ODL works is wrong or insufficient...

Regards Peter

edit flag offensive delete publish link more


You can manually edit the flows in S1 switch (you might know this already) or else u can push through RESTAPI

ashvanth48 ( 2016-05-14 16:22:41 -0700 )edit

Otherwise you will have to modify the code..

ashvanth48 ( 2016-05-14 19:06:17 -0700 )edit

answered 2016-05-10 15:16:05 -0700

ashvanth48 gravatar image

Yes STP is being used to control flooding. Initially when the switches connect to the ODL, it installs flows (broadcast flows) on the switches. It is through these broadcast flows the communication takes place between the hosts in the network. There is no shortest path or any kind of routing done by any of the default modules. However in the loopremover's there is method written to calculate the shortest path. But the lines of code are commented out. You may have to do some modifications to implement that.

edit flag offensive delete publish link more
Login/Signup to Answer


Asked: 2016-05-10 00:42:10 -0700

Seen: 73 times

Last updated: May 11 '16