[ovs-discuss] help in using QoS in Ovswitch

刘人杰 libvance at 163.com
Sun Jun 2 12:48:57 UTC 2013


I am so sorry to bother you, but I have met a problem when I set QoS on openvswitch.
I set up 4 VMs, one of them is set up as ovswitch, and the other 3 as host. There are 3 interfaces on the switch, eth0,eth1,and eth2, each of them is connected to a host,.
And, I want to set up a rate-limit between host 1 and 3 is 30M, and 100K between host 2 and host 3.
Following are my commands:
 ovs-vsctl -- set port eth1 qos=@new qos --set port eth2 qos=@new qos --set port eth3 qos=@newqos -- --id=@newqos create qos type=linux-htb other-config:max-rate=50000000 queue=0=@q0,1=@q1,2=@q2 -- --id=@q0 create queue other-config:min-rate=0 other-config:max-rate=100000 -- --id=@q1 create queue other-config:min-rate=0 other-config:max-rate=3000000
 
ovs-ofctl add-flow br0 in_port=2,nw_dst='host 3 ip_addr' actions=enqueue:3:0
ovs-ofctl add-flow br0 in_port=3,nw_dst='host 2 ip_addr' actions=enqueue:2:0
ovs-ofctl add-flow br0 in_port=1,nw_dst='host 3 ip_addr' actions=enqueue:2:1
ovs-ofctl add-flow br0 in_port=3,nw_dst='host 1 ip_addr' actions=enqueue:1:1
 
However, the result of iperf is as follows:
Bandwith between H1 and H3: 100K
Bandwith between H2 and H3: 100K
 
I tried several times...It seems that every flow is rate-limited by Q0.
 
I tried to change max-rate of Q0 to 1M, and the bandwidth is changed to 1M; What is more, I changed the command
ovs-ofctl add-flow br0 in_port=1,nw_dst='host 3 ip_addr' actions=enqueue:2:1
ovs-ofctl add-flow br0 in_port=3,nw_dst='host 1 ip_addr' actions=enqueue:1:1
into
ovs-ofctl add-flow br0 in_port=1,nw_dst='host 3 ip_addr' actions=output:2
ovs-ofctl add-flow br0 in_port=3,nw_dst='host 1 ip_addr' actions=output:1
And the result is same, bandwidth is only 100K.
And, I exchanged the location of Q0 and Q1in the QoS command, as
queue=1=@q1,0=@q0,2=@q2
then, all the bandwidth is 30MB. It seems that all the flows is rate limited by the first queue.
 
I am wondering if there is something wrong in my command?
Or it is a bug in Open-vswitch?
 
Thanks so much!
Best regards,
--
Rovince Liu
 
Department of Electronic Engineering Tsinghua University








--

刘人杰
Rovince Liu
 
清华大学电子工程系
Department of Electronic Engineering Tsinghua University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20130602/1a9aa392/attachment.html>


More information about the discuss mailing list