On Thu, 26 Apr 2018 12:34:47 +0900,
knet solutions wrote:
> 
> [1  <multipart/alternative (7bit)>]
> [1.1  <text/plain; UTF-8 (7bit)>]
> Hi  IWAMOTO Toshihiro,
> 
> Thanks for the pointers.
> 
> How this event gets triggered?.  so its like as long as Packet IN received
> (FIFO model), it triggers the event?
> 
> 
> Just taking a simple scenario:
> 
> I have 100 switches connected.
> 
> and All 100 switches are sending the PACKET IN messages to the controller
> on some traffic patterns.
> 
> How this currently handled by the RYU?

Datapath._recv_loop generates EventOFPPacketIn and calls
send_event_to_observers. The events are queued into OFPHandler.events
then dispatched by OFPHandler._event_loop.
Also check out the ryu.controller.handler.set_ev_cls code.

The event code is a bit complicated and good documentation would be
great to have, IMO.

> On Thu, Apr 26, 2018 at 7:39 AM, IWAMOTO Toshihiro <iwam...@valinux.co.jp>
> wrote:
> 
> > On Wed, 25 Apr 2018 14:44:18 +0900,
> > knet solutions wrote:
> > > Just want to know more about, how the "packet in" messages are handled by
> > > RYU controller.
> > > I mean, code / file name. And some docs to understand that.
> >
> > ryu/app/simple_switch*.py implement packet-in handlers.
> >
> > EventOFPPacketIn is dynamically defined in
> > ryu/controller/ofp_event.py, and documented in doc/source/ryu_app_api.rst.
> >

--
IWAMOTO Toshihiro

------------------------------------------------------------------------------
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