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


Adding flows in batches

asked 2015-07-30 10:49:31 -0700

dipayan102 gravatar image


So, I created this app in ODL-Hydrogen to install flows in Openflow switches. As per the specs of my app, it is installing about 1130 rules in 20 switches in 20-node complete topology. As is evident, this takes around 8 seconds with a single threaded version of my app and 6 seconds with a multithreaded version. I was hoping to bring down the time further to around 2-3 seconds. Is there any other neat trick that I can use to install flows quickly?

Currently, I am using sal.flowprogrammer function addflow(node,flow) to install flows. Is there some way to install a group of flows in some sort of batching mode?

Please note that I already used addFlowAsync() and it doesn't help.

Thanks in advance for your time.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-08-05 13:16:08 -0700


I do not think it is a good idea to use the sal service to add flows as ADSAL has been deprecated in Lithium and will be removed from Beryllium.

As for the threaded stuff, I am not sure how it is going to scale with MDSAL. You might be able to do it very fast by adding flows programmatically. I'm interested to see if anyone has something to add to this question.


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

Question Tools

1 follower


Asked: 2015-07-30 10:49:31 -0700

Seen: 269 times

Last updated: Aug 05 '15