Free tech learning for everyone, from basics to pro

Network ArchitectureNetworking SecurityAdvanced

Designing a spine-and-leaf data centre fabric: sizing, oversubscription, border leaves and growth

In short: A spine-and-leaf fabric connects every leaf switch to every spine, so any two servers are always three hops apart and many equal paths share the load. Design means choosing port speeds, setting an oversubscription ratio, placing border and service leaves, dual-homing servers, and planning to grow by adding spines, leaves or a super-spine tier.

Why spine and leaf

Traditional three-tier data centres (access, aggregation, core) were built for north-south traffic between users and servers, with spanning tree blocking half the links. Modern applications generate mostly east-west traffic between servers, virtual machines and containers. A spine-and-leaf (Clos) fabric gives every server equal, high-bandwidth paths to every other, using all links at once through ECMP.

Roles in a spine and leaf fabricSpinesconnect every leaf; no hostsLeavesservers, storage, firewallsBorder leavesWAN, internet, other DCsService leavesfirewalls, load balancers
Figure 1. Every leaf is the same distance from every other leaf, so performance is predictable.

The rules

  • Every leaf connects to every spine. Leaves do not connect to each other (except for vPC/MLAG peer links in some designs), and spines do not connect to each other.
  • Servers, storage and appliances connect only to leaves.
  • The underlay is routed (eBGP per RFC 7938, or OSPF/IS-IS), so there is no spanning tree between switches.
  • Overlays such as EVPN-VXLAN provide Layer 2 where needed, and multi-tenancy.

Sizing and oversubscription

Each leaf has downlinks to servers and uplinks to spines. The oversubscription ratio is total downlink capacity divided by uplink capacity.

Example: a leaf with 48 x 25 Gbps server ports (1,200 Gbps) and 6 x 100 Gbps uplinks (600 Gbps) is 2:1 oversubscribed. With 8 x 100 Gbps uplinks it is 1.5:1. Storage and AI/HPC clusters often need 1:1 (non-blocking); general virtualisation clusters are usually fine at 2:1 or 3:1.

The number of spines equals the number of uplinks per leaf (one uplink to each spine). The number of leaves is limited by the number of ports on each spine: a 64-port spine supports up to 64 leaves.

Special leaves

  • Border leaves connect the fabric to the WAN, internet edge, other data centres and cloud, and handle external routing.
  • Service leaves host shared appliances such as firewalls and load balancers.
  • Keep these functions off the spines, so spines stay simple and identical.

Dual-homing servers

Each server connects to two leaves for redundancy, using vPC or MLAG pairs, or EVPN multihoming (ESI-LAG), which lets two leaves present one link aggregation group to the server without a peer link. Racks often have two "top of rack" leaves for this purpose.

Growing the fabric

  • More leaves until spine ports run out.
  • More spines (if leaves have spare uplink ports) to add bandwidth and resilience.
  • A super-spine tier (a five-stage Clos) connecting several pods of spine-and-leaf, for very large data centres.

Plan cabling and optics for the final size from the start; spine positions and fibre runs are hard to change later.

Real-world example: from 4 racks to 40

A hosting company started with two spines and four leaf pairs. Each leaf had six 100 Gbps uplink ports, of which two were used. As customers grew, it added leaf pairs rack by rack, and later two more spines (using the spare uplink ports) to keep oversubscription at 2:1. The fabric grew tenfold without any redesign or downtime.

Practice

In a spine-and-leaf fabric, what decides the maximum number of leaves?
The number of ports on each spine, since every leaf connects to every spine.
A leaf has 48 x 25 Gbps downlinks and 4 x 100 Gbps uplinks. What is the oversubscription ratio?
3:1 (1,200 Gbps down to 400 Gbps up).
What are border leaves used for?
Connecting the fabric to the WAN, internet, other data centres and cloud.

Key takeaways

  • Every leaf connects to every spine; servers attach only to leaves.
  • Oversubscription is downlink capacity divided by uplink capacity.
  • Use border and service leaves so spines stay simple.
  • Dual-home servers and grow with more leaves, spines or a super-spine.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: