# What Makes Up an InfiniBand Network? — From Two GPU Servers to an AI Fabric

*InfiniBand Essentials Learning Series | Lesson 02*

In [Lesson 01](https://packetsandfabrics.hashnode.dev/why-was-infiniband-created-the-problem-that-existed-long-before-ai), we explored why InfiniBand was created and why faster processors alone cannot solve communication bottlenecks.

🎬 **Watch the quick introduction:** [**https://lnkd.in/gcBQywdS**](https://youtube.com/shorts/AyvNF5omxUA?si=tD4BJw2wr1DDMb_5)

Now, let's understand how InfiniBand works.

Imagine two servers, each with eight GPUs, working together to train an AI model. The GPUs perform calculations, exchange data and synchronize their results.

If communication is slow, even powerful GPUs spend time waiting for data.

**How do GPUs in different servers communicate efficiently?**

In this lesson, we'll explore the fundamental building blocks of InfiniBand, understand how data travels between GPUs, and gradually scale from two GPU servers to a 256-GPU AI fabric.

## 1\. The building blocks of an InfiniBand network

A switched InfiniBand network relies on four fundamental components.

![Fundamental components of a switched InfiniBand network](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/c6854dcc-0b86-48c0-a132-e8e7c2d588b9.svg align="center")

*Figure 1 — Fundamental components of a switched InfiniBand network.*

| Component | Responsibility |
| --- | --- |
| Host Channel Adapter (HCA) | Connects the server to the fabric |
| Link | Carries data between ports |
| Switch | Forwards packets |
| Subnet Manager (SM) | Initializes and manages the subnet |

Two HCAs can also be connected directly without a switch, although the InfiniBand subnet still requires initialization.

Each component has a different responsibility, but together they enable high-performance communication.

Let's start where data enters the network.

## 2\. Host Channel Adapter — The gateway to the fabric

An HCA handles much of the transport processing and data movement in hardware.

### DMA, RDMA and GPUDirect RDMA

To understand why HCAs are important, we need to understand three related concepts.

**Direct Memory Access (DMA)** allows a hardware device to access local memory without requiring the CPU to copy every byte.

**Remote Direct Memory Access (RDMA)** allows data to move between registered memory regions on different systems.

**GPUDirect RDMA** allows a compatible HCA to directly access GPU memory without first staging the payload in host memory.

![Understanding DMA, RDMA and GPUDirect RDMA](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/50ecb09f-a27f-4e9b-acca-87b3d3435aca.svg align="center")

*Figure 2 — Understanding DMA, RDMA and GPUDirect RDMA.*

Without GPUDirect RDMA, GPU data may need to be copied into host memory before the network adapter can access it. GPUDirect RDMA removes this intermediate payload-staging step on supported platforms.

![Host-memory staging versus GPUDirect RDMA](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/0c085cee-da47-48e4-ba60-2d7d1f4477a8.svg align="center")

*Figure 3 — Host-memory staging versus GPUDirect RDMA.*

The CPU still coordinates setup and synchronization.

> **💡 Analogy — A factory and a warehouse**
>
> Instead of moving finished goods into an intermediate warehouse before loading a truck, the truck collects them directly from the factory.

### Can the server keep up with the network?

A 400 Gbps HCA needs adequate PCIe capacity. PCIe Gen4 x16 offers approximately 252 Gbps per direction, while Gen5 x16 offers approximately 504 Gbps. These theoretical figures account for line encoding but exclude transaction overhead.

![Theoretical PCIe bandwidth compared with nominal HCA link capacity](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/325b0926-bc0d-4151-9285-7b83eb366be3.svg align="center")

*Figure 4 — Theoretical PCIe bandwidth compared with nominal HCA link capacity.*

A 400G HCA operating over PCIe Gen4 x16 could therefore be limited by its PCIe connectivity rather than its network link.

### Why GPU-to-HCA placement matters

Even two servers equipped with identical GPUs, HCAs and PCIe generations can deliver different communication performance. The reason may be their internal hardware topology.

![Local versus cross-socket GPU-to-HCA connectivity](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/bc86f323-c40b-4958-bb53-a5ae2746ca0b.svg align="center")

*Figure 5 — Local versus cross-socket GPU-to-HCA connectivity.*

A GPU and HCA connected through a nearby PCIe switch may have a more efficient communication path than devices located across different CPU sockets. This relationship is commonly referred to as **GPU-to-HCA affinity**. Actual performance and GPUDirect RDMA support depend on the platform and software configuration.

> **🧭 Architect's Corner**
>
> Check negotiated PCIe generation and width, GPU-to-HCA affinity, and concurrent adapter capacity. A faster network adapter cannot compensate for an internal server bottleneck.

## 3\. InfiniBand links — The highways carrying data

InfiniBand links are point-to-point and full-duplex.

### Understanding lanes and link bandwidth

A four-lane NDR link provides nominal 400 Gbps in each direction simultaneously.

![Four-lane full-duplex NDR connectivity](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/81bd1d0c-8421-413b-b0e5-7c668ca44834.svg align="center")

*Figure 6 — Four-lane full-duplex NDR connectivity.*

Full-duplex operation means that both devices can transmit and receive simultaneously. However, 400 Gbps in each direction does not mean a single unidirectional transfer can achieve 800 Gbps.

### How InfiniBand link speeds have evolved

![Nominal four-lane InfiniBand link speed evolution](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/043f6f45-92cd-4527-ba3d-eb617fffb052.svg align="center")

*Figure 7 — Nominal four-lane InfiniBand link speed evolution.*

These generation labels are nominal rates, not guaranteed application throughput; historical encoding conventions differ.

> **💡 Analogy — A multilane highway**
>
> Multiple lanes carry traffic in parallel, with independent capacity in each direction.

### Copper or optical connectivity?

| Medium | Typical role |
| --- | --- |
| Passive DAC | Short connections |
| Active copper cable | Extended copper reach |
| AOC | Integrated optical cable |
| Optical transceivers and fiber | Longer or more flexible connections |

For example, a server connected to a nearby leaf switch within the same rack may use a qualified copper cable. Longer inter-rack connections may require optical connectivity, depending on supported reach and installation requirements.

> **🧭 Architect's Corner**
>
> Choose qualified cables based on reach, compatibility, power, cost and maintenance requirements.

## 4\. InfiniBand switches — How does data reach its destination?

Connecting two servers directly is relatively simple. But what happens when we need to connect hundreds of endpoints?

| Network endpoints | Direct full-mesh connections |
| --: | --: |
| 2 | 1 |
| 8 | 28 |
| 32 | 496 |
| 128 | 8,128 |

Switches solve this scalability problem by providing shared connectivity. For conventional intra-subnet unicast forwarding, the switch uses the destination LID (DLID) and a linear forwarding table (LFT) to select an output port. Unlike traditional Ethernet MAC learning, the forwarding information is installed through subnet management.

![Simplified destination-LID-based packet forwarding](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/ebb48a15-88ad-41c9-987a-e4428b088397.svg align="center")

*Figure 8 — Simplified destination-LID-based packet forwarding.*

| Traditional Ethernet bridging | Native InfiniBand unicast |
| --- | --- |
| Destination MAC address | Destination LID |
| MAC forwarding database | Linear Forwarding Table |
| Typically learns source MAC addresses | Forwarding information installed through subnet management |

### Why credit-based flow control matters

Imagine a switch receiving data faster than its receiving buffers can accommodate. InfiniBand uses **credit-based link flow control** to help prevent buffer overflow.

![Simplified InfiniBand credit-based link flow control](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/0345d95b-6a4f-4780-a6d1-5f76cf116dc7.svg align="center")

*Figure 9 — Simplified InfiniBand credit-based link flow control.*

A sender transmits according to its available credits, which represent receiving-buffer capacity. When credits are exhausted, transmission for the affected data virtual lane must wait until additional credits become available. This does not eliminate congestion or guarantee that packets can never be lost.

We will explore flow control, virtual lanes and congestion management in dedicated lessons later in this series.

> **💡 Analogy — A railway junction**
>
> Trains follow established routes through junctions instead of discovering a new route at every crossing.

> **🧭 Architect's Corner**
>
> Switch radix determines how many ports are available for endpoints and inter-switch connections.

## 5\. Subnet Manager — Who makes the fabric operational?

Imagine that the physical links are up but the servers cannot communicate. A missing or malfunctioning Subnet Manager is one possible cause.

The SM discovers devices, assigns LIDs, computes forwarding paths, programs switches, activates ports and monitors topology changes.

![Subnet Manager responsibilities and simplified port initialization](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/2b4ee7c1-3be6-49c7-9ff0-2b3aa4ec80ad.svg align="center")

*Figure 10 — Subnet Manager responsibilities and simplified port initialization.*

A physical LinkUp state does not necessarily mean that a logical port is ACTIVE. A port remaining in INIT warrants investigation of subnet initialization. OpenSM is an open-source implementation; supported switches can also host subnet management.

> **💡 Analogy — A railway control center**
>
> The control center establishes routes, but trains do not travel through the control center.

### What happens if the Subnet Manager fails?

Existing forwarding may continue with unchanged topology, but new endpoints and topology reconfiguration may be affected.

![Master and standby Subnet Managers in independent failure domains](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/6b83f6be-f5f0-41b7-8788-ef4c2fe2daaf.svg align="center")

*Figure 11 — Master and standby Subnet Managers in independent failure domains.*

> **🧭 Architect's Corner**
>
> Place redundant SMs in independent failure domains and validate takeover, new endpoint discovery and routing changes.

## 6\. GUID, LID and GID — Identity versus address

| Identifier | Size | Role |
| --- | --: | --- |
| GUID | 64 bits | Globally unique device or port identity |
| Conventional LID | 16 bits | Local forwarding identifier within a subnet |
| GID | 128 bits | Global identifier |

A port GUID normally remains stable, whereas its assigned LID can change. A default unicast GID consists of a 64-bit subnet prefix and a 64-bit port GUID.

![Illustrative GUID-to-LID mapping and default unicast GID structure](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f0020876-672f-4740-ac71-e0d33b532fd4.svg align="center")

*Figure 12 — Illustrative GUID-to-LID mapping and default unicast GID structure.*

> **💡 Analogy — Employee ID and desk number**
>
> An employee can move to another desk without changing their identity.

> **🧭 Architect's Corner**
>
> Track Port GUIDs and dynamic subnet-scoped LID mappings rather than treating a changed LID as a replaced device.

## 7\. Putting everything together — A GPU-to-GPU data journey

Return to our two GPU servers. Assume the subnet is initialized, GPU memory is registered and an authorized RDMA connection is established.

![End-to-end GPU-to-GPU communication using GPUDirect RDMA](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/29317087-c39c-4683-8846-e0673ed9a068.svg align="center")

*Figure 13 — End-to-end GPU-to-GPU communication using GPUDirect RDMA.*

1. GPU A produces data and software coordinates synchronization.
2. The sending HCA accesses registered GPU memory.
3. The HCA constructs and transmits InfiniBand packets.
4. The switch forwards using the destination LID.
5. The receiving HCA processes the RDMA Write and places data into authorized GPU memory.
6. Software handles completion and GPU synchronization.

> **🧭 Architect's Corner**
>
> Successful host-memory RDMA does not establish that GPU-memory RDMA is efficient. Validate both paths.

## 8\. From two GPU servers to a 256-GPU fabric

Consider 32 servers, each with eight GPUs.

### How many HCAs do we need?

![Illustrative HCA bandwidth sizing for an eight-GPU server](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/4e030e4f-43df-466d-95c6-ec32fd898e20.svg align="center")

*Figure 14 — Illustrative HCA bandwidth sizing for an eight-GPU server.*

| Single-port 400G HCAs/server | Server bandwidth | Nominal average per GPU |
| --: | --: | --: |
| 1 | 400 Gbps | 50 Gbps |
| 4 | 1.6 Tbps | 200 Gbps |
| 8 | 3.2 Tbps | 400 Gbps |

Suppose our workload requires 150 Gbps of nominal network capacity per GPU. Eight GPUs require 1,200 Gbps per server.

Among these three configurations, four HCAs provide sufficient nominal capacity assuming equal sharing and sufficient internal PCIe capacity, with approximately 33% headroom. Eight HCAs require additional PCIe resources, switch ports, cables, power and investment.

For our example, we select four 400G HCAs per server, giving 128 endpoint links.

### Why do we need a leaf-spine architecture?

A single 64-port switch cannot connect 128 HCA ports. Leaf switches connect endpoints; spine switches interconnect leaves.

![Illustrative 256-GPU InfiniBand leaf-spine fabric](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/68a8630d-a60c-4af6-8e20-1ea33290e7c7.svg align="center")

*Figure 15 — Illustrative 256-GPU InfiniBand leaf-spine fabric.*

| Component | Quantity |
| --- | --: |
| Servers | 32 |
| GPUs | 256 |
| 400G HCA ports | 128 |
| Leaf switches | 8 |
| Spine switches | 3 |
| Logical 400G ports per switch | 64 |

Each leaf connects 16 endpoint ports and eight links to each of three spines. Each spine uses 64 ports. The fabric has 192 inter-switch links and 128 endpoint links. Individual server mappings and SM connectivity are omitted from this illustrative port budget.

| Resource | Calculation | Result |
| --- | --- | --: |
| Endpoint links per leaf | 128 ÷ 8 | 16 |
| Uplinks per leaf | 3 × 8 | 24 |
| Used ports per leaf | 16 + 24 | 40 |
| Spare ports per leaf | 64 − 40 | 24 |
| Used ports per spine | 8 × 8 | 64 |
| Inter-switch links | 8 × 3 × 8 | 192 |

### Understanding fabric scalability

Connecting every GPU server is only the first step. During distributed training, many servers can communicate simultaneously. Can the fabric carry their combined traffic?

#### Oversubscription — Can the uplinks carry the endpoint traffic?

**Oversubscription** compares endpoint-facing bandwidth with uplink bandwidth. A leaf with 32 x 400G endpoint links and 32 x 400G uplinks has a 1:1 ratio. Reducing uplinks to 16 gives 2:1: 12.8 Tbps of endpoint capacity shares 6.4 Tbps of uplink capacity.

- Endpoint capacity: 32 × 400 Gbps = 12.8 Tbps.
- Balanced uplink capacity: 32 × 400 Gbps = 12.8 Tbps.
- Oversubscribed uplink capacity: 16 × 400 Gbps = 6.4 Tbps.
- Oversubscription ratio: 12.8 ÷ 6.4 = 2:1.

![Comparing 1:1 and 2:1 leaf oversubscription](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/07a63df2-70db-4468-9c01-5ebd373fcb74.svg align="center")

*Figure 16 — Comparing 1:1 and 2:1 leaf oversubscription.*

| Parameter | Balanced | Oversubscribed |
| --- | --: | --: |
| Endpoint bandwidth | 12.8 Tbps | 12.8 Tbps |
| Uplink bandwidth | 12.8 Tbps | 6.4 Tbps |
| Oversubscription | 1:1 | 2:1 |

Oversubscription can be economical when traffic demand is not simultaneous, but communication-intensive workloads may require more capacity.

#### Bisection bandwidth — Can both halves communicate at scale?

**Bisection bandwidth** is the minimum aggregate capacity across a balanced partition of the network. In our example, each half has 64 HCA ports, giving an endpoint-limited target of 25.6 Tbps per direction (64 × 400 Gbps = 25,600 Gbps). Actual usable capacity depends on the fabric cuts, routing and traffic distribution.

![Endpoint-limited bisection bandwidth of the 256-GPU fabric](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/c563c72a-c213-4f2a-a135-09898591ef7b.svg align="center")

*Figure 17 — Endpoint-limited bisection bandwidth of the 256-GPU fabric.*

> **💡 Analogy — A highway bottleneck**
>
> If sixteen lanes merge into eight, every destination remains reachable, but simultaneous traffic cannot necessarily maintain its original rate.

**Oversubscription describes bandwidth allocation. Bisection bandwidth describes aggregate capacity across a balanced partition.**

Both are important when designing scalable AI fabrics.

### Designing for failures

What happens when one spine fails? Each leaf has 16 endpoint links and 24 uplinks in normal operation. Losing one spine removes eight uplinks per leaf.

![Nominal bandwidth during normal operation and one or two spine failures](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/784a9b09-147f-487b-956e-f427cbdfb4a3.svg align="center")

*Figure 18 — Nominal bandwidth during normal operation and one or two spine failures.*

| Per leaf | Normal | 1 spine failed | 2 spines failed |
| --- | --: | --: | --: |
| Endpoint links | 16 | 16 | 16 |
| Uplinks | 24 | 16 | 8 |
| Endpoint bandwidth | 6.4 Tbps | 6.4 Tbps | 6.4 Tbps |
| Uplink bandwidth | 9.6 Tbps | 6.4 Tbps | 3.2 Tbps |
| Endpoint/uplink ratio | 0.67:1 | 1:1 | 2:1 |

The surviving fabric retains nominal 1:1 leaf bandwidth after a single spine failure. Application throughput still depends on routing, traffic distribution and recovery.

### Rail optimization — Organizing GPU communication

Corresponding HCA indices across servers can be grouped into rails. When GPU placement and collective communication patterns align with those rails, locality can improve.

![Simplified two-rail connectivity](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/d46f03ec-c6e1-482c-a565-4ff1529b3ffd.svg align="center")

*Figure 19(a) — Simplified two-rail connectivity.*

Rails may be logical groupings within a shared fabric; they need not be separate subnets.

#### Understanding the benefit of rail optimization

Imagine two GPU servers exchanging data during distributed AI training. When the communicating GPUs use HCAs connected to the same leaf switch, their traffic can remain within that leaf without traversing the spine tier. When they use HCAs attached to different rail leaves, traffic traverses the shared leaf-spine fabric in this example.

![Comparing same-leaf and cross-rail communication paths](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/23e9c632-c65c-40a5-8d4f-4236834cf9d8.svg align="center")

*Figure 19(b) — Comparing same-leaf and cross-rail communication paths in a simplified rail-aware InfiniBand fabric.*

| Parameter | Same-leaf path | Cross-leaf path |
| --- | --- | --- |
| Switch traversals | 1 | 3 |
| Spine traversal | No | Yes |
| Inter-switch link utilization | None | Required |
| Potential network latency | Lower | Higher |
| Additional fabric resources | Fewer | More |

By aligning GPU placement, HCA connectivity and collective communication patterns, rail-aware designs can reduce unnecessary spine traffic and improve fabric utilization. However, same-rail endpoints attached to different leaves may still require spine traversal.

> **🧭 Architect's Corner**
>
> Rail optimization is not simply about connecting corresponding HCAs to the same group of switches. It is about aligning the physical network topology with how the application communicates.

### Planning for future expansion

Suppose our infrastructure needs to grow from 256 GPUs to 512 GPUs.

| Design parameter | 256 GPUs | 512 GPUs |
| --- | --: | --: |
| Eight-GPU servers | 32 | 64 |
| 400G HCA ports | 128 | 256 |
| Nominal server capacity | 1.6 Tbps | 1.6 Tbps |
| Aggregate endpoint capacity | 51.2 Tbps | 102.4 Tbps |
| Endpoint-limited bisection target, per direction | 25.6 Tbps | 51.2 Tbps |

Although our existing leaf switches have unused ports, the spine switches are already fully populated. Adding more servers and leaf switches alone does not guarantee that the expanded fabric will retain the required bandwidth and failure resilience.

> **🧭 Architect's Corner**
>
> A scalable fabric needs sufficient normal-state bandwidth, sufficient capacity during required failures, and a practical expansion path.
>
> **Connectivity redundancy is not the same as bandwidth redundancy.**

### 🌐 Real-World Reference — InfiniBand in AI Fabrics

NVIDIA's Quantum-2 QM9700 switch provides 64 × 400 Gbps InfiniBand ports. The NVIDIA DGX SuperPOD H100 uses these switches in a rail-optimized fat-tree architecture to connect GPU servers at scale.

This is a real-world example of how switch port capacity, fabric scalability and rail optimization come together in AI infrastructure design.

Our 256-GPU example illustrates the same fundamental design principles using a simplified architecture.

## 9\. The Bigger Picture — Designing a balanced AI fabric

Throughout this lesson, we started with two GPU servers, understood how InfiniBand enables communication between them, and gradually scaled the network into a 256-GPU AI fabric.

But does connecting powerful GPUs using high-speed InfiniBand switches automatically create a high-performance AI infrastructure?

**Not necessarily.**

The performance of an AI fabric depends on how well its individual components work together.

### Understanding the weakest link

Consider the complete journey of data between two GPUs residing in different servers.

![Designing a balanced end-to-end GPU communication path](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/8763e93f-4cb9-4daf-beda-f763e787c7ef.svg align="center")

*Figure 20 — Designing a balanced end-to-end GPU communication path.*

Even when the InfiniBand fabric provides sufficient bandwidth, limitations in GPU memory access, PCIe connectivity or HCA placement can restrict overall communication performance.

The achievable transfer rate is bounded by the effective capacity of the slowest component along the communication path.

> **💡 Analogy — A water pipeline**
>
> Imagine connecting several pipes of different diameters. Installing a larger pipe in the middle does not necessarily increase the water flow if a narrower pipe continues to restrict it elsewhere.
>
> Similarly, upgrading an InfiniBand link from 400G to 800G may not improve performance if PCIe connectivity is already the bottleneck.

### When faster networks do not solve the problem

Imagine that we have deployed our 256-GPU AI fabric and observe the following results during a point-to-point RDMA test.

![Comparing host-memory and GPU-memory RDMA performance](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/82b9ddd4-7bf9-4952-baed-254bd20a1c00.svg align="center")

*Figure 21 — Comparing host-memory and GPU-memory RDMA performance.*

The network achieves 375 Gbps when transferring data between host-memory buffers. However, GPU-memory transfers achieve only 185 Gbps. These are hypothetical values, not hardware benchmarks.

Would upgrading the network to 800G solve this problem?

The relatively high host-memory throughput suggests that the common network path can support substantially higher throughput than observed during GPU-memory transfers.

Before upgrading the network, we should investigate:

- Negotiated PCIe generation and lane width.
- GPU-to-HCA affinity.
- GPUDirect RDMA configuration.
- Internal server topology and resource contention.

These observations help narrow the investigation but do not independently prove the root cause.

### Balancing the entire AI fabric

A balanced AI fabric requires several interconnected design decisions.

![Fundamental design dimensions of a balanced AI fabric](https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/e369e14b-cd7f-4361-993e-0abc4e4e4a95.svg align="center")

*Figure 22 — Fundamental design dimensions of a balanced AI fabric.*

| Design dimension | Fundamental question |
| --- | --- |
| Workload | How much communication capacity does the application require? |
| Server architecture | Can the internal data path sustain the required bandwidth? |
| Endpoint capacity | How many HCAs are needed per server? |
| Fabric architecture | Can the network support simultaneous communication? |
| Resilience | Is sufficient capacity available during failures? |
| Economics | Can the design meet performance, cost, power and future growth requirements? |

Optimizing one component independently does not necessarily optimize the entire system.

### Validating the complete AI fabric

Once the fabric is deployed, how do we know that it meets our design objectives?

| Validation area | What to verify |
| --- | --- |
| Physical connectivity | Link state, speed, width and errors |
| Fabric management | SM availability, addressing and forwarding |
| Server connectivity | PCIe capacity and GPU-HCA affinity |
| RDMA performance | Host-memory and GPU-memory bandwidth and latency |
| Fabric performance | Concurrent traffic, congestion and aggregate bandwidth |
| Application performance | NCCL collectives, GPU utilization and training iteration time |
| Failure resilience | Recovery time and surviving application performance |

Tools such as `ib_write_bw` and NCCL Tests can help validate different parts of the communication path.

However, successful point-to-point RDMA tests alone do not guarantee that a large-scale distributed AI workload will perform efficiently.

> **🧭 Architect's Corner**
>
> Start with workload requirements, translate them into measurable infrastructure requirements, and validate the complete system under both normal and failure conditions.
>
> The success of an AI fabric should ultimately be measured by how effectively it supports the application, not simply by the speed of its network links.

**A well-designed AI fabric is not necessarily the fastest or most expensive network. It is a balanced infrastructure that enables GPUs to spend more time computing and less time waiting for data.**

## 🔍 Think About It

You have been asked to expand a 256-GPU AI fabric to 512 GPUs while maintaining application performance during a single spine failure.

**Would adding more GPU servers and leaf switches be sufficient, or would you need to reconsider the entire fabric design?**

## 🎯 Key Takeaways

- HCAs provide hardware-assisted communication and RDMA.
- GPUDirect RDMA avoids intermediate host-memory payload staging.
- PCIe capacity, HCA count and affinity influence performance.
- InfiniBand links provide point-to-point, full-duplex connectivity.
- Switches forward using programmed forwarding information.
- Credit-based flow control helps prevent receive-buffer overflow.
- The Subnet Manager initializes and manages the subnet.
- GUID, LID and GID serve distinct purposes.
- Scalable fabrics balance bandwidth, rail placement and failure resilience.
- Connectivity redundancy does not guarantee bandwidth redundancy; validate surviving capacity under required failure conditions.
- Application performance is the ultimate measure of design effectiveness.

## 🚀 What's Next?

We now understand the components that make up an InfiniBand network. But what information does an InfiniBand packet carry? How does the receiving HCA identify the correct communication endpoint? How is data integrity maintained?

**Lesson 03 — How Does Data Travel Through InfiniBand?**

## 📚 References

- [InfiniBand Trade Association](https://www.infinibandta.org/)
- [NVIDIA GPUDirect RDMA](https://docs.nvidia.com/cuda/gpudirect-rdma/)
- [PCI-SIG](https://pcisig.com/)
- [NVIDIA DOCA — RDMA-aware Networks Programming Guide](https://networking-docs.nvidia.com/doca/sdk/rdma-aware-networks-programming-guide)
- [OpenSM](https://github.com/linux-rdma/opensm)
- [OpenSM routing](https://github.com/linux-rdma/opensm/blob/master/doc/current-routing.txt)
- [NVIDIA Quantum-2](https://www.nvidia.com/en-us/networking/quantum2/)
- [QM97x0 hardware documentation](https://networking-docs.nvidia.com/qm97x0hw)
- [DGX SuperPOD H100 reference architecture](https://docs.nvidia.com/dgx-superpod/reference-architecture-scalable-infrastructure-h100/latest/)
- [NVIDIA interconnects](https://www.nvidia.com/en-us/networking/interconnect/)
- [NCCL documentation](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/)
- [NCCL Tests](https://github.com/NVIDIA/nccl-tests)

---

**Packets & Fabrics**

*Decoding Networks. Designing AI Fabrics.*
