Hello Isaku,

A capture file is attached to the mail.
The IP 10.0.2.15 is a virtual machine running mininet, and IP 10.109.242.118
is the host running ryu.
I suspect that it's the first packetIn packets cause ryu to crash as you
can see the FIN packets are only a few milliseconds after those packetIn
packets.


2013/3/18 Isaku Yamahata <[email protected]>

> On Mon, Mar 18, 2013 at 09:59:46AM +0800, Can Zhang wrote:
> > Hello,
>
> Hello.
>
>
> > I encounter the errors below quite often recently:
> > ----
> > Traceback (most recent call last):
> >   File "build/bdist.macosx-10.8-intel/egg/gevent/greenlet.py", line 390,
> in run
> >     result = self._run(*self.args, **self.kwargs)
> >   File
> "/Library/Python/2.7/site-packages/ryu-1.7-py2.7.egg/ryu/controller/
> > controller.py", line 307, in datapath_connection_factory
> >     datapath.serve()
> >   File
> "/Library/Python/2.7/site-packages/ryu-1.7-py2.7.egg/ryu/controller/
> > controller.py", line 227, in serve
> >     self._recv_loop()
> >   File
> "/Library/Python/2.7/site-packages/ryu-1.7-py2.7.egg/ryu/controller/
> > controller.py", line 97, in deactivate
> >     method(self)
> >   File
> "/Library/Python/2.7/site-packages/ryu-1.7-py2.7.egg/ryu/controller/
> > controller.py", line 170, in _recv_loop
> >     version, msg_type, msg_len, xid, buf)
> >   File "/Library/Python/2.7/site-packages/ryu-1.7-py2.7.egg/ryu/ofproto/
> > ofproto_parser.py", line 50, in msg
> >     return msg_parser(datapath, version, msg_type, msg_len, xid, buf)
> >   File "/Library/Python/2.7/site-packages/ryu-1.7-py2.7.egg/ryu/ofproto/
> > ofproto_v1_0_parser.py", line 52, in msg_parser
> >     return parser(datapath, version, msg_type, msg_len, xid, buf)
> >   File "/Library/Python/2.7/site-packages/ryu-1.7-py2.7.egg/ryu/ofproto/
> > ofproto_v1_0_parser.py", line 1564, in parser
> >     msg.buf, ofproto_v1_0.OFP_HEADER_SIZE)
> > error: unpack_from requires a buffer of at least 12 bytes
> > <Greenlet at 0x10d9f1d70: datapath_connection_factory(<socket at
> 0x10dd80fd0
> > fileno=8 sock=10.109.242.11, ('10.109.242.118', 50694))> failed with
> error
> >
> > ----
> >
> > For one of the triggers you may refer to
> http://sourceforge.net/mailarchive/
> > forum.php?thread_name=
> > 20130314.084438.1568838937885763874.fujita.tomonori%40lab.ntt.co.jp
> &forum_name=
> > ryu-devel
> >
> > It seems that if an app I write fails to meet some unknown standard, the
> switch
> > will send some packets that ryu cannot handle properly, and then ryu
> crashes.
> > Maybe this is a bug of ryu?
>
> You're right. Ryu should handle such OF packets more gracefully. Not crash.
> (And log it with understandable message?)
> Anyway, can you post (a part of) your app to reproduce it easily?
> Or can you post the packet capture that caused the crash?
>
>
> > FYI, I'm using ryu with mininet(open vSwitch 1.9.0)
>
> If you'd like to use IPv6 support, OF v1.2+ needs to be enabled.
> e.g.
> ovs-vsctl set bridge s1 protocols=OpenFlow10,OpenFlow12,OpenFlow13
> Since mininet is unaware of OF version, it should be done manually.
>
> thanks,
>
> >
> >
> > Best regards,
> > Can Zhang
> >
> >
> >
> >
>
> >
> ------------------------------------------------------------------------------
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://p.sf.net/sfu/appdyn_d2d_mar
> > _______________________________________________
> > Ryu-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
> --
> yamahata
>



-- 
Best regards,
Can Zhang

Attachment: crash
Description: Binary data

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to