Home > Design Patterns > Load Balanced Virtual Switches
Load Balanced Virtual Switches

Load Balanced Virtual Switches (Erl, Naserpour)

How can workloads be dynamically balanced on physical network connections to prevent bandwidth bottlenecks?

Problem

When network traffic on the uplink port for a virtual switch increases, it can cause delays, performance issues and packet loss because the affected virtual servers are sending and receiving traffic via only one uplink.

Solution

Network traffic is balanced across multiple uplinks between the virtual and physical networks.

Application

Extra network interface cards are added to the physical host to accommodate the virtual switch that is configured with multiple physical uplinks.

Problem

Virtual servers are connected to the outside world via virtual switches. When the network traffic on the uplink port increases, bandwidth bottlenecks can occur, resulting in transmission delays, performance issues, packet loss, and lag time because the virtual servers are sending and receiving traffic via the same uplink.

Load Balanced Virtual Switches: The sequence of events that can lead to network bandwidth bottlenecks.

Figure 1 - The sequence of events that can lead to network bandwidth bottlenecks.

  1. A virtual switch has been created and is being used to interconnect virtual servers.
  2. A physical network adapter has been attached to the virtual switch to be used as an uplink to the physical (external) network, connecting virtual severs to cloud consumers.
  3. Cloud consumers can send their requests to virtual servers via the physical uplink. The virtual servers reply via the same uplink.
  4. When the number of requests and responses increases, the amount of traffic passing through the physical uplink also grows. This further increase the number of packets that need to be processed and forwarded by the physical network adapter.
  5. Because traffic increases beyond the physical adapter’s capacity, it is unable to handle the workload.
  6. The network forms a bottleneck that results in performance to degradation and the loss of delay-sensitive data packets.

Solution

A load balancing system is established whereby multiple uplinks are provided to balance network traffic workloads.

Application

Balancing the network traffic load across multiple uplinks or redundant paths can help avoid slow transfers and data loss. Link aggregation can further be used to balance the traffic, thereby allowing the workload to be distributed across multiple uplinks at the same time. This way, none of the network cards are overloaded.

Load Balanced Virtual Switches: The addition of network interface cards and physical uplinks allows network workloads to be balanced.

Figure 2 - The addition of network interface cards and physical uplinks allows network workloads to be balanced.

  1. Virtual servers are connected to the external network via a physical uplink, while actively responding to cloud consumer requests.
  2. An increase in requests leads to increased network traffic, resulting in the physical uplink becoming a bottleneck.
  3. Additional physical uplinks are added to enable network traffic to be distributed and balanced.

The virtual switch needs to be configured to support multiple physical uplinks. The number of required uplinks can vary on a server-by-server basis. The uplinks generally need to be configured as a team (also known as an NIC team) for which traffic shaping policies are defined.

NIST Reference Architecture Mapping

This pattern relates to the highlighted parts of the NIST reference architecture, as follows:

Load Balanced Virtual Switches: NIST Reference Architecture Mapping
CloudSchool.com Cloud Certified Professional (CCP) Module 5: Advanced Cloud Architecture.

This pattern is covered in CCP Module 5: Advanced Cloud Architecture..

For more information regarding the Cloud Certified Professional (CCP) curriculum, visit www.cloudschool.com.