Applying traffic rate limiting
Let us see how we can apply traffic rate limiting on an interface for designing Network QoS. The steps mentioned next will walk you through the procedure:
As a rate limiting policy is applied on the interface, find out the corresponding network interface name of the virtual machine.
virsh domiflist <vm-name>
is a handy command for this:[root@kvmHOST1 ~]# virsh domiflist Fed1 Interface Type Source Model MAC ------------------------------------------------------- fed1 bridge NewNetwork virtio 52:54:00:b3:40:
SSH to the virtual machine and check what the current ingress traffic bandwidth is. I am using the
iperf
command to determine it. There are many other utilities available such asnetperf
, check speed, and so on:[root@Fed1 ~]# iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ ...