Hi Tanvir,

Please keep the mailing list.

On 2016年06月16日 13:18, [email protected] wrote:
> Hi Iwase
>
>
> I have one more problem. I am wrting a python script for the RYU controller 
> in which the controller has to send different rules to different switches.
> Now, the problem is how to define a specific switch by using the ryu script?

If can identify a specific switch by Datapath-ID (dpid),
you can get datapath instance by dpid.
The following post might be helpful for you.
   https://sourceforge.net/p/ryu/mailman/message/34234741/

Thanks,
Iwase

> Please note that I want to use the python script (not the rest API). I did 
> not get any help regarding this issue (specifing switch) from the RYU book.
>
> It will be a great help, if you kindly show me the way.
>
> Thanks
> -Tanvir
>
>
> ________________________________________
> From: Iwase Yusuke <[email protected]>
> Sent: Thursday, 16 June 2016 10:07 AM
> To: Ul Huque, Tanvir (Data61, Eveleigh)
> Cc: [email protected]
> Subject: Re: [Ryu-devel] packet train generation from the RYU controller
>
> Hi,
>
> On 2016年06月15日 18:43, [email protected] wrote:
>> Hi Iwase
>>
>>
>> Thanks a lot for your reply :)
>> I have already checked the RYU-book. This book does not answer that question.
>> Actually my question is,
>> "How can RYU controller generate, and send packet flow from itself to a 
>> particular switch"
>
> To generate packet data, you can use "Packet Library".
> Of course, you can send the generated packet data by Packet-Out messages.
>     
> http://osrg.github.io/ryu-book/en/html/packet_lib.html#generation-of-packets-serialization
>
> Thanks,
> Iwase
>
>>
>> Please note that RYU controller can send message response to switches. But, 
>> I want to send a data packet flow, generated from the RYU controller, to the 
>> switch.
>>
>> Thanks again
>> -Tanvir
>> ________________________________________
>> From: Iwase Yusuke <[email protected]>
>> Sent: Wednesday, 15 June 2016 4:32 PM
>> To: Ul Huque, Tanvir (Data61, Eveleigh)
>> Cc: [email protected]
>> Subject: Re: [Ryu-devel] packet train generation from the RYU controller
>>
>> Hi,
>>
>> For writing your own Ryu application, please refer to Ryu-Book first.
>> The following explains the basic usage with a simple Ryu application.
>> (Including sending packets to switches and getting packets from switches)
>>      http://osrg.github.io/ryu-book/en/html/switching_hub.html
>>
>> Thanks,
>> Iwase
>>
>> On 2016年06月15日 14:03, [email protected] wrote:
>>> Hi
>>>
>>>
>>> ​
>>>
>>> I am a beginner. I am using the mininet, and RYU to develop a SDN scenario.
>>>
>>>
>>> Question: How can RYU controller generate, and send dummy packet or packet 
>>> train to a particular switch ?
>>>
>>>
>>> Thanks
>>>
>>> -Tanvir
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
>>> patterns at an interface-level. Reveals which users, apps, and protocols are
>>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>>> J-Flow, sFlow and other flows. Make informed decisions using capacity 
>>> planning
>>> reports. 
>>> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
>>>
>>>
>>>
>>> _______________________________________________
>>> Ryu-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>
>> ------------------------------------------------------------------------------
>> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
>> patterns at an interface-level. Reveals which users, apps, and protocols are
>> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>> J-Flow, sFlow and other flows. Make informed decisions using capacity 
>> planning
>> reports. 
>> http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
>> _______________________________________________
>> Ryu-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to