Virtualization and networking FAQs

Virtualization and networking FAQs

Physical and virtual networking concepts are very similar. Both physical and virtual environments have network interface cards (NICs), switches, routers, gateways and firewalls. When it comes to networking and virtualization, however, the difference is in virtual network configuration and how these components can be connected.

In general, the connections are:

  • virtual machine (VM) to virtual NIC;
  • virtual NIC to virtual switch;
  • virtual switch to physical NIC; and
  • physical NIC to uplink on a physical switch.

The current thinking is that the demarcation between virtualization and networking is at the physical NIC uplink, and that network administrators cannot see into this. Some believe that network administrators should not be concerned, because they view the virtualization host as a black box instead of a hybrid compute, storage and network device.

The truth is that all network administrators should be concerned about virtualization and networking. To do so, they must understand how VM networking works. Here are answers to some frequently asked questions about virtual network configuration:

Can you layer virtual switches

    Requires Free Membership to View

    When you register, my team of editors will also send you the latest expert resources covering all areas of server virtualization, such as platforms, architectures and strategies, server hardware, managing virtual environments, application issues and more.

    Margie Semilof, Editorial Director

    By submitting your registration information to SearchServerVirtualization.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchServerVirtualization.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

like you can physical switches?
Not directly. Most hypervisors have only one virtual switch. Hypervisors that have more than one require a VM to sit between the virtual switches to act as a firewall, gateway or router.

How many virtual network configurations are there?
As many as you can dream up. But each hypervisor has a set of built-in networks that need to be addressed with your network administrator. In many cases, these networks are considered to be their own security zone. These networks are the following:
  • Management console network
  • Live Migration or vMotion network
  • Storage network(s): Fibre Channel, iSCSI, network file system, common Internet file system, Fibre Channel over Ethernet (FCoE), etc.
  • VM networks
These networks are a part of each virtualization host and should be considered when doing any network planning.

How do you optimize virtual network performance?
This depends on the hypervisor and what it allows within the virtual network. In general, most hypervisor vendors provide paravirtualized network drivers for each guest operating system (OS). I recommend using this route.

Optimization entails balancing your network load across multiple network paths, as necessary. Some hypervisors accomplish this by using load balancing within the virtual switch, allowing you to use multiple uplinks to one virtual switch for its networks. Other mechanisms for optimizing virtual network performance include implementing quality of service or better balance of virtual network payloads across hosts.

Does virtual networking behave differently than physical machine networking?
Absolutely not. A guest OS recognizes virtual and physical networks in the same manner. Each hypervisor's data flow, however, may be different. This data flow is how the packets move around the network based on target, more than anything else. The virtual switch could route traffic outside the virtual host even if it's VM to VM. This behavior would depend on the hypervisor, though.

What are some virtual network performance issues to consider?
The most important virtual network performance consideration is that VMs affect the network performance of other VMs. Typically, every VM on the vSwitch shares the uplinks from the physical switch to the virtual switch. This is true even if the data stays within the virtual switch, as this also takes the CPU from the hypervisor. This is often why there is more than one uplink to a virtual switch, and the virtual switch can either load balance or the administrator can pair an uplink to a VM. This is a balancing act that will continue until 10G is common place -- and, even then, the loads will increase as well.

What should I tell my network administrator?
From the start, the network administrator needs to be a part of the virtualization and networking process. Later on, if the networking team joins the project, you need to provide them with all necessary documents so they can feel comfortable with previous decisions (i.e., access to what is happening and how things are working). This is a critical issue, for instance, when using FCoE and other converged networks.

Are there any pre-planned virtual networks available?
Not really. The key to designing any network -- whether physical or virtual -- is to view the network in its entirety, and ignore the virtual aspect. Then, you can add in different functionality to meet specific requirements.

By starting with this generalized networking perspective, the virtualization host will provide an edge switch that wasn't present before. It's not 100% accurate, but it's a very good way to begin the planning process.

ABOUT THE AUTHOR: Edward L. Haletky is the author of VMware ESX Server in the Enterprise: Planning and Securing Virtualization Servers. He recently left Hewlett-Packard Co., where he worked on the virtualization, Linux and high-performance computing teams. Haletky owns AstroArch Consulting Inc. and is a champion and moderator for the VMware Communities Forums.

This was first published in December 2009

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.

    Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.