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

0

Changing path of traffic

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

peterjus gravatar image

Hi,

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

                       s2
                      / \
                    /     \
             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
1

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

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

Comments

You can manually edit the flows in S1 switch (you might know this already) or else u can push through RESTAPI https://wiki.opendaylight.org/view/Editing_OpenDaylight_OpenFlow_Plugin:End_to_End_Flows:Example_Flows

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

Otherwise you will have to modify the code..

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

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

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 NetworkGraphImpl.java 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

Stats

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

Seen: 56 times

Last updated: May 11 '16