Hi Iwase Yusuke,

Thank you for the response.

Working on:
    RYU version:3.27
    Ovs version: 27.2
    OpenFlow version:1.5.

I have tried to get the flow stats using OFPAggregateStatsRequest API and i
see the following error:

Encounter an error during parsing OpenFlow packet from switch.This implies
switch sending a malformed OpenFlow packet.version 0x06 msg_type 19 msg_len
40 xid 2049228120 buf 0x06 0x13 0x00 0x28 0x7a 0x24 0xbd 0x58 0x00 0x02
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x02 0x00 0x00 0x00 0x00
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/ryu/ofproto/ofproto_parser.py",
line 69, in msg
    return msg_parser(datapath, version, msg_type, msg_len, xid, buf)
  File
"/usr/lib/python2.7/site-packages/ryu/ofproto/ofproto_v1_5_parser.py", line
59, in msg_parser
    return parser(datapath, version, msg_type, msg_len, xid, buf)
  File
"/usr/lib/python2.7/site-packages/ryu/ofproto/ofproto_v1_5_parser.py", line
1895, in parser
    raise exception.OFPMalformedMessage()
OFPMalformedMessage: malformed message
EVENT ofp_event->Controller EventOFPPortStatsReply
Fetching next instruction to send to CP

i see the OVS sending the stats :

2018-02-22T05:06:10.923Z|05694|vconn|DBG|tcp:127.0.0.1:6633: received:
OFPST_AGGREGATE request (OF1.5) (xid=0x6ba32021): table=1 in_port=193
2018-02-22T05:06:10.923Z|05695|vconn|DBG|tcp:127.0.0.1:6633: sent
(Success): OFPST_AGGREGATE reply (OF1.5) (xid=0x6ba32021): packet_count=0
byte_count=0 flow_count=2

is there any fix to get the stats for each flow on openflow version1.5

Tried with openflow version 1.3 and i see no issues.

Regards,
Shivani Dommeti.





On Wed, Feb 21, 2018 at 7:01 AM, Iwase Yusuke <iwase.yusu...@gmail.com>
wrote:

> Hi,
>
> I'm using the newer version of OVS though, I guess OVS does not supports
> the
> OpenFlow 1.5 structured FlowStats message.
> the FlowStats message was restructured in the OpenFlow 1.5 according to
> introduction of the FlowDesc message, but OVS does not implement the new
> structure of the FlowStats (looks like up to OF version 1.4 or earlier).
> https://github.com/openvswitch/ovs/blob/bd916d13dbb845746983
> a6780da772154df647ba/lib/ofp-util.c#L2757-L2799
>
> Also, the FlowDesc message does not seem to be supported, implementation
> not
> found and the Extensible Flow Entry Statistics(EXT-334) is still on TODOs
> which
> required to implement the FlowDesc message.
> https://github.com/openvswitch/ovs/blob/master/Documentation
> /topics/openflow.rst#openflow-15-only
>
> OVS seems to support the OpenFlow 1.5 partially...
>
> Thanks,
> Iwase
>
> On 2018年02月20日 18:27, shivani dommeti wrote:
>
>> Hi,
>>
>> Can  you please let me know if there is any Fix for the below stated
>> issue which i see when i try to retrieve the Flow statistics using
>> OFPFlowStatsRequest API with OpenFlow version1.5.
>>
>> Since this is blocking some features, it would be very helpful if there
>> is any fix for the following. Will be looking forward for your response.
>>
>> Thanks,
>> Shivani Dommeti.
>>
>>
>>
>> On Thu, Feb 15, 2018 at 5:03 PM, shivani dommeti <
>> shivani.domm...@gmail.com <mailto:shivani.domm...@gmail.com>> wrote:
>>
>>     Hi,
>>
>>     Working on:
>>     RYU version:3.27
>>     Ovs version: 27.2
>>     OpenFlow version:1.5.
>>
>>
>>     I  tried getting the statistics of each flow using the following API:
>>       match = ofp_parser .OFPMatch(in_port=1)
>>       req = ofp_parser .OFPFlowStatsRequest(datapath,0,1,ofp.OFPP_ANY
>>     ,ofp.OFPG_ANY,0,0,match)
>>
>>     And i see the following error:
>>
>>     EVENT ofp_event->Controller EventOFPErrorMsg
>>     EVENT ofp_event->ofctl_service EventOFPErrorMsg
>>     EventOFPErrorMsg received.
>>     version=0x6, msg_type=0x1, msg_len=0x4c, xid=0x6659cf
>>       `-- msg_type: OFPT_ERROR(1)
>>     OFPErrorMsg(type=0x1, code=0x2,
>>     data=b'\x06\x12\x00\x40\x00\x66\x59\xcf\x00\x11\
>>
>>  
>> x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\x00\x00\
>>
>>                      x00\x00\x00\x00\x00\x00\x00\x
>> 00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\
>>
>>  x00\x0c\x80\x00\x00\x04\x00\x00\x00\xc1\x00\x00\x00\x00\x06
>> \x13\x10\xb0\x00\x66\x59\xd0')
>>       |-- type: OFPET_BAD_REQUEST(1)
>>       |-- code: OFPBRC_BAD_MULTIPART(2)
>>       `-- data: version=0x6, msg_type=0x12, msg_len=0x40, xid=0x6659cf
>>           `-- msg_type: OFPT_MULTIPART_REQUEST(18)
>>     EVENT ofp_event->Controller EventOFPPortStatsReply
>>     OFPErrorMsg received: type=0x01 code=0x02 message=0x06 0x12 0x00 0x40
>> 0x00
>>     0x660x59 0xcf 0x00 0x11 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x00
>> 0x00
>>     0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x00 0x00 0x00 0x00 0x00 0x00
>> 0x00
>>     0x000x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x00
>> 0x0c
>>     0x80 0x000x00 0x04 0x00 0x00 0x00 0xc1 0x00 0x00 0x00 0x00 0x06 0x13
>> 0x10
>>     0xb0 0x00 0x66 0x59 0xd0
>>     unknown error xid 6707663
>>
>>
>>     i dint see this issue when i was using OpenFlow v1.3.
>>
>>
>>     Please let me know if i am missing something, and what can be done to
>> fix this.
>>
>>     Thanks,
>>     Shivani Dommeti.
>>
>>
>>
>> ------------------------------------------------------------
>> ------------------
>> 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
>>
>>
------------------------------------------------------------------------------
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