Hi, Frode

It is probably due to the implementation of your switch.

Could you use network analyzer, like Wireshark?
If you cannot see any match field in the PacketIn,
Your situation is due to your switch.

Please ask the help team of your switch.

Thanks,
Fujimoto

On 2018年03月13日 06:42, Frode via Ryu-devel wrote:
Hello,

I am currently testing out Ryu and cant seem to get the hang of the flow table matching. I am doing a rather basic example with one switch and one rule. I am sending out the packet with OFPP_TABLE action from the controller. Why am I seing a packet in reason of action, but when parsing the incoming packet and looking at the OFPMatch object it states "(oxm_fields={'in_port': 10})" and not the match object from the flow table entry (see below)? Any help is highly appreciated.

PACKET OUT:
version=None,msg_type=None,msg_len=None,xid=None,OFPPacketOut(actions=[OFPActionOutput(len=16,max_len=0,port=4294967289,type=0)],actions_len=0,buffer_id=4294967295,data=ethernet(dst='00:00:de:ad:be:ef',ethertype=2048,src='00:00:de:ad:be:ef'), ipv4(csum=46560,dst='2.2.2.2',flags=0,header_length=5,identification=0,offset=0,option=None,proto=0,src='1.1.1.1',tos=4,total_length=20,ttl=255,version=4),in_port=10)

FLOW TABLE:
  {'1': [{'priority': 100, 'cookie': 0, 'idle_timeout': 0, 'hard_timeout': 0, 'byte_count': 540, 'duration_sec': 1036, 'duration_nsec': 560000000, 'packet_count': 9, 'length': 88, 'flags': 0, 'actions': ['OUTPUT:CONTROLLER'], 'match': {'dl_src': '00:00:de:ad:be:ef'}, 'table_id': 0}]}

OFPPacketIn received:
switch=1 buffer_id=ffffffff total_len=60 reason=ACTION table_id=0 cookie=0
match=OFPMatch(oxm_fields={'in_port': 10})
pkt=ethernet(dst='00:00:de:ad:be:ef',ethertype=2048,src='00:00:de:ad:be:ef'), ipv4(csum=46560,dst='2.2.2.2',flags=0,header_length=5,identification=0,offset=0,option=None,proto=0,src='1.1.1.1',tos=4,total_length=20,ttl=255,version=4)

Kind regards,
Frode




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