Re: [Ryu-devel] adding flows in parallel

2017-04-15 Thread Yiwen Shen
Hi, I have found out that I can actually improve performance by using python's multiprocessing library instead of multithreading, which gets around python's GLI problem. I also discovered a very weird problem, which is that if I try to add flows using multiprocessing.Process(target = add_flow_wor

Re: [Ryu-devel] adding flows in parallel

2017-04-10 Thread Yi Tseng
Hi, As I know, it is hard to improve performance by using multi-thread way because there is a GIL problem in python. Moreover, it might be slower if you try to using multi-thread to do simple tasks. -Yi 2017-04-10 9:34 GMT-07:00 Yiwen Shen : > Hi, > > I was wondering if there is any differenc

[Ryu-devel] adding flows in parallel

2017-04-10 Thread Yiwen Shen
Hi, I was wondering if there is any difference in the speed in which I push flows onto a switch serially or if I use multithreading in my app to push flows. Would it still end up being serial at the end or would multithreading reduce the latency? Thanks, Yiwen Shen ---

Re: [Ryu-devel] Adding flows on a HP switch

2015-03-27 Thread Finze, Robert
Hi Hakan, I was also looking to rename ports, but haven't found a solution yet. Long-Term I will probably just do a rename in my ryu app: using the original name internally and a different name for displaying. To be honest I haven't used the ryu gui/topology viewer in a while. But let me fire

Re: [Ryu-devel] Adding flows on a HP switch

2015-03-27 Thread Hakan Calim
Hi Marvin, thanks for your response. At the moment no success. I need this because it is a requirement. Your second suggestion sounds ok. I will think about it. BTW: Do you know a way to rename the port ids on hardware side? Not in Ryu. Thanks. And do you able to see a picture like this: http

Re: [Ryu-devel] Adding flows on a HP switch

2015-03-27 Thread Nicholas Bastin
On Mar 27, 2015 4:16 AM, "Finze, Robert" wrote: > I'm thinking of implementing 2 solutions: > First I don't let users install flows the switch can't process. (This is > tricky to implement because I don't yet fully grasp which flows HP > supports) and secondly after a add-flow I get all flows and

Re: [Ryu-devel] Adding flows on a HP switch

2015-03-27 Thread Finze, Robert
Hi, I've just joined the list and found this in the archive. I don't know how to respond to an older thread, so I post it here: Have you had any success yet? I'm also working with Ryu and HP switches and experienced similar behaviours. As far as I understand this, it's not an issue with Ryu bu

Re: [Ryu-devel] Adding flows on a HP switch

2015-03-05 Thread Minoru TAKAHASHI
Hi, Please don't drop the mailing list. >How does the topology viewer works? Usage is described in Ryu-documentation. http://ryu.readthedocs.org/en/latest/gui.html >Does it generate the information or only showing information from mm? No. Topology Viewer can work real environment. thanks On

Re: [Ryu-devel] Adding flows on a HP switch

2015-03-05 Thread Minoru TAKAHASHI
Hi, Hmm,,, I think that how to use app/ofctl_rest.py is correct. Because following steps succeeded at my environment(Ryu ver3.18, OpenvSwitch ver2.3.90). 1.Get flows stats. ryu (master)$ curl http://127.0.0.1:8080/stats/flow/1 {"1": [{"actions": ["OUTPUT:6"], "idle_timeout": 0, "cookie": 0, "pa

[Ryu-devel] Adding flows on a HP switch

2015-03-04 Thread Hakan Calim
Hi all, I try to add flows on my OpenFlow Switch which is created on a HP 5900 as a OpenFlow instance. I am using app/ofctl_rest.py. When I send the following command I get: curl -X GET http://10.16.0.10:8080/stats/flow/637929653646665 {"637929653646665": [{"actions": ["OUTPUT:6"], "idle_timeou

Re: [Ryu-devel] Adding flows using ryu app

2015-02-16 Thread Minoru TAKAHASHI
Hi, > Can anyone please tell me how ryu normally push flows to the switches This Ryu app may be helpful. https://github.com/osrg/ryu/blob/master/ryu/app/simple_switch_13.py#L50-L63 Details are described in Ryu-BOOK. http://osrg.github.io/ryu-book/en/html/switching_hub.html#id2 > or which ryu m

[Ryu-devel] Adding flows using ryu app

2015-02-16 Thread MD.Badruzzaman Shakib
Hello everyone, I am developing an ryu application to calculate the best path during link failure and push those best path to the switches. By using the dumper file I managed to dump the events and using networkX I calculated the best path in my application. But I could not figure out how to pus

Re: [Ryu-devel] Adding flows

2014-09-02 Thread MARIA VICTORIA ALVAREZ SIERRA
Thanks a lot! Now I can add flows perfectly. Thank you again. Best regards. De: FUJITA Tomonori Enviado: martes, 2 de septiembre de 2014 11:21 Para: MARIA VICTORIA ALVAREZ SIERRA Cc: [email protected] Asunto: Re: [Ryu-devel] Adding flows On

Re: [Ryu-devel] Adding flows

2014-09-02 Thread FUJITA Tomonori
On Tue, 2 Sep 2014 09:18:27 + MARIA VICTORIA ALVAREZ SIERRA wrote: > Ryu shows me this dpid... > > This message error that I see always it can be the problem? > > > > 404 Not Found > > > 404 Not Found > The resource could not be found. > > > > > > I think this line trie

Re: [Ryu-devel] Adding flows

2014-09-02 Thread MARIA VICTORIA ALVAREZ SIERRA
#x27;s correct? Thanks a lot! De: FUJITA Tomonori Enviado: martes, 2 de septiembre de 2014 2:44 Para: MARIA VICTORIA ALVAREZ SIERRA Cc: LUIS MIGUEL CONTRERAS MURILLO; [email protected] Asunto: Re: [Ryu-devel] Adding flows Hi, Please keep the mailng list.

Re: [Ryu-devel] Adding flows

2014-09-01 Thread FUJITA Tomonori
Hi, Please keep the mailng list. On Mon, 1 Sep 2014 09:33:29 + MARIA VICTORIA ALVAREZ SIERRA wrote: > If I put : > > curl -X POST -d '{"dpid": "274970902523461", "match": {"in_port": "1"}, > "actions": [{"type": "OUTPUT", "port": "2"}]}' > http://localhost:8080/stats/flowentry/add The f

Re: [Ryu-devel] Adding flows

2014-08-29 Thread FUJITA Tomonori
On Fri, 29 Aug 2014 11:38:23 + MARIA VICTORIA ALVAREZ SIERRA wrote: > I have problems adding flows. I add new flows as follows: > > curl -d '{"dpid": "10002c59e55e2b00", "match": {"in_port": "0001"}, > "actions": [{"type": "OUTPUT", "port": "0002"}]}' > http://localhost:8080/stats

[Ryu-devel] Adding flows

2014-08-29 Thread MARIA VICTORIA ALVAREZ SIERRA
Hi! I have problems adding flows. I add new flows as follows: curl -d '{"dpid": "10002c59e55e2b00", "match": {"in_port": "0001"}, "actions": [{"type": "OUTPUT", "port": "0002"}]}' http://localhost:8080/stats/flowentry/add I've read that the dpid must be a decimal number, but if I conve