I'm not sure this is the right mailing list for this question. Let me know
if there is better alternative.

I'm not sure this is the bug of the RYU or my misunderstanding in
OpenFlow(v 1.3.1).

I'm running my controller with the OF switch HP FlexFabric.

I got below error message from the switch and the flow rule is not added on
the switch.

​OFPErrorMsg received: type=0x05 code=0x00 message=
0x04 0x0e 0x00 0x40 0xfd 0x3f 0x4e 0xb4 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x64 0x00 0x00 0x00 0x00 0x00 0x80
0x00
0x00 0x00 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x00 0x00 0x00
0x00
0x00 0x01 0x00 *0x04* *0x00 0x00 0x00 0x00* 0x00 0x01 0x00 0x08 0xc8 0x00
0x00 0x0​0

I attached byte dump of above message with detailed explanation (tagged
each byte by protocol)

I used below snippet to make flow addition.

​match = dp.ofproto_parser.OFPMatch()​
inst = [dp.ofproto_parser.OFPInstructionGotoTable(200)]
mod = dp.ofproto_parser.OFPFlowMod(datapath=dp, match=match, table_id=100,
buffer_id=0xffffffff, out_port=0xffffffff, out_group=0xffffffff,
            instructions=inst)
dp.send_msg(mod)

Above snippet works fine with Open vSwitch but fails in with HP FlexFabric.
I'm using ryu-manager 4.6 in Ubuntu 15.10.​

What I see is the the length of ofp match is 4(denoted as red), while I
think it should be 8 including 4 zero padding(bold).

Is it correct behavior of ryu the set lengthfield without padded zeros?

And I want to change the above length field to 8 and try to confirm whether
it works. It that's possible, can you let me know how to do it?

Thanks in advance.

--------------------------------------------------------------------


0x04 0x0e 0x00 0x40 0xfd 0x3f 0x4e 0xb4 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00
ver. type -length-- --------xid-------- ----------------cookie--------
---------


0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x64 0x00 0x00 0x00 0x00 0x00 0x80
0x00
--------------cookie mask-------------- t-id cmd- i-timeout h-timeout
priority-


0x00 0x00 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0x00 0x00 0x00
0x00
-----buffer-id----- ----out_port------- ----out_group------ --flag---
---pad---

0x00 0x01 0x00 *0x04* *0x00 0x00 0x00 0x00* 0x00 0x01 0x00 0x08 0xc8 0x00
0x00 0x0​0
--type--- -length--
----ofp match------ *--oxm fields------- -- ofp instruction goto table
(200) ---*
                                            all padded to zero


-- 
Kyuho Jeong
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to