Re: [Ryu-devel] [ryu-devel] adding flow by matching ipv4 destination

2015-03-09 Thread Satoshi KOBAYASHI
2015-03-09 18:47 GMT+09:00 MD.Badruzzaman Shakib : > Hello everyone > > I am new in python. I wanted to develop a ryu-app that will calculate > shortest path and push those flows to the switch. While doing this i faced > the following problem- > > I wanted to match the ipv4 destination network to

[Ryu-devel] how to deploy routing algorithm in the controller

2015-03-09 Thread Gautam Pathak
Hi, I have designed a routing algorithm. I want to use it in ryu sdn controller. Can you please tell me steps, how to deploy that algorithm in the controller? thanks, goutam -- Dive into the World of Parallel Programming

Re: [Ryu-devel] Ryu threading

2015-03-09 Thread Satoshi KOBAYASHI
Hi Eftikhar, Ryu is single-thread model using kernel-thread in "OS-level". However, it is multi-thread using userland-thread (a.k.a coroutine, green-thread) actually. (Ryu's userland-thread is "greenlet" library) And Ryu's application works in event driven using "eventlet" library. Therefore, Ryu

Re: [Ryu-devel] Debug ryu app code

2015-03-09 Thread Satoshi KOBAYASHI
Hi, You can import and execute the following in Eclipse. (It needs Ryu 3.19) --8<--8<-- #!/usr/bin/env python # -*- coding: utf-8 -*- import sys from ryu.cmd import manager def main(): sys.argv.append('your.application.module') sys.argv.append('--verbose')

Re: [Ryu-devel] Ryu threading

2015-03-09 Thread FUJITA Tomonori
On Mon, 9 Mar 2015 22:12:40 + Eftikhar wrote: > when I create a topology with multiple switches, I need a different thread of > Ryu to handle this switch, separately. > from what I read, Ryu is a Single-threaded controller, and threading is a > available for application tasks. Ryu uses Py

Re: [Ryu-devel] Ryu threading

2015-03-09 Thread Eftikhar
when I create a topology with multiple switches, I need a different thread of Ryu to handle this switch, separately. from what I read, Ryu is a Single-threaded controller, and threading is a available for application tasks. I hope you can get my point. Regards, ___

Re: [Ryu-devel] adding flow without flooding using python code

2015-03-09 Thread FUJITA Tomonori
On Mon, 9 Mar 2015 20:31:05 + (UTC) "MD.Badruzzaman Shakib" wrote: > hello ryuian, > I need some help to add flow to the switches using ryu app but without > flooding.  > > I think it is possible to match the destination 192.168.1.1/24 in a flow by > using Curl as follow- > curl -X POST -

Re: [Ryu-devel] Ryu threading

2015-03-09 Thread FUJITA Tomonori
On Mon, 9 Mar 2015 21:24:33 + Eftikhar wrote: > I am Looking for a way to create instances of RYU controller, each instance > (thread) handle a separate switch. > Is there any capability to achieve this ? It depends on what your 'thread' means. Ryu creates multiple "Python" threads per swit

[Ryu-devel] Ryu threading

2015-03-09 Thread Eftikhar
Dear Mr: I am Looking for a way to create instances of RYU controller, each instance (thread) handle a separate switch. Is there any capability to achieve this ? Thanks a lot, -- Dive into the World of Parallel Programmin

Re: [Ryu-devel] Ryu apps

2015-03-09 Thread FUJITA Tomonori
On Tue, 03 Mar 2015 10:57:32 + "Susana Ballester Macías" wrote: > Hi! I installed Ryu 3.19 in Ubuntu Server 14.04. My question is: Can I > startup at the same time all the apps Ryu supports like firewall, vlan, > router, etc?? My purpose is to simulate a network with all those functions in

Re: [Ryu-devel] Usage of experimenter match fields

2015-03-09 Thread FUJITA Tomonori
On Fri, 6 Mar 2015 04:21:48 + Ramesh Devarajan wrote: > I am bit confused on the usage of experimenter match fields in Ryu. > Lets take the example of 'tcp_flags'. > Now how do I use this in my match field. > My test switch supports plain openflow version 1.3, without any extensions. > How do

[Ryu-devel] adding flow without flooding using python code

2015-03-09 Thread MD.Badruzzaman Shakib
hello ryuian, I need some help to add flow to the switches using ryu app but without flooding.  I think it is possible to match the destination 192.168.1.1/24 in a flow by using Curl as follow- curl -X POST -d '{     "dpid": 3,     "cookie": 1,     "cookie_mask": 1,     "table_id": 0,     "idle

[Ryu-devel] [ryu-devel] adding flow by matching ipv4 destination

2015-03-09 Thread MD.Badruzzaman Shakib
Hello everyone I am new in python. I wanted to develop a ryu-app that will calculate shortest path and push those flows to the switch. While doing this i faced the following problem- I wanted to match the ipv4 destination network to add flows. For that i made the packet_in_handler as follows-(fr

Re: [Ryu-devel] Debug ryu app code

2015-03-09 Thread Yi Tseng
Hi, I never use eclipse to develop python before. I think if you want to debug ryu with eclipse, you should add ryu code to your eclipse project and set breakpoint in ryu code. Takeshi 2015-03-09 10:00 GMT+08:00 ビバ9╆ : > > Thank you very much, I'll try this method. But if we can debug the