PacketLab
VXLAN · Overlay foundations

Overlay Networks Explained

Troubleshoot transport and tenant forwarding as separate layers of the same packet journey.

Underlay first

An overlay creates logical connectivity on shared transport. Start by identifying the tunnel endpoints and the path between their transport addresses. In the diagram below, the solid links and transit routers form that transport. The dashed relationship is a logical service between the edges; it is not an additional physical link.

Two views of one network

One Ethernet segment across an IP fabricIllustrative topology
H1 connects to VTEP1, two routed underlay paths connect VTEP1 to VTEP2, and VTEP2 connects to H2. A dashed arc denotes the logical VNI 5012 overlay.
Solid lines: physical links. Dashed blue arc: logical VXLAN overlay, not another cable. H1 and H2 share the example tenant subnet; transit devices forward outer IP packets.
ViewWhat it must know
UnderlayIP routes to VTEP addresses, usable links, MTU and transport policy.
OverlaySegment membership, tenant MAC reachability and replication rules.
Tenant hostIts own subnet, neighbor resolution and any default gateway.

The underlay can use static routing or an appropriate routing protocol. OSPF or eBGP are design choices, not requirements imposed by the VXLAN header. Ethernet still exists on physical links; the distinction is that tenant bridging is not the transit fabric’s forwarding job.

Recognize the same idea in different technologies

ExampleLogical serviceTransport or mechanism
802.1Q VLANA separate Ethernet broadcast domainA tag distinguishes traffic on shared Ethernet links; not an IP tunnel.
GREA virtual link between IP endpointsAn extra GRE and outer IP wrapper.
IPsec tunnel modeA protected packet pathAuthenticated/encrypted inner traffic inside outer IP transport.
DMVPNMultipoint overlay connectivityNHRP and multipoint GRE, commonly protected with IPsec.
VXLANTenant Ethernet segmentsEthernet inside UDP/IP between VTEPs.
LISPSeparate endpoint identity from locationA mapping system relates EIDs to routing locators.
SD-WANPolicy-driven WAN connectivityOverlay paths and control/management functions; implementation varies.

These technologies share an abstraction, not a common header or identical security guarantees. A VLAN is a logical segmentation example, while GRE and VXLAN explicitly tunnel traffic. A VPN service is not synonymous with any one encapsulation.

Check a known unicast path

Constructed forwarding worksheet · illustrative, selected fields
VTEP1 underlay: 10.255.0.2/32 -> R1 or R2 (equal cost)
VTEP1 overlay:  VNI 5012, H2 MAC -> VTEP 10.255.0.2
VTEP2 overlay:  VNI 5012, H2 MAC -> local VLAN 20
Tenant result:  H1 can resolve and reach H2 when all stages work

These are normalized teaching records, not executable CLI or a measured result. First the overlay selects a remote VTEP. Then the underlay routes the outer packet to it. Finally the receiving edge selects the local attachment. Transport reachability alone cannot prove any of the tenant lookups.

A redundant path is not a second overlay

R1 and R2 offer two physical routed paths between the same endpoint pair. The underlay can select a next hop using an ECMP hash. One tenant flow normally stays on one path under flow-based hashing; multiple flows may use different paths. A source-port entropy value helps distinguish them. Exact behavior, polarization and rehashing depend on the forwarding platform.

When a path fails, underlay convergence can restore reachability without changing VNI 5012 or host membership. There may still be loss during detection and repair. This is not a promise of lossless failover, nor does every pair of equal-looking links necessarily form ECMP.

Separate three independent faults

ObservationLikely next checksWhat not to assume
No route to remote VTEPUnderlay routing, source address, physical pathA correct VNI can repair missing IP reachability.
Small transport probes pass; larger overlay traffic failsMTU along every selected path, ACLs, countersA small ping proves full-size UDP forwarding.
Outer traffic reaches VTEP2; tenant delivery failsVNI membership, MAC location, local VLAN/port, endpoint ARPA reachable VTEP proves matching segment configuration.

Use captures at access and transport points where available. An access capture shows the tenant frame; an underlay capture shows the outer VTEP addresses and VXLAN wrapper. Check both directions, not just H1’s request. A wrong learning or replication policy can break initial ARP even while a previously learned unicast path still works.

Where EVPN fits later

An EVPN deployment uses BGP to distribute overlay reachability and related information. That control plane is distinct from the IP routing that carries VXLAN packets. A fabric might use eBGP for the underlay and MP-BGP EVPN for the overlay, but those are different address families and responsibilities. A flood-and-learn fabric instead uses its selected data-plane learning and replication design.

The next lessons establish VTEP reachability, size the MTU and inspect ECMP before configuring VLAN-to-VNI mappings and replication. EVPN MAC/IP advertisements and routed overlays follow after the Layer 2 data path is understood.

Benefits and operational cost

BenefitTrade-off
Logical service changes need not recable transitEndpoint and transport state must both be diagnosed.
Multiple tenants can share linksSegmentation policy, capacity and identifier scope still need validation.
Routing can repair transport pathsDetection/convergence can interrupt service.
Encapsulation hides tenant details from transitHeaders consume MTU; troubleshooting needs captures at both layers.

The layers are operationally distinct but share bandwidth, queues, failure modes and hardware resources. Overlay changes can affect underlay load, and underlay faults can disrupt every overlay using the failed path. Independence does not mean isolation from physical capacity.

Further reading

Key Takeaways

  • Underlay routing delivers outer packets; overlay state selects tenant delivery.
  • VTEP reachability is necessary but not sufficient for a working tenant segment.
  • ECMP offers transport alternatives without creating separate VNIs.
  • Check MTU, transport policy and both traffic directions as well as routing.
  • EVPN supplies overlay control-plane information and does not replace the underlay.

Overlay Networks Explained Quiz

Six questions · four options each · select one answer per question. Submit all answers to see your score and explanations.

1. What does an ordinary transit router primarily use for this VXLAN packet?
2. VTEP IP ping succeeds. Is tenant forwarding guaranteed?
3. What can fail when only large encapsulated packets are lost?
4. Must an underlay use OSPF?
5. What happens to VNI 5012 merely because transport switches from R1 to R2?
6. Where should a capture show outer VTEP addresses?