Hello all, I tried to limit bandwidth for particular VM attached to OpenVSwitch port.
There are VMs attached to virtual switch br3. I want to limit bandwidth for one VM, which is attached to br3 and in_port 2. Doing as follows: 1) # ovs-vsctl set port br3 qos=@newqos1 -- --id=@newqos1 create qos type=linux-htb other-config:max-rate=10 queues:123=@vn2queue -- --id=@vn2queue create queue other-config:max-rate=10 # ovs-ofctl add-flow br3 "priority=50,in_port=2,actions=set_queue:123,normal" Command worked! The bandwidth is limited as expected for all traffic going through LOCAL port of br3, limit is very tight so even icmp echo is hardly passed. All VMs are affected by this. After that I tried to limit the bandwidth for only one VM, and give almost unlimited bandwidth for the others: 2) # ovs-vsctl set port br3 qos=@newqos1 -- --id=@newqos1 create qos type=linux-htb other-config:max-rate=100000000 queues:123=4d65ddec-5c5d-4c87-8165-dd51431c7ab3 Here the ID 4d65ddec-5c5d-4c87-8165-dd51431c7ab3 is that queue which was created in previous steps with max-rate=10 OpenFlow rule for redirecting traffic from the in_port=2 to that queue remains the same. After that I got all VMs (including attached to in_port 2) has got that big bandwidth (100000000). But it was supposed that VM from port 2 cannot send even pings (as its traffic should be limited by max-rate=10). Am I doing something wrong or maybe have incorrect understanding how QoS works? Or it is a known issue within OVS? Please help.
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
