Cluster Network Planner (Leaf-Spine)
Plan a two-tier leaf-spine (folded Clos) fabric: leaf and spine switches for a node count, ports per node, switch radix and oversubscription, the cable count, and whether a third tier is needed.
Results
- Host-facing ports
- 512calculated
- Leaf switches32 down / 32 up each
- 16calculated
- Spine switches
- 8calculated
- Node-to-leaf cables
- 512calculated
- Leaf-to-spine cables
- 512calculated
- Transceivers if all links are optical
- 2,048calculated
- Two-tier host-port limit
- 2,048calculated
What it calculates
- Leaf switches
- Spine switches
- Cables and transceivers
- Two-tier capacity limit
Worked example
Using the default inputs below; change any input above to recalculate.
| Nodes | 64 |
|---|---|
| Fabric ports per node | 8 |
| Switch ports (radix) | 64 |
| Oversubscription | 1:1 (non-blocking) |
| Host-facing ports | 512 | calculated |
|---|---|---|
| Leaf switches | 16 | calculated |
| Spine switches | 8 | calculated |
| Node-to-leaf cables | 512 | calculated |
| Leaf-to-spine cables | 512 | calculated |
| Transceivers if all links are optical | 2,048 | calculated |
| Two-tier host-port limit | 2,048 | calculated |
Methodology
Each leaf splits its ports between hosts and spines according to the oversubscription ratio (half and half for 1:1). Leaves = host ports ÷ downlinks per leaf; spine ports must equal total leaf uplinks. A two-tier fabric is limited because each spine can connect at most radix leaves.
Formulas
- Leaves
- L = ⌈hosts × ports ÷ down⌉
- Spines
- S = ⌈L × up ÷ k⌉
- Non-blocking limit
- hosts_max = k²/2
Assumptions
- Uniform switches; every leaf connects to every spine.
Limitations
- Rail-optimised GPU fabrics and multi-plane designs follow different port mappings.