Hello,

Just to keep registry

I don't know why it did not worked as i configured. I think is something
related to how the cpdq SW verify the speed of pactes sent to the
controller.

Ether way i change flags=ofproto.OFPMF_KBPS to flags=ofproto.OFPMF_PKTPS
and i was able to see that i only received packeg in events in blocks of 10
pkts.

So it is working.

Before i came up with this change i evaluated the meter table and was able
to see that pkts were hitig it. So the send to controller flow (table miss)
was beeing "metering" but it wasing woking for some reason.. so i change to
OFPMF_PKTPS and worked!

Hope this will help someone else

Thabks



Em Thu Nov 13 2014 at 15:15:20, Henrique Santos Fernandes <
[email protected]> escreveu:

> Hello folks,
>
> I am new to ryu and ofsoftswicth13 and i am tryng to limit the traffc of
> flows matched from table miss and it does not seens to work correctly.
>
> I would also like suggestions and help!!! I am also not sure where the
> problem is!
>
> Here is my scenario:
>
> Mininet command:
> # mn --topo single,3 --mac --switch user --controller remote
>
> Ryu comand:
> ryu-manager --verbose sw13_meter.py
>
> Whre sw13_meter is simple_sw13 from ryu with a few changes! Basicly i
> create a meter and add to the table miss.. here is teh code that sets the
> table miss:
>
>
>> datapath = ev.msg.datapath
>> ofproto = datapath.ofproto
>> parser = datapath.ofproto_parser
>>
>> # install table-miss flow entry
>> match = parser.OFPMatch()
>> actions = [parser.OFPActionOutput(ofproto.OFPP_CONTROLLER,
>> ofproto.OFPCML_NO_BUFFER)]
>> rate=100
>> burst_size=0
>> bands=[]
>> bands.append(parser.OFPMeterBandDrop(rate, burst_size))
>> meter_mod =
>> parser.OFPMeterMod(datapath,command=ofproto.OFPMC_ADD,flags=ofproto.OFPMF_KBPS
>> ,meter_id=1, bands=bands)
>> datapath.send_msg(meter_mod)
>>
>> # Add the meter to the table miss
>> inst = [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS,
>> actions),parser.OFPInstructionMeter(1)]
>>
>> mod = parser.OFPFlowMod(datapath=datapath, priority=0,
>> match=match, instructions=inst)
>> datapath.send_msg(mod)
>
>
> So the flow and meter are set but it does not seen to limit anything.
> I generated "pings" to random host and each packet get to the controler as
> a packet_in event, but at no rate limit.
>
> The meter is working for others rules.
> When i add every flow to that meter ( i add the meter to the function flow
> add in the simple switch)
> Iperf shows 100k  of speed.
>
> Does anyone have the same problem? or have anyidea how to test it other
> way?
> I had a litle trouble figuring out the speed, but i end up usend iftop in
> lo (where the controler listen) if anyone have other suggestion how to do
> this i would be glad!
>
> Thanks to all!
>
>
>
>
>
>
>
>
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to