Hi all:
I have a question about datapath flow setup order after upcall. By using
OVN as openflow controller, for snat action, we could get 5 datapath flows for
pkt from A to B as below:
The flows below are combined by recirc_id,logically it should setup in
datapath from table <1> to table <5> or from table <5> to table <1> but from
log I have found the order is (3) -> (5) -> (4) -> (2) -> (1)
I don't know why, can anyone help to explain the priciple of the datapath
flow install order?
Thanks
Timo
<1>
ufid:6fb92b9d-5d0d-46e4-bea4-07a79567003d,
skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(vhuc9ed811c-fd),packet_type(ns=0,id=0),eth(src=fa:16:3e:42:69:36,dst=fa:16:3e:43:38:f8/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.1.5,dst=10.168.0.4/0.0.0.0,proto=1,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0xf8,code=0/0),
packets:48, bytes:4704, used:0.420s, dp:ovs, actions:ct(zone=1),recirc(0x22f),
dp-extra-info:miniflow_bits(5,4)
<2>
ufid:50d971f2-01c1-4d0f-a1f8-7fa01e472816,
skb_priority(0/0),skb_mark(0/0),ct_state(0x22/0x3f),ct_zone(0x1/0),ct_mark(0/0),ct_label(0/0x1),ct_tuple4(src=192.168.1.5/0.0.0.0,dst=10.168.0.4/0.0.0.0,proto=1/0,tp_src=8/0,tp_dst=0/0),recirc_id(0x22f),dp_hash(0/0),in_port(vhuc9ed811c-fd),packet_type(ns=0,id=0),eth(src=fa:16:3e:42:69:36,dst=fa:16:3e:43:38:f8),eth_type(0x0800),ipv4(src=192.168.1.5,dst=10.168.0.4,proto=1,tos=0/0,ttl=64,frag=no),icmp(type=8/0xf8,code=0/0),
packets:21, bytes:2058, used:0.607s, dp:ovs,
actions:ct_clear,set(eth(src=fa:16:3e:40:ad:28,dst=fa:16:3e:1e:ba:f7)),set(ipv4(ttl=63)),ct(zone=10,nat),recirc(0x219),
dp-extra-info:miniflow_bits(6,4)
<3>
ufid:b192a8b2-86ca-42bb-b723-ac80e49b366a,
skb_priority(0/0),skb_mark(0/0),ct_state(0x21/0),ct_zone(0xa/0),ct_mark(0/0),ct_label(0/0),ct_tuple4(src=192.168.1.5/0.0.0.0,dst=10.168.0.4/0.0.0.0,proto=1/0,tp_src=8/0,tp_dst=0/0),recirc_id(0x219),dp_hash(0/0),in_port(vhuc9ed811c-fd),packet_type(ns=0,id=0),eth(src=fa:16:3e:40:ad:28/00:00:00:00:00:00,dst=fa:16:3e:1e:ba:f7/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.1.5,dst=10.168.0.4/0.0.0.0,proto=1/0,tos=0/0,ttl=63/0,frag=no),icmp(type=8/0,code=0/0),
packets:297, bytes:29106, used:0.979s, dp:ovs,
actions:ct(commit,zone=9,nat(src=10.168.0.20)),recirc(0x21a),
dp-extra-info:miniflow_bits(4,2)
<4>
ufid:b699ea64-79e2-49a1-af0f-a89c8fa4f851,
skb_priority(0/0),skb_mark(0/0),ct_state(0x62/0x3f),ct_zone(0x9/0),ct_mark(0/0),ct_label(0/0x1),ct_tuple4(src=192.168.1.5/0.0.0.0,dst=10.168.0.4/0.0.0.0,proto=1/0,tp_src=8/0,tp_dst=0/0),recirc_id(0x21a),dp_hash(0/0),in_port(vhuc9ed811c-fd),packet_type(ns=0,id=0),eth(src=fa:16:3e:40:ad:28,dst=fa:16:3e:1e:ba:f7),eth_type(0x0800),ipv4(src=10.168.0.20/0.0.0.0,dst=10.168.0.4/255.255.255.252,proto=1,tos=0/0,ttl=63/0,frag=no),icmp(type=8/0xf8,code=0/0),
packets:162, bytes:15876, used:0.979s, dp:ovs,
actions:ct_clear,ct(zone=14),recirc(0x19f), dp-extra-info:miniflow_bits(6,4)
<5>
ufid:dc79d2e0-b78b-4018-8378-0442e1dc72c8,
skb_priority(0/0),skb_mark(0/0),ct_state(0x22/0x3f),ct_zone(0xe/0),ct_mark(0/0),ct_label(0/0x1),ct_tuple4(src=10.168.0.20/0.0.0.0,dst=10.168.0.4/0.0.0.0,proto=1/0,tp_src=8/0,tp_dst=0/0),recirc_id(0x19f),dp_hash(0/0),in_port(vhuc9ed811c-fd),packet_type(ns=0,id=0),eth(src=fa:16:3e:40:ad:28,dst=fa:16:3e:1e:ba:f7),eth_type(0x0800),ipv4(src=10.168.0.20/0.0.0.0,dst=10.168.0.4,proto=1,tos=0/0,ttl=63/0,frag=no),icmp(type=8/0,code=0/0),
packets:2713, bytes:265874, used:0.910s, dp:ovs, actions:vhu9f3a913b-48,
dp-extra-info:miniflow_bits(6,2)
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss