Beijing, China · Independent network hardware supplierSupplied lines: switching · routing · security · wireless · servers
English
EspañolFrançaisPortuguêsРусский
SwitcharaIndependent network hardware supplier — Beijing, China
Send an inquiry

GPU cluster fabric arithmetic

A GPU cluster is a counting problem wearing a networking costume. The accelerators get the attention, but the build succeeds or stalls on whether three counts agree: the ports on the nodes, the ports on the fabric switches, and the optics and cables between them. This guide does that arithmetic in the open, using the fabric reference in this catalogue — a 1U switch with 36 QSFP28 ports at EDR 100 Gb/s.

Reference switch36 × QSFP28, EDR 100 Gb/s
CheckPorts = optics = nodes, reconciled
illustration of a GPU server with accelerator modules
Illustration of a GPU server with accelerator modules.

Count node ports first

Each GPU node joins the fabric through one or more high-speed ports — one per accelerator rail in rail-optimised designs, fewer in simpler ones. The cluster's link count is nodes multiplied by ports per node. Sixty-four nodes at one fabric port each is sixty-four links; at four rails it is two hundred and fifty-six. That single multiplication decides the fabric size, so it is done first and written down.

Leaves, spines and the 36-port unit

A two-tier fabric divides the switch count into leaves (facing the nodes) and spines (facing the leaves). With 36-port units, a leaf that spends half its ports on nodes and half on spines serves 18 nodes per leaf in a non-blocking layout. Sixty-four single-port nodes therefore take four leaves (72 node-facing ports, 64 used) and a spine tier sized to the leaves' uplink count. The exact topology varies; the discipline does not: every port in the diagram is either a node link, an inter-switch link, or a deliberate spare — and the diagram, not the switch count, is what gets quoted.

Optics: roughly double the links, minus the rack

Every fibre link consumes an optic at each end, so a naive optics count is twice the link count. The correction is physical: links inside a rack or between adjacent racks often run on direct-attach assemblies instead of two optics and a fibre pair, and those links subtract from the optics total while adding an assembly line. Breakout changes the arithmetic again where a QSFP28 port serves four 25G legs. A quote that does not show which links are optic links and which are assemblies has not finished its arithmetic.

Storage and the second network

Clusters also carry a storage and management network — usually Ethernet — with its own switches and optics, plus the servers' BMC connections nobody counts until the rack will not close. The catalogue's data centre pages cover that layer; the point here is budgetary honesty: the fabric quote and the Ethernet quote are two line groups of one cluster order, and both belong in the same reconciliation.

Sending a cluster design

Send nodes, accelerators per node, fabric ports per node, the topology if it exists, and the rack layout (which links are in-rack). The reply returns switch, optic and assembly counts with the arithmetic shown — the three numbers agreeing is the deliverable.

Worked example: sixteen nodes, two tiers

Walk the arithmetic for a sixteen-node cluster. Leaves first: at eight nodes per leaf, two leaves carry the cluster. Spine ports consumed: each leaf uplinks to every spine; with two spines, each leaf spends two ports upward and the spines carry four fabric ports between them plus room. Now the module table: node links (sixteen, at the node's NIC speed), leaf-spine links (four, at fabric speed), plus one spare per type. Sixteen-node clusters are forgiving — the arithmetic fits on an envelope, and that is exactly why it should be practised here, before the sixty-four-node design where it does not.

The numbers that bite in the small design are not the switch ports but the optics count: every fabric link is two modules and a cable assembly, and the spares are per type, so a two-speed fabric stocks two spare types. Small clusters standardise on one fabric speed for precisely this reason — the module table, not the topology, argues for it.

Oversubscription: choosing the ratio deliberately

A fabric where the leaves' total node bandwidth equals the total uplink bandwidth is non-blocking; halve the uplinks and the fabric is 2:1 oversubscribed. Neither is correct in the abstract. Training traffic between nodes is bursty and synchronised — jobs exchange gradients in waves — so a fabric that is statistically fine for storage traffic can stall a training job at every synchronisation point. The honest method: if the cluster's purpose is training, buy the ratio the synchronisation pattern needs, which usually means non-blocking or close to it; if it is inference or mixed duty, oversubscription is money honestly saved.

State the ratio in the design document as a decision, with its reason. The failure mode to avoid is the accidental ratio — a fabric that is 3:1 because the leaf class happened to have that many uplinks, discovered when the first full training run underperforms and everyone blames the framework.

Cabling and optics: where small errors multiply

Fabric cabling errors multiply because every link is identical: a wrong reach class or connector is never wrong once, it is wrong sixty-four times, in a delivery that all arrives the same week. The defence is the link table from the SFP discipline applied at fabric scale — every link type enumerated with its module, its cable and its count, checked against the switch classes at both ends before ordering, not at installation.

Order the spares with the fabric, in the same shipment, labelled by link type. A fabric whose spare modules arrive 'later' runs unprotected through its most failure-prone period — the burn-in weeks when marginal optics fail — and a failed fabric link in a training cluster is not a degraded link; it is a stopped job and a room full of idle accelerators waiting on a courier.

Checking the arithmetic against the delivered fabric

When the fabric is installed, audit it against the design table before the first training run: count the modules per link type, confirm the breakout ports are configured as designed, and verify the oversubscription ratio the built fabric actually implements. Discrepancies found here are cabling or configuration slips, cheap to fix; the same discrepancies found through a slow training job cost days of suspicion aimed at the wrong layer. The audit takes an hour and closes the loop between the arithmetic and the iron.

A last word on documentation

File the fabric arithmetic with the cluster's design record: leaf and spine counts, the ratio chosen and why, the module table and the spares held. Clusters outlive their installers, and the engineer extending the fabric in year two should be able to re-derive every decision from the file rather than reverse-engineering it from the cabling. Fifteen minutes of writing buys that.

Questions buyers ask

Can the fabric and the GPU servers be quoted as one order?

Yes — that is the standard pattern here, because the counts only reconcile when they are priced together.

We are starting with 8 nodes and growing to 64. How should the fabric be bought?

Buy the spine tier for the final topology and the leaves for the current phase, if the design allows; state the growth plan in the inquiry and the quote will phase it explicitly.

Related pages

Price a list

Send model numbers or a full BOM — one inquiry covers every family in the catalogue.

Send an inquiry