Tunnels and overlays
VXLAN
Ethernet frames carried inside UDP across a routed network, so one segment can span racks or sites.
A VTEP (VXLAN tunnel endpoint, usually the leaf switch) wraps each frame in an outer IP and UDP header (port 4789) and an 8-byte VXLAN header holding a 24-bit VNI, the segment's number: about 16 million segments, where VLAN IDs stop at 4094. The routers in between see only the outer addresses. Broadcasts and unknown destinations are copied to every VTEP of the VNI (head-end replication, or a multicast group), and VTEPs learn which MAC is behind which VTEP from the frames they receive (flood and learn). BGP EVPN is the control plane that replaces flooding: VTEPs announce their MACs and IPs in BGP. The encapsulation adds 50 bytes, so the underlay needs an MTU 50 bytes larger than the tenants', or tenants get 1450.
Read next
- VLAN Several separate networks on one switch, kept apart by a tag in each frame.
- Underlay and overlay The physical routed network (underlay) and the virtual networks built on top of it with tunnels (overlay).
- Spine-leaf A data center design where every leaf (rack) switch connects to every spine, so any two racks are two hops apart.
- MTU The largest IP packet a link carries in one frame: 1500 bytes on ordinary Ethernet.
- Broadcast domain The set of devices a broadcast reaches: one network at the link layer.