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:

  1. 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:
    
  2. 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 as netperf, check speed, and so on: ...

Get Mastering KVM Virtualization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.