This section describes the definition, purpose, and benefits of the Virtual eXtensible Local Area Network (VXLAN).
As defined by RFC 7348, VXLAN is a Network Virtualization over Layer 3 (NVO3) technology that uses MAC in User Datagram Protocol (MAC-in-UDP) to encapsulate packets.
Server virtualization is a critical cloud computing technology, and has been widely deployed because it significantly reduces IT and operation and maintenance (O&M) costs and facilitates more flexible service deployment.
On the network shown in Figure 1, one server is virtualized into multiple virtual machines (VMs), each of which acts as a host. However, the exponential increase in the number of hosts leads to the following problems on a virtual network:
Network isolation capabilities are limited.
VM migration scope is limited by the network architecture.
After VMs are started, they may need to be migrated from one server to another due to server resource problems (for example, CPU overload or insufficient memory). To ensure uninterrupted services during VM migration, the IP and MAC addresses of VMs must remain unchanged. To meet this requirement, the service network must be a Layer 2 network that provides multipath redundancy and reliability.
VXLAN addresses the above problems on large Layer 2 networks as follows:
Limited network isolation capabilities
VXLAN uses a VXLAN network identifier (VNI) field similar to the VLAN ID field defined in IEEE 802.1Q. The VNI field has 24 bits and can identify a maximum of 16M VXLAN segments theoretically.
VM migration scope limitations imposed by network architecture
When VXLAN is used to construct a large Layer 2 network, VM IP and MAC addresses can remain unchanged after VM migration.
When server virtualization is widely deployed in data centers based on physical network infrastructure, VXLAN offers the following benefits: