Home / Learn / AI Networking / InfiniBand vs Ethernet for AI Clusters

On this pageWhich network are we talking about?What AI needs from this networkThe two optionsPerformanceCostEcosystem and supplyOperationsScaleMulti-tenancySide by sideThe trendHow to decideLooking aheadFor chip designersCommon questionsRelated guides

InfiniBand vs Ethernet for AI Clusters

InfiniBand and Ethernet are the two main choices for the network that connects accelerators in an AI cluster. InfiniBand was built for high-performance computing and offers proven low latency in a tightly integrated system from one main supplier. Ethernet is the general-purpose standard, with many suppliers, lower cost and a familiar operating model, and it has been adapted to deliver comparable performance. The decision involves performance, cost, ecosystem and operations.

Which network are we talking about?

An AI cluster has several networks. This comparison concerns the back-end network, also called the scale-out network: the one that links servers of accelerators so they can train or run a model together. It carries heavy, synchronized traffic and has the greatest effect on performance.

The front-end network, which connects the cluster to users and other systems, is almost always Ethernet.

What AI needs from this network

  • High bandwidth. Accelerators exchange large volumes of data.
  • Low latency, and especially consistent latency. One slow transfer delays a whole training step.
  • Little or no packet loss, or very fast recovery.
  • Efficient use of all paths.
  • Remote direct memory access.
  • Scale to very large numbers of endpoints.

The two options

InfiniBand provides these natively.

Ethernet provides them through additions: RDMA over Ethernet, known as RoCE, combined with flow control and congestion management, and more recently the Ultra Ethernet standard. and What Is Ultra Ethernet?.

Performance

For a long time InfiniBand had a clear advantage in latency and in behavior under load. Its lossless design and adaptive routing suited tightly coupled workloads.

Ethernet has narrowed the difference considerably.

  • Link speeds are equivalent.
  • RDMA over Ethernet delivers low latency.
  • Switches and adapters now offer advanced load balancing and congestion control.
  • Published results from operators and vendors show well-tuned Ethernet achieving training performance within a small margin of InfiniBand.

A fair summary is that InfiniBand delivers strong performance with less tuning, and Ethernet can come close when configured well. For most AI training, the difference in job completion time is small.

Cost

ItemInfiniBandEthernet
Switches and adaptersTypically more expensiveTypically less expensive, with more competition
Optics and cablesSimilarSimilar
OperationsNeeds specialized skills and toolsUses existing skills and tools
Supplier leverageLimitedGreater

Optics make up a large part of the cost of a high-speed network and are comparable for both. The saving with Ethernet comes mainly from switch and adapter pricing and from operations.

Ecosystem and supply

InfiniBand hardware comes almost entirely from one company. That company also supplies the dominant AI accelerators and sells complete systems in which the two are designed to work together.

Ethernet equipment comes from many suppliers of switch chips, switches, adapters and DPUs. Buyers can mix vendors and negotiate.

Organizations differ in how they weigh this. Some value a single, integrated, proven stack. Others want to avoid dependence on one supplier for both compute and network.

Operations

  • InfiniBand is a separate network with its own management model, based on a central subnet manager, and its own diagnostic tools. Staff need specific training. Gateways link it to the Ethernet world.
  • Ethernet uses the routing protocols, automation, monitoring and expertise that data center teams already have. The same technology can serve the front end, the back end and storage.

A lossless Ethernet network for RoCE does need careful configuration, which has been a common source of difficulty. Newer approaches reduce or remove that need.

Scale

Both have been used to build clusters with tens of thousands of accelerators and more.

InfiniBand’s addressing limits the size of a single subnet, and very large systems use multiple subnets or extensions. Ethernet with IP routing scales to very large networks by design, which is one reason the largest cloud operators favor it.

Multi-tenancy

Cloud providers need to isolate customers from each other. Ethernet has a rich set of mature mechanisms for virtual networks and tenant separation. InfiniBand has isolation features and has added capabilities for cloud use, but the tooling is less widespread.

Side by side

InfiniBandEthernet
Designed forHigh-performance computingGeneral networking, adapted for AI
RDMANativeThrough RoCE or Ultra Ethernet
Lossless operationBuilt inRequires configuration, or avoided by newer transports
PerformanceExcellent, provenClose when well tuned
SuppliersOne dominantMany
Equipment costHigherLower
Operational familiaritySpecializedWidespread
Fit with the rest of the data centerSeparateUnified
Multi-tenant featuresMore limitedExtensive
Scale of the largest deploymentsVery largeVery large

The trend

The direction of the market has been toward Ethernet.

  • The largest cloud operators have mostly built their AI back-end networks on Ethernet.
  • Industry analysts have reported Ethernet’s share of AI back-end networking rising steadily.
  • The leading InfiniBand supplier now also offers an Ethernet platform aimed at AI.
  • A broad industry consortium has standardized an Ethernet-based transport for AI and HPC.

InfiniBand remains widely used, particularly in supercomputing and in turnkey AI systems, and continues to advance.

How to decide

  • Buying an integrated system from one vendor? The network usually comes with it.
  • Building at hyperscale with in-house networking expertise? Ethernet is the common choice.
  • Is supplier independence a priority? Ethernet.
  • Is the team small and looking for the least tuning? InfiniBand can be simpler to get performing well.
  • Does the cluster serve multiple tenants? Ethernet’s isolation tools are an advantage.
  • Is one network technology for everything desirable? Ethernet.
  • What do the available staff know?

Looking ahead

Ethernet’s main weaknesses for AI have been its reliance on a lossless configuration and its difficulty spreading a few large flows evenly. The Ultra Ethernet standard was written to address both. As products implementing it mature, the case for Ethernet strengthens.

A separate set of technologies addresses the very short-range connections between accelerators inside a rack, which have different requirements from the cluster network.

For chip designers

An accelerator or network device has to connect to the network its customers run. Ethernet’s open, multi-vendor nature makes it the accessible option for anyone building a custom chip, since the technology can be licensed and interoperability is defined by public standards.

Common questions

Which is better for AI, InfiniBand or Ethernet?

Both work well. InfiniBand has the longer record and needs less tuning. Ethernet offers more supplier choice, lower cost and easier integration, with performance that is now close. The better choice depends on the organization’s priorities.

Is Ethernet replacing InfiniBand in AI clusters?

Ethernet’s share has been growing, particularly among the largest operators. InfiniBand remains widely deployed and is still developing.

Can an AI cluster use both?

Yes. A common arrangement is InfiniBand for the back-end network and Ethernet for the front end and storage.

Related guides