Virtual switching

2.1 Describe device virtualization technologies

📘CCNP Encore (350-401-ENCORE-v1.1)


What is Virtual Switching?

Virtual switching is a software-based network switch that operates inside a virtualized environment, such as on a hypervisor, rather than being a separate physical switch. It allows virtual machines (VMs) and other virtual devices to communicate with each other and with the physical network.

Think of it as a network switch inside a server that connects multiple virtual machines, instead of connecting physical computers.


Key Components of Virtual Switching

  1. Virtual Switch (vSwitch):
    • A software layer that connects VMs to each other and to the physical network.
    • Runs inside the hypervisor.
    • Can perform many functions of a physical switch, such as VLAN tagging, port security, and traffic management.
  2. Virtual Network Interface Card (vNIC):
    • Each VM uses a vNIC to connect to a virtual switch.
    • Functions similarly to a physical NIC but exists in software.
  3. Port Groups or VLANs:
    • Virtual switches can organize ports into port groups, similar to VLANs on a physical switch.
    • Allows network segmentation and traffic separation within the virtual environment.

Types of Virtual Switches

  1. Standard vSwitch (Basic):
    • Connects VMs inside a single host.
    • Simple, used for small-scale virtual environments.
    • Limited features compared to distributed virtual switches.
  2. Distributed Virtual Switch (DVS):
    • Managed centrally across multiple hypervisors.
    • Provides consistent network policies across many hosts.
    • Useful in large enterprise or data center environments.
    • Examples: VMware vSphere Distributed Switch (VDS), Cisco Nexus 1000V.

Functions and Features of Virtual Switching

Virtual switches can perform almost all the tasks of a physical switch. Key features include:

  1. VLAN Tagging:
    • Assigns VMs to different virtual LANs.
    • Ensures isolation and security between different groups of VMs.
  2. Port Security:
    • Controls which VMs or vNICs can connect.
    • Helps prevent unauthorized access to the virtual network.
  3. Traffic Shaping and QoS:
    • Limits bandwidth per VM or prioritizes certain traffic.
    • Useful for managing network performance in a shared environment.
  4. Link Aggregation:
    • Combines multiple physical NICs to increase bandwidth or provide redundancy.
    • Ensures high availability for VM traffic.
  5. Monitoring and Mirroring:
    • Allows administrators to monitor VM traffic for troubleshooting or security.
    • Mirroring sends a copy of network traffic to a monitoring VM.

How Virtual Switching Works in an IT Environment

Imagine a server hosting multiple VMs (like web servers, database servers, and application servers). Virtual switches make the following possible:

  1. VM-to-VM Communication:
    • VMs on the same host can communicate through the virtual switch without touching the physical network.
    • Reduces latency and network congestion.
  2. VM-to-Physical Network Communication:
    • Virtual switches connect VMs to the physical network through uplinks (physical NICs on the host).
    • VMs can access the internet or communicate with physical servers.
  3. Network Isolation for Security:
    • VMs can be assigned to different VLANs to isolate sensitive data.
    • Example: Web servers on VLAN 10, database servers on VLAN 20.
  4. Centralized Management (in Distributed Virtual Switches):
    • Admins can manage networking policies for all hosts and VMs from a single point.
    • Simplifies large-scale environments.

Examples of Virtual Switch Use in IT

  • Data Center: A virtual switch connects hundreds of VMs running across multiple hosts, allowing them to communicate securely and efficiently.
  • Cloud Hosting: Cloud providers use virtual switches to isolate customer environments while connecting them to the internet.
  • Lab or Testing Environment: A virtual switch allows IT teams to simulate network scenarios without buying physical switches.

Exam Tips for Virtual Switching

  1. Understand the difference between a physical switch and a virtual switch.
  2. Know the functions of a virtual switch: VLANs, port security, traffic shaping, monitoring.
  3. Be able to explain VM-to-VM and VM-to-physical network communication.
  4. Know the difference between Standard vSwitch and Distributed vSwitch.
  5. Remember that virtual switches operate inside hypervisors like VMware ESXi or Hyper-V.

Summary Table:

FeatureVirtual Switch Function
VLANsSegregates traffic between VMs
Port SecurityRestricts access to authorized VMs
Traffic ShapingControls bandwidth per VM
Link AggregationCombines multiple uplinks for performance or redundancy
Monitoring/MirroringAllows traffic analysis and troubleshooting
VM-to-VM communicationDirectly connects VMs inside the host
VM-to-Physical networkConnects VMs to the outside network via uplink

Virtual switching is essential for virtualized IT environments and is a core concept in the CCNP exam. By understanding its functions, types, and examples, you’ll be able to explain it clearly in both theory and practical exam scenarios.


Buy Me a Coffee