On VMware vSphere, you have the ability to create virtual standard switches (vSS), as well as virtual distributed switches (vDS).
In this article you will see the advantages, differences and working principle of these virtual distributed switches (vDS).
Warning : the use of virtual distributed switches (vDS) requires an "Enterprise Plus" edition of VMware vSphere.
When you install your first hypervisor on VMware ESXi, a virtual standard switch (vSS) is created by default on it.
This allows, in summary, to make the connection between the virtual network and the physical network, as explained previously in our article: VMware ESXi 6.7 - Basics of network management on VMware ESXi.
When using the web interface of your VMware ESXi hypervisor, this is the only type of virtual switch you can create.
However, as you might expect, when using Virtual Standard Switches (vSS), you must create and configure them on each VMware ESXi hypervisor.
Which can quickly become unmanageable or even a source of error if you want to create a VMware virtual infrastructure with numerous hypervisors on VMware ESXi.
Indeed, if you one day have to modify a parameter on one of the virtual standard switches (vSS) and you forget to make this same modification on the other virtual standard switch (vSS), a problem may arise one day when a virtual machine will be migrated from one VMware ESXi host to another.
Thanks to the "Enterprise Plus" edition of VMware vSphere, you also have the possibility of creating virtual distributed switches (vDS) from the VMware vCenter Server (VCSA) that you have previously installed and configured.
Indeed, in a professional VMware virtual infrastructure, you no longer manage your VMware ESXi hosts one by one. But rather centrally from the VMware vSphere Client of your VMware vCenter Server (VCSA) to which your VMware ESXi hosts are linked.
The main benefit of a vSphere Distributed Switch (vDS) is that it allows you to centralize the management of your virtual switch, as well as its distributed port groups.
When you create a virtual distributed switch (vDS) from your VMware vCenter Server (VCSA), you also have the ability to monitor and control whether the configuration is correct for all VMware ESXi hosts that you add to this virtual distributed switch (vDS).
Limits:
As you can see in the diagram below (created by VMware), a virtual switch is made up of 2 logical sections:
No matter what type of virtual switch you create, it always has the 2 plans mentioned above.
In the case of a standard virtual switch (vSS), these 2 plans are located in the same place (on your VMware ESXi hypervisor).
You can therefore create and configure this type of switch on each VMware ESXi hypervisor where you want to use it.
Which means that each virtual standard switch (vSS) is independent and they must be configured and updated separately.
In the case of a virtual distributed switch (vDS), you can see that the management plane is on your VMware vCenter Server (VCSA) since it is on this central server that you will configure your distributed virtual switch (vDS).
The associated data plane (which corresponds to "Host Proxy Switch") will be created on each VMware ESXi host added to your distributed virtual switch. Then, the host proxy switch of each VMware ESXi host will be updated automatically from the virtual distributed switch (vDS) configured on your VMware vCenter Server (VCSA).
Note that because the data plane is defined at each VMware ESXi host and is simply updated automatically from the management plane configured on the VMware vCenter Server (VCSA), an outage or outage of the VMware vCenter Server (VCSA) server will not pose any problem for the correct functioning of the network on your VMware ESXi hosts.
Virtual Distributed Switches (vDS) have an abstraction layer to configure the proper networking of multiple hosts by taking into account all of their physical network cards, virtual machines, and VMkernel adapters (VMkernel interfaces).
When you used virtual standard switches (vSS) on a VMware ESXi host, you had to assign physical network adapters (vmnicX) from the affected VMware ESXi host for physical network access.
From the moment you use a virtual distributed switch (vDS), a host proxy switch is created on each desired VMware ESXi host (as explained previously).
Which involves the use of uplink port groups (or "dvUplink port groups") which allows grouping the desired physical network cards from different hosts that are connected to the same physical network.
By default, when creating a virtual distributed switch (vDS), an uplink port group is already created.
In the case of a virtual distributed switch (vDS), an uplink is a pattern that you will use to map the physical NICs of other VMware ESXi hosts that are connected to the same physical network.
Thus, migrating a virtual machine from one VMware ESXi host to another with the same virtual distributed switch (vDS) will not pose any network problems since the virtual machine will still have access to the same physical network via a physical network card of the destination host.
With these uplink port groups, the load balancing (NIC teaming) and failover policies that you define for your uplinks can be automatically applied on the physical network cards (vmnicX) of the host proxy switches present on your different VMware ESXi hosts.
As with standard virtual switches (vSS), you will find the notion of port group on your distributed virtual switch (vDS).
Although these are now called distributed port groups since you create them once on your virtual distributed switch (vDS) on your VMware vCenter Server (VCSA) and the port groups will then be created and automatically updated on your different VMware ESXi hosts.
These distributed port groups again allow you to manage the network traffic of your virtual machines and VMkernel adapters (VMkernel interfaces) and again have a network label.
But, since you are on VMware vCenter Server (VCSA), it is necessary that this network label be unique per data center (DC).
For the available parameters, you will find the network card association (NIC teaming) and failover strategies, the security options (promiscuity, ...), the notion of VLAN, ...
Note that the number of distributed ports of host proxy switches varies dynamically to optimize resource utilization on your VMware ESXi hosts. The limit on this number of ports varies depending on the maximum number of virtual machines your VMware ESXi host can handle.
As you can see in the diagram below, there are 2 VMware ESXi hosts with 3 physical NICs per host.
In the example below, you can see that:
Which means that if you configure the "VM Network" distributed port group to use uplinks 1 and 2, your virtual machines' network traffic will always go out through the physical NIC "vmnic0" or "vmnic1" of one of your VMware ESXi hosts.
Network traffic from your virtual machines and VMkernel adapters (vmkX) to the physical network will therefore simply depend on the NIC teaming and load balancing policies configured on your distributed port groups ("VM Network" and "VMkernel Network" in the example below).
This will also depend on the port numbers allocated to the different virtual ports in your distributed port groups and the ports in your uplink port group.
As you can see, when you create a distributed virtual switch, it first allocates ports to your distributed port groups ("VM Network" and "VMkernel Network" in the example below), then continuous dialing for your hosts' uplinks in the order in which you add your hosts to this switch.
In the example below, you can see that this virtual distributed switch (vDS) has 10 ports numbered 1 to 10.
On each of your hosts, network traffic from your virtual machines and VMkernel adapters (VMkernel interfaces) will use ports allocated by your virtual distributed switch (vDS) to access the physical network (if necessary).
In the example below, you only see a schema of the host proxy switch automatically created on host 1 from the virtual distributed switch (vDS) configured on your VMware vCenter Server.
In this example, a packet sent by VM2 will first pass through port 1 allocated to the "VM Network" distributed port group.
Then, given that uplinks 1 and 2 are assigned to the distributed port group "VM Network", the packet will be able to pass through port 5 or 6 and therefore respectively through the network card "vmnic0" or "vmnic1" of this host 1.
To learn more about virtual distributed switch (vDS) architecture, visit the "vSphere Distributed Switch Architecture - VMware Docs" page in the official VMware documentation where the diagrams used in our article are taken.
All Virtual Standard Switch (vSS) features below are also available on Virtual Distributed Switches (vDS):
Virtual Distributed Switches (vDS) have the features mentioned above, as well as those below:
With Virtual Distributed Switches (vDS), you will be able to:
Virtual Distributed Switches (vDS) also make it easier for you to monitor and troubleshoot your network issues with:
Finally, virtual distributed switches (vDS) also allow you to benefit from advanced vSphere networking features:
Sources :
VMware 4/28/2023
VMware 10/9/2024
VMware 9/13/2024
VMware 7/24/2024
Pinned content
Contact
® InformatiWeb-Pro.net - InformatiWeb.net 2008-2022 - © Lionel Eppe - All rights reserved.
Total or partial reproduction of this site is prohibited and constitutes an infringement punishable by articles L.335-2 and following of the intellectual property Code.
You must be logged in to post a comment