VMware Cloud Community
KostasK
Enthusiast
Enthusiast

Traffic Shaping help

Hi all,

I'm working on a project and I'm trying to give a solution with traffic shaping.

I have 11 VMs and I want to share 700Mbps on them.

1 VM will take 200 Mbps

10 VMs will share 500Mbps but I want to guarantee a maximum of 100Mbps for each VM

I have 2 portgroups. The first one with a limit of 200 for the 1 VM and the second one with

for the other VMs a limit of 500 (?)

How could I ensure the 100 Mbps max without create a problem if more than 4 vms have high network traffic?


Thanks

5 Replies
bayupw
Leadership
Leadership

Which vSphere version are you using and what edition?
Are you using a vSphere Distributed Switch?

You can use Network I/O Control version 3 to achieve this VMware vSphere 6.5 Documentation Library - About vSphere Network I/O Control Version 3

VMware vSphere 6.5 Documentation Library - About Allocating Bandwidth for Virtual Machines

You can think that you have 2 tenants, the aggregated VM reservation is 700Mb, Tenant A Network Resource Pool 200Mb and Tenant B Network Resource Pool 500Mb

Network I/O Control version 3 supports pools of bandwidth quota parts of which virtual machines can reserve.

For Tenant B, set a limit on each VM network reservation to be 100Mb

The reservation of bandwidth for a virtual machine in Network I/O Control is guaranteed against the reservation of virtual machine system traffic on the physical adapter that sends the traffic from the VM.

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
KostasK
Enthusiast
Enthusiast

Hi Bayu,

We are on vSphere 6.0 for now, but we 'll go to 6.5 soon..

Thanks for you answer

0 Kudos
bayupw
Leadership
Leadership

6.0 has NIOC v3 too so it should work if you have the license & running vSphere Distributed Switch

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw
KostasK
Enthusiast
Enthusiast

Hi again Bayu,

Lets assume that I have the Tenant B resource pool (500Mb), with 10 VMs on it and with a limit on each VM network reservation to be 100Mb.

What happens if 5 VMs take all bandwidth? What happens with the rest 5 VMs?

0 Kudos
bayupw
Leadership
Leadership

Hi KostasK

Sorry I have missed your reply

When there is a network contention, VMs in the resource pool will use shares.

For example, you have 3 VMs in Tenant B, VM1 shares is set to 50, VM2 shares 25, and VM3 shares 25 with total resource pool 500Mb

Shares is calculated as:

VM shares / total shares x bandwidth or resource pool

Total shares are 50+25+25

VM1: 50/100 x 500Mb = 250Mb

VM2: 25/100 x 500Mb = 125Mb

VM3: 25/100 x 500Mb = 125Mb

Bayu Wibowo | VCIX6-DCV/NV
Author of VMware NSX Cookbook http://bit.ly/NSXCookbook
https://github.com/bayupw/PowerNSX-Scripts
https://nz.linkedin.com/in/bayupw | twitter @bayupw