Skip to main content
ExplainerNetwork ProtocolsExplainer· 5 min read· in Technology

How Cloud Providers Isolate Millions of Virtual Networks on Shared Physical Hardware

By encapsulating local network traffic inside standard internet packets, the Virtual Extensible LAN protocol allows data centers to host millions of isolated tenant networks on the same physical infrastructure.

By Wei Zhang

Cloud Architects 40%Hardware Engineers 35%Protocol Designers 25%
Cloud Architects
Value VXLAN for its ability to decouple logical network topologies from physical hardware constraints, enabling massive scale.
Hardware Engineers
Focus on the physical underlay requirements, specifically the necessity of jumbo frames and the shift toward ASIC-based hardware offloading.
Protocol Designers
Prioritize the standardization of encapsulation methods and control planes to ensure interoperability across different vendor equipment.

Perspectives this story doesn't cover

  • Enterprise IT Managers
  • Data Center Cooling Engineers

The entire illusion of the public cloud depends on a single physical constraint: the underlying hardware switches must be able to route standard IP packets reliably while accommodating slightly oversized payloads. If the physical network drops a packet because it is 50 bytes too large, the virtual networks built on top of it instantly fracture. This requirement for "jumbo frames" is the non-negotiable foundation of modern data center virtualization, dictating how companies like Amazon, Microsoft, and Alibaba construct their facilities.[2][9]

Before the cloud era, network engineers isolated different departments using Virtual Local Area Networks (VLANs). Defined by the IEEE 802.1Q standard, a VLAN tags each Ethernet frame with a 12-bit identifier. "That 12-bit limit means you can only have 4,094 distinct networks," notes the Internet Engineering Task Force in RFC 7348. In a corporate office, 4,000 networks is plenty. In an Amazon Web Services (AWS) or Alibaba Cloud data center hosting hundreds of thousands of tenants, it is a hard mathematical wall.[1]

Furthermore, traditional Layer 2 networks rely on the Spanning Tree Protocol to prevent traffic loops, which forces redundant physical links to remain inactive. As cloud providers scaled their facilities to house tens of thousands of servers, they needed a way to use all available bandwidth across complex, multi-path topologies without running out of network identifiers. The physical hardware was capable of moving the data, but the logical protocols were suffocating the scale.[8][9]

By expanding the network identifier from 12 bits to 24 bits, VXLAN increased tenant capacity by a factor of 4,096.

The solution emerged in 2014 with the formalization of the Virtual Extensible Local Area Network (VXLAN) protocol. Co-authored by VMware, Cisco, and Arista Networks, VXLAN fundamentally separates the virtual network (the overlay) from the physical hardware (the underlay). While marketing materials often describe the cloud as a seamless, infinite resource, the reality is a highly structured illusion maintained by continuous packet encapsulation.[1][4][6]

VXLAN operates through a mechanism called MAC-in-UDP encapsulation. When a virtual machine sends a standard Ethernet frame, the hypervisor intercepts it. Instead of sending that frame directly to the physical switch, the software wraps the entire Layer 2 frame inside a Layer 3 User Datagram Protocol (UDP) packet. The physical network never sees the original frame; it only sees a standard internet packet traveling from one server to another.[1][2]

Inside this new wrapper, VXLAN inserts a 24-bit VXLAN Network Identifier (VNI). "This 24-bit VNI accommodates up to 16 million VXLAN segments, which enables massive multitenant deployments," explains Cisco's technical documentation. By expanding the identifier space from 12 bits to 24 bits, the protocol increases the number of possible isolated networks by a factor of 4,096, entirely removing the bottleneck that constrained early data centers.[4]

Inside this new wrapper, VXLAN inserts a 24-bit VXLAN Network Identifier (VNI).

The encapsulation and decapsulation process is handled by a component called a VXLAN Tunnel Endpoint (VTEP). A VTEP can be a software switch running inside a hypervisor, or a physical top-of-rack switch. When the UDP packet travels across the physical data center, the underlying hardware only routes the traffic between the source VTEP and the destination VTEP, completely blind to the tenant data hidden inside.[5][6]

Because the physical network is only routing IP packets, it can utilize standard Layer 3 routing protocols like Border Gateway Protocol (BGP) or Open Shortest Path First (OSPF). This allows data centers to implement highly efficient "spine-and-leaf" architectures, where every switch is exactly the same number of hops away from every other switch, utilizing all available physical cables simultaneously without the blocking behavior of legacy Layer 2 protocols.[6][8]

This abstraction is not free. Wrapping an Ethernet frame inside a UDP packet adds exactly 50 bytes of overhead: an 8-byte VXLAN header, an 8-byte UDP header, a 20-byte IP header, and a 14-byte outer Ethernet header. If a virtual machine generates a standard maximum-size 1,500-byte frame, the resulting VXLAN packet will be 1,550 bytes before it hits the wire.[1]

VXLAN adds exactly 50 bytes of overhead to every packet, requiring physical switches to support jumbo frames.

This is why the binding constraint of the physical network is so critical. Standard Ethernet hardware drops packets larger than 1,518 bytes. To support VXLAN, cloud providers must configure their physical switches to accept "jumbo frames"—typically up to 9,000 bytes. If a single switch in the path lacks this configuration, the encapsulated packets are silently discarded, and the virtual network experiences catastrophic packet loss.[1][9]

Initially, VXLAN relied on a technique called "flood and learn" to discover where specific virtual machines were located, which generated excessive broadcast traffic. To solve this, the industry adopted Ethernet Virtual Private Network (EVPN) as a control plane. "EVPN-VXLAN provides a scalable, robust, and highly available control plane," notes VMware, allowing switches to share location data proactively via BGP rather than shouting across the network to find a destination.[7]

Today, this architecture is the default for public cloud infrastructure. When a customer creates a Virtual Private Cloud (VPC) on Alibaba Cloud, the provider provisions a dedicated VNI. "VPCs are isolated from each other by using tunnels," Alibaba Cloud's architecture documentation states. The customer sees a private, flat network; the physical hardware sees a massive, undifferentiated stream of UDP packets.[3]

This encapsulation provides strict cryptographic-like isolation without the computational cost of actual encryption. Because the VTEP enforces the VNI tag at the hypervisor level, a tenant cannot spoof a packet to inject it into another tenant's network. The physical network has no knowledge of the virtual topologies, and the virtual machines have no awareness of the physical hardware routing their packets.[2][9]

As data center bandwidth increases, the computational cost of encapsulating packets forces providers to offload VXLAN processing to specialized hardware.

As cloud providers push toward 400-gigabit and 800-gigabit Ethernet, the processing cost of wrapping and unwrapping millions of packets per second in software becomes a bottleneck. The industry is increasingly offloading the VTEP function from the server CPU to specialized hardware called Data Processing Units (DPUs) or SmartNICs, ensuring that the software-defined illusion does not throttle the physical reality of the data center.[6][9]

Key points

  • VXLAN encapsulates standard Layer 2 Ethernet frames inside Layer 3 UDP packets to route them across physical data centers.
  • The protocol expands the network identifier space from 12 bits to 24 bits, increasing maximum tenant capacity from 4,094 to over 16 million.
  • Because encapsulation adds 50 bytes of overhead, the underlying physical switches must be configured to accept oversized 'jumbo frames'.
  • The abstraction allows cloud providers to use highly efficient Layer 3 routing protocols while presenting a flat, private network to the customer.

Key terms

VTEP (VXLAN Tunnel Endpoint)
The software or hardware component responsible for encapsulating standard Ethernet frames into VXLAN packets and decapsulating them at their destination.
VNI (VXLAN Network Identifier)
A 24-bit tag inserted into the VXLAN header that uniquely identifies the specific virtual network the packet belongs to.
Underlay Network
The physical infrastructure of switches, routers, and cables that actually moves the encapsulated packets across the data center.
Overlay Network
The logical, virtualized network created by VXLAN that tenants interact with, completely abstracted from the physical hardware.
Jumbo Frame
An Ethernet frame with a payload larger than the standard 1,500 bytes, required by physical switches to accommodate the extra overhead of VXLAN encapsulation.

Sources

Source coverage

9 outlets

3 viewpoints surfaced

Cloud Architects 40%Hardware Engineers 35%Protocol Designers 25%
  1. [1]RFC Editor (IETF)Protocol Designers

    Virtual eXtensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks

    Read on RFC Editor (IETF)
  2. [2]AWSCloud Architects

    What is VXLAN? - Virtual Extensible LAN Explained

    Read on AWS
  3. [3]Alibaba CloudCloud Architects

    VPC technical principles - Virtual Private Cloud

    Read on Alibaba Cloud
  4. [4]Cisco Learning NetworkHardware Engineers

    Introduction to VXLAN

    Read on Cisco Learning Network
  5. [5]Juniper NetworksHardware Engineers

    Understanding VXLANs

    Read on Juniper Networks
  6. [6]AristaHardware Engineers

    VXLAN Use Cases in Cloud Scale Data Centers

    Read on Arista
  7. [7]VMwareCloud Architects

    What is EVPN-VXLAN ?

    Read on VMware
  8. [8]Data Center KnowledgeProtocol Designers

    Using VXLAN to Speed & Secure Your Clouds

    Read on Data Center Knowledge
  9. [9]Factlen Editorial TeamProtocol Designers

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team

Comments

Stay informed

Every angle. Every day.

Get Technology stories with full source coverage and perspective breakdowns delivered to your inbox.