I think you need to put the dec_ttl before the output action.

--Justin


On 2/2/14, 6:08 AM, "Allan Jie" <[email protected]> wrote:

>Dear all,
>
>I start a network like 4 host and 1 switches.
>h1,h2,h3,h4 and s1.
>
>
>I know the dec_ttl action is for ipv4 packet and openflow 1.1+.
>
>
>So I have finished this command.
>ovs-vsctl set bridge s1 protocols=OpenFlow10,OpenFlow12,OpenFlow13
>
>And also use -O OpenFlow13 in ovs-ofctl.
>Like the following line:
>ovs-ofctl -O OpenFlow13 add-flow s1
>table=0,priority=65535,ip,in_port=1,vlan_tci=0x0000,dl_src=9e:60:7c:45:f2:
>b8,dl_dst=32:a2:19:d3:56:4f,nw_src=10.0.0.1,nw_dst=10.0.0.2,nw_proto=0,nw_
>tos=0,actions=output:2,dec_ttl
>
>
>Then in h1, I use the command
>h1 sendip -d dsf -p ipv4 -is 10.0.0.1 -id 10.0.0.2 10.0.0.2
>which will send an "ip packet" from h1 to h2.
>
>And then in h2, I use this command to listen the port.
>tcpdump ip host 10.0.0.1 -v
>
>
>
>But the result is I cannot see any changes of the ttl in the received
>packet. The ttl value is still 64.
>
>
>How can I change that? Please help.
>
>Thank you.
>Allan
>
>
>
>-- 
>Research student, final-year undergraduateExtreme Scale Network Computing
>and service 
>laboratory(http://www.cloud-uestc.cn/cloud-uestc-EN/index.html),
>School of Computer Science & Engineering,
>University of Electronic Science and Technology of
>China(http://www.oice.uestc.edu.cn/en/).
>Website: http://www.allanjie.ml/
>
>
>
>_______________________________________________
>discuss mailing list
>[email protected]
>http://openvswitch.org/mailman/listinfo/discuss


_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to