[ovs-discuss] new action for tcp window size

Ali Volkan Atli Volkan.Atli at argela.com.tr
Sun Nov 27 15:14:35 UTC 2016


Hi Ben

I tried to find the difference between set_nw_ttl and reduce_rwnd. In xlate_actions() before calling xlate_action_set() and ofpacts_execute_action_set(), I see OFPACT_REDUCE_RWND or OFPACT_SET_IP_TTL in ctx.rule->up->actions->ofpacts, so there is no difference (I think, so far so good). Then it changes and I cannot see my new action in the action_set. I know here is the function you mentioned but can you please say more detailed, helpful things? I set my action fields (OFPACT_SET_RWND, OFPACT_REDUCE_RWND) to true or false in ofpact_is_set_or_move_action(), nothing changed. I do not understand what's going on after this.

Thanks in advance.

- Volkan

---> ovs-ofctl add-flow s1 -O OpenFlow13 in_port=1,tcp,action=set_nw_ttl:50,output:2
---> ovs-ofctl add-flow s1 -O OpenFlow13 in_port=2,tcp,action=set_nw_ttl:50,output:1

2016-11-27T14:54:16Z|00001|dpif_netdev(pmd17)|DBG|ovs-netdev: miss upcall:
skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(2),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0800),ipv4(src=10.1.1.10,dst=10.1.1.20,proto=6,tos=0,ttl=64,frag=no),tcp(src=48936,dst=5201),tcp_flags(syn)
tcp,vlan_tci=0x0000,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02,nw_src=10.1.1.10,nw_dst=10.1.1.20,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=48936,tp_dst=5201,tcp_flags=syn tcp_csum:fc43
2016-11-27T14:54:16Z|00002|dpif_netdev(pmd17)|DBG|Core 0: New TX queue ID 0 for port 'vhost-user2'.
2016-11-27T14:54:16Z|00003|dpif_netdev(pmd17)|DBG|Creating 1. subtable 0x7f56ec005a50 for in_port 2
2016-11-27T14:54:16Z|00004|dpif_netdev(pmd17)|DBG|flow_add: ufid:2165cec5-632b-4f3f-bc1f-a62b4a235ec0 recirc_id(0),in_port(2),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0800),ipv4(src=10.1.1.10/192.0.0.0,dst=10.1.1.20/192.0.0.0,proto=6,ttl=64,frag=no), actions:set(ipv4(src=0.0.0.0/192.0.0.0,dst=0.0.0.0/192.0.0.0,ttl=50)),3
2016-11-27T14:54:16Z|00005|dpif_netdev(pmd17)|DBG|ovs-netdev: miss upcall:
skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(3),eth(src=00:00:00:00:00:02,dst=00:00:00:00:00:01),eth_type(0x0800),ipv4(src=10.1.1.20,dst=10.1.1.10,proto=6,tos=0,ttl=64,frag=no),tcp(src=5201,dst=48936),tcp_flags(syn|ack)
tcp,vlan_tci=0x0000,dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:01,nw_src=10.1.1.20,nw_dst=10.1.1.10,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=5201,tp_dst=48936,tcp_flags=syn|ack tcp_csum:89a2
2016-11-27T14:54:16Z|00006|dpif_netdev(pmd17)|DBG|Core 0: New TX queue ID 0 for port 'vhost-user1'.
2016-11-27T14:54:16Z|00007|dpif_netdev(pmd17)|DBG|Creating 1. subtable 0x7f56ec006a00 for in_port 3
2016-11-27T14:54:16Z|00008|dpif_netdev(pmd17)|DBG|flow_add: ufid:2f58d20b-30a3-41bf-b1a1-880b766b8d69 recirc_id(0),in_port(3),eth(src=00:00:00:00:00:02,dst=00:00:00:00:00:01),eth_type(0x0800),ipv4(src=10.1.1.20/192.0.0.0,dst=10.1.1.10/192.0.0.0,proto=6,ttl=64,frag=no), actions:set(ipv4(src=0.0.0.0/192.0.0.0,dst=0.0.0.0/192.0.0.0,ttl=50)),2

