Re: [Ryu-devel] How to know the number of flows

2018-03-03 Thread knet solutions
Hi Iwase, I just tested this, It works neatly. Thanks Suresh On Thu, Mar 1, 2018 at 10:32 AM, Iwase Yusuke wrote: > Hi, > > Excuse me for jumping in. > > How about sending OFPAggregateStatsRequest in synchronous way? > You can use "ryu.app.ofctl.api" to send an OpenFlow message synchronously.

Re: [Ryu-devel] How to know the number of flows

2018-02-28 Thread Iwase Yusuke
Hi, Excuse me for jumping in. How about sending OFPAggregateStatsRequest in synchronous way? You can use "ryu.app.ofctl.api" to send an OpenFlow message synchronously. http://ryu.readthedocs.io/en/latest/app/ofctl.html $ git diff diff --git a/ryu/app/simple_switch_13.py b/ryu/app/simple_switch

Re: [Ryu-devel] How to know the number of flows

2018-02-28 Thread knet solutions
The counter has to be incremented when you add the flows add_flows(not packet-in) and to be decremented flow-removed event message. On Wed, Feb 28, 2018 at 7:39 PM, ‏Eman ‏ Bany salameh < banysalam...@yahoo.com> wrote: > Hi all, > > Thanks for your replays. > > Yes, I decrement the counter when

Re: [Ryu-devel] How to know the number of flows

2018-02-28 Thread ‏Eman ‏ Bany salameh via Ryu-devel
Hi all, Thanks for your replays. Yes, I decrement the counter when the flow removed by idle_timeout and used flow-removed_handler to know this. But the problem in this case is the packet-in generated more than once for the same packet but the flow is added once and this increments the counter

Re: [Ryu-devel] How to know the number of flows

2018-02-28 Thread Vasu Dasari
You could look for flow-removed messages from switch and use that to adjust flows installed in your app accordingly. In OpenFlow version >= 1.4 you could use flow monitoring as well. This way you can keep a check on flows in the switch. 7.3.5.19 Flow Monitoring https://www.opennetworking.org/

Re: [Ryu-devel] How to know the number of flows

2018-02-28 Thread knet solutions
If we maintain the count in SDN controller, There is a possibility of mismatch in the count between the switch and controller . Each flow has a timeout(idle and hard), it will be flushed out after the timeout period. On Wed, Feb 28, 2018 at 1:59 PM, Moh'd Reza Abbasi wrote: > I don't think OpenF

Re: [Ryu-devel] How to know the number of flows

2018-02-28 Thread Moh'd Reza Abbasi
I don't think OpenFlow v.1.3 has such a feature, but how about adding a counter in your Ryu app to keep track of added/removed rules... On Wed, Feb 28, 2018 at 11:53 AM, ‏Eman ‏ Bany salameh via Ryu-devel < ryu-devel@lists.sourceforge.net> wrote: > Hi, > > I need to know the number of flows insta