Hello,

first you need to know if your softswitch/switch dupport the experimenter
meter.

You can look it here: http://osrg.github.io/ryu/certification.html



Em Wed Jan 14 2015 at 08:50:09, nitish nagesh <[email protected]>
escreveu:

> Hello,
>
>     Posting the code snippet which i tried (Pardon my coding style/syntax
> errors, i am new to Python):
>
>
>
>
>
> * exp_id = 0x00001234        hasmask = 1        length = 2
> oxmid = *
> *parser.OFPExperimenterOxmId(type_=ofproto.OFPXMC_EXPERIMENTER,
> exp_id=exp_id, hasmask=hasmask,                   length=length)*
>
>          Is *OFPExperimenterOxmId *the right class to use to pack
> Experimenter Match OXM's?
>
>          How do i append the data & mask to it?
>
>          Also, I am not able to figure out how i can pack this OXM into
> the match of the flow-mod message.
>
>          The OFPMatch() function doesn't seem to support Experimenter
> Match field as an argument.
>
>         Please help.
>
> Regards,
> Nitish
>
>
>
>
> On Wed, Jan 14, 2015 at 10:03 AM, nitish nagesh <[email protected]>
> wrote:
>
>> Hi Henrique,
>>
>>   Thanks for the response. Sorry, but i could not exactly relate to your
>> answer.
>>
>>   Actually i vaguely know how to formulate a Flow Mod with the spec
>> provided OXM match fields. What I was looking for was a code snippet
>> which can pack the "match" field in the Flow Mod message with an
>> "experimenter match" (Example parameter values as specified in my
>> previous mail). I wasn't sure how or which parser interface to use to
>> do the same. Please refer section A.2.3.8 of the OpenFlow Switch
>> Specification 1.3.1 for experimenter Match fields.
>>
>>   Please let me know.
>>
>> Thanks,
>> Nitish
>>
>> On Tue, Jan 13, 2015 at 6:34 PM, Henrique Santos Fernandes
>> <[email protected]> wrote:
>> > Nitish,
>> >
>> > i was trying to do something like  i guess.
>> >
>> > But i am trying to edit the swith handler,  as i want the table miss to
>> be
>> > with the meter!
>> >
>> > Following you question:
>> >
>> > First you need to reate the meter:
>> >
>> > For my it i slike this:
>> >         rate=25
>> >         burst_size=0
>> >         bands=[]
>> >         bands.append(parser.OFPMeterBandDrop(rate, burst_size))
>> >         meter_mod = parser.OFPMeterMod(
>> > datapath,command=ofproto.OFPMC_ADD,flags=ofproto.OFPMF_PKTPS
>> ,meter_id=1,
>> > bands=bands)
>> >         datapath.send_msg(meter_mod)
>> >
>> > And now you have a meter instaled! You need to edit to the meter type
>> and
>> > parameters you want! i just gave an exampe of  adding a meter! (Sorry
>> not
>> > much time)
>> >
>> > And now you need to add a flow with this meter in instructions:
>> >
>> >         match = parser.OFPMatch()
>> >         pre_actions = [parser.OFPActionOutput(ofproto.OFPP_CONTROLLER,
>> >                                           ofproto.OFPCML_NO_BUFFER)]
>> >         actions =
>> > parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS,pre_actions)
>> >         meter_inst = parser.OFPInstructionMeter(meter_id=1)
>> >         mod = parser.OFPFlowMod(datapath=datapath, priority=0,
>> match=match,
>> > instructions=[meter_inst,actions])
>> >         datapath.send_msg(mod)
>> >
>> > Again, in my example i edit the table miss as you can see the match with
>> > nothing to match.
>> >
>> > Hope i helped you..
>> >
>> > If you need more help let me know!
>> >
>> > I am stuck now with muitiple tables....
>> >
>> >
>> >
>> >
>> > Em Tue Jan 13 2015 at 10:52:42, nitish nagesh <[email protected]>
>> > escreveu:
>> >>
>> >> Hi All,
>> >>
>> >>     I am trying to write a RYU script to send an experimenter Match
>> >> field in the Flow Mod message. I was referring to
>> >> "simple_switch_13.py" and trying to figure out how i can change the
>> >> add_flow function so that the "match" would contain the experimenter
>> >> Match field as well. Was not able to do much. Can someone please post
>> >> a sample code snippet or point to one which might be already existing.
>> >>
>> >>  Following is the Experimenter Match Field structure i am trying to
>> >> encode:
>> >>
>> >>  oxm_class=OFPXMC_EXPERIMENTER (16-bit)
>> >>  oxm_field = 1  (7-bit)
>> >>  has_mask = 1  (1-bit)
>> >>  oxm_length = 2   (8-bit)
>> >>  experimenter_id = 0x00001234  (16-bit)
>> >>  Match value (16-bit)
>> >>  Match Mask (16-bit)
>> >>
>> >> Thanks,
>> >> Nitish
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------------
>> >> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
>> >> GigeNET is offering a free month of service with a new server in
>> Ashburn.
>> >> Choose from 2 high performing configs, both with 100TB of bandwidth.
>> >> Higher redundancy.Lower latency.Increased capacity.Completely
>> compliant.
>> >> http://p.sf.net/sfu/gigenet
>> >> _______________________________________________
>> >> Ryu-devel mailing list
>> >> [email protected]
>> >> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to