# ovs-vsctl set Interface vnet0 ingress_policing_rate=100000
# ovs-vsctl set Interface vnet0 ingress_policing_burst=10000
The config can be tested with iperf by running the client on the VM, like:
# iperf -d -i 10 -c <destserver> -t 60
[ 3] 0.0-10.0 sec 124 MBytes 104 Mbits/sec
[ 3] 10.0-20.0 sec 118 MBytes 99.1 Mbits/sec
[ 3] 20.0-30.0 sec 116 MBytes 97.1 Mbits/sec
[ 3] 30.0-40.0 sec 117 MBytes 98.1 Mbits/sec
[ 3] 40.0-50.0 sec 116 MBytes 97.7 Mbits/sec
[ 3] 50.0-60.0 sec 118 MBytes 99.2 Mbits/sec
[ 3] 0.0-60.2 sec 710 MBytes 98.9 Mbits/sec
To reset the bandwidth to full speed:
nice..
ReplyDeletei also tried to implement ingress on my OVS machine, but it couldn't work, n my bandwidth same as before,,
can u give some advice?
thnx
It's hard to say why it is not working for you. Make sure you're using the right network interface (eg. vnet0, vnet1, ...), or whatever the virtual interface is called on your host (could be as well tap0, ...)
ReplyDeleteIf you're using KVM, do a virsh dumpxml to figure out the target device for your network interface and configure ovs accordingly.