Hi Purnima, I think the command should be "dpctl unix:/var/runs2.sock meter-mod cmd=add,flags=1,meter=2 dscp_remark:rate=10000,prec_level=x" to create a meter which would remark the DSCP precedence to value "x" for all packets that exceed 10000kbps (I see that you were using mod command instead of add)
However, I see that the current dpctl code does not have any code using the "prec_level" yet. (You may need to modify the same). To associate this meter to a flow, you would need to use "meter:2" in the actions (assuming your meter ID is 2) All flows that would match the flow would use this meter and that would mean that the packets if exceeding the rate would have their DSCP precedence level changed by the value mentioned while configuring the meter. Regards, Pradeep.V From: openflow-discuss-boun...@lists.stanford.edu [mailto:openflow-discuss-boun...@lists.stanford.edu] On Behalf Of Purnima Mohan Sent: Thursday, May 23, 2013 4:09 PM To: openflow-discuss Subject: [openflow-discuss] Openflow1.3 Metering with band type as DSCP_REMARK Hi, Can anyone help me with the dscp marking feature in Openflow1.3. I am using ofsoftswitch13. 1. For eg. I configure a meter as shown below and attach it to a flow. dpctl unix:/var/runs2.sock meter-mod cmd=mod,flags=1,meter=2 dscp_remark:rate=10000 SENDING: meter_mod{cmd="mod", flags="0x1"", meter_id="2"", bands=[{type = dscp_remark, rate="10000", burst_size="0", prec_level="0"}]} OK. 2. Now how do I use match field to check if the packets are marked? What does the dscp_remark feature actually do? Thanks in advance, -- Regards, Purnima
_______________________________________________ openflow-discuss mailing list openflow-discuss@lists.stanford.edu https://mailman.stanford.edu/mailman/listinfo/openflow-discuss