Hi Takahashi, Thanks for your explanation. Another question, if the rate not exact, do you think what's problems? On the SW or not. such as: "set rate to 1024Kbps but receive rate is 512Kbps."
BR, Jalee -----Original Message----- From: takahashi.minoru [mailto:[email protected]] Sent: Thursday, July 24, 2014 11:31 AM To: jalee Cc: [email protected] Subject: Re: [Ryu-devel] About meter/qos support real OFS Hi jalee, > (10061) accepted ('10.1.25.52', 53939) > Unknown action type: METER > 10.1.25.52 - - [24/Jul/2014 00:58:25] "POST /stats/flowentry/add HTTP/1.1" > 200 115 0.000730 There is no problem. When it is set to "actions" below, "Unknown action type:..." appeared on the console. * METER * GOTO_TABLE * WRITE_METADATA This is a bug.I will create a patch. --- This is an additional information, if you set the action ofctl_rest does not support,the following message will appear. (16294) accepted ('127.0.0.1', 51166) Unknown action type: METERa <--- unnecessary error message (Will be fixed) Unknown action type: METERa <--- necessary error message 127.0.0.1 - - [24/Jul/2014 12:28:55] "POST /stats/flowentry/add HTTP/1.1" 200 115 0.008108 On Thu, 24 Jul 2014 01:24:13 +0800 jalee wrote: > Hi Takahashi, > Thanks. > I know how to use it right now, but in controller had error message "Unknown > action type: METER", that's normal? > BR, > > Jalee > > > (10061) accepted ('10.1.25.52', 53939) > Unknown action type: METER > 10.1.25.52 - - [24/Jul/2014 00:58:25] "POST /stats/flowentry/add HTTP/1.1" > 200 115 0.000730 > > > -----Original Message----- > From: jalee [mailto:[email protected]] > Sent: Thursday, July 24, 2014 12:04 AM > To: 'Minoru TAKAHASHI' > Cc: '[email protected]' > Subject: RE: [Ryu-devel] About meter/qos support real OFS > > Hi Takahashi, > Thanks for your share sample, Yes, I can create meter-entry on the real sw. > But I don't understand how can use meter-entry apply to some flow-entry? > Such as: > > ==================================I can create meterentry curl -X POST -d > '{"dpid": "2", > "meter_id": 1, > "flags": ["KBPS", "BURST"], > "bands": [{"type": "DROP", "rate": 1024}]}' > http://10.1.25.52:8080/stats/meterentry/add > > ==================================I can add flowentry curl -X POST -d > '{"dpid": "2", > "priority": "10240", > "match": {}, <--------------but I can't add any more > field. > "actions": [{"type": "METER", "meter_id":1}]}' > http://10.1.25.52:8080/stats/flowentry/add > > > =================================== I want to rate-limit this flow entry. > Could you tell me how can use above meter in this flow entry? > > curl -d '{"cookie": "1", > "dpid": "2", > "priority": "10240", > "match": {"in_port": "46", > "eth_type": 0x8847, > "mpls_label": "121"}, > "actions": [{"type": "PUSH_MPLS", "ethertype":0x8847}, > {"type":"SET_FIELD","field":"mpls_label","value":27}, > {"type":"OUTPUT","port":"48"}]}' > http://10.1.25.52:8080/stats/flowentry/add > > Thanks > > Jalee > > > > -----Original Message----- > From: Minoru TAKAHASHI [mailto:[email protected]] > Sent: Wednesday, July 23, 2014 2:32 PM > To: jaleeb > Cc: [email protected] > Subject: Re: [Ryu-devel] About meter/qos support real OFS > > > (2014年07月22日 02:43), jalee wrote: >> Hi. >> I have question about meter, if I use real openflow switch not OVS, >> can I use meter/qos function in 3.11 version? >> I mean just only load "ofctl_rest.py" module. > > Yes. > I think operation of ofctl_rest that's the same in real openflow switch and > OVS. > >> If can support real openflow switch can you share sample restful-api to me? > > Please see following examples. > > FlowMod with the meter instruction: > > flow = {'match': {}, > 'actions': [{'type': 'METER', > 'meter_id': 1}] > curl -X POST -d '{"dpid": 1, "match": {}, "actions": [{"type": "METER", > "meter_id": 1}]}' http://localhost:8080/stats/flowentry/add > > MeterMod: > > meter = {'meter_id': 1, > 'flags': 'KBPS', > 'bands': [{'type': 'DROP', > 'rate': 1000}]} > curl -X POST -d '{"dpid": 1, "meter_id": 1, "flags": "KBPS", "bands": > [{"type": "DROP", "rate": 1000}]}' http://localhost:8080/stats/meterentry/add > >> Thanks, >> >> >> Jalee >> >> >> >> >> ====================================================================== >> ============== This message may contain information which is private, >> privileged or confidential of INNO-Tech Network & Service Inc. >> If you are not the intended recipient of this message, please notify the >> sender and destroy/delete the message. >> Any review, retransmission, dissemination or other use of, or taking >> of any action in reliance upon this information, by persons or entities >> other than the intended recipient is prohibited. >> ====================================================================== >> ============== >> >> >> >> ---------------------------------------------------------------------- >> -------- Want fast and easy access to all the code in your enterprise? >> Index and search up to 200,000 lines of code with a free copy of Black >> Duck Code Sight - the same software that powers the world's largest >> code search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> Ryu-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/ryu-devel >> > > > > > ==================================================================================== > This message may contain information which is private, privileged or > confidential of INNO-Tech Network & Service Inc. > If you are not the intended recipient of this message, please notify the > sender and destroy/delete the message. > Any review, retransmission, dissemination or other use of, or taking of any > action in reliance upon this information, > by persons or entities other than the intended recipient is prohibited. > ==================================================================================== > > > ==================================================================================== This message may contain information which is private, privileged or confidential of INNO-Tech Network & Service Inc. If you are not the intended recipient of this message, please notify the sender and destroy/delete the message. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. ==================================================================================== ------------------------------------------------------------------------------ Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
