What happens if you use a value greater than three?  OpenFlow's a little ugly 
with regards to handling DSCP versus ECN in TOS.  I think what you're 
programming seems reasonable (according to OpenFlow 1.0, it should be shifted 
over by two bits to skip ECN), but it's possible that there's a bug.  What 
happens if you program a value of four?

--Justin


On Dec 8, 2013, at 11:16 PM, Sameer Katti <ska...@usc.edu> wrote:

> Hi All,
> 
> I am trying to set a flow that matches based on the nw_tos field of the match 
> object. But when I dump the flows on the switch it has nw_tos field set as 0.
> I am using OpenvSwitch 1.10 on Mininet 2.0
> The code snippet I am using is:-
> 
> msg = of.ofp_flow_mod()
> #msg.match.dl_dst = packet.dst
> msg.match.dl_type = ethernet.IP_TYPE
> msg.match.nw_tos =  1;
> 
> Even after installing a flow with such a match the nw_tos is still set to 
> zero.
> 
> *** s1 
> ------------------------------------------------------------------------
> NXST_FLOW reply (xid=0x4):
>  cookie=0x0, duration=13.677s, table=0, n_packets=1, n_bytes=98, idle_age=12, 
> ip,dl_dst=d2:35:53:03:83:bc,nw_tos=0 actions=output:1
>  cookie=0x0, duration=6.652s, table=0, n_packets=3, n_bytes=294, idle_age=3, 
> ip,dl_dst=da:79:78:e1:7c:4f,nw_tos=0 actions=output:2
> 
> 
> How should I set the nw_tos field in ofp_match object?
> 
> -- 
> -Sameer
> _______________________________________________
> discuss mailing list
> discuss@openvswitch.org
> http://openvswitch.org/mailman/listinfo/discuss

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to