VXLAN overlays
Two networks, two jobs
An underlay is the physical or logical IP network connecting tunnel endpoints. An overlay creates logical segments on top of it. Virtual Extensible LAN (VXLAN) carries an Ethernet frame inside UDP/IP. A VXLAN Tunnel Endpoint (VTEP) adds and removes those headers. The 24-bit VXLAN Network Identifier (VNI) identifies an overlay segment; it is not the local 12-bit VLAN ID. A switch may map local VLAN 10 to VNI 10100 while another maps VLAN 20 to that same VNI. Both participate in the same logical segment if the other service settings agree. VXLAN does not encrypt the traffic or replace access policy.
Follow a known unicast frame
Imagine A and B in the Blue tenant, both in 192.0.2.0/24. Their locally administered MAC addresses are 02:00:00:00:00:0a and 02:00:00:00:00:0b. A attaches to VTEP L1 (198.51.100.11); B attaches to L2 (198.51.100.12). Assume A already knows B’s MAC and L1 has a remote forwarding entry for it. L1 maps the ingress VLAN to VNI 10100, wraps the inner Ethernet frame with VXLAN, UDP (destination 4789 by default), and outer IP addressed to L2. Underlay routers forward using outer IP, not the tenant IP. L2 removes the outer headers, checks the VNI-to-bridge mapping, and forwards the inner frame locally. A reverse frame requires the corresponding reverse mapping and reachable L1.
A 192.0.2.10 / VLAN 10 L1 VTEP 198.51.100.11 | outer IP .11 -> .12 / UDP 4789 / VNI 10100 | inner Ethernet A -> B / inner IP .10 -> .20 L2 VTEP 198.51.100.12B 192.0.2.20 / VLAN 20Budget the encapsulation overhead
For an untagged inner Ethernet frame carrying a 1500-byte IP packet, omit FCS and count 14 bytes of inner Ethernet, 8 VXLAN, 8 UDP and 20 outer IPv4 without options. The outer IP packet is 1550 bytes, so an underlay IP MTU of at least 1550 is required for this no-fragmentation example. With a 40-byte outer IPv6 base header it is 1570. An underlay IP MTU of 1500 allows an inner IP packet of only 1450 or 1430 bytes respectively in this model. An inner VLAN tag, outer IP extensions or another tunnel may increase overhead. Outer Ethernet adds another 14 bytes on an untagged link, but is not part of the outer IP MTU. Check the actual platform’s MTU accounting; never infer that a 1500-byte small-packet success proves full-sized traffic works.
Outer IP length = inner IP + inner Ethernet + VXLAN + UDP + outer IP headerIPv4: 1500 + 14 + 8 + 8 + 20 = 1550IPv6: 1500 + 14 + 8 + 8 + 40 = 1570What happens before the destination is known?
Broadcast, unknown unicast and multicast are grouped as BUM. Depending on the service, a VTEP may replicate eligible BUM frames to remote VTEPs or use an underlay multicast distribution tree. In the fictional ingress-replication model, L1 has two remote members L2 and L3 for VNI 10100 and sends two remote copies of a broadcast. A Red VTEP participating only in VNI 10200 receives no copy. Unknown-unicast flooding may be restricted by policy; EVPN learning and ARP/ND suppression can reduce flooding, but do not universally eliminate BUM. Each remote copy consumes capacity.
Check the model yourself
Use the diagram and change the outer header to IPv6. Calculate the maximum inner IP size for an underlay MTU of 1600, then add a four-byte inner VLAN tag. Next remove L3 from the Blue replication list and count remote copies. The goal is to distinguish local attachment, tunnel endpoints, segmentation and byte accounting. No interface or live tunnel is created by this exercise.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
VXLAN overlays Quiz
Reason about VXLAN encapsulation, EVPN policy and offline forwarding state.
What identifies the overlay segment in the VXLAN header?
Which destination does the underlay route toward?
An untagged 1500-byte inner IP packet uses basic outer IPv4. What outer IP MTU is needed in this model?
A broadcast is replicated to two remote members of one VNI. How many remote copies are sent?
Which statement about VXLAN is correct?