BookMyFabricBookMyFabric
All courses
Hands-on course

AI Datacenter EVPN-VXLAN Fabric

Build a hyperscale AI training fabric from the ground up: a BGP CLOS underlay, an EVPN-VXLAN L2 overlay, real GPU collective traffic (Gloo AllReduce), streaming telemetry, and the math behind multi-pod super-spine scale — on a virtual SONiC + FRR fabric you drive from the browser.

5 modules · about ~4h of guided work · 14-device fabric
The topology

AI-DC EVPN-VXLAN Fabric

A hyperscale AI training pod: a 2-spine / 4-leaf CLOS underlay with an EVPN-VXLAN L2 overlay carrying real GPU collective traffic.

SPINESLEAVESWORKERSspine1spine2leaf1leaf2leaf3leaf4gpu1gpu2gpu3gpu4gpu5gpu6gpu7gpu8
  • eBGP CLOS underlay
  • EVPN-VXLAN overlay
  • Gloo AllReduce
  • gNMI telemetry
What you'll learn

Modules

  1. 1

    Build the BGP Underlay

    · 45 min

    Configure a 2-spine / 4-leaf CLOS fabric from scratch via the in-browser console. Learn shared-AS spines, per-leaf ASNs, ECMP with multipath-relax, peer-groups, fast BGP timers — and why each choice matters for AI workloads.

    • eBGP CLOS underlay design
    • Shared-AS spines vs per-leaf ASNs
    • ECMP with bestpath as-path multipath-relax
    • Peer-groups for operational scale
    • Fast BGP timers (3s/9s) for training-job continuity
  2. 2

    Build the EVPN-VXLAN Overlay

    · 45 min

    Stretch a single L2 segment (VNI 10100, subnet 192.168.100.0/24) across all four leaves on top of the working underlay. Bring up Linux bridge + VXLAN devices, activate the BGP L2VPN-EVPN address family, watch Type-2 MAC routes traverse the fabric, and confirm overlay traffic actually flows leaf-to-leaf.

    • BGP L2VPN-EVPN address family + advertise-all-vni
    • Why spines need next-hop-unchanged in shared-AS CLOS EVPN
    • Pre-allocated VTEP loopbacks as the data-plane endpoint
    • Type-2 MAC routes vs Type-3 inclusive-multicast routes
    • Linux kernel VXLAN + bridge setup that FRR discovers
    • How an overlay rides on top of an underlay — proven by ping
  3. 3

    GPUs on the Overlay + first AllReduce

    · 45 min

    Bring the eight GPU workers onto the stretched L2 segment you built in Lab 2. Attach each leaf's worker ports as VLAN 1000 access ports, move every worker's eth1 onto 192.168.100.0/24, and run a real Gloo AllReduce — first 2-rank across two leaves, then full 8-rank across the fabric.

    • VLAN access ports — bridging worker veths into a VXLAN-backed L2 segment
    • Why an AI fabric prefers one flat L2 over per-leaf /31 underlay for the GPU plane
    • Gloo rendezvous + ring AllReduce as the canonical CPU collective
    • How a single AllReduce step maps to N² TCP flows over VXLAN tunnels
    • Why dropping the leaf-side L3 IP on a worker port is what makes the access-port story work
    • Reading effective AllReduce bandwidth as a fabric-health signal
  4. 4

    Telemetry & Visualization with gNMI + Grafana

    · 45 min

    Bring up a gNMI streaming-telemetry pipeline (gnmic → Prometheus → Grafana) over your working fabric. Watch real-time per-link Mbps fill in as you run AllReduces — see ECMP load-spread across both spines, see worker ports light up, build operator intuition for what a healthy AI training fabric looks like in motion.

    • gNMI streaming telemetry vs SNMP polling — the AI-DC default
    • OpenConfig interface counters as the canonical wire-rate signal
    • Why a virtual SONiC fabric needs a kernel-netdev side channel (and what that means for real hardware)
    • Reading per-link Mbps to confirm AllReduce phase activity
    • ECMP load-spread across spines, visible as nearly-equal traffic on parallel paths
    • Why Linux multipath default breaks VXLAN ECMP — and the one sysctl that fixes it
    • Where Prometheus + Grafana fit in an AI-fabric operator stack
  5. 5

    Super Spines — Beyond a Single-Pod CLOS

    · 30 min

    Walk the math behind multi-pod AI fabrics: when does a 2-tier CLOS run out of room, what does the third tier look like in BGP, and why do hyperscalers schedule training jobs to live inside a pod when they can? Conceptual lab — no super spines are deployed; you inspect your existing fabric to anchor each point.

    • Switch radix → pod ceiling — why 32-port silicon caps a pod at ~1024 GPUs
    • When hyperscalers add a 3rd tier (super spines) — multi-pod scale, fault-domain isolation, multi-tenant separation
    • The shape of 3-tier BGP — shared-AS super-spine tier, eBGP loop prevention without allowas-in, per-pod-pair ECMP across the new layer
    • Why super spines transit underlay-only in the simple case — and what changes if you bring EVPN to that tier
    • What in-pod vs cross-pod traffic means for AllReduce — and why job schedulers care about pod placement

Prefer reading first? The written guides are free: Build a BGP CLOS underlay for an AI datacenter fabric · Build an EVPN-VXLAN overlay on SONiC/FRR · Run GPU AllReduce traffic over an EVPN-VXLAN overlay · Streaming network telemetry with gNMI, Prometheus and Grafana · Super spines — scaling beyond a single-pod CLOS

Ready to go hands-on?

Book the fabric, then launch AI Datacenter EVPN-VXLAN Fabric.

Your booking reserves the whole fabric for the window. Launch this course to deploy its topology and work the modules above hands-on.

Stuck on a module? Read the in-lab solution, or reach the community for help.

Join the Discord