Spine-leaf and ECMP
Why a fabric?
A data center fabric connects workloads, storage and external networks. East-west traffic stays between internal workloads; north-south traffic crosses the data center boundary. A traditional access–aggregation–core tree can serve centralized applications well, but traffic between racks may traverse shared aggregation and core capacity. A folded Clos or spine-leaf fabric provides regular paths between racks by connecting every leaf to every spine. This is a logical design, not a guarantee of throughput or a particular cable layout. Choose the topology using traffic demand, scale and failure requirements rather than fashion.
Trace two equal-cost paths
In the fictional four-switch fabric below, hosts A and B connect to L1 and L2 respectively. Each leaf has a routed point-to-point connection to S1 and S2 with equal cost 10 per link. The inter-leaf paths L1–S1–L2 and L1–S2–L2 each cost 20 (excluding host links). The destination rack prefix is advertised through both spines; assume both next hops are resolved and installed. Traffic within one locally attached subnet may stay on its leaf and not reach a spine. The two paths are alternatives, not sequential stages of one packet.
A -- L1 -- S1 -- L2 -- B | | +--- S2 ----+Each leaf-spine edge: cost 10A to B: L1-S1-L2 or L1-S2-L2How ECMP shares traffic
Equal-cost multipath (ECMP) allows multiple eligible next hops for a destination. Many implementations hash flow fields such as IP addresses, protocol and transport ports so a flow usually stays on one path. For a teaching-only hash that produces integers 0–7, assign 0–3 to S1 and 4–7 to S2. Four flows with keys 0, 1, 4 and 7 choose two paths each. But if their rates are 70, 20, 5 and 5 Gbit/s, the path loads are 90 and 10 Gbit/s. Equal flow counts are not equal byte loads. A large flow can saturate a link even when aggregate capacity remains. Actual hashing, eligible paths, resilient hashing and reordering depend on the platform.
Choose the Layer 2 boundary
A routed fabric commonly limits local broadcast domains to the access edge. IP routing carries packets between subnets. Workload mobility can require a logical network to span physical racks; VXLAN can transport Ethernet segments across an IP underlay, and EVPN can distribute reachability information. They are separate mechanisms, covered in the next chapter. Extending a logical segment does not remove failure or security boundaries; account for broadcast replication, endpoint state, policy and encapsulation MTU. RFC 7938 discusses routed fabric trade-offs and RFC 2992 analyzes ECMP algorithms.
Verify the forwarding decision
Start from the destination prefix and check installed next hops on both leaves, not merely routing-neighbor status. Compare per-link utilization, errors, drops and queue counters at comparable times. For a missing next hop, inspect adjacency, route advertisement, policy, cost and FIB installation. In the example, removing S1 leaves one eligible path of cost 20 after convergence, not a guaranteed loss-free transition. Predict the path for a flow with key 6 and then identify which evidence could distinguish a hash imbalance from a failed uplink.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Spine-leaf and ECMP Quiz
Interpret fictional data center fabric designs and their limitations.
Which inter-leaf path has equal cost to L1-S1-L2 when all links cost 10?
What is east-west traffic?
Two flows per uplink carry 90 and 10 Gbit/s in total respectively. What does this show?
Which evidence confirms that two next hops can forward?
What is a reason to consider VXLAN over a routed fabric?