Re: [Ryu-devel] Using multiprocessing to modify flows

2017-04-24 Thread Yiwen Shen
I am testing the controller to do parallel flow addition/deletions, in order to see how fast the controller can add or delete a large number of flows. Because in a large network, you may need to add thousands of flows and it needs to be done in parallel so that the network can be scalable. You may

Re: [Ryu-devel] Controlling OVS from Ryu controller

2017-04-24 Thread Fujimoto Satoshi
Hi, Deni You can make a connection by instantiating OVSBridge: ovs_bridge = OVSBridge(None, datapath.id, 'tcp:127.0.0.1:6632', timeout=1) And by the following code, for example, you can delete a port: ovs_bridge = OVSBridge(None, datapath.id, 'tcp:127.0.0.1:6632', timeout=1)

Re: [Ryu-devel] Using multiprocessing to modify flows

2017-04-24 Thread William Fisher
On Mon, Apr 24, 2017 at 3:46 PM, Yiwen Shen wrote: > > If I just do add_flow(..) by itself the flows will get added properly onto the switch, but if I do multiprocessing it doesn't appear. However, multiprocessing is the only way I know to do this stuff in parallel. (I've tried multithreading, and

Re: [Ryu-devel] Using multiprocessing to modify flows

2017-04-24 Thread Yi Tseng
Hi, I didn't see any *FLOW_ADD* message, is this correct pcap file? -- Yi 2017-04-24 15:46 GMT-07:00 Yiwen Shen : > Hi, > > I ran it with --verbose and nothing out of the ordinary appeared. > > I'm not sure what you mean by sharing OpenFlow sessions between processes. > I'm just attaching the f

Re: [Ryu-devel] Using multiprocessing to modify flows

2017-04-24 Thread Yiwen Shen
Hi, I ran it with --verbose and nothing out of the ordinary appeared. I'm not sure what you mean by sharing OpenFlow sessions between processes. I'm just attaching the function that adds flows into different processes, like I have a function called add_flow(in_port, out_port, ip_dst, ...), and th

Re: [Ryu-devel] How to add flows and delete while station is moving from one Access Point to other

2017-04-24 Thread Yi Tseng
Hi *Please don't drop mailing list* If flows had been removed, the controller should received PacketIn message again, the simple switch application should install new flow into the switch. -- Yi 2017-04-24 11:03 GMT-07:00 varun hrithik : > yeah, removing flows is fine, i want t know how those

Re: [Ryu-devel] How to add flows and delete while station is moving from one Access Point to other

2017-04-24 Thread Yi Tseng
Hi, I think the easiest way is to set idle timeout for every flow, if any host move to another device(AP), the original flow will be removed. -- Yi 2017-04-24 9:00 GMT-07:00 varun hrithik : > I have created a topolgy which has 5 stations moving around 5 access > points using mininet-wifi (tool)

[Ryu-devel] How to add flows and delete while station is moving from one Access Point to other

2017-04-24 Thread varun hrithik
I have created a topolgy which has 5 stations moving around 5 access points using mininet-wifi (tool) extension of mininet which allows GUI format of wireless network simualtion. Now im trying to handle mobility of those moving stations using ryu controller example code (simple_switch_13.py), NOW

Re: [Ryu-devel] Multiple controller implementation recommendations.

2017-04-24 Thread Yi Tseng
Hi, I think there is no common way to implement it. You can use something like zookeeper to hold distributed state. And use message queue to communicate between controllers. By the way, I think FlowVisor is not a framework/tool for that purpose. -- Yi 2017-04-23 21:26 GMT-07:00 陳家錡 : > He

Re: [Ryu-devel] Regarding OpenFlow 1.3 RYU Cbench Tool

2017-04-24 Thread raghu rathode
Dear Iwase, I would like to know how to run the Cbench.py file along with Ryu Application. whether I need to install Cbench tool (OFlops) before running it. ryu-manager ryuapplication.py cbench_13.py ? Thanks Hari Raghavendar Rao On 24 April 2017 at 03:59, Iwase Yusuke wrote: > Hi, > > Plea

[Ryu-devel] Regarding OpenFlow 1.3 RYU Cbench Tool

2017-04-24 Thread raghu rathode
Dear Ryu Team, I want to test my ryu application communication overhead in terms of control traffic to/from the controller to install rules in the switches i.e HP 5900 OpenFlow1.3. I searched over the internet, i find your email conversation suggestion regarding "KulCloud Cbench tool" for OpenFlow

Re: [Ryu-devel] Controlling OVS from Ryu controller

2017-04-24 Thread Deni Toruan
Hi Satoshi san, thank you for your kind reply. On Mon, Apr 24, 2017 at 5:07 AM, Fujimoto Satoshi < [email protected]> wrote: > Hi, Deni > > The problem may be caused by that you use "ovsdb_event" and "ovs_vsctl" at > the same time. > If you don't need to monitor the status of OVS, you