Data Center Networks: Leaf, Spine, and Light — How the Modern Fabric Is Built

A modern data center is mostly servers talking to other servers in the same building — a database answering an application, storage feeding a compute node, one virtual machine migrating to another host. The network inside has to move that east-west traffic between any two machines without a choke point, and the design that won — leaf-spine — is best understood by the problem it replaced.

Data Center Networks: Leaf, Spine, and Light — How the Modern Fabric Is Built
Photo: NASA/Morgan Johnson, Public domain, via Wikimedia Commons

The old stack, and where it choked

The classic design stacked switches in three tiers: access switches at the bottom, aggregation switches in the middle, and a core at the top. Traffic between servers on different access switches climbed the stack and came back down, and the upper tiers carried everyone's traffic at once. Spanning-tree rules made it worse: to prevent loops, redundant links were deliberately blocked, so expensive capacity sat idle by design. As server-to-server traffic grew, the top of the stack became the building's permanent bottleneck — and scaling meant replacing the biggest, most expensive switches in it.

Leaf and spine: two hops, every time

Leaf-spine flattens the stack into two layers with a strict rule. Every server connects to a leaf switch — the leaf layer is the edge of the fabric, often the switch at the top of each rack. Every leaf connects to every spine switch. The spines connect to nothing but leaves: no servers, and no spine-to-spine links. The consequence is the design's whole point: any server can reach any other server in exactly two switch hops — up its leaf, across one spine, down the destination leaf — no matter how large the fabric grows. Latency becomes predictable because the path length never changes, and there is no special top tier carrying more than its share.

Because every leaf-to-spine path is equivalent, the fabric uses all of them at once. Equal-cost multi-path routing, standard practice in these designs, spreads traffic across the available spine links instead of blocking spares — the idle-capacity problem of the spanning-tree era is designed out. RFC 7938, which documents routing with BGP in large data centers, describes exactly this kind of Clos-style fabric operated at scale: many parallel paths, a routing protocol rather than blocked links deciding which ones carry traffic.

Scaling means adding spines, not rebuilding

Growth follows the structure. Need more servers? Add leaves and racks; each new leaf wires to every existing spine. Need more bandwidth between leaves? Add another spine switch, and every leaf gains a new path to every other leaf at once. Port counts on the switches set the arithmetic — the number of spines a leaf can reach and the number of leaves a spine can serve — which is why fabric designs are quoted as a maximum server count for a given switch generation. The building blocks stay identical throughout: same switches, same wiring rule, repeated.

And the light: why the links are fiber

The leaf-spine links, and increasingly the longer runs down to the rack, are optical. Fiber carries far higher bandwidth over far longer distances than copper cabling, with the signal traveling as light through glass — a run across a data hall that would exceed copper's practical reach and speed grades is routine for optics. In practice the switches take pluggable optical transceivers, so the same switch port can serve a short in-building link or a longer one by choosing the module. When a fabric's promise is many equal, fast paths everywhere, the medium has to make distance nearly free — and light is what does that.

Data Center Networks: Leaf, Spine, and Light — How the Modern Fabric Is Built
Photo: Aaron Hall, CC BY-SA 2.0, via Wikimedia Commons

The bottom line

Leaf-spine is not a product; it is a wiring discipline with a routing protocol on top. Flatten the tiers, connect every leaf to every spine, keep every path equal and busy, grow by adding spines and leaves instead of replacing a core, and run the fabric on fiber so distance stops mattering. Two hops, many paths, no top to choke on — that is what the inside of a modern data center actually looks like.

By Karl Amber

Sources

  • RFC 7938 (IETF) — Use of BGP for Routing in Large-Scale Data Centers: Clos fabrics, equal-cost paths and routing at scale.
  • Cisco and Arista data-center design documentation — leaf-spine (Clos) architecture, leaf/spine roles and scaling arithmetic.
  • IEEE 802.3 Ethernet materials — optical versus copper reach and speed grades for in-building links.

Editor's note: this article is part of ScanderLoud's Cybersecurity & Networking series. It was researched from IETF and vendor data-center design documentation — our coverage is original and educational throughout. No NetworkChuck video was opened or used.

Featured image: Federal Bureau of Investigation, Public domain, via Wikimedia Commons

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *