[ovs-discuss] The action "dec_ttl" doesn't work

Allan Jie allanmcgrady at gmail.com
Mon Feb 3 02:18:03 UTC 2014


Hello Justin,

I have done that according to your information. But I still cannot get it
work. I change the ovs-ofctl like this as you said.
ovs-ofctl -O OpenFlow13 add-flow s1
table=0,priority=65535,ip,in_port=1,dl_src=3e:a4:62:46:92:28,dl_dst=86:9e:4b:4c:54:53,nw_src=10.0.0.1,nw_dst=10.0.0.2,nw_proto=0,nw_tos=0,actions=dec_ttl,output:2

However, when I also use another actions, it seems that it doesn't work
too. Like I use this following actions
actions=del_ttl,mod_nw_tos:0x08,output:2
But I use tcpdump ip host 10.0.0.1 -v
I cannot see any change of the "tos" value of the packet. Here comes the
result of tcpdump
[image: Inline image 1]

Then I thought the action field doesn't work at all. But I try to remove
"output:2" just left dec_ttl only.
After that I cannot receive any message on the host on 10.0.0.2 by using
tcpdump. So it means that the "output:2" action works.

So what's the problem that dec_ttl doesn't work.

My environment is mininet 2.1 and openvswitch 1.10. I will really
appreciate that if someone can help.

--Allan


On Mon, Feb 3, 2014 at 4:11 AM, Justin Pettit <jpettit at nicira.com> wrote:

> I think you need to put the dec_ttl before the output action.
>
> --Justin
>
>
> On 2/2/14, 6:08 AM, "Allan Jie" <allanmcgrady at gmail.com> 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
> >discuss at openvswitch.org
> >http://openvswitch.org/mailman/listinfo/discuss
>
>
>


-- 
Research student, final-year undergraduate
 Extreme 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/



-- 
Research student, final-year undergraduate
Extreme 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140203/5071dcca/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcpdump.jpg
Type: image/jpeg
Size: 56867 bytes
Desc: not available
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20140203/5071dcca/attachment.jpg>


More information about the discuss mailing list