Showing posts with label V Network. Show all posts

Standard Virtual Switch Architecture

Standard Virtual Switch Architecture

             Now let’s take a few minutes to discuss the components of the standard switch architecture which is driven from the host level

To the outside world, the vNIC has its own MAC address and one or more IP addresses and responds to the standard Ethernet protocol exactly as a physical NIC would. In fact, an outside agent can determine it is communicating with a virtual machine only if it checks the six byte vendor identifier in the MAC address.

A standard switch, or standard virtual Switch, works like a layer-2 physical switch. It maintains a MAC: port forwarding table and performs three important functions:
  1. It looks up each frame’s destination MAC when it arrives. 
  2. It forwards a frame to one or more ports for transmission.
  3. And, it avoids unnecessary deliveries. In other words, it is not a hub.
 Each ESX/ESXi host has its own standard virtual switches. You can create up to 127 virtual switches on each ESX/ESXi host. 

On one side of the virtual switch are port groups that connect to virtual machines. On the other side are uplink connections to physical Ethernet adapters on the server where the virtual switch resides.
Virtual machines connect to the outside world through the physical Ethernet adapters that are connected to the virtual switch uplinks. ESX supports high performance networking for running the most demanding workloads in virtual machines.

A standard switch can connect its uplinks to more than one physical Ethernet adapter to enable NIC teaming. With NIC teaming, two or more physical adapters can be used for load balancing or to provide passive failover in the event of a physical adapter hardware failure or a network outage.
The virtual ports on a virtual switch provide logical connection points among virtual devices and between virtual and physical devices. You can think of the ports as virtual RJ-45 connectors. Each virtual switch can have up to 1,016 virtual ports, with a limit of 4,096 ports on all virtual switches on a host. However, this system-wide limit includes eight reserved ports per standard vSwitch, so you can use only 4088 ports.

A virtual Ethernet adapter updates the virtual switch port with MAC filtering information when it is initialized and whenever it changes. A virtual port may ignore any requests from the virtual Ethernet adapter that would violate the Layer 2 security policy in effect for the port. For example, if MAC spoofing is blocked, the port drops any packets that violate this rule.

 Port group is a unique concept in the virtual environment. A port group is a mechanism for setting policies that govern the network connected to it. Instead of connecting to a particular port on the standard vSwitch, a virtual machine connects its vNIC to a port group. All virtual machines that connect to the same port group belong to the same network inside the virtual environment even if they are on different physical servers. Port groups can be configured to enforce a number of policies that provide enhanced network security, network segmentation, better performance, higher availability, and traffic management.
Tuesday, September 11, 2012
Tag :

VMware vNetwork Distributed Switch Architecture

VMware vNetwork Distributed Switch Architecture

                  Now let’s look at a diagram that shows the distributed switch architecture which is driven from the datacenter level and is the recommended architecture to use when you are setting up your vNetwork.

First off we have distributed switches. A distributed switch acts as a single virtual switch across all associated hosts. This allows virtual machines to maintain consistent network configuration as they migrate across hosts. Like a standard switch, a distributed switch is a network hub for virtual machines. A distributed switch can route traffic internally between virtual machines or link to an external network.

 Distributed switches are managed entities configured inside of vCenter Server.

 Distributed switches exist across two or more clustered ESX or ESXi hosts. vCenter Server owns the configuration of distributed switches, and the configuration is consistent across all hosts. The uplink ports on the distributed switch link to uplink ports on hidden vSwitches. The hidden vSwitch uplink ports connect to physical NICs, which then connect to the physical switch ports.

Be careful not to confuse a distributed switch with a single switch spanning across several hosts. Two virtual machines on different hosts can communicate with each other only if both virtual machines have uplinks in the same broadcast domain. Consier a distributed switch as a template for the network configuration on each ESX or ESXi host.

 Each distributed switch includes distributed ports. A distributed port represents a port to which you can connect any networking entity, such as a virtual machine, the service console, and so on. vCenter Server stores the state of distributed ports in the vCenter Server database, so networking statistics and policies migrate with virtual machines when moved from host to host. This network vMotion feature is key to implementing state-dependent features such as inline IDS/IPS firewalls, and third-party virtual switches.

Distributed port groups perform the same functions as port groups in standard vSwitches:
  1. They provide a way to logically group distributed ports to simplify configuration,
  2. They inherit and can override all distributed switch properties,
And they do not constitute the means to segregate traffic within the distributed switch (unless you use Private VLANs).

How VMware vNetwork Distributed Switch work if vCenter fail

Within a distributed switch, the control and IO planes are separate:

                The control plane resides in vCenter Server. The control plane is responsible for configuring distributed switches, distributed port groups, distributed ports, uplinks, NIC teaming and so forth.

The control plane also coordinates the migration of the ports and is responsible for the switch configuration. For example, in the case of a conflict in the assignment of a distributed port (say because a virtual machine and its template are powered on), the control plane is responsible for deciding what to do.

The IO Plane is implemented as a hidden vSwitch inside the VMkernel of each ESX or ESXi host. The IO plane manages the actual IO hardware on the host and is responsible for forwarding packets.


This diagram shows a more detailed look at the components of the IO plane of a distributed switch.

On each host, an IO plane agent runs as a VMkernel process and is responsible for communication between the control and IO planes.

IO filters are attached to the IO chains connecting the vNICs to the distributed ports and the distributed ports to the uplinks. vNetwork Appliance APIs make it possible to define custom filters and apply them to the IO chains. The APIs also provide the means to preserve filtering information for the virtual machine connected to each port, even after vMotion.
Inside the IO plane, the forwarding engine decides how to forward packets to other distributed ports, either toward other virtual machines on the same distributed switch, or to an uplink, requiring it to make NIC teaming decisions. Forwarding functions can also be customized using the vNetwork Appliance APIs.

So in case vCenter server goes down still Virtual machine can contact outer network with the help of hidden vSwitch

Pageviews

Followers

Powered by Blogger.

- Copyright © 2013 Selva Sharing -Selvasharing- Powered by Blogger - Designed by @ Access -