---> ovs-ofctl add-flow s1 -O OpenFlow13 in_port=1,tcp,action=reduce_rwnd:50,output:2
---> ovs-ofctl add-flow s1 -O OpenFlow13 in_port=2,tcp,action=reduce_rwnd:50,output:1

2016-11-27T14:48:44Z|00028|dpif_netdev(pmd17)|DBG|ovs-netdev: miss upcall:
skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(2),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0800),ipv4(src=10.1.1.10,dst=10.1.1.20,proto=6,tos=0,ttl=64,frag=no),tcp(src=51307,dst=5201),tcp_flags(syn)
tcp,vlan_tci=0x0000,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02,nw_src=10.1.1.10,nw_dst=10.1.1.20,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=51307,tp_dst=5201,tcp_flags=syn tcp_csum:ae08
2016-11-27T14:48:44Z|00029|dpif(pmd17)|DBG|netdev at ovs-netdev: get_stats success
2016-11-27T14:48:44Z|00030|dpif_netdev(pmd17)|DBG|Core 0: New TX queue ID 0 for port 'vhost-user2'.
2016-11-27T14:48:44Z|00031|dpif_netdev(pmd17)|DBG|Creating 2. subtable 0x7fffc8006900 for in_port 2
2016-11-27T14:48:44Z|00032|dpif_netdev(pmd17)|DBG|flow_add: ufid:cdd3f9ec-6c96-468a-a064-77270d28a112 recirc_id(0),in_port(2),eth(src=00:00:00:00:00:01,dst=00:00:00:00:00:02),eth_type(0x0800),ipv4(src=10.1.1.10/192.0.0.0,dst=10.1.1.20/192.0.0.0,proto=6,frag=no), actions:3
2016-11-27T14:48:44Z|00033|dpif_netdev(pmd17)|DBG|ovs-netdev: miss upcall:
skb_priority(0),skb_mark(0),ct_state(0),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(3),eth(src=00:00:00:00:00:02,dst=00:00:00:00:00:01),eth_type(0x0800),ipv4(src=10.1.1.20,dst=10.1.1.10,proto=6,tos=0,ttl=64,frag=no),tcp(src=5201,dst=51307),tcp_flags(syn|ack)
tcp,vlan_tci=0x0000,dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:01,nw_src=10.1.1.20,nw_dst=10.1.1.10,nw_tos=0,nw_ecn=0,nw_ttl=64,tp_src=5201,tp_dst=51307,tcp_flags=syn|ack tcp_csum:e2a6
2016-11-27T14:48:44Z|00034|dpif_netdev(pmd17)|DBG|Core 0: New TX queue ID 0 for port 'vhost-user1'.
2016-11-27T14:48:44Z|00035|dpif_netdev(pmd17)|DBG|Creating 1. subtable 0x7fffc8007800 for in_port 3
2016-11-27T14:48:44Z|00036|dpif_netdev(pmd17)|DBG|flow_add: ufid:a60a2fef-8f55-4c2a-b441-054beb6d0f32 recirc_id(0),in_port(3),eth(src=00:00:00:00:00:02,dst=00:00:00:00:00:01),eth_type(0x0800),ipv4(src=10.1.1.20/192.0.0.0,dst=10.1.1.10/192.0.0.0,proto=6,frag=no), actions:2
2016-11-27T14:48:44Z|00801|dpif(revalidator15)|DBG|netdev at ovs-netdev: get_stats success

________________________________________
From: Ben Pfaff [blp at ovn.org]
Sent: Sunday, November 27, 2016 1:10 AM
To: Ali Volkan Atli
Cc: discuss at openvswitch.org
Subject: Re: [ovs-discuss] new action for tcp window size

It doesn't look like you added anything to ofpacts_execute_action_set().



More information about the discuss mailing list