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 <ys2...@columbia.edu>:

> 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
> then I use
>
> p1 = multiprocessing.Process(target = add_flow, args = ( ... ))
> p2 = multiprocessing.Process(target = add_flow, args = ( ... ))
> p1.start()
> p2.start()
>
> I used tcpdump and wireshark and both show that openflow messages were
> sent. I have attached the tcpdump output and the wireshark capture. You can
> see that there are some messages around the middle that are Openflow
> messages.
>
> 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 the flows do get added but because of GIL, it
> isn't truly happening in parallel).
>
> Thank you,
> Yiwen
>
>
> On Sun, Apr 23, 2017 at 8:17 PM, Yi Tseng <a86487...@gmail.com> wrote:
>
>> Also, I am not sure if you processes did send OpenFlow message correctly.
>>
>> Can you verify OpenFlow messages sent by controller by using tcpdump or
>> Wireshark?
>>
>> --
>> Yi
>>
>> 2017-04-23 17:04 GMT-07:00 Yi Tseng <a86487...@gmail.com>:
>>
>>> Hi,
>>>
>>> *Please don't drop mailing list.*
>>>
>>> Is there any warning/error log? (run Ryu with --verbose)
>>>
>>> How did you share OpenFlow sessions between processes?
>>>
>>> -Yi
>>>
>>> 2017-04-23 16:53 GMT-07:00 Yiwen Shen <ys2...@columbia.edu>:
>>>
>>>> Hi,
>>>>
>>>> I have a function that takes arguments like datapath, inport, outport,
>>>> IP address, priority, and adds that flow onto that datapath. Then I create
>>>> multiple processes and each uses this function to add different flows.
>>>>
>>>> If I use the function normally, then the flows will get added, but if I
>>>> use multiprocessing with this function, the flows do not get added.
>>>>
>>>> Thank you,
>>>> Yiwen Shen
>>>>
>>>>
>>>>
>>>> On Apr 23, 2017 3:59 AM, "Yi Tseng" <a86487...@gmail.com> wrote:
>>>>
>>>> Hi,
>>>>
>>>> How do you create multiple process? You create multiple Ryu process?
>>>>
>>>> If you create multiple Ryu process, you need to connect switch to all
>>>> process.
>>>>
>>>> Or you need to share the connection between processes and switches
>>>>
>>>>
>>>> -Yi
>>>>
>>>> 2017-04-22 12:19 GMT-07:00 Yiwen Shen <ys2...@columbia.edu>:
>>>>
>>>>> Hi,
>>>>>
>>>>> In order to add flows in parallel from a controller I'm using python's
>>>>> multiprocessing library to create separate processes, each to add flows.
>>>>> However I've observed that in many situations flows don't get properly
>>>>> added. Can you please help?
>>>>>
>>>>> Thank you,
>>>>> Yiwen Shen
>>>>>
>>>>> ------------------------------------------------------------
>>>>> ------------------
>>>>> Check out the vibrant tech community on one of the world's most
>>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>>> _______________________________________________
>>>>> Ryu-devel mailing list
>>>>> Ryu-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Yi Tseng (a.k.a Takeshi)
>>>> Taiwan National Chiao Tung University
>>>> Department of Computer Science
>>>> W2CNLab
>>>>
>>>> https://takeshi.tw
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Yi Tseng (a.k.a Takeshi)
>>> Taiwan National Chiao Tung University
>>> Department of Computer Science
>>> W2CNLab
>>>
>>> https://takeshi.tw
>>>
>>
>>
>>
>> --
>> Yi Tseng (a.k.a Takeshi)
>> Taiwan National Chiao Tung University
>> Department of Computer Science
>> W2CNLab
>>
>> https://takeshi.tw
>>
>
>
>
> --
> *Yiwen Shen*
> PhD Candidate at Lightwave Research Laboratory
> <http://lightwave.ee.columbia.edu/>
>



-- 
Yi Tseng (a.k.a Takeshi)
Taiwan National Chiao Tung University
Department of Computer Science
W2CNLab

https://takeshi.tw
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to