Back
  1. Home
  2. Guides
  3. Leaf and spine, and how many switches you actually need

Leaf and spine, and how many switches you actually need

Updated 2026-11-23

N9K-C93180YC-FX

In a leaf and spine network, servers plug into leaf switches and every leaf connects to every spine. That is the whole idea. Any server can reach any other in two hops, and when you need more room you add a leaf, or a spine, without redesigning anything. The maths that decides how many of each you need fits on a napkin.

What it looks like

Spine 1Spine 2Leaf 1Leaf 2Leaf 3Leaf 4Every leaf connects to every spine. Servers only connect to leaves.Servers
Two spines, four leaves. Every leaf has one link to every spine.

Leaves never connect to each other, and spines never connect to each other. Traffic from a server on Leaf 1 to a server on Leaf 4 goes up to a spine and straight back down. Because every path is the same length, performance is predictable no matter where a server sits.

The napkin maths

  • Spines you can have = uplink ports on each leaf. A leaf with six 100G uplinks can connect to up to six spines.
  • Leaves you can have = ports on each spine. A 36-port spine can connect up to 36 leaves.
  • Server ports = leaves × downlink ports per leaf.
ExampleValue
LeafCisco N9K-C93180YC-FX: 48 x 25G down, 6 x 100G up
SpineCisco N9K-C9336C-FX2: 36 x 100G
Maximum spines6, one per leaf uplink
Maximum leaves36, one per spine port
Server ports at full size36 x 48 = 1,728 at 25G

Most networks start far smaller: two spines and a handful of leaves, which still leaves plenty of room to grow.

Oversubscription, in one line

Compare what can come into a leaf with what can leave it. 48 servers at 25G is 1,200G down. Six 100G uplinks is 600G up. That is 2:1, which is comfortable for most business workloads. With four spines, so four uplinks in use, it becomes 3:1. AI training and storage-heavy clusters usually aim for 1:1.

Switches that fit each role

A Nexus 9336C-FX2: 36 x 100G, a popular spine for small and mid-size fabrics.
A Nexus 9336C-FX2: 36 x 100G, a popular spine for small and mid-size fabrics.
RoleTypical choiceExamples
Leaf48 x 10G or 25G down, 6 to 8 x 100G upN9K-C93180YC-FX, QFX5120-48Y, DCS-7050SX3-48YC8
Spine32 to 36 x 100GN9K-C9336C-FX2, QFX5200-32C, DCS-7060CX-32S

Keep the spines all the same model, and keep airflow consistent across the rack. Our Arista, Cisco and Juniper guides cover the airflow codes.

Quick answers

What is a leaf and spine network?

A two-layer design where servers connect to leaf switches and every leaf connects to every spine switch, so any two servers are two hops apart.

How many spine switches do I need?

At least two for redundancy. The maximum is the number of uplink ports on each leaf.

How many leaf switches can a spine support?

One per spine port. A 36-port spine can connect up to 36 leaves.

What is a good oversubscription ratio?

Around 3:1 or better is common for general business workloads. AI training and storage clusters often aim for 1:1.

Got a part number in mind?

Send it with the quantity and we will come back with a price, usually the same working day.

Get a quote