Hello,
 
 
 
I encountered a problem that the DSCP_REMARK of Meter_Band_Type doesn’t work.
 
 
 
I was set the rate=1M and prec_level=3 in OFPMeterBandDscpRemark of bands and 
test by iperfdup 2M src dst in Mininet .However,when I am parsing the packets 
by wireshark,I found the dscp still keep the original value(ip_dscp=11).I can’t 
see any change.
 
 
 
Partial code:
 
1:
 
bands = [parser.OFPMeterBandDscpRemark(rate=1000, burst_size=10, prec_level=3)]
 
meter_mod= parser.OFPMeterMod(datapath=datapath, command=ofproto.OFPMC_ADD,
 
                              flags=ofproto.OFPMF_KBPS, meter_id=1, bands=bands)
 
datapath.send_msg(meter_mod)
 
2:
 
actions= [parser.OFPActionOutput(out_port)]
 
match = parser.OFPMatch(in_port=in_port, 
eth_dst=dst,ip_proto=17,eth_type=0x0800)
 
self.modify_meter(datapath, match,actions)
 
3:
 
def modify_meter(self, datapath, match,actions):
 
    ofproto = datapath.ofproto
 
    parser = datapath.ofproto_parser
 
    inst = [parser.OFPInstructionMeter(meter_id=1),
 
            parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS,actions)]
 
    mod = parser.OFPFlowMod(datapath=datapath, command=ofproto.OFPFC_ADD,
 
                          match=match, instructions=inst)
 
datapath.send_msg(mod)
 
 
 
Environment:Ubuntu 12.04+Ryu+Mininet+Ofsoftswitch13
 
 
 
Thanks‍
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to