1AS 651002AS 651003AS 65100ABCD1AS 650012AS 650023AS 650034AS 65004
Envelopes: packets; the seal colour shows which flow they belong toYellow cable: the path a step is aboutLarge envelope with a yellow seal: the VXLAN outer packetFour racks with a leaf switch each, and two spine switches; every leaf has a cable to every spine (a folded Clos network). Any two servers in different racks are three switches apart. Leaf 1 hashes each flow onto one of the equal paths (ECMP). Adding spine 3 gives every leaf a third path. eBGP (RFC 7938) tells each leaf about every path, and VXLAN (RFC 7348) carries a virtual network across the fabric. Addresses come from the private ranges 10.0.0.0/8 and 172.16.0.0/12 (RFC 1918), MACs from the RFC 7042 documentation block, source ports from the dynamic range 49152-65535 (RFC 6335). Packets cross a data center in microseconds; the figure slows everything down so you can watch.

Inside a data center

  1. A data center is a big room full of servers stacked in tall cabinets called racks. On top of each rack sits a switch for its servers, called a leaf. Here: four racks, servers A to D, and leaves 1 to 4.

Leaf and spine

Many equal paths

Growing and routing

Inside the fabric

;; step 1/10 · racks · idle
server A   10.0.1.10   rack 1, under leaf 1 (10.0.1.0/24)
server B   10.0.2.10   rack 2, under leaf 2 (10.0.2.0/24)
server C   10.0.3.10   rack 3, under leaf 3 (10.0.3.0/24)
server D   10.0.4.10   rack 4, under leaf 4 (10.0.4.0/24)
a leaf is also called a top-of-rack (ToR) switch

The hash shown (XOR of the IP address and port bytes, modulo the number of spines) is an example. Real switches use their own formulas; what matters is that one flow always gets the same path. The 100 Gbit/s uplink speed is an example; real fabrics use many speeds.