Skip to content

Instantly share code, notes, and snippets.

@icarocamelo
Created April 27, 2016 16:29
Show Gist options
  • Save icarocamelo/d85ea45fb181ee7558289d35b10485e4 to your computer and use it in GitHub Desktop.
Save icarocamelo/d85ea45fb181ee7558289d35b10485e4 to your computer and use it in GitHub Desktop.
Flow entries - Openstack/Netvirt
==Without any network==
sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=2871.555s, table=0, n_packets=0, n_bytes=0, dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x0, duration=2871.555s, table=0, n_packets=1, n_bytes=90, priority=0 actions=goto_table:20
cookie=0x0, duration=2871.555s, table=20, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:30
cookie=0x0, duration=2871.555s, table=30, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:40
cookie=0x0, duration=2871.555s, table=40, n_packets=59, n_bytes=6726, priority=0 actions=goto_table:50
cookie=0x0, duration=2871.555s, table=50, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:60
cookie=0x0, duration=2871.555s, table=60, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:70
cookie=0x0, duration=2871.555s, table=70, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:80
cookie=0x0, duration=2871.555s, table=80, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:90
cookie=0x0, duration=2871.555s, table=90, n_packets=105, n_bytes=10079, priority=0 actions=goto_table:100
cookie=0x0, duration=2871.555s, table=100, n_packets=122, n_bytes=13263, priority=0 actions=goto_table:110
cookie=0x0, duration=2056.660s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x407 actions=drop
cookie=0x0, duration=2871.555s, table=110, n_packets=2, n_bytes=180, priority=0 actions=drop
==with dhcp enabled network==
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=3097.709s, table=0, n_packets=0, n_bytes=0, dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x0, duration=8.164s, table=0, n_packets=7, n_bytes=578, in_port=4,dl_src=fa:16:3e:39:f3:60 actions=set_field:0x42d->tun_id,load:0x1->NXM_NX_REG0[],goto_table:20
cookie=0x0, duration=8.139s, table=0, n_packets=0, n_bytes=0, priority=8192,in_port=4 actions=drop
cookie=0x0, duration=3097.709s, table=0, n_packets=1, n_bytes=90, priority=0 actions=goto_table:20
cookie=0x0, duration=8.242s, table=20, n_packets=0, n_bytes=0, priority=1024,arp,tun_id=0x42d,arp_tpa=192.168.10.2,arp_op=1 actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],set_field:fa:16:3e:39:f3:60->eth_src,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0xfa163e39f360->NXM_NX_ARP_SHA[],load:0xc0a80a02->NXM_OF_ARP_SPA[],IN_PORT
cookie=0x0, duration=3097.709s, table=20, n_packets=129, n_bytes=13841, priority=0 actions=goto_table:30
cookie=0x0, duration=3097.709s, table=30, n_packets=129, n_bytes=13841, priority=0 actions=goto_table:40
cookie=0x0, duration=8.215s, table=40, n_packets=0, n_bytes=0, priority=61012,udp,tp_src=68,tp_dst=67 actions=goto_table:50
cookie=0x0, duration=8.198s, table=40, n_packets=0, n_bytes=0, priority=61012,udp6,tp_src=546,tp_dst=547 actions=goto_table:50
cookie=0x0, duration=3097.709s, table=40, n_packets=66, n_bytes=7304, priority=0 actions=goto_table:50
cookie=0x0, duration=3097.709s, table=50, n_packets=129, n_bytes=13841, priority=0 actions=goto_table:60
cookie=0x0, duration=3097.709s, table=60, n_packets=129, n_bytes=13841, priority=0 actions=goto_table:70
cookie=0x0, duration=3097.709s, table=70, n_packets=129, n_bytes=13841, priority=0 actions=goto_table:80
cookie=0x0, duration=3097.709s, table=80, n_packets=129, n_bytes=13841, priority=0 actions=goto_table:90
cookie=0x0, duration=3097.709s, table=90, n_packets=112, n_bytes=10657, priority=0 actions=goto_table:100
cookie=0x0, duration=3097.709s, table=100, n_packets=129, n_bytes=13841, priority=0 actions=goto_table:110
cookie=0x0, duration=8.051s, table=110, n_packets=0, n_bytes=0, tun_id=0x42d,dl_dst=fa:16:3e:39:f3:60 actions=output:4
cookie=0x0, duration=8.027s, table=110, n_packets=0, n_bytes=0, priority=16384,reg0=0x2,tun_id=0x42d,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:4
cookie=0x0, duration=7.993s, table=110, n_packets=6, n_bytes=488, priority=16383,reg0=0x1,tun_id=0x42d,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:4
cookie=0x0, duration=2282.814s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x407 actions=drop
cookie=0x0, duration=7.937s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x42d actions=drop
cookie=0x0, duration=3097.709s, table=110, n_packets=3, n_bytes=270, priority=0 actions=drop
==Network with 1 VM==
sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=3255.861s, table=0, n_packets=0, n_bytes=0, dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x0, duration=26.785s, table=0, n_packets=5, n_bytes=638, in_port=5,dl_src=fa:16:3e:b2:95:59 actions=set_field:0x429->tun_id,load:0x1->NXM_NX_REG0[],goto_table:20
cookie=0x0, duration=26.762s, table=0, n_packets=0, n_bytes=0, priority=8192,in_port=5 actions=drop
cookie=0x0, duration=3255.861s, table=0, n_packets=1, n_bytes=90, priority=0 actions=goto_table:20
cookie=0x0, duration=26.819s, table=20, n_packets=0, n_bytes=0, priority=1024,arp,tun_id=0x429,arp_tpa=192.168.100.2,arp_op=1 actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],set_field:fa:16:3e:b2:95:59->eth_src,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0xfa163eb29559->NXM_NX_ARP_SHA[],load:0xc0a86402->NXM_OF_ARP_SPA[],IN_PORT
cookie=0x0, duration=3255.861s, table=20, n_packets=135, n_bytes=14549, priority=0 actions=goto_table:30
cookie=0x0, duration=3255.861s, table=30, n_packets=135, n_bytes=14549, priority=0 actions=goto_table:40
cookie=0x0, duration=3255.861s, table=40, n_packets=72, n_bytes=8012, priority=0 actions=goto_table:50
cookie=0x0, duration=3255.861s, table=50, n_packets=135, n_bytes=14549, priority=0 actions=goto_table:60
cookie=0x0, duration=3255.861s, table=60, n_packets=135, n_bytes=14549, priority=0 actions=goto_table:70
cookie=0x0, duration=3255.861s, table=70, n_packets=135, n_bytes=14549, priority=0 actions=goto_table:80
cookie=0x0, duration=3255.861s, table=80, n_packets=135, n_bytes=14549, priority=0 actions=goto_table:90
cookie=0x0, duration=3255.861s, table=90, n_packets=118, n_bytes=11365, priority=0 actions=goto_table:100
cookie=0x0, duration=3255.861s, table=100, n_packets=135, n_bytes=14549, priority=0 actions=goto_table:110
cookie=0x0, duration=26.720s, table=110, n_packets=0, n_bytes=0, tun_id=0x429,dl_dst=fa:16:3e:b2:95:59 actions=output:5
cookie=0x0, duration=26.674s, table=110, n_packets=0, n_bytes=0, priority=16384,reg0=0x2,tun_id=0x429,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:5
cookie=0x0, duration=26.640s, table=110, n_packets=5, n_bytes=638, priority=16383,reg0=0x1,tun_id=0x429,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:5
cookie=0x0, duration=2440.966s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x407 actions=drop
cookie=0x0, duration=166.089s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x42d actions=drop
cookie=0x0, duration=26.582s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x429 actions=drop
cookie=0x0, duration=3255.861s, table=110, n_packets=3, n_bytes=270, priority=0 actions=drop
==network with 2 VM==
sudo ovs-ofctl -O OpenFlow13 dump-flows br-int
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=3419.396s, table=0, n_packets=0, n_bytes=0, dl_type=0x88cc actions=CONTROLLER:65535
cookie=0x0, duration=190.320s, table=0, n_packets=9, n_bytes=1458, in_port=5,dl_src=fa:16:3e:b2:95:59 actions=set_field:0x429->tun_id,load:0x1->NXM_NX_REG0[],goto_table:20
cookie=0x0, duration=13.258s, table=0, n_packets=0, n_bytes=0, in_port=6,dl_src=fa:16:3e:38:6d:f8 actions=set_field:0x429->tun_id,load:0x1->NXM_NX_REG0[],goto_table:20
cookie=0x0, duration=190.297s, table=0, n_packets=0, n_bytes=0, priority=8192,in_port=5 actions=drop
cookie=0x0, duration=13.228s, table=0, n_packets=0, n_bytes=0, priority=8192,in_port=6 actions=drop
cookie=0x0, duration=3419.396s, table=0, n_packets=1, n_bytes=90, priority=0 actions=goto_table:20
cookie=0x0, duration=190.354s, table=20, n_packets=0, n_bytes=0, priority=1024,arp,tun_id=0x429,arp_tpa=192.168.100.2,arp_op=1 actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],set_field:fa:16:3e:b2:95:59->eth_src,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0xfa163eb29559->NXM_NX_ARP_SHA[],load:0xc0a86402->NXM_OF_ARP_SPA[],IN_PORT
cookie=0x0, duration=16.697s, table=20, n_packets=0, n_bytes=0, priority=1024,arp,tun_id=0x429,arp_tpa=192.168.100.3,arp_op=1 actions=move:NXM_OF_ETH_SRC[]->NXM_OF_ETH_DST[],set_field:fa:16:3e:38:6d:f8->eth_src,load:0x2->NXM_OF_ARP_OP[],move:NXM_NX_ARP_SHA[]->NXM_NX_ARP_THA[],move:NXM_OF_ARP_SPA[]->NXM_OF_ARP_TPA[],load:0xfa163e386df8->NXM_NX_ARP_SHA[],load:0xc0a86403->NXM_OF_ARP_SPA[],IN_PORT
cookie=0x0, duration=3419.396s, table=20, n_packets=139, n_bytes=15369, priority=0 actions=goto_table:30
cookie=0x0, duration=3419.396s, table=30, n_packets=139, n_bytes=15369, priority=0 actions=goto_table:40
cookie=0x0, duration=3419.396s, table=40, n_packets=76, n_bytes=8832, priority=0 actions=goto_table:50
cookie=0x0, duration=3419.396s, table=50, n_packets=139, n_bytes=15369, priority=0 actions=goto_table:60
cookie=0x0, duration=3419.396s, table=60, n_packets=139, n_bytes=15369, priority=0 actions=goto_table:70
cookie=0x0, duration=3419.396s, table=70, n_packets=139, n_bytes=15369, priority=0 actions=goto_table:80
cookie=0x0, duration=3419.396s, table=80, n_packets=139, n_bytes=15369, priority=0 actions=goto_table:90
cookie=0x0, duration=3419.396s, table=90, n_packets=122, n_bytes=12185, priority=0 actions=goto_table:100
cookie=0x0, duration=3419.396s, table=100, n_packets=139, n_bytes=15369, priority=0 actions=goto_table:110
cookie=0x0, duration=190.255s, table=110, n_packets=0, n_bytes=0, tun_id=0x429,dl_dst=fa:16:3e:b2:95:59 actions=output:5
cookie=0x0, duration=13.180s, table=110, n_packets=0, n_bytes=0, tun_id=0x429,dl_dst=fa:16:3e:38:6d:f8 actions=output:6
cookie=0x0, duration=190.209s, table=110, n_packets=0, n_bytes=0, priority=16384,reg0=0x2,tun_id=0x429,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:5,output:6
cookie=0x0, duration=190.175s, table=110, n_packets=9, n_bytes=1458, priority=16383,reg0=0x1,tun_id=0x429,dl_dst=01:00:00:00:00:00/01:00:00:00:00:00 actions=output:5,output:6
cookie=0x0, duration=2604.501s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x407 actions=drop
cookie=0x0, duration=329.624s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x42d actions=drop
cookie=0x0, duration=190.117s, table=110, n_packets=0, n_bytes=0, priority=8192,tun_id=0x429 actions=drop
cookie=0x0, duration=3419.396s, table=110, n_packets=3, n_bytes=270, priority=0 actions=drop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment