keepcalculator

06 Numbers and Powers

How to Choose Data Center Networking Hardware for AI

Card No. 06·58260 · Updated · Standard formula, shown below

Choosing networking hardware for an AI cluster means matching bandwidth, latency, topology, and operations to the workloads and scale you expect. Before requesting quotes, document the compute nodes, accelerator interfaces, workload patterns, and growth plan; the result should be a design you can test end to end, not just a list of fast switches.

What You’ll Need

  • A workload profile: training, inference, or both; model and data sizes; communication patterns; and expected concurrency.
  • Server specifications, including accelerator count, network ports and supported speeds, PCIe or other I/O limits, and available expansion slots.
  • A rough cluster layout: number of racks and nodes, rack locations, power and cooling constraints, and expected expansion.
  • Requirements for availability, maintenance, security segmentation, monitoring, and acceptable recovery time.
  • Vendor documentation and access to a lab, pilot cluster, or representative performance test environment.

Step-by-Step

  1. Classify the workload. For distributed training, identify how often workers exchange gradients or other data, whether communication is all-to-all or more localized, and how much time the accelerators wait on the network. Inference may emphasize predictable latency, request throughput, and east-west traffic between services. Storage and checkpoint traffic can also compete with accelerator traffic. Avoid choosing a network based only on peak accelerator compute numbers.
  2. Translate workload needs into measurable targets. Define required throughput per node and per job, acceptable latency, packet-loss behavior, and the number of simultaneous jobs. Separate sustained performance from short bursts. Ask application and platform teams which measurements matter, then select tests that reflect those communication patterns. Do not assume a link’s advertised line rate is the application’s usable throughput.
  3. Check server-side limits first. List the network interfaces each server can support, their speeds, port count, bus and slot constraints, and whether the intended data path is supported by the operating system and cluster software. Confirm optics or cable compatibility, connector types, and host-to-switch reach. A switch cannot compensate for an adapter, slot, or host configuration that bottlenecks the path.
  4. Choose the fabric approach. Compare Ethernet and InfiniBand against operational skills, software support, ecosystem, congestion behavior, and the workload’s requirements. Both can support high-performance clusters, but features and implementation details differ. Validate support for required transport, congestion control, telemetry, and collective communication libraries with the relevant equipment and software documentation. Do not select by protocol label alone.
  5. Design a topology that scales. Draw the complete path from each server through leaf and, where needed, spine switches. Count ports for servers, uplinks, management, and spare capacity. Work out oversubscription at each layer using the actual link speeds and traffic assumptions. A nonblocking design is not automatically necessary or affordable; make any oversubscription an explicit, tested choice. Check hop count, failure domains, rack placement, and whether a job’s workers can be distributed without creating unexpected bottlenecks.
  6. Size switch and link capacity together. Compare port speed, port density, forwarding capacity, buffer behavior, and supported features. Verify that the switch can handle the expected aggregate traffic rather than merely having enough ports. Review uplink capacity and congestion handling for synchronized traffic bursts. Include spare ports and a practical expansion path, while avoiding a design that depends on unsupported breakout modes or incompatible transceivers.
  7. Select cabling and optics for each route. Record distance, cable path, connector, media type, and endpoint requirements for every link. Use copper or optical options only where both devices support the chosen interface and reach. Check vendor compatibility guidance and installation limits, including bend radius and cable management. Label both ends and maintain a bill of materials with lengths and part specifications; do not treat all cables with the same nominal speed as interchangeable.
  8. Plan reliability and operations. Decide how links, switches, power, and management access recover from failures. Consider redundant paths only if routing, orchestration, and applications can use them correctly. Define how firmware and configuration changes are staged and rolled back. Provide a separate management path where appropriate, access controls, configuration backups, and monitoring for link errors, congestion, drops, and device health.
  9. Test a representative design before scaling. Build a pilot with the intended server interfaces, switches, cables, software, and topology. Measure both isolated link performance and multi-node job performance. Test simultaneous traffic, failure recovery, and the effects of storage or other workloads sharing the fabric. Establish acceptance thresholds in advance, investigate deviations, and repeat tests after changes. Scale only when results and operational procedures are understood.

Common Mistakes

  • Buying to a headline speed: Link rate alone does not describe end-to-end throughput, congestion, latency, or application performance.
  • Ignoring oversubscription: Counting server ports without calculating uplink capacity can create a fabric that performs well in isolated tests but slows under collective traffic.
  • Mixing incompatible components: Confirm host adapters, switch ports, cables, optics, breakout settings, and software support as a complete path.
  • Overlooking physical constraints: Rack space, power, cooling, cable reach, and port orientation can invalidate an otherwise sound design.
  • Skipping operational readiness: Unmonitored congestion, inconsistent configurations, and untested firmware changes can undermine hardware performance.
  • Scaling before validation: A small pilot may not expose all-to-all congestion, failure-domain issues, or management challenges. Test realistic concurrency and traffic.

Tips

  • Keep the workload profile and network diagram version-controlled alongside configuration and test results.
  • Ask suppliers for exact supported feature matrices and interoperability details, not just general claims about compatibility.
  • Reserve capacity for growth based on a documented forecast; specify when expansion triggers a new design review.
  • Use consistent naming and labeling for racks, ports, links, and endpoints to speed installation and fault isolation.
  • Agree on acceptance tests with compute, storage, network, and operations teams before purchasing.

Troubleshooting

If measured performance is below expectations, first confirm the test represents the intended job and is not limited by the application, CPU, storage, or host interface. Check negotiated link speed, interface errors, drops, retransmissions, and cable or optical-module alarms at both ends. Verify that the adapter uses the intended slot and settings, and that switch ports have matching speed, breakout, and configuration.

If single-link tests pass but multi-node jobs slow down, inspect oversubscription, hot links, congestion, traffic distribution, and competing storage or service traffic. Compare switch counters and telemetry with application timelines. Test smaller groups of nodes and add nodes gradually to identify where performance changes. If latency spikes or links flap, substitute a known-good compatible cable or optic, inspect connectors and routing, and check device logs and environmental alarms.

For a failed link or switch, follow the documented change and failover process rather than making several simultaneous configuration changes. Confirm the intended alternate path is active, record the fault and recovery behavior, and restore service using the approved rollback plan. Escalate unresolved hardware or interoperability issues with logs, topology, exact component identifiers, and reproducible test results.

Frequently Asked Questions

Is Ethernet suitable for AI clusters?
It can be, depending on workload, scale, supported features, and operations. Validate the complete design with representative jobs instead of assuming one fabric type is always best.

Do all AI workloads need a dedicated network?
No. Some deployments share infrastructure successfully, while others separate traffic for performance, management, or operational reasons. Measure contention and define isolation requirements first.

How much bandwidth does each server need?
There is no universal figure. It depends on accelerator count, communication pattern, job size, and acceptable completion time. Use workload measurements and pilot tests to set a target.

What does oversubscription mean?
It is the ratio of aggregate downstream link capacity to available upstream capacity. A higher ratio can reduce hardware requirements but may constrain simultaneous traffic; assess it under realistic load.

Should I buy spare switches and cables?
Plan spares according to recovery objectives, lead times, failure impact, and the ability to reroute traffic. Keep compatible spare cables and optics for components where a replacement materially reduces downtime.

When should the design be reviewed again?
Review it when server interfaces, workload patterns, cluster size, software support, or performance targets change, and before a major expansion.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →