Hi Fujita, Thanks for replying!
The RYU-QOS scrip, I am talking about is at : https://github.com/hu6360567/ryu-qos I am using qosBTvms13.py script. I am not sure, if I understood, where to add entries for providing QoS for a particular flow. I believe the following piece of code is setting up the queue for the flow. I did added the src MAC address of the flow I wanted to get the Queue attached. # install a flow to avoid packet_in next time if out_port != ofproto.OFPP_FLOOD: if src in self.qos_list: match = parser.OFPMatch(in_port=in_port, eth_src=src, eth_dst=dst) actions.insert(0,parser.OFPActionSetQueue(2)) else: match = parser.OFPMatch(in_port=in_port, eth_dst=dst) self.add_flow(datapath, 1, match, actions) The only changes I made to the code: Added the MAC address of the source: self.qos_list = ['00:60:dd:44:96:e4'] Replace the action part in the above piece of code with: actions.insert(0,parser.OFPActionSetQueue(1)) I am using LINC as my openflowswicth and I have defined the Queue 1 in the switch configuration file and has attached it to the physical port Port 1 (physical port eth5) When I run nuttcp tests and provide it a rate of 100 mbps, I see a rate of 100 mbps. However, in the queue I have {queue, 1, [{min_rate, 10}, {max_rate, 30}]}. I am not sure if it is supposed to work this way or no?Please advice! Thanks! Regards Renuka ________________________________________ From: FUJITA Tomonori [[email protected]] Sent: Friday, March 21, 2014 6:29 AM To: Arya, Renuka [BSD] - MED Cc: [email protected] Subject: Re: [Ryu-devel] Flow entries in RYU_QOS script for providing QoS to the flows On Thu, 20 Mar 2014 18:39:07 +0000 "Arya, Renuka [BSD] - MED" <[email protected]> wrote: > What we basically want to test next is to provide QoS for different > flows on the basis of tcp/udp ports or IP addressees or other > parameters. I understand RYU has a QoS python script for open flow > 1.3. Really? Which script? > I was looking flow entries format in RYU, which could be added in # > install table-miss flow entry. I am starting to learn python and > will highly appreciate any guidance. https://github.com/FlowForwarding/LINC-Switch/blob/master/scripts/ryu/l2_switch_v1_3.py#L45 ________________________________ This email is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this email message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this email in error, please notify the sender and destroy/delete all copies of the transmittal. Thank you. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
