Ask Your Question
0

add idle_timeout/hard_timeout to flow through opendaylight / Dynamic topology

asked 2016-04-06 19:27:09 -0700

luis999 gravatar image

updated 2016-04-06 23:20:16 -0700

hi,

I am trying to create a dynamic topology with mininet and opendaylight

I have create a custom topology in mininet and have install opendaylight.

on my opendaylight, i have install 'old-dlux-all' and 'odl-l2switch-switch-ui'.


I set up the opendaylight and a topology and the opendaylight will add flow with no timout to the switches.

when i disable one of the path in the topology, the opendaylight will not automatically direct the packets to take another route.

i delete the flow-table in one of the switch, after a few minute later opendaylight will add flows to the switch. That allow me to ping all my switchs




My thought on dynamic topology with opendaylight

opendaylight will not update/add flow to the switch(flow-table), when there are flow(use/unused) in the switch.

In order to let opendaylight update/add flow to the switch(flow-table), i can set a timeout to the flow. so when the flow is not in use, the switch will release unused flow and add new flow to the switch(flow-table)




My question are

1) Is my thought for dynamic topology with opendaylight right?

2) How do i configure the opendaylight to add flow with timeout,when i set up a topology

3) Is there a way to configure/enable algorithm/dynamic topology in opendaylight?


many thanks in advance. :)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-04-11 05:40:59 -0700

karthik330 gravatar image

updated 2016-04-19 04:21:16 -0700

Hi @luis999 ,

(II)Setting timeOut when you launch topology (Default Flow)

You can set the idle/Hard time out by modifying the L2switch Project. l2switch project is the main for dealing with devices(ex Add Flow etc). Gitclone L2switch project (Version should be matched with your ODL), search for setFlowIdleTimeout() /hardtimeout functions.Edit it and set the time out value whichever you want(60 means 1 minute). 1st built L2switch project and ODL as well . Now you can use any topology in mininet ;Once it is connected with ODL ,It will add the default flow with the timeout what you specified. You dont need to explicitly add it by restconf/dlux.

Edited : You dont need to search everywhere. Just check the config.xml of L2switch's arphandler,loopremover,l2switchmain etc. You can see the <idletimeout>/<hardtimeout> tag. Just change the value here whatever you want. Now built it and try.

Thanks, -Karthik

edit flag offensive delete publish link more
0

answered 2016-04-08 09:33:15 -0700

azhark gravatar image

You can use free version of Hyperglance (runs on top of ODL). You can set all parameters including hard time out etc. easily this way.

edit flag offensive delete publish link more

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
1 follower

Stats

Asked: 2016-04-06 19:27:09 -0700

Seen: 163 times

Last updated: Apr 19 '16