Concepts / Tunnels and overlays

Tunnels and overlays

VXLAN

Also called virtual extensible LAN, VNI, VXLAN network identifier, VTEP, tunnel endpoint, UDP 4789, flood and learn, head-end replication, EVPN, BGP EVPN

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.

A frame inside a packet
A frame inside a packet

The edge puts the whole Ethernet frame inside a UDP packet (port 4789, with the network's VNI); the routers between the halls read only the outer IP header. From the VXLAN overlays: one network across a routed backbone lab.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab