<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Associating a flow to a meter via Ryu controller on ARUBA 2930F JL253A Switch in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/associating-a-flow-to-a-meter-via-ryu-controller-on-aruba-2930f/m-p/7034295#M2446</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to add a meter to the switch via RYU controller and then use that meter to rate-limit a flow. I was successful in adding the meter to the switch, however, when I try to associate that meter to a flow, I get this error.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;EventOFPErrorMsg received.&lt;BR /&gt;version=0x4, msg_type=0x1, msg_len=0x4c, xid=0x1b412ff0&lt;BR /&gt;`-- msg_type: OFPT_ERROR(1)&lt;BR /&gt;OFPErrorMsg(type=0x5, code=0x0, data=b'\x04\x0e\x00\x58\x1b\x41\x2f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x64\x00\x00\x00\x00\x00\x00\x03\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x01\x00\x00\x00\x01\x00\x04\x00\x00\x00\x00\x00\x04\x00\x18\x00\x00\x00\x00')&lt;BR /&gt;|-- type: OFPET_FLOW_MOD_FAILED(5)&lt;BR /&gt;|-- code: OFPFMFC_UNKNOWN(0)&lt;BR /&gt;`-- data: version=0x4, msg_type=0xe, msg_len=0x58, xid=0x1b412ff0&lt;BR /&gt;`-- msg_type: OFPT_FLOW_MOD(14)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result of&lt;STRONG&gt; show openflow Instance l1 meters &lt;/STRONG&gt;command on switch's CLI&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Meter ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Flow Count&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Input Packet Count&amp;nbsp;&amp;nbsp; : 0&amp;nbsp;&lt;BR /&gt;Input Byte COunt : 0&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Duration&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Packet &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Band Type&amp;nbsp; &amp;nbsp;Rate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Precedence Level&amp;nbsp; &amp;nbsp;Count&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;---------&amp;nbsp; &amp;nbsp;------------&amp;nbsp; &amp;nbsp; ---------------------&amp;nbsp; &amp;nbsp;--------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Drop&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100 kbps&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My RYU app code snippet is as follows:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;datapath = ev.msg.datapath&lt;/P&gt;&lt;P&gt;ofproto = datapath.ofproto&lt;/P&gt;&lt;P&gt;parser = datapath.ofproto_parser&lt;/P&gt;&lt;P&gt;bands = [parser.OFPMeterBandDrop(type_=ofproto.OFPMBT_DROP, len_=0, rate=100, burst_size=10)]&lt;/P&gt;&lt;P&gt;req = parser.OFPMeterMod(datapath=datapath, command=ofproto.OFPMC_ADD, flags=ofproto.OFPMF_KBPS, meter_id=1,&lt;BR /&gt;bands=bands)&lt;/P&gt;&lt;P&gt;datapath.send_msg(req)&lt;/P&gt;&lt;P&gt;#now meter_id=1 will be applied to a flow&lt;/P&gt;&lt;P&gt;match = parser.OFPMatch()&lt;/P&gt;&lt;P&gt;actions = [parser.OFPActionOutput(1)]&lt;/P&gt;&lt;P&gt;inst = [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS, actions),parser.OFPInstructionMeter(1)]&lt;/P&gt;&lt;P&gt;cookie_mask = 0&lt;BR /&gt;mod = datapath.ofproto_parser.OFPFlowMod(&lt;/P&gt;&lt;P&gt;datapath=datapath, match=match, cookie=0,&lt;/P&gt;&lt;P&gt;command=ofproto.OFPFC_ADD, idle_timeout=0,&lt;/P&gt;&lt;P&gt;hard_timeout=0, priority=3, instructions=inst,table_id=100,buffer_id = ofproto.OFP_NO_BUFFER, cookie_mask=cookie_mask,out_port=ofproto.OFPP_ANY, out_group=ofproto.OFPG_ANY,&lt;BR /&gt;flags=ofproto.OFPFF_SEND_FLOW_REM,)&lt;/P&gt;&lt;P&gt;datapath.send_msg(mod)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am 100% sure there's no error in the code because I have tried running that same code for openVswitch (virtual switch) and I was able to add meter and associate it with the flow entry. Please let me know what's the issue with ARUBA swicth? Am I missing some configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please replay as soon as possible.&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Feb 2019 13:55:10 GMT</pubDate>
    <dc:creator>Ramzah_Rehman</dc:creator>
    <dc:date>2019-02-11T13:55:10Z</dc:date>
    <item>
      <title>Associating a flow to a meter via Ryu controller on ARUBA 2930F JL253A Switch</title>
      <link>https://community.hpe.com/t5/software-defined-networking/associating-a-flow-to-a-meter-via-ryu-controller-on-aruba-2930f/m-p/7034295#M2446</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to add a meter to the switch via RYU controller and then use that meter to rate-limit a flow. I was successful in adding the meter to the switch, however, when I try to associate that meter to a flow, I get this error.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;EventOFPErrorMsg received.&lt;BR /&gt;version=0x4, msg_type=0x1, msg_len=0x4c, xid=0x1b412ff0&lt;BR /&gt;`-- msg_type: OFPT_ERROR(1)&lt;BR /&gt;OFPErrorMsg(type=0x5, code=0x0, data=b'\x04\x0e\x00\x58\x1b\x41\x2f\xf0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x64\x00\x00\x00\x00\x00\x00\x03\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x00\x01\x00\x00\x00\x01\x00\x04\x00\x00\x00\x00\x00\x04\x00\x18\x00\x00\x00\x00')&lt;BR /&gt;|-- type: OFPET_FLOW_MOD_FAILED(5)&lt;BR /&gt;|-- code: OFPFMFC_UNKNOWN(0)&lt;BR /&gt;`-- data: version=0x4, msg_type=0xe, msg_len=0x58, xid=0x1b412ff0&lt;BR /&gt;`-- msg_type: OFPT_FLOW_MOD(14)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result of&lt;STRONG&gt; show openflow Instance l1 meters &lt;/STRONG&gt;command on switch's CLI&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Meter ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Flow Count&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Input Packet Count&amp;nbsp;&amp;nbsp; : 0&amp;nbsp;&lt;BR /&gt;Input Byte COunt : 0&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Duration&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Packet &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Band Type&amp;nbsp; &amp;nbsp;Rate&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Precedence Level&amp;nbsp; &amp;nbsp;Count&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;---------&amp;nbsp; &amp;nbsp;------------&amp;nbsp; &amp;nbsp; ---------------------&amp;nbsp; &amp;nbsp;--------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;Drop&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 100 kbps&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My RYU app code snippet is as follows:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;datapath = ev.msg.datapath&lt;/P&gt;&lt;P&gt;ofproto = datapath.ofproto&lt;/P&gt;&lt;P&gt;parser = datapath.ofproto_parser&lt;/P&gt;&lt;P&gt;bands = [parser.OFPMeterBandDrop(type_=ofproto.OFPMBT_DROP, len_=0, rate=100, burst_size=10)]&lt;/P&gt;&lt;P&gt;req = parser.OFPMeterMod(datapath=datapath, command=ofproto.OFPMC_ADD, flags=ofproto.OFPMF_KBPS, meter_id=1,&lt;BR /&gt;bands=bands)&lt;/P&gt;&lt;P&gt;datapath.send_msg(req)&lt;/P&gt;&lt;P&gt;#now meter_id=1 will be applied to a flow&lt;/P&gt;&lt;P&gt;match = parser.OFPMatch()&lt;/P&gt;&lt;P&gt;actions = [parser.OFPActionOutput(1)]&lt;/P&gt;&lt;P&gt;inst = [parser.OFPInstructionActions(ofproto.OFPIT_APPLY_ACTIONS, actions),parser.OFPInstructionMeter(1)]&lt;/P&gt;&lt;P&gt;cookie_mask = 0&lt;BR /&gt;mod = datapath.ofproto_parser.OFPFlowMod(&lt;/P&gt;&lt;P&gt;datapath=datapath, match=match, cookie=0,&lt;/P&gt;&lt;P&gt;command=ofproto.OFPFC_ADD, idle_timeout=0,&lt;/P&gt;&lt;P&gt;hard_timeout=0, priority=3, instructions=inst,table_id=100,buffer_id = ofproto.OFP_NO_BUFFER, cookie_mask=cookie_mask,out_port=ofproto.OFPP_ANY, out_group=ofproto.OFPG_ANY,&lt;BR /&gt;flags=ofproto.OFPFF_SEND_FLOW_REM,)&lt;/P&gt;&lt;P&gt;datapath.send_msg(mod)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am 100% sure there's no error in the code because I have tried running that same code for openVswitch (virtual switch) and I was able to add meter and associate it with the flow entry. Please let me know what's the issue with ARUBA swicth? Am I missing some configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please replay as soon as possible.&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 13:55:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/associating-a-flow-to-a-meter-via-ryu-controller-on-aruba-2930f/m-p/7034295#M2446</guid>
      <dc:creator>Ramzah_Rehman</dc:creator>
      <dc:date>2019-02-11T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Associating a flow to a meter via Ryu controller on ARUBA 2930F JL253A Switch</title>
      <link>https://community.hpe.com/t5/software-defined-networking/associating-a-flow-to-a-meter-via-ryu-controller-on-aruba-2930f/m-p/7034296#M2447</link>
      <description>&lt;P&gt;I saw a similar issue here as well. &lt;A href="https://community.hpe.com/t5/Software-Defined-Networking/HP-3500yl-Attach-a-flow-to-a-meter-via-Ryu-controller/td-p/6614250#.XGF_VTMzbIU" target="_blank"&gt;https://community.hpe.com/t5/Software-Defined-Networking/HP-3500yl-Attach-a-flow-to-a-meter-via-Ryu-controller/td-p/6614250#.XGF_VTMzbIU&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But there was no satisfactory answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 13:58:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/associating-a-flow-to-a-meter-via-ryu-controller-on-aruba-2930f/m-p/7034296#M2447</guid>
      <dc:creator>Ramzah_Rehman</dc:creator>
      <dc:date>2019-02-11T13:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Associating a flow to a meter via Ryu controller on ARUBA 2930F JL253A Switch</title>
      <link>https://community.hpe.com/t5/software-defined-networking/associating-a-flow-to-a-meter-via-ryu-controller-on-aruba-2930f/m-p/7034392#M2448</link>
      <description>&lt;P&gt;I had to set hardware-rate of openflow instance to zero. Then I was able to use meter and associate it with a flow.&lt;/P&gt;&lt;P&gt;Steps to do that:&lt;/P&gt;&lt;P&gt;config&lt;/P&gt;&lt;P&gt;Openflow instance &amp;lt;name&amp;gt; limit hardware-rate 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:57:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/associating-a-flow-to-a-meter-via-ryu-controller-on-aruba-2930f/m-p/7034392#M2448</guid>
      <dc:creator>Ramzah_Rehman</dc:creator>
      <dc:date>2019-02-12T07:57:11Z</dc:date>
    </item>
  </channel>
</rss>

