ovs-ofctl snoop <bridge>
ovs-ofctl snoop br0
This command snoops the bridge for open flow messages exchanged with the controller. It can be used to debug flow installations, modifications and packet_in and packet_out messages on the bridge. This command executes in a continuous loop. ^C should be used to break the display output.
admin@SpineA-OVS$ovs-ofctl snoop br0 OFPT_ECHO_REQUEST (OF1.3) (xid=0x0): 0 bytes of payload OFPT_ECHO_REPLY (OF1.3) (xid=0x0): 0 bytes of payload OFPT_ECHO_REQUEST (OF1.3) (xid=0x0): 0 bytes of payload OFPT_ECHO_REPLY (OF1.3) (xid=0x0): 0 bytes of payload OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x0 total_len=1516 in_port=1 (via action) data_len=1516 (unbuffered) udp,metadata=0,in_port=0,dl_vlan=100,dl_vlan_pcp=0,dl_src=00:0c:29:fd:75:ae,dl_dst=00:0c:29:70:2e:b8,nw_src=100.0.0.10,nw_dst=100.0.0.20,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=59431,tp_dst=5001 udp_csum:cf33 OFPT_PACKET_OUT (OF1.3) (xid=0x4c): in_port=CONTROLLER actions=output:2 data_len=1516 udp,metadata=0,in_port=0,dl_vlan=100,dl_vlan_pcp=0,dl_src=00:0c:29:fd:75:ae,dl_dst=00:0c:29:70:2e:b8,nw_src=100.0.0.10,nw_dst=100.0.0.20,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=59431,tp_dst=5001 udp_csum:cf33 OFPT_FLOW_MOD (OF1.3) (xid=0x4d): ADD priority=25000,in_port=1,dl_vlan=100,dl_src=00:0c:29:fd:75:ae,dl_dst=00:0c:29:70:2e:b8 cookie:0xc80093dc00010068 idle:300 out_port:0 send_flow_rem actions=output:2 OFPT_BARRIER_REQUEST (OF1.3) (xid=0x4e): OFPT_BARRIER_REPLY (OF1.3) (xid=0x4e): OFPT_ECHO_REQUEST (OF1.3) (xid=0x0): 0 bytes of payload OFPT_ECHO_REPLY (OF1.3) (xid=0x0): 0 bytes of payload OFPT_PACKET_IN (OF1.3) (xid=0x0): cookie=0x0 total_len=64 in_port=2 (via action) data_len=64 (unbuffered) arp,metadata=0,in_port=0,dl_vlan=100,dl_vlan_pcp=0,dl_src=00:0c:29:70:2e:b8,dl_dst=00:0c:29:fd:75:ae,arp_spa=100.0.0.20,arp_tpa=100.0.0.10,arp_op=2,arp_sha=00:0c:29:70:2e:b8,arp_tha=00:0c:29:fd:75:ae OFPT_PACKET_OUT (OF1.3) (xid=0x4f): in_port=CONTROLLER actions=output:1 data_len=64 arp,metadata=0,in_port=0,dl_vlan=100,dl_vlan_pcp=0,dl_src=00:0c:29:70:2e:b8,dl_dst=00:0c:29:fd:75:ae,arp_spa=100.0.0.20,arp_tpa=100.0.0.10,arp_op=2,arp_sha=00:0c:29:70:2e:b8,arp_tha=00:0c:29:fd:75:ae OFPT_FLOW_MOD (OF1.3) (xid=0x50): ADD priority=25000,in_port=2,dl_vlan=100,dl_src=00:0c:29:70:2e:b8,dl_dst=00:0c:29:fd:75:ae cookie:0xc800362b00010069 idle:300 out_port:0 send_flow_rem actions=output:1 OFPT_BARRIER_REQUEST (OF1.3) (xid=0x51): OFPT_BARRIER_REPLY (OF1.3) (xid=0x51): OFPT_ECHO_REQUEST (OF1.3) (xid=0x0): 0 bytes of payload
In case of error conditions, a hex dump of the erroneous packet is displayed.
admin@XorPlus$ovs-ofctl snoop br0 OFPT_PACKET_OUT (OF1.3) (xid=0x375f4): in_port=CONTROLLER actions=output:1 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x375f5): in_port=CONTROLLER actions=output:1 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPT_PACKET_OUT (OF1.3) (xid=0x375f6): in_port=CONTROLLER actions=output:2 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x375f7): in_port=CONTROLLER actions=output:2 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPT_PACKET_OUT (OF1.3) (xid=0x375f8): in_port=CONTROLLER actions=output:3 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x375f9): in_port=CONTROLLER actions=output:3 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPT_PACKET_OUT (OF1.3) (xid=0x375fa): in_port=CONTROLLER actions=output:1 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x375fb): in_port=CONTROLLER actions=output:1 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPT_PACKET_OUT (OF1.3) (xid=0x375fc): in_port=CONTROLLER actions=output:2 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x375fd): in_port=CONTROLLER actions=output:2 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPT_PACKET_OUT (OF1.3) (xid=0x375fe): in_port=CONTROLLER actions=output:3 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x375ff): in_port=CONTROLLER actions=output:3 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPST_PORT request (OF1.3) (xid=0x26): port_no=ANY OFPST_PORT reply (OF1.3) (xid=0x26): 4 ports port 1: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0 tx pkts=0, bytes=0, drop=0, errs=0, coll=0 duration=604176.668s port 2: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0 tx pkts=0, bytes=0, drop=0, errs=0, coll=0 duration=604121.342s port 3: rx pkts=0, bytes=0, drop=0, errs=0, frame=0, over=0, crc=0 tx pkts=0, bytes=0, drop=0, errs=0, coll=0 duration=604091.091s port LOCAL: rx pkts=8, bytes=816, drop=0, errs=0, frame=0, over=0, crc=0 tx pkts=0, bytes=0, drop=0, errs=0, coll=0 duration=934668.169s OFPST_FLOW request (OF1.3) (xid=0x37601): OFPST_FLOW reply (OF1.3) (xid=0x37601): cookie=0x1f00007eaab36a, duration=836.005s, table=0, n_packets=n/a, n_bytes=0, send_flow_rem priority=40000,arp actions=CONTROLLER:65535 cookie=0x1f00007eaab36a, duration=836.005s, table=0, n_packets=n/a, n_bytes=0, send_flow_rem priority=5,arp actions=CONTROLLER:65535 cookie=0x1f00007eaa9ce4, duration=836.006s, table=0, n_packets=n/a, n_bytes=0, send_flow_rem priority=5,ip actions=CONTROLLER:65535 cookie=0x1f00007ccd1ab0, duration=836.006s, table=0, n_packets=n/a, n_bytes=0, send_flow_rem priority=40000,dl_type=0x88cc actions=CONTROLLER:65535 cookie=0x1f00007cced5a6, duration=836.006s, table=0, n_packets=n/a, n_bytes=0, send_flow_rem priority=40000,dl_type=0x8942 actions=CONTROLLER:65535 OFPT_FLOW_MOD (OF1.3) (xid=0x0): ***decode error: OFPBMC_BAD_PREREQ*** OFPT_ERROR (OF1.3) (xid=0x0): OFPBMC_BAD_PREREQ OFPT_FLOW_MOD (OF1.3) (xid=0x0): (***truncated to 64 bytes from 88***) 00000000 04 0e 00 58 00 00 00 00-00 1f 00 00 a5 d7 3f 26 |...X..........?&| 00000010 00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 05 |................| 00000020 ff ff ff ff ff ff ff ff-ff ff ff ff 00 01 00 00 |................| 00000030 00 01 00 10 80 00 19 08-e0 00 00 00 f0 00 00 00 |................| OFPT_PACKET_OUT (OF1.3) (xid=0x37604): in_port=CONTROLLER actions=output:1 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x37605): in_port=CONTROLLER actions=output:1 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPT_PACKET_OUT (OF1.3) (xid=0x37606): in_port=CONTROLLER actions=output:2 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x37607): in_port=CONTROLLER actions=output:2 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPT_PACKET_OUT (OF1.3) (xid=0x37608): in_port=CONTROLLER actions=output:3 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=01:23:20:00:00:01,dl_type=0x88cc OFPT_PACKET_OUT (OF1.3) (xid=0x37609): in_port=CONTROLLER actions=output:3 data_len=81 metadata=0,in_port=0,vlan_tci=0x0000,dl_src=de:ad:be:ef:ba:11,dl_dst=ff:ff:ff:ff:ff:ff,dl_type=0x8942 OFPST_GROUP request (OF1.3) (xid=0x3e6b): group_id=ALL OFPST_GROUP reply (OF1.3) (xid=0x3e6b): OFPST_GROUP_DESC request (OF1.3) (xid=0x3e6c): group_id=ALL OFPST_GROUP_DESC reply (OF1.3) (xid=0x3e6c): ^C2015-09-15T17:36:40Z|00001|fatal_signal|WARN|terminating with signal 2 (Interrupt)
Copyright © 2024 Pica8 Inc. All Rights Reserved.