[ovs-discuss] help in using QoS in Ovswitch

Jesse Gross jesse at nicira.com
Tue Jun 4 01:31:32 UTC 2013


On Sun, Jun 2, 2013 at 5:48 AM, 刘人杰 <libvance at 163.com> wrote:
> 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?

There are several FAQ entries on QoS, have you read those first?



More information about the discuss mailing list