Network Design and Architecture Questions
Designing networks at the topology level: data-center fabrics (spine-leaf/Clos, ECMP path selection, underlay and overlay, VXLAN, GENEVE and EVPN-VXLAN, multi-pod and multi-site, lossless RDMA and AI fabrics, low-latency designs), campus and branch design (hierarchical access/distribution/core, small-office design), and WAN and backbone architecture (MPLS label switching, segment routing with SR-MPLS and SRv6, RSVP-TE versus SR-TE, provider POPs and private L3 VPN service, SD-WAN and MPLS migration, multihoming, internet edge, transit and peering cost, backbone and interconnect). Covers redundancy and resilience at the link, device and site level, QoS design, bandwidth and capacity growth planning, segmentation and tenant isolation at design level, the management network, inline service placement, physical constraints such as cabling, optics and power, and equipment and vendor selection with justification. The architecture layer above configuration. Excludes protocol configuration mechanics and BGP or OSPF policy, VLAN and STP operation, cloud VPC and hybrid-cloud design, firewall and zero-trust security design, load balancing, fault diagnosis, telemetry collection, device automation or SDN controller operation, and application-level failover and disaster recovery testing, which are covered elsewhere.
Why have most data centers moved from a three-tier access, aggregation and core design to spine-leaf? Describe what each tier does and how east-west and north-south traffic cross the fabric.
Sample Answer
Direct answer
Three-tier (access, aggregation, core) was built for north-south traffic: clients at the edge talking to servers behind the core. Modern workloads talk server to server (east-west), and three-tier handles that badly: traffic climbs to an aggregation pair or the core and back, oversubscription (the ratio of server-facing bandwidth to uplink bandwidth; 6:1 means servers could send six times what the uplinks can carry) compounds at every tier, and Spanning Tree Protocol (STP, the loop-prevention protocol that blocks redundant Layer 2 links) leaves paid-for links idle. Spine-leaf is a two-stage Clos fabric (a network where every leaf connects to every spine): every leaf is the same number of hops from every other leaf, all links are routed and forward at once through equal-cost multipath (ECMP, spreading flows across equal-cost routes), and capacity grows by adding spines or leaves.
What each tier does
Three-tier (legacy)
| Tier | Job | Typical limit |
|---|---|---|
| Access | Server or user ports, the VLAN edge (where each server's VLAN, a Layer 2 broadcast domain, begins) | Few uplinks, each access switch is an oversubscription point |
| Aggregation (distribution) | Aggregates access switches, Layer 2/3 boundary (below it traffic is switched by MAC address, above it routed by IP), gateways, firewalls and load balancers attach here | Pair of boxes; Layer 2 below it means STP |
| Core | Fast Layer 3 transport between aggregation blocks and out to WAN/Internet | Few large chassis; a scaling ceiling |
Spine-leaf
| Tier | Job |
|---|---|
| Leaf (often the top-of-rack, ToR, switch) | Server ports plus uplinks to every spine; usually the Layer 3 gateway; VXLAN tunnel endpoint (VTEP) if an overlay is used (an overlay carries Layer 2 segments in tunnels over the routed underlay, the physical network of leaves and spines) |
| Spine | Pure transit between leaves: no servers attach, no policy, only fast routing |
| Border leaf | A leaf that connects the fabric to firewalls, WAN and Internet |
How traffic crosses the fabric
- East-west (server to server): leaf-1, then any one spine chosen by ECMP, then leaf-2. Always leaf, spine, leaf: three switches, two switch-to-switch hops, for every pair of racks. Inside one rack it is just the ToR.
- North-south (clients or the Internet to servers): enters at the border leaf, crosses a spine to the destination leaf, and the reverse for replies. Firewalls and the WAN edge hang off the border leaf pair so they do not sit in the middle of every east-west flow.
- In three-tier, rack-to-rack traffic stays under one aggregation pair when it can, but crosses the core when the racks sit in different aggregation blocks, so latency and available bandwidth differ by where a workload landed.
Worked example: compounding oversubscription
Assumptions (illustrative, computed): access switch with 48 x 10 Gbps server ports and 2 x 40 Gbps uplinks; eight access switches per aggregation pair; each aggregation switch has 2 x 100 Gbps to the core.
- Access (the switch servers plug into, called the ToR in spine-leaf): 480 / 80 = 6:1. Aggregation block: 8 x 80 = 640 Gbps down against 2 x 2 x 100 = 400 Gbps up = 1.6:1. End to end 6 x 1.6 = 9.6:1 if every link forwards. The ratios multiply because each tier squeezes what the tier below let through: if all servers transmit at once, the access uplinks pass 1/6 of the demand and the aggregation uplinks pass 1/1.6 of that, so a server gets 1 / 9.6 of its line rate, 10 / 9.6 = about 1.04 Gbps of its 10 Gbps.
- If STP blocks one of the two access uplinks (no multi-chassis link aggregation, a feature that lets two switches present themselves as one so a neighbour can use links to both), the access tier is 480 / 40 = 12:1, and the blocked links add cost but no capacity.
- Spine-leaf alternative: 48 x 25 Gbps = 1,200 Gbps down and 4 x 100 Gbps = 400 Gbps up gives 3:1 at the leaf (a worst-case 25 / 3 = 8.3 Gbps per server), spines are non-blocking, and all four uplinks carry traffic. Growth is additive: a fifth uplink and a fifth spine take the leaf to 2.4:1 without redesign.
Trade-offs and pitfalls
- Spine-leaf wants lots of cabling and optics (every leaf to every spine), and each leaf uplink goes to one spine, so a leaf with 4 uplinks reaches only 4 spines, and each spine has one port per leaf, so the spine port count caps the number of leaves, which is why very large sites add a third stage.
- Spine-leaf does not remove the need for Layer 2 adjacency for legacy apps: an overlay (VXLAN tunnels, with EVPN distributing host addresses over BGP) provides it over the routed underlay, rather than stretching VLANs and STP.
- Three-tier remains correct for campus networks, where traffic is mostly north-south. The move is driven by traffic pattern, not fashion.
- Mistake: putting servers on spines or hanging firewalls on a spine pair, which recreates the choke point the design removed.
Review a leaf-spine EVPN-VXLAN fabric for failure domains. What does a single leaf failure, a spine failure and a control-plane flap each do to traffic, how would you detect it, and what design changes limit the blast radius?
Sample Answer
Direct answer
I review the fabric by failure domain, meaning the set of things that stop working together. For a leaf-spine EVPN-VXLAN fabric, a single leaf failure takes out only its single-homed servers; a single spine failure removes 1/N of uplink capacity but no connectivity; and a control-plane flap (a BGP session or route-reflector reset; a route reflector is a router that relays BGP routes between all the leaves so they do not each need a session with every other leaf) can withdraw reachability for many endpoints at once even though every cable is up. The design changes that limit blast radius are multihomed servers, at least four spines, redundant route reflectors with prefix limits, contained Layer 2 stretch, and staged upgrades so one software bug cannot hit every device together.
Fabric under review (stated assumptions)
24 leaves in 12 racks (2 per rack), 4 spines (also the route reflectors, 2 of them), EVPN-VXLAN with eBGP underlay, some servers dual-homed and some single-homed, all leaves on the same software release.
Terms used in the table: ECMP (equal-cost multipath) spreads flows over all equal paths. An Ethernet A-D (auto-discovery) route is an EVPN BGP message by which a leaf announces it is attached to a given server link, and an ESI (Ethernet Segment Identifier) is the ID shared by the two leaf ports a dual-homed server connects to (RFC 7432). MLAG is the vendor-specific way of making two switches act as one for a server's link aggregation. A blackhole is traffic that is accepted and silently dropped. Graceful restart lets neighbours keep forwarding on old routes for a short time while a restarting peer comes back. Storm control caps broadcast and unknown-destination traffic on a port so a loop cannot flood the fabric. A MAC duplicate-move limit freezes or alerts on a MAC address that keeps jumping between ports, the sign of a loop or duplicate address.
Effect, detection and limit for each failure
| Failure | What it does to traffic | How I detect it | What limits the blast radius |
|---|---|---|---|
| Single leaf | Single-homed servers on it lose service. Dual-homed servers keep working on the other leaf: remote leaves treat the failed leaf's per-segment A-D routes as withdrawn (RFC 7432) and send to the partner, and BFD detects a dead peer in sub-second time | BFD (Bidirectional Forwarding Detection, fast failure probes) and BGP session-down alerts, server bond (LACP, link aggregation protocol) member-down, per-leaf endpoint count dropping against baseline | Dual-home everything that matters (EVPN multihoming with a shared Ethernet Segment Identifier (ESI) or a multi-chassis link aggregation (MLAG) pair), and never leave a rack with one leaf |
| Single spine | Loses 1/N of leaf uplink capacity (25% at N = 4). ECMP removes that next hop, so some flows re-hash: modulo selection (hash mod number of next hops) moves 75% of flows going from 4 to 3 next hops, while hash-threshold selection (RFC 2992) moves between 1/4 and 1/2, which is 33% or 50% for 4 to 3 depending on which hop is lost (worked below) | Per-uplink utilization jump on the remaining members, BGP/BFD down on that spine | Run normal peak at or below (N - 1) / N of capacity, 75% for N = 4 |
| Control-plane flap | Cables up, but MAC and IP routes disappear, so traffic blackholes or floods until routes return. A flapping route reflector re-advertises everything it learned | EVPN route count against baseline, BGP flap counters, a probe between two tenants | Two route reflectors in different failure domains, BFD tuned so noise does not reset sessions, maximum-prefix per session, graceful restart where the platform supports it, and change windows |
Why modulo moves 75% (worked)
Take 12 flows whose hash values are 0 to 11. With 4 next hops each flow goes to hash mod 4, and with 3 next hops to hash mod 3. Only hashes 0, 1 and 2 give the same answer both ways (0, 1, 2), so 9 of 12 flows move: 9 / 12 = 75%, even though only the 3 flows on the dead next hop had to move. Hash-threshold instead gives each next hop a contiguous slice of the hash range (3 hashes each for 4 hops, 4 each for 3 hops): if the second hop is lost, only 4 of the 12 flows change (33%), and if an end hop is lost, 6 of 12 (50%). Moved flows get reordered and, through a stateful device, may land on a different one, so fewer moved flows is better.
What a control-plane flap looks like
Illustrative case: leaf-3 holds 5,000 endpoints and its BGP sessions to both route reflectors reset for 30 seconds after a CPU spike (the spike stalls the leaf's BGP process, so both sessions time out together; if only one session reset, the other reflector would still hold the routes, which is why two reflectors help). Every link stays up and every cable test passes, but both route reflectors withdraw leaf-3's 5,000 MAC and IP routes. Other leaves now have no entry for those endpoints, so their traffic is dropped or flooded for 30 seconds. When the sessions return, all 5,000 routes are re-advertised at once, which is a burst of updates that can push other sessions into a flap. The telltale in telemetry is an EVPN route count that dips and recovers while interface counters show nothing wrong.
Capacity after a spine failure (computed)
| Spines (N) | Capacity lost per failure | Highest normal utilization that survives one failure |
|---|---|---|
| 2 | 50% | 50% |
| 3 | 33.3% | 66.7% |
| 4 | 25% | 75% |
| 8 | 12.5% | 87.5% |
| So with 2 spines at 60% load, one failure means 60% x 2 = 120% of the one left's capacity: congestion and drops. With 4 spines at 70% normal load the post-failure load is 70% x 4 / 3 = 93.3%, which survives but with almost no margin, and that is the number to put on the review: the fabric is within its failure budget but not by much. |
Design changes
- Dual-home all critical servers and verify the failover path with a real link pull, not a diagram.
- Use at least 4 spines and keep utilization below the failure budget, or add spines before the pressure arrives.
- Put route reflectors in separate hardware and failure domains, with max-prefix limits and BFD timers tested against jitter.
- Constrain Layer 2: few stretched VLANs, storm control and MAC duplicate-move limits so a loop in one VNI cannot take the fabric down.
- Software and config blast radius: upgrade one leaf of a pair, then the other, canary first. Identical code everywhere is itself a shared-fate failure.
- Dependencies outside the fabric (DHCP, DNS, the controller or automation) belong in the same review because they fail the same users.
- Run failure drills each quarter and measure loss time against the SLO.
Pitfalls
A diagram can look redundant while sharing a power feed, a code version, or a route reflector pair. Redundancy that has never been failed on purpose is a hypothesis. When capacity after failure is above 100%, the design is not redundant at peak, whatever the cable count says.
You are leading selection of new core switching hardware. What criteria do you evaluate, how do you structure a proof of concept with acceptance criteria, and what procurement risks do you manage?
Sample Answer
Direct answer
I choose core switching hardware in two stages. First, pass or fail gates that any candidate must meet (port speeds and density, table scale with 5-year headroom, required protocols, support terms). Then a weighted scorecard across the remaining ones, validated by a proof of concept (PoC) with numeric acceptance criteria written before any box is racked, and a contract that lets us walk away if the PoC criteria are not met. The procurement risks I manage are lead time, licensing, optics lock-in, end-of-life, support coverage, supply-chain integrity and price protection.
Terms used below, in plain words: incast is many senders hitting one receiver port at the same instant; a microburst is a spike of traffic that lasts microseconds and overflows a buffer before any average counter notices; head-of-line blocking is one stuck packet holding up the packets queued behind it; the control plane is the software that learns routes and programs the forwarding chip; a line card is a pluggable board of ports inside a chassis; hitless means no packets are lost while the software is replaced; NOS is the switch's operating system; NETCONF and gNMI are programmatic interfaces for configuring a switch and streaming its state.
In my experience the criteria that usually decide a purchase are table scale, 5-year TCO and support or lead-time terms; the others mostly act as pass or fail gates.
Evaluation criteria and how each is measured
| Criterion | What I check | Evidence |
|---|---|---|
| Capacity | Port speeds and count, uplink and downlink ratio, forwarding rate at the smallest frame size | Datasheet, then PoC line-rate test |
| Table scale | MAC, ARP (address resolution) and ND (Neighbor Discovery), IPv4 and IPv6 routes, ACL entries, VRFs, BFD (Bidirectional Forwarding Detection) sessions, with 5-year growth plus headroom | Measure current use from production, then fill tables in the PoC |
| Buffers and microbursts | Behaviour when many ports send to one (incast) | RFC 8239 (benchmarking methodology for data center switches) tests |
| Features | EVPN or the protocols we run today, QoS (quality of service), MACsec (link-layer encryption), hitless upgrade (ISSU, in-service software upgrade) | Feature matrix against the exact release |
| Operations | NOS (network operating system) release cadence, CLI and model-driven APIs (NETCONF, gNMI), streaming telemetry, Ansible support, bug history | Automate a build in the PoC |
| Power and space | Watts at typical and maximum load, airflow direction, rack units | Datasheet, measured at the PDU (power distribution unit) in the PoC |
| Commercial | 5-year TCO (total cost of ownership: hardware, optics, licences, support), price per port | Quote, not list price |
| Vendor and supply | Lead time, RMA (return merchandise authorisation) turnaround, spares, end-of-sale dates, firmware signing and security advisories | Contract and references |
PoC structure and acceptance criteria
Build a mirror of the real design: the two candidate core units as a pair, a traffic generator on enough ports to load them, and emulated or real downstream switches. Write every pass mark before testing, derived from our service-level objectives (SLO) and measured demand.
- Line rate and latency, using the RFC 2544 (the classic network device benchmarking method) and RFC 8239 methods: zero loss at 100% load at the smallest frame (64 bytes, which means the most packets per second and so the most per-packet work for the forwarding chip; RFC 2544 includes it to measure that per-frame processing cost) and at the jumbo MTU we use.
- Buffers: RFC 8239 microburst, head-of-line blocking and incast tests, accepting only the loss the applications tolerate (for example none for storage traffic).
- Scale: fill every table to 130% of the 5-year plan (worked below) and confirm routing and forwarding stay correct and the control plane stays responsive.
- Failure: pull a link, a line card, a power supply and the active control module, with the generator measuring loss time. The accepted ceiling is whatever the SLO allows, for example under 1 second for routed paths, written down first.
- Upgrade: perform a software upgrade under load and record packet loss per method.
- Automation: build and tear down a full configuration through the API and verify telemetry feeds our collector.
- Interoperability: peer with our existing routers and firewalls using our actual protocols and timers.
Any failed must-have disqualifies the vendor regardless of price.
Worked example
Production today: 48,000 MAC entries, 9,000 routes. Growth is 25% per year: 1.25^5 = 3.05, so 5 years gives about 146,500 MACs and 27,500 routes. Test at 130%: about 190,000 MACs and 35,700 routes. A box that is datasheet-rated at 128,000 MACs fails this PoC even though it passes today's load, which is exactly the finding a PoC exists to produce.
Cost arithmetic for one candidate (illustrative prices, replace with the quotes): 2 core units at $85,000 = $170,000; 48 optics at $1,200 = $57,600 (assumption: only 48 of the 64 ports need optics, the other 16 use direct attach cables priced at zero here to keep the illustration simple); licences $9,000 per unit per year x 2 units x 5 years = $90,000; support at 12% of hardware per year = 0.12 x $170,000 x 5 = $102,000; power (assumed 5 kW for the two units) 5 kW x 8,760 h x $0.12 per kWh x 5 years = $26,280 (cooling not included). 5-year TCO = 170,000 + 57,600 + 90,000 + 102,000 + 26,280 = $445,880. With 2 units x 32 ports of 400G = 64 ports, that is $445,880 / 64 = about $6,967 per port over 5 years. Compare this number across vendors, not the list price per port.
Scorecard (weights sum to 100, scores 1 to 5, max 500). Each total is score x weight, summed. Vendor A: 4x25 + 3x20 + 3x20 + 4x15 + 3x10 + 5x10 = 100 + 60 + 60 + 60 + 30 + 50 = 360. Vendor B: 5x25 + 4x20 + 2x20 + 3x15 + 4x10 + 3x10 = 125 + 80 + 40 + 45 + 40 + 30 = 360. Vendor C: 3x25 + 5x20 + 5x20 + 3x15 + 3x10 + 4x10 = 75 + 100 + 100 + 45 + 30 + 40 = 390.
| Vendor | Scale 25 | Ops 20 | TCO 20 | Support 15 | Power 10 | Supply 10 | Total |
|---|---|---|---|---|---|---|---|
| A | 4 | 3 | 3 | 4 | 3 | 5 | 360 (72%) |
| B | 5 | 4 | 2 | 3 | 4 | 3 | 360 (72%) |
| C | 3 | 5 | 5 | 3 | 3 | 4 | 390 (78%) |
| A and B tie at 360. The tie-break is the gates and the PoC failure results, not a re-weighting after the fact. Weights are fixed before scoring, otherwise the matrix just justifies a favourite. |
Procurement risks and how I manage them
- Lead time and price validity: ask for committed ship dates with penalties, and buy spares in the first order.
- Licensing: get every feature we need priced in the quote, including whether licences are per port or per box and whether they are subscriptions that disable features at expiry.
- Optics: confirm third-party optics are supported and that the vendor will not refuse support over them.
- End of life: require end-of-sale and end-of-support dates for the platform in writing and a 5-year support commitment.
- Support: coverage hours, hardware replacement time, named escalation, and the right to run a specific bug-fix release.
- Security and supply chain: advisory history, firmware signing, SBOM (software bill of materials).
- Acceptance clause: payment tied to passing the PoC criteria on delivered units, with a return right.
- Lock-in: avoid proprietary fabric features unless the benefit is quantified; keep the exit cost in the TCO.
Trade-offs and pitfalls
Never score on datasheet numbers alone, because vendors measure scale on one feature at a time. Do not tune the PoC for one vendor. The most expensive mistake is a PoC with no written pass marks, which turns into a demo.
How would you design the management network for thousands of devices so that management traffic cannot congest the data plane and is not itself a single point of failure?
Sample Answer
Direct answer
Build a dedicated out-of-band (OOB) management network: a physically separate set of cheap switches, links and routers that carries only management traffic: SSH (remote login), SNMP (the older polling protocol for reading device counters), streaming telemetry (the device pushes its counters on a schedule), syslog (device log messages), NTP (clock synchronisation), config pushes and console (serial access). Because it shares no links or queues with production, management traffic cannot congest the data plane. Because every layer above the rack switch is paired (two uplinks from each rack switch, two aggregation switches per group, two cores), no single link or switch above the rack can cut management to more than one rack. The rack switch itself is a shared failure domain for its 40 devices, which the dual-port rule and the in-band fallback below cover. In-band management (over production links) stays configured only as a tested fallback.
In one line each: separate physical network; two paths above every rack switch; summarised addressing; locked-down access; polling limits on devices; console access as a last resort.
Sizing the example: 3,000 devices
Assumptions (stated, not measured): one management port per device, 40 devices per rack-level management switch, an average of 200 kbit/s of telemetry, logs and polling per device, and 1 Gbit/s management ports.
| Layer | Count and role | Result |
|---|---|---|
| Rack management switch (48 x 1G) | 40 devices + 2 uplinks + 6 spare ports | 3,000 / 40 = 75 switches (48 ports = 40 + 2 + 6) |
| Aggregation group | 20 rack switches per pair of aggregation switches (the middle layer that gathers rack switches; agg-a, agg-b); 3 groups of 20 plus 1 of 15 | 4 groups, 8 aggregation switches |
| OOB core | pair of routers/firewalls (oob-core-a, oob-core-b), each fed by every aggregation switch | 2 |
| Out-of-band to the world | console servers (boxes that connect to each device's serial console port and make it reachable over the network) with a second path (cellular or a separate ISP circuit) at each site | reaches devices when the whole WAN is down |
Load check: 40 devices x 200 kbit/s = 8 Mbit/s per rack switch uplink (0.8% of 1G). A 20-switch group carries 800 devices x 200 kbit/s = 160 Mbit/s, which is 1.6% of one 10G uplink from an aggregation switch to the core. The spare capacity is there for failure and bursts (a firmware download to every device at once), not for steady state.
Design rules
- Separate planes, not just separate VLANs. Every device's dedicated management port goes into a VRF (a separate routing table) on the device, so management routing never mixes with production. A VLAN on shared links would still share fate with the data plane.
- Address plan. One /26 (64 addresses, 62 usable) per rack management switch, carved from 10.250.0.0/19. Counting: a /19 has 32 - 19 = 13 host bits and a /26 has 6, so the /19 holds 2^(26-19) = 128 blocks of /26. Handing out the /26s one after another would not summarise: a group of 20 consecutive /26s is 1,280 addresses, which is not a power of two, so it needs two to four separate prefixes (checked with Python's ipaddress module), not one. So give each aggregation group its own aligned /21 (2,048 addresses = 32 blocks of /26; four /21s fill the /19 exactly): group 1 is 10.250.0.0/21, group 2 is 10.250.8.0/21, group 3 is 10.250.16.0/21 and group 4 is 10.250.24.0/21. Inside a /21 the /26s start at .0, .64, .128 and .192 of each third-octet value. Groups 1 to 3 use 20 of their 32 blocks (group 1 runs from 10.250.0.0/26 to 10.250.4.192/26) and group 4 uses 15 (10.250.24.0/26 to 10.250.27.128/26). That is 75 used and 128 - 75 = 53 spare, 12 per full group and 17 in group 4, so every group can grow to 32 racks without renumbering. The OOB core then carries 4 group routes (the four /21s), not 75.
- Redundancy at every layer. Each rack switch has 2 uplinks to agg-a and agg-b of its group (different line cards, different power feeds). In the sizing assumption each device has one management port, so a rack switch failure cuts management to its 40 devices; for the devices whose loss would hurt most (core routers, spines, firewalls) cable a second management port to a rack switch in a different rack (the 6 spare ports per switch have room), and rely on the tested in-band fallback and the console servers for the rest. Aggregation pairs have two links to each OOB core router. The core pair runs a first-hop redundancy protocol (FHRP, such as VRRP: two routers share one virtual gateway address so hosts keep working if one dies) or ECMP (equal-cost multipath: traffic is spread over several equal-cost paths, and if one dies the rest carry it) with BFD (bidirectional forwarding detection, a tiny fast hello between neighbours that detects a dead link in well under a second). Two kinds of availability arithmetic apply. Devices in series, where every one must work, multiply their availabilities and get worse: two 99.9% devices in a chain give 0.999 x 0.999 = 99.8%. Redundant paths in parallel are the reverse: the pair is down only when both are down, so you multiply the failure probabilities. If each path is 99.9% available (0.001 down) and failures are independent, both are down 0.001 x 0.001 = 0.000001 of the time, so the pair is 1 - 0.000001 = 99.9999%. Independence is the assumption that fails in practice (shared conduit, shared PDU), so audit physical diversity.
- Access control. Management access is reachable only through jump hosts or a bastion (one hardened server that engineers must log in to first before reaching any device) on the OOB core, with AAA (authentication, authorisation and accounting, provided by a central server speaking TACACS+ or RADIUS so each engineer logs in as themselves), per-user logging and a deny-by-default ACL on the core. The management network never routes to the internet or into production.
- Protect production from management load. On devices with a shared CPU, apply control-plane policing (a rate limit on traffic addressed to the device's own CPU) to SSH/SNMP so a polling storm cannot starve routing protocols. Rate-limit and stagger pollers and prefer streaming telemetry (device pushes on a schedule) over aggressive SNMP walks.
- Break-glass. Console servers on the OOB network give serial access when a device's management IP is unreachable. Keep a local emergency account and config backups held off-network.
Failure modes and pitfalls
- A rack switch failure cuts out-of-band management to its 40 single-port devices until it is replaced; keep a cold spare per site and use in-band access and the console servers meanwhile.
- A single OOB core pair is itself a shared fate for all 3,000 devices; mitigate with a second site's core and the cellular console path.
- Management VRF leaks (a route accidentally imported to production) silently re-couple the planes. Verify with a traceroute from a production host to a management address; it must fail.
- Same power and same upstream feed for the OOB switches and the production switches defeats the purpose. Put the OOB gear on separate UPS (battery backup) or at least separate PDU (power distribution unit, the rack power strip) circuits.
- Cost: 75 rack switches, 8 aggregation switches and two cores add real capex, but it is a rounding error next to the cost of a data-plane outage you cannot diagnose because the management path died with it.
You are sizing a new data center fabric for 100,000 servers, each with a 25 Gbps NIC, at a 3:1 oversubscription target at the leaf. How do you work out the number of ToR, leaf and spine switches and their port counts, and when does a single two-tier design stop being enough?
Sample Answer
Direct answer
Work from the server count down to ports, one tier at a time. This is a three-tier fabric, and I use one name per tier throughout: the ToR (top-of-rack switch, the rack-level switch servers plug into, which the question's 3:1 target applies to), the leaf (the middle tier that gathers a pod of ToRs) and the spine (the top tier). Oversubscription is the ratio of server-facing bandwidth to uplink bandwidth. With 48 x 25 Gbps ports per ToR and 4 x 100 Gbps uplinks, each ToR is exactly 3:1. That needs 2,084 ToRs for 100,000 servers. A two-tier design stops working when the spine port count caps the number of ToRs: with 64-port spines that is 64 ToRs, or 3,072 servers. At 100,000 servers you need a third stage: a pod design of 64 pods, 256 leaf switches and 124 spine switches above the 2,084 ToRs.
Step 1: ToR tier (computed)
A Clos network is a layered design where each stage connects to the next through many parallel links; the ToR, leaf and spine tiers here are three stages.
- Downlink 48 x 25 = 1,200 Gbps, uplink 4 x 100 = 400 Gbps, ratio 3:1 (the target).
- ToRs = ceil(100,000 / 48) = ceil(2,083.3) = 2,084. Server ports provided: 2,084 x 48 = 100,032. Uplinks: 2,084 x 4 = 8,336 x 100 Gbps.
- Assumption: one NIC per server on one ToR. Dual-homed servers (two ToRs per rack for resilience) need about 200,000 / 48 = 4,167 ToR ports-worth of switches (4,168 as whole pairs); the same method applies.
Step 2: how far a two-tier design goes
In a two-tier fabric each ToR connects to every spine, so a ToR with 4 uplinks needs 4 spines, and each spine has one port per ToR. The number of ports on a switch is its radix. A 64 x 100 Gbps spine (radix 64) therefore limits the fabric to 64 ToRs: 64 x 48 = 3,072 servers. Reaching 100,000 two-tier would need a spine radix of at least 2,084 ports, which no single fixed switch offers. That is the point where you add a stage.
Step 3: three-stage fabric with pods
Each pod is a small two-tier fabric: ToRs plus 4 leaf switches (one per ToR uplink, so ToR uplink k goes to leaf k). Leaves then uplink to spines, one spine plane per leaf position. A plane is a separate group of spines: leaf 1 of every pod connects only to the spines of plane 1, leaf 2 of every pod only to plane 2, and so on, so four leaf positions give four planes.
- Spine radix 64 means at most 64 pods (one port per pod in each spine). ToRs per pod = ceil(2,084 / 64) = 33, so 36 pods carry 33 ToRs and 28 carry 32 (36 x 33 + 28 x 32 = 2,084).
- Leaf: 64 ports. A pod has up to 33 ToRs and each ToR has one uplink to this leaf, so 33 ports face down. The other 64 - 33 = 31 ports go up, one to each spine of the leaf's plane. Leaf oversubscription 33:31 = 1.06:1. A 33-ToR pod offers 33 x 48 x 25 = 39.6 Tbps at the servers and 4 leaves x 31 x 100 = 12.4 Tbps up, about 3.2:1 end to end.
- Spines: each leaf has 31 uplinks and each goes to a different spine of its plane, so a plane needs 31 spines. Each spine has one port per pod (64 ports, 64 pods), connected to that pod's leaf of the plane's position. 4 planes x 31 = 124 spines, each with all 64 ports used by pods.
- Totals: 2,084 ToRs + 256 leaves (64 pods x 4) + 124 spines = 2,464 switches.
- The design has no headroom: spines are 64 of 64 ports used, so growth means a higher-radix spine (or a super-spine tier).
flowchart TB
PL1[Plane 1: 31 spines] --- P1L1[Pod 1 leaf 1]
PL1 --- P64L1[Pod 64 leaf 1]
PL2[Plane 2: 31 spines] --- P1L2[Pod 1 leaf 2]
PL2 --- P64L2[Pod 64 leaf 2]
PL3[Plane 3: 31 spines] --- P1L3[Pod 1 leaf 3]
PL3 --- P64L3[Pod 64 leaf 3]
PL4[Plane 4: 31 spines] --- P1L4[Pod 1 leaf 4]
PL4 --- P64L4[Pod 64 leaf 4]
P1L1 --- T1[Pod 1: 33 ToRs, each with one uplink to each of the 4 leaves]
P1L2 --- T1
P1L3 --- T1
P1L4 --- T1
P64L1 --- T64[Pod 64: 32 or 33 ToRs, same wiring]
P64L2 --- T64
P64L3 --- T64
P64L4 --- T64
Addressing plan and ARP/ND scale
- Route to the rack means each ToR is the Layer 3 boundary: the point where traffic is routed by IP address rather than switched by MAC address, and the ToR is its servers' gateway. Subnet arithmetic (a /n prefix holds 2^(32-n) addresses): a /26 is 2^6 = 64 addresses, 62 usable after the network and broadcast addresses, enough for 48 servers plus growth. 33 racks x 64 = 2,112 addresses fits a /20, which is 2^12 = 4,096. 64 pods x 4,096 = 262,144 = 2^18 addresses, which is one /14 such as 10.0.0.0/14. Pods then summarize to one /20 each toward the spine, so each spine holds 64 pod summaries instead of 2,084 rack prefixes (the routing table, the prefixes a switch holds, stays small).
- ARP (IPv4, "who has this IP address") and Neighbor Discovery (ND, the IPv6 equivalent) are confined to the rack: a ToR learns at most 62 neighbors. If Layer 2 is stretched with VXLAN/EVPN instead (VXLAN tunnels Layer 2 frames across the routed network and EVPN distributes the MAC and IP addresses over BGP), every tunnel endpoint (VTEP) may have to hold MAC and ARP entries for stretched segments, so limit how many VLANs stretch beyond a pod, and use ARP suppression (a leaf answers ARP itself from what it already knows), to keep tables bounded.
Trade-offs and pitfalls
- 3:1 is a statement about the ToR's server-facing side; a storage or machine-learning cluster that runs hot east-west needs 1:1 or 2:1, which means more uplinks per ToR and a larger fabric.
- Failure: losing a spine in a plane removes 1/31 of that plane's capacity, not a rack.
- Common mistake: sizing from ports alone and forgetting the spine radix ceiling and the cable count (8,336 ToR uplinks plus 256 x 31 = 7,936 leaf-to-spine links).
Unlock Full Question Bank
Get access to all Network Design and Architecture interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.