← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1662582] [NEW] QoS egress minimum bandwidth with Linuxbridge doesn't work

 

Public bug reported:

I tested QoS egress minimum bandwidth with Linuxbridge but it doesn't
work in my env.

My test scenario:
1) prepares 2 compute nodes(nodeA, nodeB) which are connected 100Mbps.
2) creates network1(with minimum bandwidth rule 70Mbps) and network2(non rule)
3) creates VM1(on nodeA) and VM2(on nodeB) with network1, and VM3(on nodeA) and VM4(on nodeB) with network2
4) runs iperf from VM1 to VM2 and from VM3 to VM4

In (4), I expected VM1-VM2's result is over 70Mbps and VM3-VM4's result
is below 30Mbps because of minimum bandwidth rule. However, they were
almost the same value(40~45Mbps).

The following is a example of commands that I executed in openstack:
neutron net-create network1
neutron subnet-create network1 10.0.1.0/24 --name subnet1
neutron qos-policy-create bw-min
neutron qos-minimum-bandwidth-rule-create --min-kbps 70000 --direction egress bw-min
neutron net-update network1 --qos-policy bw-min
neutron net-create network2
neutron subnet-create network2 10.0.1.0/24 --name subnet2
nova boot VM1~4

The following is a example of commands that I executed in VM1,3:
$ iperf -c $IP_ADDRESS_FOR_VM2_OR_VM4 -u -b 100M -t 10 -i 1

The following is a example of commands that I executed in VM2,4:
$ iperf -s -u

When I executed iperf in one side only, the result was 84.2Mbps.

I saw the code a little. It seems that minimum bandwidth rule is set in
the ifb of each ports. Traffic from VM1 and VM3 is filtered by each
ifb(I guess that the rule allows the traffic to be 100Mbps) and then it
overflows in the NIC of nodeA.

I believe that the issue is just issue of my env. Could you QoS folks
point out my mistake?

** Affects: neutron
     Importance: Undecided
         Status: New


** Tags: qos

** Tags added: qos

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1662582

Title:
  QoS egress minimum bandwidth with Linuxbridge doesn't work

Status in neutron:
  New

Bug description:
  I tested QoS egress minimum bandwidth with Linuxbridge but it doesn't
  work in my env.

  My test scenario:
  1) prepares 2 compute nodes(nodeA, nodeB) which are connected 100Mbps.
  2) creates network1(with minimum bandwidth rule 70Mbps) and network2(non rule)
  3) creates VM1(on nodeA) and VM2(on nodeB) with network1, and VM3(on nodeA) and VM4(on nodeB) with network2
  4) runs iperf from VM1 to VM2 and from VM3 to VM4

  In (4), I expected VM1-VM2's result is over 70Mbps and VM3-VM4's
  result is below 30Mbps because of minimum bandwidth rule. However,
  they were almost the same value(40~45Mbps).

  The following is a example of commands that I executed in openstack:
  neutron net-create network1
  neutron subnet-create network1 10.0.1.0/24 --name subnet1
  neutron qos-policy-create bw-min
  neutron qos-minimum-bandwidth-rule-create --min-kbps 70000 --direction egress bw-min
  neutron net-update network1 --qos-policy bw-min
  neutron net-create network2
  neutron subnet-create network2 10.0.1.0/24 --name subnet2
  nova boot VM1~4

  The following is a example of commands that I executed in VM1,3:
  $ iperf -c $IP_ADDRESS_FOR_VM2_OR_VM4 -u -b 100M -t 10 -i 1

  The following is a example of commands that I executed in VM2,4:
  $ iperf -s -u

  When I executed iperf in one side only, the result was 84.2Mbps.

  I saw the code a little. It seems that minimum bandwidth rule is set
  in the ifb of each ports. Traffic from VM1 and VM3 is filtered by each
  ifb(I guess that the rule allows the traffic to be 100Mbps) and then
  it overflows in the NIC of nodeA.

  I believe that the issue is just issue of my env. Could you QoS folks
  point out my mistake?

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1662582/+subscriptions


Follow ups