Inside the AI Data Centre Network Fabric
AI FABRIC COMMAND CENTRE · PLATINUM SIGNATURE EDITION
From physical Ethernet and routed Clos networks to RDMA, congestion control and distributed GPU computation.
The network becomes part of the computer
Architecture 01 — Folded Clos compute fabric
A distributed AI workload is not simply a collection of independent servers. During training, accelerators repeatedly exchange intermediate results and gradients; during inference, a model split across devices may exchange activations at every layer. The communication dependency can put the network directly on the critical path of computation. A GPU waiting for a collective to finish cannot necessarily recover the lost time by running its next kernel faster. This is why a fabric must be evaluated using application completion time as well as conventional packet throughput.
Consider eight servers each containing eight accelerators. A training job may use all 64 devices as a single distributed execution domain. Within a server, communication may use PCIe or a supported accelerator interconnect such as NVLink. Between servers, traffic traverses network adapters and switches. The two paths have different bandwidth, latency and failure characteristics. The scheduler and communication library must understand this topology rather than assume that all accelerator pairs are equally close.
The first design question is therefore not which switch to buy. It is which communication patterns the workload generates, which devices participate, how much data crosses each boundary, and how frequently synchronization occurs. A network that is adequate for independent inference replicas may be inadequate for tightly coupled tensor-parallel execution. Measure representative workloads before choosing the topology.
Separate the network planes
Architecture 02 — Independent traffic responsibilities
A production AI installation commonly separates management, service access, storage and backend compute traffic into distinct logical or physical planes. Management carries provisioning, monitoring and administrative access. The service network carries application requests and responses. Storage carries model checkpoints, datasets and artifacts. The backend fabric carries distributed computation traffic. These categories describe responsibilities, not a requirement for four independent physical networks.
A small laboratory can use VLANs and routed interfaces on shared switches, provided the resulting contention and security boundaries are understood. A larger installation may dedicate adapters and switches to backend communication because storage bursts or public-facing traffic should not unpredictably consume collective bandwidth. Out-of-band management can preserve recovery access when the primary fabric fails.
Isolation must be enforced by actual forwarding and access policies. A VLAN label is not a complete security boundary, and a separate subnet does not guarantee independent bandwidth. Shared switch buffers, uplinks, power supplies and control systems may create common failure domains. Record these dependencies in the architecture inventory. For every plane, identify the allowed endpoints, routing domain, expected traffic profile, monitoring owner and recovery path.
Clos architecture and capacity
A two-tier leaf–spine fabric connects each leaf to every spine. Servers attach to leaves; traffic between different leaves normally crosses one spine. This arrangement creates multiple equal-cost paths without requiring a spanning-tree blocked link in a routed fabric. It is a practical folded Clos topology, although larger deployments may require additional stages.
Suppose a leaf has eight 400 Gb/s server-facing links and four 400 Gb/s spine-facing links. Its nominal downstream capacity is 3.2 Tb/s in one direction, while its upstream capacity is 1.6 Tb/s. The resulting 2:1 oversubscription describes aggregate link capacity, not a prediction that every application will run at half speed. Local traffic may stay on the leaf, and actual utilization depends on placement and demand. Losing one uplink reduces upstream capacity to 1.2 Tb/s and changes the ratio to approximately 2.67:1.
A non-oversubscribed leaf is not sufficient proof of a nonblocking end-to-end fabric. Spine port counts, inter-stage links, traffic distribution and switch forwarding limits also matter. Design for the degraded topology, not merely the normal topology. A collective that meets its completion objective only when every link is available is operationally fragile. Document both normal and single-failure capacity and validate the application under each condition.
| Leaf state | Downstream | Upstream | Ratio |
|---|---|---|---|
| Normal | 3.2 Tb/s | 1.6 Tb/s | 2:1 |
| One uplink lost | 3.2 Tb/s | 1.2 Tb/s | 2.67:1 |
Physical connectivity and host locality
An Ethernet link advertised at 400 Gb/s provides a nominal 50 GB/s conversion before accounting for protocol overhead and workload behavior. It does not guarantee that a GPU application can transfer data at that rate. The network adapter must receive data from host memory or supported GPU memory through the host I/O architecture. PCIe generation, lane width, root complex placement and memory locality may become limiting factors.
For example, PCIe 4.0 x16 has a theoretical encoding-adjusted throughput of approximately 31.5 GB/s per direction before transaction overhead. A single 400 Gb/s port can therefore exceed that interface capacity. PCIe 5.0 x16 approximately doubles the theoretical figure, but practical performance still depends on platform implementation. Check the negotiated link rather than relying on the adapter specification.
Optics and cabling must also match the switch and adapter capabilities, including reach, lane configuration, breakout mode and forward error correction. A link can remain operational while accumulating corrected errors or intermittent uncorrectable errors. Correlate physical counters with retransmissions and application latency. A routing investigation cannot repair a marginal optical path. Conversely, replacing an optic will not resolve a congestion problem caused by an overloaded queue.
Routing underlay and forwarding state
Architecture 03 — Control and forwarding responsibilities
In a routed leaf–spine architecture, eBGP is a common method of distributing reachability between switches. Each adjacency exchanges selected routes according to configured policy. FRRouting provides an accessible implementation for a Linux-based laboratory, allowing engineers to inspect neighbor state, received routes, selected paths and kernel forwarding entries. Production switch operating systems may use different control-plane integrations.
A BGP session in Established state proves that the peers have completed session establishment; it does not prove that the intended prefixes were accepted or installed. An advertised prefix can be rejected by policy, lose a best-path comparison, fail next-hop resolution or encounter an installation problem. Inspect the routing information base and the forwarding information base separately. In a hardware switch, verify the platform-specific hardware forwarding state as well.
Equal-cost multipath requires more than the existence of multiple physical links. The routing implementation must select eligible paths and install a multipath forwarding entry. BGP multipath eligibility depends on configuration and path attributes. A packet then follows a selected next hop according to the forwarding implementation. The control plane establishes possible paths; the data plane makes forwarding decisions for actual traffic. This separation is central to diagnosing a fabric.
Flow distribution and elephant traffic
ECMP commonly uses a hash derived from packet header fields to select a next hop. Keeping packets from the same flow on a consistent path helps limit reordering. However, equal-cost paths are not necessarily equally loaded. Two large flows can hash onto the same uplink while another uplink remains nearly idle. This is especially relevant to AI traffic, where a relatively small number of long-lived high-throughput flows can dominate utilization.
Imagine four equal 100 Gb/s paths and four flows each demanding 80 Gb/s. An ideal distribution places one flow on each path. If three flows select the same path, their combined demand is 240 Gb/s against 100 Gb/s of capacity. The aggregate fabric still has spare bandwidth, but the congested path cannot borrow that capacity automatically. Queue occupancy, packet marking and application completion time reveal the imbalance.
Adaptive routing and flowlet techniques can improve distribution on supported platforms, but they have implementation-specific behavior and may introduce reordering concerns. Do not assume that changing a hash seed solves all workloads. Compare per-link counters, flow placement and queue telemetry across repeated tests. Where possible, align job placement and communication topology with the physical network to reduce avoidable cross-fabric traffic.
RDMA and RoCEv2
Architecture 04 — RDMA transfer boundaries
Remote Direct Memory Access allows supported adapters to transfer data between registered memory regions with reduced involvement from the remote CPU in the data path. Applications establish communication resources such as queue pairs, register memory and submit work requests. The adapter processes these requests and reports completions according to the transport and operation semantics. CPU involvement remains necessary for setup, resource management and application coordination.
RoCEv2 transports RDMA over UDP/IP and can operate across routed Ethernet networks. Its UDP destination port is conventionally 4791. The transport carries InfiniBand transport semantics over Ethernet; it is not an ordinary application UDP socket transferring arbitrary buffers. A reliable connected queue pair has reliability and ordering behavior that must be considered separately from the properties of IP forwarding.
GPUDirect RDMA can allow supported devices to access GPU memory without staging every transfer through host memory. It requires compatible hardware, drivers and platform topology. IOMMU configuration, PCIe routing and memory registration support can affect feasibility. Do not infer direct GPU memory access simply because an RDMA benchmark succeeds using host buffers. Validate the actual memory type and data path used by the workload.
Congestion is a system behavior
Architecture 05 — Congestion feedback responsibilities
A switch queue grows when traffic arrives faster than its egress link can transmit. Short synchronized bursts from many senders can create congestion even when average utilization appears modest. Distributed AI collectives can generate such bursts repeatedly. A useful monitoring system must therefore observe queue occupancy, marks, drops and pause events at a suitable sampling resolution rather than depend only on minute-average link utilization.
Explicit Congestion Notification can mark eligible IP packets to signal congestion without immediately dropping them. In supported RoCE congestion-control implementations, receiver feedback can cause the sender to reduce its transmission rate. DCQCN is one example of a rate-control approach. Priority Flow Control operates differently: it pauses a selected Ethernet priority on a link. It is a hop-by-hop mechanism, not an end-to-end rate-control algorithm.
PFC can reduce congestion-related loss for a configured traffic class, but it does not guarantee zero loss under all conditions. Misconfigured thresholds or prolonged pauses can spread congestion and create head-of-line blocking or deadlock risks. Headroom must account for in-flight traffic after a pause is issued. ECN thresholds, buffer allocation and sender response must be tuned together using platform guidance and measured traffic. Avoid enabling PFC indiscriminately across every priority.
Collectives and application completion
Architecture 06 — Collective communication hierarchy
Collective communication coordinates data exchange among multiple participants. AllReduce combines values across participants and distributes the result. AllGather collects contributions from all participants. ReduceScatter combines contributions and distributes portions of the result. Libraries such as NCCL choose supported algorithms and transports based on topology and configuration. The actual choice is not necessarily a simple ring.
For an ideal ring AllReduce with N participants and a buffer of S bytes per participant, each participant sends approximately 2(N−1)S/N bytes across the ring, ignoring overhead and implementation details. With eight participants and a 1 GB buffer, this is 1.75 GB sent per participant. At a hypothetical effective 25 GB/s, the serialization-only estimate is 70 ms. Startup latency, synchronization, contention and local device transfers can increase completion time.
The slowest participant can constrain the collective. A single degraded link, remote NUMA placement or congested queue may affect the entire job rather than only one server. Compare communication traces and per-rank timing with network telemetry. A healthy average across the cluster can hide a single straggler. Optimize the measured end-to-end workload, not just the highest isolated bandwidth benchmark.
Production investigation: a healthy routing table and a slow job
In an illustrative eight-server training cluster, a job previously completed its communication phase in 80 ms. Following a placement change, the same phase takes 145 ms. BGP sessions remain established and no route withdrawals are observed. An initial reachability test succeeds between every server. These observations eliminate some failure hypotheses but do not establish that the fabric is healthy under load.
Operators correlate per-rank collective timing with switch counters. One leaf uplink is heavily utilized while its peer carries much less traffic. ECN marks increase on the busy egress queue during collective phases. Physical error counters remain stable. The evidence supports a congestion and distribution hypothesis rather than an optical fault, although additional tests are needed to establish causality.
A controlled test changes job placement while retaining the same model, message sizes and software versions. The traffic distribution improves and collective timing returns toward the baseline. Engineers then evaluate supported hashing and topology-aware scheduling options in a staging environment. They do not disable congestion control or change production routing merely to suppress a symptom. The incident record includes baseline, observed state, hypothesis, controlled test, recovery verification and remaining risk. All numbers in this scenario are synthetic teaching values.
ILLUSTRATIVE INCIDENT RECORD Baseline collective: 80 ms Observed collective: 145 ms BGP: established; no withdrawals observed Queue: ECN marks increasing Optical errors: stable Hypothesis: uneven path utilization Test: controlled placement change
From laboratory to operational fabric
Begin with a small routed topology using Linux namespaces or virtual machines and FRRouting. Establish deterministic addressing, neighbor relationships and route policy. Verify connectivity and multipath forwarding before introducing application traffic. A virtual laboratory is valuable for control-plane reasoning, but it cannot reproduce ASIC buffering, optical behavior, line-rate RDMA or GPU DMA merely by emulating links.
The next stage uses supported physical adapters and switches to validate negotiated link speeds, MTU, queue classification, RDMA connectivity and application communication. Record firmware, driver and software versions alongside results. Establish a baseline with representative message sizes and concurrency. Test failures deliberately in an isolated environment, including link loss, route withdrawal and workload placement changes.
Production acceptance should include a documented capacity model, recovery access, configuration backups, security boundaries, monitoring ownership and rollback procedures. Define application-level service objectives and measurable network indicators. A fabric is ready only when its behavior under expected load and credible failures is understood. The following nine sections develop these responsibilities in detail, pairing engineering explanation with controlled interactive simulations rather than claiming that a browser can reproduce real hardware.
Engineering learning roadmap
AI data centre architecture
Spine–leaf and Clos
Ethernet and NICs
BGP and FRRouting
ECMP forwarding
RDMA and RoCEv2
Congestion management
GPU collectives
Production fabric operations
Read-only laboratory evidence
ip -br link ip route show vtysh -c "show bgp summary" vtysh -c "show bgp ipv4 unicast" rdma link show ethtool -S <interface> nvidia-smi topo -m
Commands require the relevant installed tools and permissions; interface and platform-specific counters vary. Use an isolated lab for configuration changes.
Engineering perspective: the fabric is successful when the distributed workload completes predictably, including under credible failures.
Further reading: FRRouting documentation · NCCL documentation · RFC 7938 · Legal and editorial centre.
AI Fabric Architecture Explorer
From physical infrastructure to distributed GPU collectives. Select an architecture node to open its editorial, or launch the corresponding engineering laboratory below.
Position: 0% · Scroll-based estimate, not proof of reading or lab completion.
AI Data Centre Network Architecture
Separate backend, frontend, storage and management planes.
Spine–Leaf and Clos Architecture
Understand capacity, bisection and failure domains.
Ethernet, NICs and Physical Connectivity
Inspect optics, PCIe, adapters and Ethernet frames.
BGP Underlay and FRRouting
Establish reachability and inspect routing policy.
ECMP and Data Plane Forwarding
Trace next hops, hashing and elephant flows.
RDMA and RoCEv2 Architecture
Follow queue pairs, memory keys and DMA.
Lossless Ethernet and Congestion Management
Explore ECN, PFC, headroom and endpoint feedback.
Distributed GPU Communication
Follow collective chunks, ranks and bottlenecks.
Building and Operating a Production AI Network Fabric
Commission, validate and recover the complete fabric.
Navigation targets are checked against the current page.
Animations are conceptual, not live network telemetry. Progress is calculated in this page only; no cookies, local storage or external services are used.
Inside the AI Data Centre Network Fabric
AI FABRIC COMMAND CENTRE · PLATINUM SIGNATURE MASTER EDITION · V2
From physical Ethernet and routed Clos networks to RDMA, congestion control and distributed GPU computation.
The network becomes part of the computer
Architecture 01 — Folded Clos compute fabric
A distributed AI workload is not simply a collection of independent servers. During training, accelerators repeatedly exchange intermediate results and gradients; during inference, a model split across devices may exchange activations at every layer. The communication dependency can put the network directly on the critical path of computation. A GPU waiting for a collective to finish cannot necessarily recover the lost time by running its next kernel faster. This is why a fabric must be evaluated using application completion time as well as conventional packet throughput.
Consider eight servers each containing eight accelerators. A training job may use all 64 devices as a single distributed execution domain. Within a server, communication may use PCIe or a supported accelerator interconnect such as NVLink. Between servers, traffic traverses network adapters and switches. The two paths have different bandwidth, latency and failure characteristics. The scheduler and communication library must understand this topology rather than assume that all accelerator pairs are equally close.
The first design question is therefore not which switch to buy. It is which communication patterns the workload generates, which devices participate, how much data crosses each boundary, and how frequently synchronization occurs. A network that is adequate for independent inference replicas may be inadequate for tightly coupled tensor-parallel execution. Measure representative workloads before choosing the topology.
Separate the network planes
Architecture 02 — Independent traffic responsibilities
A production AI installation commonly separates management, service access, storage and backend compute traffic into distinct logical or physical planes. Management carries provisioning, monitoring and administrative access. The service network carries application requests and responses. Storage carries model checkpoints, datasets and artifacts. The backend fabric carries distributed computation traffic. These categories describe responsibilities, not a requirement for four independent physical networks.
A small laboratory can use VLANs and routed interfaces on shared switches, provided the resulting contention and security boundaries are understood. A larger installation may dedicate adapters and switches to backend communication because storage bursts or public-facing traffic should not unpredictably consume collective bandwidth. Out-of-band management can preserve recovery access when the primary fabric fails.
Isolation must be enforced by actual forwarding and access policies. A VLAN label is not a complete security boundary, and a separate subnet does not guarantee independent bandwidth. Shared switch buffers, uplinks, power supplies and control systems may create common failure domains. Record these dependencies in the architecture inventory. For every plane, identify the allowed endpoints, routing domain, expected traffic profile, monitoring owner and recovery path.
Clos architecture and capacity
A two-tier leaf–spine fabric connects each leaf to every spine. Servers attach to leaves; traffic between different leaves normally crosses one spine. This arrangement creates multiple equal-cost paths without requiring a spanning-tree blocked link in a routed fabric. It is a practical folded Clos topology, although larger deployments may require additional stages.
Suppose a leaf has eight 400 Gb/s server-facing links and four 400 Gb/s spine-facing links. Its nominal downstream capacity is 3.2 Tb/s in one direction, while its upstream capacity is 1.6 Tb/s. The resulting 2:1 oversubscription describes aggregate link capacity, not a prediction that every application will run at half speed. Local traffic may stay on the leaf, and actual utilization depends on placement and demand. Losing one uplink reduces upstream capacity to 1.2 Tb/s and changes the ratio to approximately 2.67:1.
A non-oversubscribed leaf is not sufficient proof of a nonblocking end-to-end fabric. Spine port counts, inter-stage links, traffic distribution and switch forwarding limits also matter. Design for the degraded topology, not merely the normal topology. A collective that meets its completion objective only when every link is available is operationally fragile. Document both normal and single-failure capacity and validate the application under each condition.
| Leaf state | Downstream | Upstream | Ratio |
|---|---|---|---|
| Normal | 3.2 Tb/s | 1.6 Tb/s | 2:1 |
| One uplink lost | 3.2 Tb/s | 1.2 Tb/s | 2.67:1 |
Physical connectivity and host locality
An Ethernet link advertised at 400 Gb/s provides a nominal 50 GB/s conversion before accounting for protocol overhead and workload behavior. It does not guarantee that a GPU application can transfer data at that rate. The network adapter must receive data from host memory or supported GPU memory through the host I/O architecture. PCIe generation, lane width, root complex placement and memory locality may become limiting factors.
For example, PCIe 4.0 x16 has a theoretical encoding-adjusted throughput of approximately 31.5 GB/s per direction before transaction overhead. A single 400 Gb/s port can therefore exceed that interface capacity. PCIe 5.0 x16 approximately doubles the theoretical figure, but practical performance still depends on platform implementation. Check the negotiated link rather than relying on the adapter specification.
Optics and cabling must also match the switch and adapter capabilities, including reach, lane configuration, breakout mode and forward error correction. A link can remain operational while accumulating corrected errors or intermittent uncorrectable errors. Correlate physical counters with retransmissions and application latency. A routing investigation cannot repair a marginal optical path. Conversely, replacing an optic will not resolve a congestion problem caused by an overloaded queue.
Routing underlay and forwarding state
Architecture 03 — Control and forwarding responsibilities
In a routed leaf–spine architecture, eBGP is a common method of distributing reachability between switches. Each adjacency exchanges selected routes according to configured policy. FRRouting provides an accessible implementation for a Linux-based laboratory, allowing engineers to inspect neighbor state, received routes, selected paths and kernel forwarding entries. Production switch operating systems may use different control-plane integrations.
A BGP session in Established state proves that the peers have completed session establishment; it does not prove that the intended prefixes were accepted or installed. An advertised prefix can be rejected by policy, lose a best-path comparison, fail next-hop resolution or encounter an installation problem. Inspect the routing information base and the forwarding information base separately. In a hardware switch, verify the platform-specific hardware forwarding state as well.
Equal-cost multipath requires more than the existence of multiple physical links. The routing implementation must select eligible paths and install a multipath forwarding entry. BGP multipath eligibility depends on configuration and path attributes. A packet then follows a selected next hop according to the forwarding implementation. The control plane establishes possible paths; the data plane makes forwarding decisions for actual traffic. This separation is central to diagnosing a fabric.
Flow distribution and elephant traffic
ECMP commonly uses a hash derived from packet header fields to select a next hop. Keeping packets from the same flow on a consistent path helps limit reordering. However, equal-cost paths are not necessarily equally loaded. Two large flows can hash onto the same uplink while another uplink remains nearly idle. This is especially relevant to AI traffic, where a relatively small number of long-lived high-throughput flows can dominate utilization.
Imagine four equal 100 Gb/s paths and four flows each demanding 80 Gb/s. An ideal distribution places one flow on each path. If three flows select the same path, their combined demand is 240 Gb/s against 100 Gb/s of capacity. The aggregate fabric still has spare bandwidth, but the congested path cannot borrow that capacity automatically. Queue occupancy, packet marking and application completion time reveal the imbalance.
Adaptive routing and flowlet techniques can improve distribution on supported platforms, but they have implementation-specific behavior and may introduce reordering concerns. Do not assume that changing a hash seed solves all workloads. Compare per-link counters, flow placement and queue telemetry across repeated tests. Where possible, align job placement and communication topology with the physical network to reduce avoidable cross-fabric traffic.
RDMA and RoCEv2
Architecture 04 — RDMA transfer boundaries
Remote Direct Memory Access allows supported adapters to transfer data between registered memory regions with reduced involvement from the remote CPU in the data path. Applications establish communication resources such as queue pairs, register memory and submit work requests. The adapter processes these requests and reports completions according to the transport and operation semantics. CPU involvement remains necessary for setup, resource management and application coordination.
RoCEv2 transports RDMA over UDP/IP and can operate across routed Ethernet networks. Its UDP destination port is conventionally 4791. The transport carries InfiniBand transport semantics over Ethernet; it is not an ordinary application UDP socket transferring arbitrary buffers. A reliable connected queue pair has reliability and ordering behavior that must be considered separately from the properties of IP forwarding.
GPUDirect RDMA can allow supported devices to access GPU memory without staging every transfer through host memory. It requires compatible hardware, drivers and platform topology. IOMMU configuration, PCIe routing and memory registration support can affect feasibility. Do not infer direct GPU memory access simply because an RDMA benchmark succeeds using host buffers. Validate the actual memory type and data path used by the workload.
Congestion is a system behavior
Architecture 05 — Congestion feedback responsibilities
A switch queue grows when traffic arrives faster than its egress link can transmit. Short synchronized bursts from many senders can create congestion even when average utilization appears modest. Distributed AI collectives can generate such bursts repeatedly. A useful monitoring system must therefore observe queue occupancy, marks, drops and pause events at a suitable sampling resolution rather than depend only on minute-average link utilization.
Explicit Congestion Notification can mark eligible IP packets to signal congestion without immediately dropping them. In supported RoCE congestion-control implementations, receiver feedback can cause the sender to reduce its transmission rate. DCQCN is one example of a rate-control approach. Priority Flow Control operates differently: it pauses a selected Ethernet priority on a link. It is a hop-by-hop mechanism, not an end-to-end rate-control algorithm.
PFC can reduce congestion-related loss for a configured traffic class, but it does not guarantee zero loss under all conditions. Misconfigured thresholds or prolonged pauses can spread congestion and create head-of-line blocking or deadlock risks. Headroom must account for in-flight traffic after a pause is issued. ECN thresholds, buffer allocation and sender response must be tuned together using platform guidance and measured traffic. Avoid enabling PFC indiscriminately across every priority.
Collectives and application completion
Architecture 06 — Collective communication hierarchy
Collective communication coordinates data exchange among multiple participants. AllReduce combines values across participants and distributes the result. AllGather collects contributions from all participants. ReduceScatter combines contributions and distributes portions of the result. Libraries such as NCCL choose supported algorithms and transports based on topology and configuration. The actual choice is not necessarily a simple ring.
For an ideal ring AllReduce with N participants and a buffer of S bytes per participant, each participant sends approximately 2(N−1)S/N bytes across the ring, ignoring overhead and implementation details. With eight participants and a 1 GB buffer, this is 1.75 GB sent per participant. At a hypothetical effective 25 GB/s, the serialization-only estimate is 70 ms. Startup latency, synchronization, contention and local device transfers can increase completion time.
The slowest participant can constrain the collective. A single degraded link, remote NUMA placement or congested queue may affect the entire job rather than only one server. Compare communication traces and per-rank timing with network telemetry. A healthy average across the cluster can hide a single straggler. Optimize the measured end-to-end workload, not just the highest isolated bandwidth benchmark.
Production investigation: a healthy routing table and a slow job
In an illustrative eight-server training cluster, a job previously completed its communication phase in 80 ms. Following a placement change, the same phase takes 145 ms. BGP sessions remain established and no route withdrawals are observed. An initial reachability test succeeds between every server. These observations eliminate some failure hypotheses but do not establish that the fabric is healthy under load.
Operators correlate per-rank collective timing with switch counters. One leaf uplink is heavily utilized while its peer carries much less traffic. ECN marks increase on the busy egress queue during collective phases. Physical error counters remain stable. The evidence supports a congestion and distribution hypothesis rather than an optical fault, although additional tests are needed to establish causality.
A controlled test changes job placement while retaining the same model, message sizes and software versions. The traffic distribution improves and collective timing returns toward the baseline. Engineers then evaluate supported hashing and topology-aware scheduling options in a staging environment. They do not disable congestion control or change production routing merely to suppress a symptom. The incident record includes baseline, observed state, hypothesis, controlled test, recovery verification and remaining risk. All numbers in this scenario are synthetic teaching values.
ILLUSTRATIVE INCIDENT RECORD Baseline collective: 80 ms Observed collective: 145 ms BGP: established; no withdrawals observed Queue: ECN marks increasing Optical errors: stable Hypothesis: uneven path utilization Test: controlled placement change
From laboratory to operational fabric
Begin with a small routed topology using Linux namespaces or virtual machines and FRRouting. Establish deterministic addressing, neighbor relationships and route policy. Verify connectivity and multipath forwarding before introducing application traffic. A virtual laboratory is valuable for control-plane reasoning, but it cannot reproduce ASIC buffering, optical behavior, line-rate RDMA or GPU DMA merely by emulating links.
The next stage uses supported physical adapters and switches to validate negotiated link speeds, MTU, queue classification, RDMA connectivity and application communication. Record firmware, driver and software versions alongside results. Establish a baseline with representative message sizes and concurrency. Test failures deliberately in an isolated environment, including link loss, route withdrawal and workload placement changes.
Production acceptance should include a documented capacity model, recovery access, configuration backups, security boundaries, monitoring ownership and rollback procedures. Define application-level service objectives and measurable network indicators. A fabric is ready only when its behavior under expected load and credible failures is understood. The following nine sections develop these responsibilities in detail, pairing engineering explanation with controlled interactive simulations rather than claiming that a browser can reproduce real hardware.
Translate application demand into a fabric budget
Consider a training pod with eight servers, each equipped with two 400 Gb/s network ports. The nominal aggregate injection capacity is 6.4 Tb/s in one direction, assuming every port can operate simultaneously at its rated speed. That number is not an application throughput guarantee. PCIe connectivity, memory locality, protocol overhead, message size and the collective algorithm all influence the achievable rate. The network designer must distinguish the capacity of an individual port from the capacity available across a particular cut of the topology.
Suppose four servers attach to each of two leaf switches, with eight 400 Gb/s server-facing ports per leaf and four 400 Gb/s uplinks. Each leaf has 3.2 Tb/s of nominal downlink capacity and 1.6 Tb/s of uplink capacity, giving a 2:1 oversubscription ratio for traffic crossing the leaf boundary. Losing one uplink reduces the available uplink capacity to 1.2 Tb/s and increases the ratio to approximately 2.67:1. Local traffic need not traverse those uplinks, so actual demand depends on placement. A workload distributed evenly across the leaves can expose the bottleneck more readily than a workload whose communication stays local.
These calculations describe a simplified unidirectional capacity model, not measured throughput. Engineers should additionally examine whether links terminate on independent spine switches, whether adapter ports share a constrained PCIe path and whether the workload can use multiple rails effectively. A redundant physical path that the application cannot exploit is still useful for some failures, but it does not automatically increase application bandwidth.
Architecture 07 — Per-leaf capacity under failure
| Per-leaf state | Downlink capacity | Uplink capacity | Ratio |
|---|---|---|---|
| Normal | 3.2 Tb/s | 1.6 Tb/s | 2:1 |
| One uplink lost | 3.2 Tb/s | 1.2 Tb/s | 2.67:1 |
| Eight uplinks, hypothetical | 3.2 Tb/s | 3.2 Tb/s | 1:1 |
Port availability and switch radix constrain the hypothetical non-oversubscribed design. A design review should establish both normal and degraded capacity budgets before equipment selection, rather than assuming that a larger switch automatically resolves the communication problem.
Distinguish reachability from application readiness
A successful ping demonstrates a limited form of IP connectivity. It does not establish that the intended RDMA traffic class is configured consistently, that queue pairs can complete transfers, or that GPU memory can be accessed through the expected device path. Similarly, an established BGP session proves that two peers have reached a protocol state; it does not prove that the correct prefixes are installed in the forwarding hardware. Production validation therefore requires independent observations at each architectural boundary.
Start by recording interface state, negotiated speed and physical error counters. Compare the routing information base with installed forwarding entries using platform-supported commands. Verify that expected equal-cost next hops are present, then test representative flows across different source and destination pairs. Inspect queue occupancy, congestion marks and pause counters alongside transport-level completion errors. Counters should be compared as deltas over a known measurement interval, because cumulative values may include unrelated historical activity.
Finally, run a controlled collective benchmark with documented message sizes, rank placement and software versions. Repeat the test to establish variability rather than reporting a single favourable result. If one rank consistently finishes later than the others, correlate its host locality, network path and device counters with the timing evidence. The slowest participant can constrain the completion of a synchronized collective even when average link utilization appears healthy.
Acceptance criteria must be agreed for the actual workload. A storage network, an inference service and a distributed training cluster may require different latency distributions, throughput targets and failure recovery objectives. Record the expected behavior when a link or spine fails, including the distinction between routing convergence and application recovery. A transport session or collective may require its own recovery procedure even after IP reachability returns. This separation is essential when deciding whether a fabric incident is resolved.
Engineering learning roadmap
AI data centre architecture
Spine–leaf and Clos
Ethernet and NICs
BGP and FRRouting
ECMP forwarding
RDMA and RoCEv2
Congestion management
GPU collectives
Production fabric operations
Read-only laboratory evidence
ip -br link ip route show vtysh -c "show bgp summary" vtysh -c "show bgp ipv4 unicast" rdma link show ethtool -S <interface> nvidia-smi topo -m
Commands require the relevant installed tools and permissions; interface and platform-specific counters vary. Use an isolated lab for configuration changes.
Engineering perspective: the fabric is successful when the distributed workload completes predictably, including under credible failures.
Further reading: FRRouting documentation · NCCL documentation · RFC 7938 · Legal and editorial centre.
AI Data Centre Network Architecture
Multi-plane fabric architecture and distributed GPU infrastructure engineering
PLATINUM SIGNATURE · V10 STANDARD · EDITORIAL 01
The distributed computer and its network boundary
An AI data centre is a collection of cooperating compute, storage and service systems, not merely a building containing accelerators. A training job may distribute model parameters, activations, optimizer state and gradients across many devices. Inference may instead replicate complete models or divide one model across several accelerators. Each arrangement changes the communication dependency. The architecture must support the actual execution graph rather than an abstract assumption that every GPU generates the same traffic.
A useful starting point is to separate scale-up communication inside a tightly coupled compute domain from scale-out communication between domains. PCIe and accelerator interconnects can provide local communication, while Ethernet or InfiniBand may carry traffic between servers. These boundaries are implementation dependent: some systems extend accelerator interconnects across multiple trays. The important engineering distinction is which transport, bandwidth, addressing and failure properties apply to a particular transfer. An accelerator count alone does not describe the topology.
Consider a laboratory with four servers, each containing two GPUs and a dedicated compute network adapter. A distributed job spans eight GPUs. When a rank exchanges a tensor with another rank in the same server, the communication library may select a local peer path. When the destination is on a different server, the library must select a network transport. If a local peer path is unavailable, the software may use a different supported mechanism, possibly involving host memory. The actual choice depends on the platform and software configuration. The network engineer must establish this mapping before interpreting switch counters.
The central architectural principle is that a successful packet delivery is necessary but not sufficient for a successful distributed computation. An application can stall while every physical link remains up. A slow rank, mismatched collective, insufficient memory or transport error can all delay progress. Network telemetry must therefore be correlated with application evidence rather than treated as a complete description of system health.
Architecture 01 — Scale-up and scale-out boundaries
Four network planes and their responsibilities
A production deployment normally needs more than a single high-speed network. The frontend service plane carries requests from users, API gateways and application services. The backend compute plane carries communication between distributed workers. The storage plane supports dataset ingestion, checkpoint persistence and model loading. The management plane supports provisioning, monitoring and administrative access. These are logical responsibilities, not a mandatory requirement to install four physically separate switch systems.
Physical separation provides independent capacity and can simplify fault containment, but it increases adapter count, cabling, switch ports and operational complexity. Logical separation using routing instances, VLANs and traffic classes can reduce hardware requirements, provided the shared resources are understood. A separate VLAN does not create independent bandwidth on a shared physical link. A separate VRF does not automatically protect a shared switch ASIC from exhaustion. An architectural diagram must distinguish logical isolation from physical isolation.
Frontend requests are typically bursty and sensitive to service latency. Backend collective traffic can be sustained, synchronized and concentrated on a small number of large flows. Storage traffic may be dominated by periodic bursts when many workers read model weights or write checkpoints. Management traffic is usually smaller in volume but is essential during failures. Allowing these workloads to compete without a defined resource policy can turn an ordinary checkpoint into an application performance incident.
A baseboard management controller is another important boundary. It can provide access to server power state and remote console facilities independently of the host operating system. Its network should be restricted to authorized administrative systems and should not be reachable from arbitrary workload networks. Host management and out-of-band management are related operational functions, but they do not have identical trust assumptions.
Architecture 02 — Independent traffic planes
| Plane | Traffic pattern | Primary acceptance evidence |
|---|---|---|
| Frontend | Request/response, bursty | Tail latency, errors, service reachability |
| Backend | Synchronized collective traffic | Collective completion, RDMA counters, queue occupancy |
| Storage | Bulk reads and checkpoint writes | Sustained throughput, storage latency, retry rate |
| Management | Administrative and monitoring | Independent reachability, authentication, audit |
Topology, attachment and failure domains
A two-tier folded Clos network connects every leaf to every spine in the relevant fabric. Servers attach to leaves, and traffic between different leaves can traverse an available spine. The topology gives multiple equal-cost routes when routing metrics and forwarding configuration support them. It does not guarantee that each flow receives equal bandwidth or that every physical failure is survivable. A single-homed server remains dependent on its attachment link and leaf.
A rack can be treated as an operational unit, but rack boundaries do not necessarily correspond to network failure domains. Two leaf switches in the same rack may share a power distribution unit, a cable route or an upstream dependency. A dual-rail design can place compute interfaces on separate fabrics so that failures on one rail do not directly consume resources on the other. To obtain genuine resilience, the host and communication library must support the intended path selection and recovery behavior. Two connected interfaces alone do not guarantee that an interrupted collective can continue.
In a rail-optimized architecture, equivalent accelerator or adapter positions across servers can be associated with corresponding network rails. This may help align collective communication with physical topology, depending on the communication library and system design. It is not a universal rule that every GPU needs a dedicated NIC. The correct ratio depends on local interconnect capacity, workload demand, PCIe topology, available ports and software support.
When planning a fabric, record the exact relationship between server, adapter, switch port, leaf, spine, power source and cable route. This inventory makes failure analysis concrete. If two supposedly redundant links terminate on the same line card or share an optical breakout assembly, a single hardware event may remove both. The redundancy claim should be tested against a defined failure model, not inferred from the number of lines drawn on an architecture diagram.
Architecture 03 — Dual-rail attachment and redundancy
Host locality and the adapter data path
Network performance begins inside the server. An adapter is attached to a PCIe hierarchy, and CPUs, memory controllers and accelerators have their own locality relationships. A transfer that crosses a CPU socket boundary may encounter additional contention or latency compared with a local path. PCIe link width and generation, negotiated speed, switch topology and device capabilities all influence the attainable throughput. The advertised Ethernet line rate is not proof that the host can supply data at that rate.
RDMA-capable adapters can transfer data between registered memory regions without requiring the remote CPU to copy every payload through the conventional socket receive path. Supported GPU direct-memory mechanisms can further avoid staging through host memory for eligible transfers. These mechanisms require compatible hardware, drivers, memory registration and appropriate topology. The CPU still participates in control operations, resource setup and application execution. Describing RDMA as removing the CPU entirely is misleading.
Engineers should map GPU identifiers to PCIe bus addresses and NUMA nodes, then map network devices to the same hierarchy. The output of a topology utility is a starting point, not an absolute performance guarantee. A pair of devices may appear close in the topology while firmware or isolation settings prevent a particular peer-memory operation. Validate the actual transport and memory path using supported tools and representative message sizes.
In virtualized deployments, device assignment, virtual switching and IOMMU configuration introduce additional considerations. A guest may see a virtual network adapter rather than the physical device used by the host. A passthrough device or SR-IOV virtual function can provide different capabilities, but the availability of RDMA and GPU direct-memory support depends on the complete platform. Never assume that a working virtual Ethernet interface exposes every feature of the physical adapter.
Architecture 04 — NUMA and PCIe locality
lspci -tv numactl --hardware ls -l /sys/class/net/ rdma link show nvidia-smi topo -m # NVIDIA utility requires supported driver and hardware.
Addressing, routing and service boundaries
A routed compute fabric can use point-to-point IP links between leaves and spines, with BGP exchanging reachability information. Loopback addresses can identify routing nodes and support management or protocol sessions, depending on the design. Server-facing networks may use routed subnets or other attachment models. The choice should reflect host routing capabilities, operational requirements and the transport architecture. A large Layer 2 broadcast domain is not an inherent prerequisite for RoCEv2, which encapsulates RDMA transport in UDP/IP and can traverse a routed network.
Control-plane state describes what a routing process knows and selects. Forwarding state describes what the forwarding implementation can actually use. A BGP session in Established state does not establish that the intended destination prefix is installed in hardware or that a packet can reach the destination. Engineers must inspect the selected route, next-hop resolution, forwarding entry, interface state and return path. These checks are especially important when the management network remains healthy while the compute network is impaired.
A service address may be reachable through the frontend network even though the backend worker address is not. A model-serving process can therefore accept requests while failing to execute a distributed operation. Health checks should exercise the relevant dependencies rather than rely exclusively on a TCP connection to the service listener. For a distributed service, readiness may require confirmation that participating workers have joined the execution group and can complete a representative communication operation.
Network policy must preserve these distinctions. A management jump host may need administrative access to compute nodes without being allowed to initiate arbitrary RDMA operations. A storage client may require access to a dataset endpoint without permission to reach a management controller. Addressing plans, routing instances and access controls should document permitted relationships and provide evidence that unauthorized cross-plane traffic is rejected.
Architecture 05 — Control plane versus forwarding plane
| Design choice | Advantage | Constraint |
|---|---|---|
| Dedicated physical planes | Independent link capacity | More ports and cabling |
| Shared links with VRFs | Routing separation | Shared physical resources |
| Shared links with QoS | Traffic-class scheduling | Requires correct classification and queue policy |
| Independent rails | Reduced common network dependencies | Requires compatible host and workload behavior |
Capacity is an end-to-end property
For a leaf with eight 100 Gb/s server-facing ports and four 100 Gb/s uplinks, the aggregate nominal server-facing capacity is 800 Gb/s in one direction. The uplink capacity is 400 Gb/s, giving a two-to-one oversubscription ratio for traffic that must leave the leaf. Losing one uplink reduces the nominal uplink capacity to 300 Gb/s and changes the ratio to approximately 2.67 to one. These are line-rate calculations, not measured application throughput. Protocol overhead, packet size, traffic distribution and host limitations reduce or redistribute usable capacity.
Traffic between servers attached to the same leaf may not consume spine uplinks at all. Consequently, the impact of oversubscription depends on job placement. A scheduler that keeps a communication-intensive group within a local domain may reduce fabric demand. Conversely, placing workers across racks can increase uplink utilization even if the total GPU count remains unchanged. Capacity planning should use a traffic matrix that identifies sources, destinations, rates and timing rather than a single aggregate utilization percentage.
Collective communication often creates synchronized demand. A short interval of high offered load may fill a queue even when a five-minute utilization average looks modest. Queue occupancy, congestion marks and pause counters can reveal conditions that average link counters hide. Measurements should use a time resolution appropriate to the phenomenon, recognizing that different telemetry mechanisms expose different sampling intervals and counter semantics.
The design must also account for degraded operation. A fabric sized to meet demand only when every link is available has no capacity margin for maintenance. Define a normal operating target and a separate degraded target, then evaluate the application under both conditions. This is a more useful acceptance criterion than requiring every link to reach its theoretical maximum in an isolated throughput test.
Production investigation — healthy services, stalled workers
Consider a synthetic four-node training cluster with separate frontend and backend interfaces. A maintenance change replaces a compute-facing switch port configuration. Shortly afterward, the application reports slow collective progress. The frontend health endpoint continues to respond and the management network remains accessible. An operator initially concludes that the network is healthy because all four hosts respond to management pings. That observation tests the wrong network plane.
The investigation begins by identifying the affected job, participating ranks, their compute interface addresses and the first time at which progress deteriorated. The operator compares application logs with interface counters and routing state from the compute fabric. Three workers continue to communicate normally with one another, while traffic to the fourth worker shows repeated transport failures. The affected worker's compute interface remains administratively up. This narrows the investigation to the backend attachment or its associated forwarding and transport configuration.
A comparison against the approved configuration reveals that the replacement port has an incompatible MTU setting for the intended traffic. Small probes succeed, but larger packets cannot traverse the path as expected. The operator verifies the effective MTU on the host and relevant network interfaces, and uses an appropriately sized non-fragmenting IP probe where supported. This probe helps isolate IP path behavior but does not independently prove RDMA readiness. Transport counters and a controlled RDMA test are required to validate the actual workload path.
After restoring the approved port configuration, the team verifies interface state, routing reachability, path MTU and transport completion. A representative collective benchmark is then executed using the same worker placement as the affected job. The team records the observed result before returning the cluster to service. The incident demonstrates why service health, management reachability and backend transport readiness must be treated as separate acceptance conditions. It also shows why the configuration baseline must include both host and switch settings.
ILLUSTRATIVE INCIDENT RECORD — NOT LIVE OUTPUT 09:00 Approved baseline: backend MTU consistent 09:12 Compute port configuration changed 09:14 Collective progress degraded 09:16 Frontend and management probes successful 09:19 Backend large-packet probe fails 09:23 Port MTU mismatch identified 09:28 Approved configuration restored 09:34 RDMA and collective validation completed
| Symptom | Evidence to inspect | Interpretation |
|---|---|---|
| API healthy, job stalled | Worker logs, compute-plane counters | Frontend health does not prove backend readiness |
| Small probes pass, large fail | Path MTU, interface settings | Possible MTU mismatch or filtering |
| One rank consistently slow | NIC locality, errors, rank timing | Host or path-specific bottleneck |
| All ranks slow during checkpoint | Storage and shared-link counters | Possible resource contention |
Production acceptance and engineering ownership
A production network architecture is incomplete until its operational responsibilities are defined. The compute team owns the workload placement and communication configuration, the network team owns fabric reachability and capacity, and the storage team owns the data service and its performance envelope. These boundaries vary between organizations, but every dependency needs an accountable owner. Shared responsibility must not become a situation in which no team can explain an end-to-end failure.
Before accepting a new rack, validate the inventory against the physical installation. Confirm adapter identifiers, switch port mappings, negotiated speeds and intended network membership. Verify that management access remains available during a compute-plane failure. Check routing and forwarding state for the intended worker addresses, then exercise the actual transport using a supported test. Finally, run a representative distributed application or collective benchmark and record the software versions, topology, message sizes and rank placement so the result can be reproduced.
Failure tests should be controlled and authorized. Removing a redundant uplink can establish whether forwarding reconverges and whether degraded capacity remains sufficient. It cannot establish that all possible failures are survivable. Test results should specify which component was removed, which workload was active and whether recovery required application restart. In a laboratory, simulated failures are useful for understanding causal relationships; in production, actual failure behavior must be measured under an approved change procedure.
The next section will turn this architectural foundation into a detailed study of folded Clos topology. We will examine how port allocation, leaf and spine counts, path diversity and oversubscription determine the scale of a fabric. Before proceeding, the reader should be able to identify the four network responsibilities, distinguish local from remote GPU communication, explain the limits of logical isolation and construct a failure-aware acceptance plan. Those capabilities are more valuable than memorizing a particular vendor's reference topology.
Design the network around the communication dependencies of the workload. Validate each plane independently, then prove that the complete distributed system works under normal and degraded conditions.
NETWORK INSIGHT — AI FABRIC COMMAND CENTRE · END OF EDITORIAL 01
Interactive AI Data Centre Architecture Explorer
Configure a distributed GPU fabric, follow a transfer through independent infrastructure planes and distinguish reachability from capacity and workload readiness.
V10 PLATINUM SIGNATURE · MULTI-PLANE ENGINEERING LAB
Choose a workload
Build the capacity model
Capacity is modeled for one active rail and one source/destination leaf pair. A second rail provides a modeled alternate attachment, not automatic bandwidth aggregation.
Change the infrastructure state
Multi-plane fabric and transfer path
Capacity and readiness
Independent service health
| Plane | Responsibility | Modeled state |
|---|
Inspect the decision gates
GPU to NIC attachment
Remote NUMA placement can increase latency and inter-socket traffic. The model does not invent a fixed penalty or claim to benchmark a specific CPU.
Inspect synthetic state
Illustrative state, not actual FRRouting or Linux command output. A route is necessary for routed reachability but does not establish RDMA readiness.
Trace the investigation
Recover the distributed training fabric
Training workers cannot complete a transfer. Restore the backend route, recover primary or alternate attachment, match MTU and provide at least 1,200 Gb/s modeled available capacity. Keep the requested workload on the backend plane and demonstrate a successful execution.
From simulation to production evidence
Inspect carrier, optics, error counters and negotiated speed using platform-supported interface diagnostics.
Compare BGP adjacency, RIB and installed forwarding state. A healthy session alone is not proof of end-to-end forwarding.
Validate MTU, RDMA completion and congestion counters at both endpoints. A successful ping does not validate collective throughput.
Measure collective completion time, rank imbalance and workload-specific throughput under controlled load.
Simulation assumptions and limitations
Deterministic educational model, no real packets or credentials. All capacity figures are theoretical unidirectional line rates, excluding framing and protocol overhead. Frontend, storage and management health are independent Boolean abstractions; backend capacity is not applied to them. The alternate rail is assumed healthy. No actual BGP, RDMA, PFC, ECN, NCCL or ECMP protocol implementation is included. Offered load is aggregate traffic across a leaf, not a single GPU flow. The MTU mismatch represents a workload requiring a larger frame without a usable fallback. Production behavior depends on topology, transport and implementation.
NETWORK INSIGHT — AI FABRIC COMMAND CENTRE / INTERACTIVE ENGINEERING 01
Spine–Leaf and Clos Network Architecture
Topology, bisection bandwidth, oversubscription and resilient AI fabric engineering.
PLATINUM SIGNATURE · V10 STANDARD · EDITORIAL 02
From hierarchical networks to a folded Clos fabric
The network topology determines which physical resources a distributed workload can share and which failures it can survive. In a traditional hierarchical campus design, access switches aggregate into distribution switches and then into a core. That arrangement is not inherently unsuitable for data centres, but it can concentrate traffic on a small number of aggregation links. AI training frequently generates simultaneous exchanges between workers in different racks. The network must accommodate these exchanges without assuming that most communication terminates at a central service or internet gateway.
A two-tier folded Clos fabric uses leaf switches for endpoint attachment and spine switches for transit. Each leaf connects to every spine in the idealized single-pod design. A packet between endpoints on different leaves can traverse any eligible spine, normally crossing three switching devices. Traffic between endpoints on the same leaf may remain local. The spine layer is not a collection of redundant standby devices: all eligible paths can carry traffic concurrently when the routing and forwarding design supports multipath operation.
The original Clos network describes a multistage switching architecture with separate input, middle and output stages. Folding combines input and output roles at the leaf layer. Classical nonblocking results describe particular switching models and connection assumptions; they do not prove that a packet-switched Ethernet deployment is congestion-free. Buffering, flow hashing, offered load and endpoint limitations remain important even in a fabric whose physical links provide equal aggregate capacity in both directions.
For an AI engineer, the essential advantage is regularity. A worker in rack A can communicate with a worker in rack D through the same number of fabric tiers as a worker in rack B. This makes capacity analysis and topology-aware placement more tractable. It does not imply identical measured latency: serialization, queue occupancy, link speed and host scheduling can still differ between paths. The topology is the starting point for performance engineering, not the final performance guarantee.
Architecture 01 — Four-spine folded Clos
Path diversity and forwarding symmetry
Consider a transfer from a GPU server on leaf A to a GPU server on leaf D. The source host selects its next hop according to its local routing configuration. Leaf A looks up the destination prefix and may install four equal-cost next hops, one through each spine. The selected spine forwards towards leaf D, which delivers the packet through the destination attachment. A return packet is independently forwarded and need not traverse the same spine. This is normal in an IP fabric, provided any stateful services in the path are designed to tolerate or control asymmetry.
Equal-cost multipath forwarding commonly hashes packet header fields to choose a next hop. The exact fields, seed and treatment of encapsulated traffic depend on the platform. A single large flow may therefore use only one of four available paths. Four 400 Gb/s links provide a nominal aggregate of 1.6 Tb/s, but do not automatically provide 1.6 Tb/s to a single conventional hashed flow. Multiple transport flows or supported adaptive routing mechanisms may improve distribution, but must be evaluated against transport ordering requirements and actual device capabilities.
A useful distinction is between topological diversity and effective forwarding diversity. Four cables are not four usable paths if a routing policy excludes two spines, a forwarding table fails to install a next hop, or several links share a failed physical component. Engineers should inspect installed forwarding entries rather than relying solely on the topology drawing. A route learned from four neighbors may still be programmed differently depending on route attributes, multipath configuration and hardware limits.
During maintenance, removing one spine path should leave other eligible paths available. However, flows mapped to the removed path may be reassigned, and packets already in flight can be lost. The duration of disruption depends on link detection, routing convergence, forwarding updates and transport recovery. A design review should establish what the application experiences during that interval, not merely whether a ping eventually succeeds.
Architecture 02 — Four candidate paths between racks
Capacity budgets and oversubscription
Capacity engineering begins with a consistent accounting convention. Use nominal one-direction link rates and distinguish them from full-duplex marketing totals. A leaf with eight 400 Gb/s server-facing ports has 3.2 Tb/s of potential ingress from its attached servers. Four 400 Gb/s uplinks provide 1.6 Tb/s of nominal egress towards the spine layer. Dividing server-facing capacity by fabric-facing capacity yields an oversubscription ratio of 2:1. This ratio describes a physical capacity relationship, not measured utilization or a guarantee about application throughput.
If all eight servers send 400 Gb/s simultaneously to other racks, the offered load exceeds the uplink budget by 1.6 Tb/s. Queues may grow, congestion signals may be generated, and transport mechanisms may reduce sending rates. Actual application throughput is also reduced by protocol overhead and other bottlenecks. Conversely, if half the traffic remains within the rack, the external offered load could fit within the uplink budget. A ratio is meaningful only in combination with the workload traffic matrix.
A nominal 1:1 leaf can be constructed by assigning eight 400 Gb/s uplinks to match eight 400 Gb/s downlinks, assuming adequate switch radix and internal forwarding capacity. This removes that particular aggregate bottleneck but does not prevent individual output ports from becoming overloaded. For example, eight senders targeting a single 400 Gb/s receiver can overload its attachment even when the spine layer has abundant capacity. Incast is a traffic-pattern problem, not simply a shortage of aggregate fabric bandwidth.
Engineers should reserve capacity for maintenance and failure rather than design solely for the all-links-healthy condition. Losing one of four equal-rate uplinks reduces the available external budget from 1.6 to 1.2 Tb/s. The physical ratio rises from 2:1 to approximately 2.67:1. A job that normally offers 1.4 Tb/s of cross-rack traffic fits in the healthy aggregate budget but exceeds the degraded budget by 200 Gb/s before accounting for overhead. That is a concrete acceptance criterion for workload placement and failure testing.
| Configuration | Downlinks | Uplinks | Ratio |
|---|---|---|---|
| Balanced | 8 × 400G | 8 × 400G | 1:1 |
| Oversubscribed | 8 × 400G | 4 × 400G | 2:1 |
| One uplink lost | 8 × 400G | 3 × 400G | 2.67:1 |
| Two uplinks lost | 8 × 400G | 2 × 400G | 4:1 |
Bisection bandwidth and traffic matrices
Bisection bandwidth concerns the capacity across a partition of the network into two equal endpoint groups. The exact definition must state whether bandwidth is counted in one direction or both and whether the quantity is a physical cut capacity or achievable throughput under a traffic pattern. In a four-leaf example with eight 400 Gb/s endpoints per leaf, partition the endpoints by placing racks A and B on one side and racks C and D on the other. The source-side leaves together have 3.2 Tb/s of uplink capacity and the destination-side leaves have the same aggregate downwards fabric capacity. Assuming adequate spine switching capacity, the nominal one-direction intergroup throughput upper bound is therefore 3.2 Tb/s.
The endpoints on each side could offer 6.4 Tb/s in total. The chosen rack-aligned partition consequently cannot sustain simultaneous full-rate transmission from every endpoint to the opposite group. This example is not a proof of the minimum bisection over every possible endpoint partition. It is an explicit capacity bound for one meaningful placement pattern. A rigorous bisection analysis considers the minimum cut over balanced endpoint partitions and the actual network graph, including parallel links and any internal switching constraints.
Traffic matrices help translate this graph into workload requirements. Let each matrix entry represent the offered traffic from one rack to another during a defined observation interval. Summing a row outside its diagonal gives the rack's external sending demand; summing a column outside its diagonal gives its external receiving demand. Both must fit their respective capacity budgets. The diagonal represents local traffic and should not be charged to the spine uplinks if the actual forwarding path remains local.
Distributed training traffic is often phase-dependent. An average measured across a complete training iteration may hide short synchronized bursts during collective communication. Capacity validation should therefore examine relevant time windows and tail completion times. A fabric with low average utilization can still produce substantial queueing during bursts. The engineering goal is to support the communication schedule with acceptable completion time, not merely to keep a dashboard below a utilization threshold.
Architecture 03 — Rack-aligned balanced partition
Switch radix, expansion and fabric tiers
Switch radix is the number of usable ports at the required speed, subject to hardware breakout modes and platform restrictions. A leaf with 32 usable 400 Gb/s ports might allocate sixteen to servers and sixteen to fabric uplinks for a nominal 1:1 design. A spine with 32 usable ports can attach to at most 32 leaves if each leaf uses exactly one port on that spine. In this idealized design, sixteen spines and 32 leaves can support 512 server attachments. The calculation assumes all ports are available for the stated purpose, no additional reserved ports are required, and the devices support the necessary forwarding scale.
Expansion has several dimensions. Adding leaves increases endpoint capacity but consumes ports on every spine. Adding spines increases potential path diversity and uplink capacity but consumes ports on every leaf. If a leaf has no spare uplink ports, installing a new spine alone does not increase that leaf's capacity. If spines have no spare ports, adding a leaf may require replacing equipment or introducing another fabric tier. A port inventory should therefore track reserved growth capacity separately from active connectivity.
A larger fabric may use multiple pods connected through a super-spine tier. This introduces additional path segments for interpod traffic and requires an explicit interpod capacity budget. A workload whose ranks span pods may encounter different bandwidth and latency characteristics from a workload confined to one pod. Scheduling policies can exploit this distinction, but must balance locality against accelerator availability and resilience requirements.
Physical expansion also introduces operational constraints. Optical reach, fiber routing, rack power, cooling and cable labeling influence whether the theoretical topology can be deployed and maintained. Two paths that traverse different logical switches but share a cable tray or power distribution unit can have correlated failures. A resilient design documents these shared-risk groups and evaluates maintenance operations against them.
Architecture 04 — Multi-pod fabric expansion
Failure domains and degraded operation
A single link failure removes capacity and potentially a forwarding next hop. A spine failure can remove one path from every leaf in the pod. A leaf failure is different: single-attached endpoints on that leaf may lose all fabric connectivity even though the spine layer remains healthy. Dual attachment can reduce this risk, but the result depends on the host's network configuration, adapter independence, routing or bonding behavior and the application transport. Redundant cabling is not sufficient evidence of application failover.
Rail-optimized designs may connect corresponding GPU or NIC positions to separate network domains. Such a design can reduce contention for particular communication patterns and isolate some failures. It does not follow that a failed rail can always be replaced transparently by another rail. The communication library, host topology, addressing and transport configuration must support the intended fallback behavior. Engineers should test the actual collective workload after a rail failure and verify whether it continues, restarts or fails.
An important production distinction is between restoration of reachability and restoration of service performance. A fabric can reconverge successfully after a spine failure while leaving insufficient capacity for the current training job. Conversely, a job can tolerate a short network disruption if its transport and application recovery mechanisms permit it. Availability objectives should include acceptable degraded throughput, maximum interruption and the operational response when those conditions cannot be met.
Maintenance planning should account for overlapping failures. Removing a spine for planned work may be safe under the normal capacity model but unsafe if another spine is already unavailable. Before approving the change, inspect current link state, installed routes, workload placement and queue telemetry. Compare the projected degraded budget with current and expected demand. This converts redundancy from a static diagram into an operational decision.
Architecture 05 — Spine failure and surviving paths
| Failure | Immediate impact | Evidence to verify |
|---|---|---|
| Single uplink | Reduced local path count | Interface and next-hop state |
| Spine | Reduced path count across pod | Neighbor state on every leaf |
| Leaf | Attached endpoints may disconnect | Host routes and attachment state |
| Shared power domain | Multiple devices may fail | Physical dependency inventory |
Production investigation — the healthy routing table
Consider a synthetic training cluster using four spines and eight 400 Gb/s server-facing interfaces per leaf. The workload normally offers approximately 1.4 Tb/s of cross-rack traffic from leaf A during a collective phase. The fabric is already oversubscribed at 2:1, but the measured demand fits its nominal 1.6 Tb/s uplink budget. During a maintenance operation, spine 1 is removed from service. Routing converges and three next hops remain available. Basic reachability tests pass, yet collective completion time increases and the training iteration slows.
The first diagnostic task is to establish whether the application slowdown correlates with the network change. Compare timestamps from the maintenance record, interface events, routing adjacency changes and application iteration metrics. Inspect per-port byte counters over consistent intervals rather than comparing cumulative totals. Determine whether the remaining uplinks are heavily utilized, whether queue occupancy has increased and whether congestion notifications or discards appear. If the application uses RoCEv2, inspect relevant adapter and switch counters using platform-specific tools rather than assuming ordinary IP reachability proves transport health.
In this scenario the degraded nominal capacity is 1.2 Tb/s, while the offered demand is 1.4 Tb/s. The capacity deficit explains why successful routing convergence is insufficient. Uneven hashing could make the problem worse, but the aggregate budget is already inadequate even with perfect distribution. Changing a hash seed cannot create missing bandwidth. The appropriate response may be to restore the spine, reduce competing traffic, or place the workload within a smaller communication domain if its scheduling and topology permit that change.
After recovery, verify the expected four forwarding next hops, confirm that restored interfaces carry traffic and repeat a representative collective test. Compare completion time and queue telemetry against the pre-change baseline. Record the capacity assumption that failed and revise the maintenance admission criteria. The purpose of the incident review is not simply to identify a failed device; it is to improve the engineering model used to authorize future changes.
ILLUSTRATIVE INCIDENT RECORD — NOT DEVICE OUTPUT 09:00 baseline: 4 uplinks / 1600 Gb/s nominal 09:12 planned spine removal 09:13 3 eligible next hops / 1200 Gb/s nominal 09:14 offered load estimate: 1400 Gb/s 09:15 capacity deficit: 200 Gb/s 09:20 restore spine; validate forwarding and workload
Acceptance testing and the engineering handover
A production handover should begin with a documented topology and port map. For each leaf, record the endpoint attachments, uplink destinations, link rates, intended routing relationships and physical failure domains. Calculate normal and degraded capacity using the same units throughout. Identify the expected workload traffic patterns and establish which assumptions are measured and which remain estimates. A topology diagram without this supporting inventory is not sufficient for operational ownership.
Validate the control plane and data plane independently. On a Linux-based FRRouting laboratory, inspect interface state, BGP neighbor summaries, learned routes and kernel forwarding entries. The exact commands and output vary with FRRouting version and platform integration. On hardware switches, the kernel view may not establish that the ASIC has programmed the expected forwarding state; use the supported hardware inspection commands. Verify that representative traffic traverses the intended paths and that the observed path distribution is consistent with the flow population.
Run controlled tests at several levels: a single flow, multiple independent flows, concurrent rack-to-rack traffic and a representative application collective. A single TCP throughput test cannot characterize an entire AI fabric. Repeat relevant tests under a planned link failure and compare the results with the documented degraded budget. Avoid destructive failure injection on production systems without approved change procedures and an appropriate rollback plan.
Finally, establish ownership of capacity, routing, physical connectivity and application performance. The network team should know which workload metrics indicate a fabric bottleneck, and the compute team should understand which topology constraints affect placement. Shared acceptance criteria make it possible to distinguish an application scheduling problem from a transport issue or a physical capacity deficit. This is the foundation for the interactive fabric builder in the next widget, where the reader will vary port counts, link rates and failure conditions to examine the consequences of topology decisions.
Illustrative read-only Linux / FRRouting checks ip -br link ip -s link vtysh -c "show bgp summary" vtysh -c "show ip route" ip route show ethtool -S eth0 # Substitute the actual interface name; counters are driver-specific.
A resilient fabric is not merely a connected graph. It is a capacity budget that remains meaningful under the workload and failure conditions it is designed to support.
Further reading: RFC 7938 — BGP in large-scale data centers · FRRouting documentation.
Spine–Leaf Fabric Builder
AI FABRIC COMMAND CENTRE · V10 PLATINUM SIGNATURE
Design a folded Clos fabric, inspect physical constraints, follow candidate forwarding paths and prove that capacity survives a failure. All results are deterministic educational calculations, not measured switch performance.
01 / Mission control
Choose a design baseline. Every leaf connects to every spine with one link. Hosts are single-attached; all links are full duplex. Capacity is reported in one direction.
02 / Physical fabric configuration
Radix counts physical ports, not bandwidth. Breakout, reserved ports and mixed-speed ASIC restrictions are outside this model.
03 / Failure injection
Combine failures. A failed spine removes every attached fabric link; a failed leaf removes its host and fabric links. Routing is assumed converged.
04 / Live topology and forwarding journey
05 / Capacity telemetry
06 / Physical port budget
07 / Balanced partition capacity
Leaves are divided into two rack-aligned groups. For each surviving spine, the cut is bounded by the smaller number of live links on either side. The total is further bounded by live host-facing capacity on each side. This is an upper bound for this partition, not a proof of universal nonblocking performance.
08 / Candidate path inspector
Choose source and destination leaves. A candidate path requires both leaf-to-spine links to be operational. This is topology reachability, not a BGP or ASIC ECMP implementation.
09 / Flow distribution laboratory
Deterministic illustrative hashing assigns equal-rate flows to surviving paths. Compare per-path load against link capacity; aggregate capacity alone does not guarantee every flow fits.
10 / Engineering event console
11 / Production design challenge
Design a valid fabric with at least four leaves, eight 400 Gb/s hosts per leaf, at least 1,200 Gb/s offered load from the source, and enough surviving paths and capacity after a spine failure. Prove a successful journey. The challenge requires at least two surviving candidate paths and no overloaded modeled path.
12 / Engineering interpretation
A healthy routing table does not guarantee sufficient bandwidth. A single flow generally cannot use the sum of all ECMP links. A balanced partition estimate is not necessarily the worst cut of a physical network. Real deployments require traffic-matrix validation, switch-specific port and buffer constraints, routing convergence tests, and application-level benchmarks.
Simulation assumptions and limitations
No packet timing, queues, transport retransmission, protocol overhead, routing convergence delay, switch internal blocking or RDMA behavior is modeled. Flow assignment is illustrative and not vendor-specific. A successful journey means the modeled path and capacity checks passed, not that a real workload has been validated.
Ethernet, NICs and High-Speed Physical Connectivity
PCIe, optical transceivers and high-performance network interface architecture
PLATINUM SIGNATURE · V10 STANDARD · EDITORIAL 03
The physical path is an end-to-end contract
A distributed training job moves tensors between accelerators, not merely packets between IP addresses. The distinction matters because a network interface can report a healthy link while the application is constrained by memory placement, PCI Express bandwidth, queue scheduling or the transport implementation. A useful physical design begins with the actual movement of bytes from the producing accelerator to the consuming accelerator. Each boundary has a capacity, a latency contribution and a failure mode. Treating the adapter as an isolated component hides these dependencies and makes procurement decisions unnecessarily risky.
Consider a server with eight GPUs and two high-speed adapters. Intra-server communication may use a dedicated accelerator interconnect, whereas inter-server traffic must traverse an adapter and a switching fabric. The workload may combine both paths during one collective operation. An efficient topology-aware library tries to place communication on appropriate links, but its choices depend on the topology exposed by the operating system and runtime. An adapter attached to the wrong PCIe root complex may force traffic across an inter-socket connection, even when the network itself is lightly loaded. The result can be uneven throughput between otherwise identical workers.
Engineers should record the physical slot, negotiated PCIe width and generation, NUMA node, adapter port, switch port and cable identity for every compute attachment. This inventory should be joined to the logical routing and workload inventory rather than maintained as an unrelated spreadsheet. When a job reports a slow rank, the operator can then map the rank to a GPU, its preferred adapter and the actual physical path. Without that relationship, aggregate fabric utilization may conceal a single underperforming endpoint.
The first acceptance criterion is therefore not a successful ping. It is a documented and measured end-to-end path with known resource sharing. A successful ping establishes limited reachability for a small packet; it does not demonstrate that the accelerator can sustain a large transfer, that the selected queue has appropriate service, or that a peer can receive data without host staging. Those properties require separate tests.
01 / End-to-end accelerator data path
PCI Express, DMA and accelerator locality
PCI Express is a packetized, point-to-point interconnect. A device negotiates a generation and lane width with its upstream port; a mechanical x16 connector does not guarantee an electrical x16 link. For PCIe generations 3 through 5, the nominal transfer rate uses 128b/130b encoding. PCIe 4.0 at 16 GT/s across sixteen lanes therefore provides approximately 31.5 GB/s in each direction after encoding but before transaction overhead. PCIe 5.0 doubles that figure to approximately 63 GB/s. A 400 Gb/s Ethernet port corresponds to 50 GB/s at its nominal MAC rate, while 800 Gb/s corresponds to 100 GB/s. These comparisons expose possible bottlenecks before any benchmark is run.
The calculation is directional. PCIe and Ethernet can transmit and receive simultaneously, but adding both directions together does not increase the bandwidth available to a single unidirectional transfer. Actual PCIe payload throughput is reduced by transaction headers, flow control, completion behavior and implementation details. Read transactions may behave differently from writes. Two ports on one adapter can also share the same upstream interface, so a dual-port specification must be checked against the aggregate host-side capacity. A PCIe 5.0 x16 attachment cannot be assumed to sustain two independent 400 Gb/s streams in the same direction.
Direct memory access allows a device to transfer data without requiring the CPU to copy every byte. GPU-aware RDMA can allow supported adapters to access registered accelerator memory through a compatible peer-memory path. This is not a universal property of every GPU, NIC or operating system combination. Driver support, memory registration, PCIe topology, IOMMU configuration and platform firmware all influence whether the path is available. The IOMMU provides device address translation and isolation; disabling it as a generic performance fix can compromise isolation and is not an appropriate production default.
Inspect the negotiated link under load, not only the maximum capability reported by the device. Some systems reduce link speed in idle states, and a degraded lane may be visible only through current status or error counters. Compare the GPU and adapter locality with the intended placement of application threads and memory. When measuring performance, distinguish host-memory transfers from GPU-memory transfers. A successful host-memory benchmark is useful evidence about the NIC and fabric but cannot prove that the accelerator-specific path is operating correctly.
02 / PCIe locality and shared resources
| Interface | Nominal directional capacity | Interpretation |
|---|---|---|
| PCIe 4.0 x16 | 31.5 GB/s | Before transaction overhead |
| PCIe 5.0 x16 | 63.0 GB/s | Before transaction overhead |
| 400 GbE | 50 GB/s | Nominal MAC rate |
| 800 GbE | 100 GB/s | Nominal MAC rate |
Ethernet framing and the cost of packetization
Ethernet transports frames across individual links. A typical untagged frame contains destination and source MAC addresses, an EtherType or length field, payload and a frame check sequence. On the wire, preamble, start delimiter and interpacket gap consume additional transmission opportunity. VLAN tags add four bytes per tag. IP and transport headers occupy part of the Ethernet payload, and tunneling can introduce further overhead. A link rate is consequently not identical to useful application payload throughput.
For an illustrative untagged frame carrying a 1500-byte IPv4 packet with a twenty-byte IP header and twenty-byte TCP header, the application payload is at most 1460 bytes before optional TCP fields. Counting fourteen bytes of Ethernet header, four bytes of FCS, eight bytes of preamble and delimiter and twelve byte-times of interpacket gap gives 1538 byte-times per frame. The idealized application efficiency is about 94.9 percent. At 400 Gb/s that corresponds to roughly 379.7 Gb/s of TCP payload before acknowledgments, retransmissions and host limitations. This is an accounting example, not a measured TCP benchmark or an RDMA performance prediction.
A larger MTU reduces the number of frames required to move a fixed amount of data and can reduce packet-processing pressure. A 9000-byte IP packet under the same assumptions carries 8960 bytes of TCP payload in 9038 byte-times, or approximately 99.1 percent efficiency. Jumbo frames are nevertheless a system-wide design decision. An interface MTU of 9000 does not prove that the adjacent switch, every routed hop and any encapsulation path can accommodate the corresponding frame. Different platforms express maximum frame size differently, so engineers must check whether headers and tags are included in each setting.
Small packets present a different constraint: packet rate rather than byte rate. At a nominal 400 Gb/s MAC rate, minimum-size Ethernet frames with 84 byte-times of occupancy require approximately 595 million packets per second for full utilization. A device may have limits on packet processing, classification or queue operations that are not apparent in a large-frame throughput test. Workload characterization must therefore include the distribution of message sizes, burst behavior and concurrency. The best physical design is the one that supports the real communication pattern, not simply the largest advertised bandwidth number.
03 / Ethernet transmission accounting
NIC queues, offloads and link aggregation
A high-performance adapter is itself a processing system. Transmit and receive queues, descriptor rings, completion handling, DMA engines and scheduling logic sit between software and the physical port. Ordinary kernel networking may use multiple queues and interrupt affinity to distribute work across CPUs. RDMA uses a different programming and completion model, often avoiding the conventional kernel data path for established operations. Both approaches depend on the adapter having sufficient resources and on software using those resources appropriately.
Queue depth is a tradeoff. Too little buffering can prevent a pipeline from remaining busy when completion latency rises; excessive buffering can increase latency and hide congestion. Receive-side scaling distributes eligible flows across queues using a hash, but a single flow is not automatically spread across every queue. Offloads such as segmentation and checksum processing can reduce CPU work, although packet captures taken before an offload may display apparently oversized packets or incomplete checksums. Capture location must be understood before interpreting those observations as wire errors.
Link aggregation combines multiple physical members into a logical attachment. LACP can negotiate membership and detect certain failures, but it does not promise that every individual flow can use the sum of all member rates. Hash-based distribution usually keeps a flow on a member to preserve ordering. A pair of 400 Gb/s links may offer 800 Gb/s of aggregate capacity across suitably distributed traffic while a single conventional hashed flow remains limited by one member. The exact behavior depends on the platform and configured hashing policy. Routed multipath and link aggregation solve different architectural problems even though both distribute traffic.
In AI clusters, separate adapter ports may instead represent independent rails, each with its own topology and routing. A communication library can select or combine rails if the implementation supports it. Rail independence should be verified physically: two ports sharing a single adapter, PCIe switch, power supply or upstream switch may fail together. A design that claims redundancy should specify which shared resources remain and which failures are actually covered. The adapter inventory should record firmware, driver, queue configuration and supported offloads alongside physical port information.
04 / Adapter processing pipeline
Optics, electrical lanes and forward error correction
High-speed Ethernet requires a compatible physical medium and signaling architecture. The advertised port rate can be delivered through multiple electrical or optical lanes, depending on the selected interface standard. A pluggable module connects the host electrical interface to a cable or optical medium. Form factor, lane mapping, modulation, wavelength, reach and connector type all matter. A module that fits mechanically may not be supported electrically or operationally by the switch or adapter. Compatibility must be established using the specific equipment documentation and the intended link standard.
Direct attach copper is often appropriate for short connections within a rack, subject to supported reach and cable construction. Active electrical cables can extend some electrical connections, while optical modules and active optical cables support other distance and cabling requirements. Fiber type and polarity must match the optical interface. Parallel optical systems and wavelength-multiplexed systems have different cabling and troubleshooting characteristics. Breakout configurations require explicit support for the selected lane grouping and logical port speeds at both endpoints; a breakout cable alone cannot create a supported port configuration.
Forward error correction adds redundancy that allows the receiver to correct a defined range of physical transmission errors. Corrected codewords can occur on a functioning link and must be interpreted against the applicable standard, device counters and baseline. A rising corrected-error rate may indicate declining signal margin, whereas uncorrectable errors indicate that correction capability has been exceeded. Counter names and units vary. Raw counts should be converted to rates over a known interval, with awareness of counter resets and wraparound. FEC is not a replacement for investigating a deteriorating cable or optical path.
Optical diagnostics can report transmit power, receive power, temperature and other module measurements where supported. Compare values with the specified operating range for that module, rather than applying a universal receive-power threshold. A link can remain up while its margin deteriorates. Inspect both endpoints and correlate physical-layer events with interface errors and application behavior. When replacing a suspect component, change one variable at a time where practical and retain the original evidence. Otherwise a simultaneous cable, module and port change may restore service without identifying the cause.
05 / Optical link and FEC boundaries
| Medium | Typical use | Verify |
|---|---|---|
| DAC | Short rack connections | Reach and host compatibility |
| AEC | Supported electrical extension | Power and lane support |
| Optical | Longer or structured cabling | Fiber, wavelength, polarity, budget |
MTU, congestion and physical acceptance boundaries
A physical interface can be operational while a transport fails because a packet exceeds the path MTU. IPv4 path MTU discovery relies on appropriate feedback when a packet cannot be forwarded without fragmentation; IPv6 routers do not fragment forwarded packets. Filtering necessary control messages can create black-hole behavior in some circumstances. RDMA applications also negotiate or configure transport-specific path parameters that must be compatible with the underlying Ethernet and IP path. Do not equate an RDMA path MTU setting directly with the Ethernet interface MTU.
Congestion is another independent dimension. A link can be error-free and still experience queue buildup because multiple ingress streams converge on a slower or busy egress. Priority flow control, where deployed, can pause selected traffic priorities on a link; explicit congestion notification can signal congestion to capable endpoints. These mechanisms require coherent configuration and are not substitutes for capacity planning. A physical acceptance test should establish baseline error rates and throughput before enabling or tuning more complex congestion behavior, so that later symptoms can be attributed to the appropriate layer.
The test plan should include both directions and multiple concurrent flows. A single stream may not exercise all queues or paths. Conversely, an aggregate test can hide a slow individual worker if other workers compensate. Measure per-port and per-rank performance, then compare the results with the intended workload. Record test duration, frame or message size, transport, CPU and GPU placement, and whether the traffic crosses the same physical links as the production application.
Acceptance thresholds must be derived from the equipment specifications and workload requirements. An arbitrary percentage of nominal bandwidth is not a universal pass criterion. A test that achieves the required throughput but produces increasing uncorrectable errors should not be considered healthy. Likewise, an error-free interface that cannot sustain the workload may require a host-side or topology investigation. The evidence should identify the limiting boundary rather than merely label the network as slow.
Production incident: the missing PCIe lanes
Imagine a synthetic training cluster in which one worker consistently finishes its communication phase later than the others. All switch interfaces report 400 Gb/s operational speed, routing is stable and the optical error counters show no significant change during the test interval. The affected worker achieves only 24 GB/s in a large-message host-memory transfer while a comparable worker achieves 43 GB/s. These are illustrative measurements, not results from an actual deployment. The disparity persists when the destination is changed, suggesting that the source host or its attachment deserves closer inspection.
The operator first checks the physical port and compares counter deltas on both endpoints. No corresponding increase in uncorrectable FEC errors, CRC errors or link transitions is observed. A route inspection confirms that the intended interface is used. The next step is to examine the adapter's PCIe status. The affected device reports a negotiated PCIe 4.0 x16 link, whereas the intended design uses PCIe 5.0 x16. The theoretical encoding-adjusted ceiling of the slower attachment is approximately 31.5 GB/s before transaction overhead. The measured result is consistent with that constraint, though it does not establish the underlying reason for the negotiation.
The team inspects the platform slot specification, firmware settings and upstream bridge status during an approved maintenance window. A supported slot with the required electrical capability is selected and the adapter is installed according to the hardware maintenance procedure. After the change, negotiated status is checked again, then host-memory and GPU-memory benchmarks are repeated separately. A collective benchmark is the final application-level check. The original measurements and configuration are retained so that the improvement can be attributed to the changed attachment rather than to unrelated workload variation.
The engineering lesson is that physical Ethernet health and host I/O health are separate observations. Replacing an optical module would not address the demonstrated PCIe constraint. Equally, a PCIe capability mismatch alone does not justify moving hardware without checking platform support, thermal constraints and maintenance requirements. The investigation should proceed from observed symptoms to a bounded hypothesis, then to a controlled change and repeatable validation.
06 / Incident evidence chain
Read-only diagnostic examples (Linux; device support varies)
ip -s link show dev ens5f0 ethtool ens5f0 ethtool -S ens5f0 ethtool --show-fec ens5f0 ethtool -m ens5f0 lspci -vv -s 0000:41:00.0 cat /sys/class/net/ens5f0/device/numa_node nvidia-smi topo -m rdma link show
| Evidence | Interpretation | Next action |
|---|---|---|
| Link up, stable errors | Physical link appears stable | Check host path |
| Gen4 x16 negotiated | 31.5 GB/s encoding ceiling | Check platform capability |
| GPU transfer slower than host | Possible locality or peer-memory issue | Validate supported GPU path |
Engineering handover and the physical bill of materials
A production fabric handover should make the physical design reproducible. Record each adapter model and port, negotiated PCIe parameters, supported firmware and driver combination, switch interface mode, module and cable type, intended reach, MTU and FEC configuration. Include the mapping from workload placement to GPU and adapter locality. The inventory should identify spare parts that are actually compatible with the deployed interfaces, not merely parts that share a nominal speed or connector shape.
Capacity planning should use the smallest relevant directional capacity along the intended path as an initial upper bound. For shared resources, consider the sum of concurrent demands rather than evaluating each port independently. Apply measured payload efficiency and reserve headroom for operational variation. Separate the requirements for normal operation from degraded operation. A fabric that meets its throughput target only while every rail is available may be acceptable for some workloads but unsuitable for others. That decision belongs in the documented service design.
Operational teams need a baseline captured under repeatable conditions. Store link state, error-counter rates, optical diagnostics, negotiated host interface status, queue statistics and workload benchmark results. Include the time interval and units for every counter. Establish a change procedure that verifies the physical path after firmware updates, cable replacement or server maintenance. A replacement that restores connectivity but silently changes negotiated speed or lane width can create a persistent performance regression.
The next interactive laboratory will turn these relationships into a configurable packet and physical connectivity journey. Readers should use it to predict which boundary becomes limiting when link speed, PCIe generation, MTU or optical health changes. Its numerical outputs will be conceptual rather than hardware measurements. The practical objective is to develop the habit of identifying the precise resource that constrains a transfer and selecting evidence that can confirm or reject that hypothesis in a real environment.
IEEE 802.3 Ethernet standards; PCI-SIG PCI Express specifications; Linux kernel networking and PCI documentation; adapter and switch vendor hardware compatibility documentation. Consult the specific deployed hardware manuals before applying configuration changes.
All diagrams and incident values are original conceptual teaching examples, not measured production evidence.
Interactive Ethernet Frame and Physical Connectivity Engineering Lab
V10 Platinum Signature · GPU-to-NIC PCIe Data Journey · Optical Connectivity · Physical Infrastructure
Trace an accelerator transfer, inspect its transmission budget and recover a degraded physical path. All measurements are synthetic educational estimates.
01 / Mission control
02 / Host and NIC configuration
03 / Ethernet and optical configuration
04 / Fault injection
05 / Animated physical data journey
06 / PCIe and throughput telemetry
07 / Ethernet frame inspector
08 / Optical and FEC inspector
09 / Transfer decision gates
10 / Linux diagnostic evidence
Illustrative output, not captured from a real host. Compare negotiated PCIe width with capability and inspect link state independently.
11 / Engineering event console
12 / Production recovery challenge
Load the PCIe lane incident. Recover a 400 GbE path with at least 350 Gb/s modeled TCP payload capacity, then complete the transfer.
13 / Engineering interpretation
PCIe generation and negotiated lane width constrain host-side movement. The encoding-adjusted PCIe rate is not a measured DMA rate: transaction headers, topology, memory bandwidth and implementation overhead can reduce it. Ethernet MAC rate is distinct from application goodput. This model assumes full-sized IPv4/TCP segments, no options, acknowledgments or retransmissions. Preamble/SFD and interframe gap are counted as byte-times, not as MAC frame bytes. VLAN adds four bytes. FEC is represented as a qualitative state; no optical BER or real correction counter is predicted. RDMA, GPUDirect and actual NIC queue scheduling are not implemented. A successful transfer means the modeled gates pass, not that a real network is production-ready.
On real equipment, inspect negotiated PCIe speed and width, GPU/NIC locality, driver and firmware compatibility, supported module and cable combinations, optical power against vendor thresholds, corrected and uncorrectable FEC counters, MTU across the entire path, and measured workload performance. Never change live link settings without an approved maintenance plan.
BGP Underlay and FRRouting Architecture
Autonomous systems, route propagation and distributed network reachability
PLATINUM SIGNATURE · V10 STANDARD · EDITORIAL 04
The underlay is a distributed reachability system
A GPU fabric is a distributed computer whose network must make remote memory and communication endpoints reachable. The routing underlay provides the IP connectivity on which transports such as RoCEv2 depend. It does not schedule GPU kernels, allocate queue pairs or guarantee that collective communication will finish within a particular time. Its responsibility is narrower and essential: distribute usable reachability, select eligible paths and remove paths that are no longer valid. A production design must establish the boundary between this responsibility and the responsibilities of the forwarding hardware, transport and application.
In a two-tier folded Clos, each leaf connects to every spine. Hosts attach to leaves, and the spines provide transit between leaves. A routed point-to-point link between each leaf and spine creates an independent adjacency and avoids extending a single Ethernet broadcast domain across the fabric. The leaf advertises its attached compute prefixes, and the spine advertises eligible routes toward other leaves. Multiple equal-cost paths can be installed when the routing policy and forwarding implementation permit them. The topology supplies candidate paths; routing and forwarding determine which candidates are actually usable.
A useful engineering inventory maps each link to its local interface, peer interface, IP addressing, autonomous system number, expected link speed and physical cable. The same inventory should associate each advertised prefix with an owning rack or service. This enables operators to distinguish an unexpected advertisement from an intended topology change. Without an authoritative inventory, a session can appear healthy while its peer advertises a prefix belonging to a different rack. Route policy is therefore an architectural control, not an optional finishing detail.
Keep the backend compute routing domain separate from management and frontend service connectivity according to the security and availability requirements of the deployment. This may involve physically separate networks or deliberately isolated routing instances. A management connection that remains available during a compute fabric failure is particularly valuable because it allows engineers to collect evidence without depending on the failed path. Separation must be verified through actual forwarding and policy tests rather than inferred from interface names.
01 / Routed two-tier Clos
Autonomous systems and adjacency design
BGP identifies routing domains using autonomous system numbers. In a private fabric, private-use ASNs are commonly assigned according to a documented topology convention. One possible two-tier design uses a distinct ASN for each leaf and a shared ASN for all spines. This permits a leaf to receive paths from several spines with identical AS paths for a remote leaf prefix. It also makes the AS path useful evidence of the route's origin. The convention is not universal; larger fabrics may require different numbering, policy and path selection rules.
For this laboratory, Leaf A uses AS 65001, Leaf B uses AS 65002, and both spines use AS 65100. Leaf A owns 10.10.1.0/24 and Leaf B owns 10.10.2.0/24. Four independent /31 links use addresses from 192.0.2.0/24, a documentation range used here solely for illustration. The two endpoints of a /31 point-to-point link can both be used as host addresses. A production allocation should instead come from the organization's approved addressing plan and avoid overlaps with existing networks.
An eBGP session normally runs over TCP port 179. Before the peers exchange BGP OPEN messages, the underlying IP path and TCP connection must work. The OPEN exchange negotiates capabilities and checks session parameters, including the peer ASN. KEEPALIVE messages maintain the session, while UPDATE messages carry advertisements and withdrawals. A session in Established state proves that the BGP protocol exchange has reached its operational state, but says nothing by itself about whether a particular prefix passed import policy.
The AS_PATH attribute records the sequence of autonomous systems through which an advertised route has passed. A router ordinarily rejects a route containing its own ASN, protecting against an important class of routing loops. Sharing an ASN among spines works for the simple topology shown because traffic between leaves traverses one spine and the leaves have distinct ASNs. Extending the same numbering scheme into a multi-tier fabric without reviewing loop prevention can unexpectedly suppress routes. Avoid enabling exceptions to AS loop checks simply to make a laboratory route appear.
02 / BGP session progression
| Link | Leaf address | Spine address |
|---|---|---|
| A–S1 | 192.0.2.0/31 | 192.0.2.1/31 |
| A–S2 | 192.0.2.2/31 | 192.0.2.3/31 |
| B–S1 | 192.0.2.4/31 | 192.0.2.5/31 |
| B–S2 | 192.0.2.6/31 | 192.0.2.7/31 |
From session establishment to usable routes
The BGP finite state machine describes the progression through Idle, Connect, Active, OpenSent, OpenConfirm and Established. Active does not mean the session is successfully exchanging routes; it commonly indicates that the speaker is attempting to establish a TCP connection. A persistent Active state should direct attention toward peer addressing, interface state, access controls, TCP connectivity and the remote listener. An OPEN-related failure instead calls for inspection of the negotiated parameters and notification reason.
Once established, a peer can send an UPDATE advertising a network prefix and associated path attributes. On receipt, the router applies inbound policy, evaluates path eligibility and compares the candidate with other available paths. The selected route may be exported to other neighbors subject to outbound policy. These operations are distinct from the installation of a forwarding entry. A route can be received and rejected, accepted but not selected, selected but not installed, or installed but unusable because the underlying adjacency is broken.
For the sample fabric, Leaf B originates its attached 10.10.2.0/24 network. Spine 1 and Spine 2 receive the prefix with AS_PATH 65002. When they advertise it to Leaf A, their own ASN is prepended, producing 65100 65002. Leaf A can therefore see two candidates with the same AS path and different next hops. The next hops are the spine-facing link addresses in this directly connected eBGP design. The reverse route from Leaf B toward Leaf A must be checked independently; successful forward reachability does not imply a valid return path.
An explicit prefix policy at the leaf should permit only the networks the leaf is authorized to originate. The spine should validate the expected origin prefixes per neighbor. In a real deployment, policy generation should be driven by the inventory and tested before rollout. A default-deny policy limits accidental propagation, but it can also suppress legitimate reachability when an inventory entry is missing. Operators must distinguish intentional policy rejection from protocol failure using route inspection and policy counters.
03 / Prefix propagation
FRRouting and the Linux forwarding boundary
FRRouting is a routing software suite that can run on Linux systems. In a typical FRR deployment, bgpd implements BGP and zebra coordinates routing information and interaction with the operating system. The Linux kernel maintains forwarding tables used by the software data path. On a hardware switch, a platform-specific integration may additionally program an ASIC. Running FRR on a general-purpose Linux host does not automatically provide the throughput or buffering characteristics of a production high-speed switch.
The BGP routing information base contains protocol-specific path information. Zebra evaluates routes from supported routing protocols and communicates selected forwarding state to the kernel. A route visible in the BGP table is therefore not sufficient proof that packets will use it. Inspect the kernel route for the exact destination, including its routing table or VRF context, and check the neighbor entry used for the selected next hop. Policy routing rules can also change the lookup context, so an inspection performed in the default routing table may not represent the workload's actual path.
The example configuration below illustrates Leaf A with two directly connected eBGP peers and an explicit export policy. Interface addressing and IP forwarding must be configured separately. The network statement assumes that the exact connected prefix exists in the local routing table. The configuration is intentionally small and should be adapted to the installed FRR release and deployment platform. It is not a complete security baseline or a ready-to-paste production configuration.
A common operational mistake is to troubleshoot the BGP daemon while ignoring the interface and neighbor state underneath it. For example, an installed route may reference a directly connected next hop whose ARP resolution is incomplete. In this situation, the routing decision is present but the Ethernet forwarding adjacency is not usable. Conversely, a successful neighbor resolution only proves local link connectivity; it does not demonstrate that the remote leaf has a route to the destination host. Follow the dependency chain in both directions.
04 / Routing to forwarding
Illustrative Leaf A configuration
ip prefix-list OWN seq 10 permit 10.10.1.0/24 ip prefix-list REMOTE seq 10 permit 10.10.2.0/24 route-map EXPORT permit 10 match ip address prefix-list OWN route-map IMPORT permit 10 match ip address prefix-list REMOTE router bgp 65001 bgp router-id 10.255.0.1 neighbor 192.0.2.1 remote-as 65100 neighbor 192.0.2.3 remote-as 65100 address-family ipv4 unicast network 10.10.1.0/24 neighbor 192.0.2.1 route-map EXPORT out neighbor 192.0.2.3 route-map EXPORT out neighbor 192.0.2.1 route-map IMPORT in neighbor 192.0.2.3 route-map IMPORT in maximum-paths 2 exit-address-family
Multipath eligibility and forwarding behavior
Equal-cost multipath forwarding is particularly important for GPU fabrics because the topology provides parallel paths between racks. BGP normally selects a best path using attributes and tie-breaking rules. Multipath configuration permits additional eligible paths to be installed alongside that best path. Eligibility depends on the implementation and configured policy; identical link speeds alone do not make BGP paths equal. Differences in local preference, AS path, origin, MED comparison or next-hop reachability can affect the outcome.
In the sample topology the shared spine ASN produces identical AS paths at Leaf A for Leaf B's prefix. With suitable multipath configuration and otherwise equivalent attributes, both spine next hops can be installed. If the spines instead use distinct ASNs, the AS paths differ even if their lengths are equal. FRR provides a multipath relaxation option for certain designs, but it should be enabled only after understanding its effect on path eligibility and policy. It is not necessary for the simple shared-spine ASN example.
The forwarding plane typically chooses a next hop using a hash of selected packet fields. The precise fields and algorithm depend on the platform and configuration. Multiple installed paths do not guarantee that a small number of large flows will distribute evenly. Two long-lived flows may hash to the same uplink while another uplink remains idle. A GPU communication benchmark should therefore examine per-link utilization and per-flow behavior rather than assume that total installed bandwidth is fully available to each transfer.
Consider two 400 Gb/s uplinks on a leaf. Their nominal aggregate capacity is 800 Gb/s in one direction, but a single ordinary flow assigned to one uplink cannot exceed that link's nominal capacity. If one uplink fails, the remaining aggregate capacity becomes 400 Gb/s. A workload offering 600 Gb/s can remain reachable while exceeding the surviving capacity by 200 Gb/s. Routing convergence and capacity recovery are separate acceptance conditions. The next section will examine hashing and data-plane forwarding in greater detail.
| State | What it proves | What remains unknown |
|---|---|---|
| Established | BGP session operational | Prefix acceptance |
| Best path | BGP selected candidate | Kernel installation |
| Multipath FIB | Multiple next hops installed | Flow distribution |
| Application test | Observed workload behavior | Other failure scenarios |
Failure detection and convergence
A physical link failure may be detected by the interface driver and propagated to the routing process. Other failures leave the interface electrically operational while traffic is lost farther along the path. BGP hold timers can detect loss of peer communication, and Bidirectional Forwarding Detection may provide faster detection when supported and appropriately configured. Aggressive timers should not be chosen without considering CPU scheduling, platform support, control-plane congestion and the consequences of false failure detection.
Convergence is a sequence of events rather than a single timestamp. The failure must first be detected, the affected path must be invalidated, alternative routes must be selected, forwarding entries must be updated, and traffic must resume on the surviving path. Each stage has its own observable evidence. A measurement that stops when the BGP session goes down omits the time required to restore useful forwarding. A measurement that uses only an application completion time may hide which part of the network caused the delay.
During planned maintenance, graceful shutdown procedures and controlled traffic draining can reduce disruption when supported by the routing design. Graceful restart is a different mechanism: it can preserve forwarding state during a control-plane restart under specified conditions. Retaining stale routes is not inherently safe when the forwarding path has actually failed. The engineering decision must account for the platform's ability to preserve forwarding state and the failure modes that the mechanism is intended to address.
After a withdrawal, confirm that the removed next hop is absent from the relevant forwarding entry and that the surviving next hop resolves correctly. Then measure traffic on the remaining link and compare it with the degraded capacity budget. A training job may continue at a lower rate, experience transport retries or fail because its application timeout is exceeded. These outcomes depend on workload and transport behavior and should not be inferred solely from the BGP state.
05 / Convergence evidence
Production investigation: established but unreachable
Consider a synthetic incident in which a new GPU rack is commissioned as Leaf B. Both spine sessions are Established, and the rack can reach its directly connected peers. Nevertheless, workers in Leaf A cannot establish communication with workers in Leaf B. The initial hypothesis that the entire fabric is down is contradicted by the healthy adjacency evidence. The investigation should narrow the problem to the missing remote compute prefix and determine the first boundary at which the expected route disappears.
At the originating leaf, the connected route for 10.10.2.0/24 is present and the BGP network statement is correct. The outbound prefix list, however, was copied from an earlier rack and permits only 10.10.3.0/24. The new prefix is not exported to either spine. Both spines remain healthy and continue to exchange unrelated routes. Leaf A therefore has no specific route for the new rack. In this example there is no default route in the backend routing domain, so packets to the new prefix fail the forwarding lookup.
The correction is to update the authorized export policy to match the inventory, validate the change, and apply it through the approved configuration workflow. Inspect the advertised routes at Leaf B, the received and selected paths at each spine, and the installed multipath route at Leaf A. Check the reverse direction and the host's default gateway or routing configuration. Finally, run a controlled application communication test using the intended interface and transport. All diagnostic output in this article is illustrative, not captured from a live device.
The operational lesson is that session dashboards must be accompanied by prefix-level and forwarding-level checks. A monitoring system that counts established sessions alone would report this incident as healthy. A more useful acceptance check compares expected prefixes with actual advertisements, confirms the number of eligible next hops, and tests reachability from the correct network namespace or routing instance. The inventory becomes the basis for both deployment automation and ongoing validation.
06 / Policy incident
| Relative time | Synthetic evidence | Interpretation |
|---|---|---|
| T+0 | Sessions Established | Adjacencies healthy |
| T+2 min | Origin prefix present | Local route exists |
| T+4 min | Advertised prefix absent | Export policy mismatch |
| T+8 min | Policy corrected; two paths installed | Control plane recovered |
| T+10 min | Bidirectional workload test passes | Application validation |
vtysh -c "show bgp ipv4 unicast summary" vtysh -c "show bgp ipv4 unicast 10.10.2.0/24" vtysh -c "show bgp ipv4 unicast neighbors 192.0.2.5 advertised-routes" ip route get 10.10.2.10 ip neigh show ip -s link show
Run the advertised-routes command on Leaf B; run the destination route lookup on Leaf A. Interface and neighbor inspection should be performed on the affected node.
Production acceptance and operational ownership
A production fabric should have a repeatable acceptance procedure that starts before BGP is enabled. Verify interface naming, link addressing, negotiated speeds and the expected peer ASN on each point-to-point connection. Check that management access remains independent of the compute fabric. Validate the configuration offline where possible, then introduce routing in a controlled sequence. Record the expected number of neighbors and prefixes for each switch rather than relying on a global count that may conceal a missing rack.
Once the control plane is established, compare the actual advertised and received routes against the intended inventory. Inspect next-hop resolution and the forwarding entries in the correct routing instance. Test traffic between representative hosts on every rack pair and examine the return path. For a hardware deployment, verify the platform-specific forwarding programming and counters as well as the software routing state. A Linux route listing is not proof of ASIC installation on every platform.
Resilience testing should include the loss of a single uplink and the removal of a spine, with a documented expected impact on path count and available capacity. Capture timestamps for failure detection, route withdrawal, forwarding change and application recovery. Restore the topology and confirm that the original path count returns without unexpected route advertisements. Perform disruptive tests only in a controlled environment or approved maintenance window with rollback and independent management access.
Finally, connect routing telemetry to the application measurements. Record the workload's offered traffic, transport retry behavior, collective completion times and per-link utilization alongside routing events. A route change that leaves all prefixes reachable can still reduce available bandwidth or alter flow placement. The underlay is ready when its observed behavior satisfies the documented workload requirements under both normal and agreed degraded conditions, not merely when every neighbor reports Established.
FRRouting BGP Fabric Control Plane Simulator
V10 Platinum Signature • Establish, advertise, select, install, forward.
Investigate a two-spine routed fabric carrying GPU rack prefixes. Follow the control plane from TCP adjacency to kernel forwarding, then test the resulting data path.
01 / Mission control
02 / Routing configuration
03 / Fault injection
04 / Live fabric topology
Cyan: established adjacency • Gold: selected path • Red: failed adjacency • Grey: not established05 / BGP neighbour FSM
06 / UPDATE and AS_PATH inspector
07 / Import and export policy
08 / Adj-RIB-In and best path
09 / Zebra and kernel FIB
10 / Packet journey
11 / FRRouting diagnostic console
Illustrative output, not captured from a running FRRouting instance.12 / Engineering event ledger
13 / Production recovery challenge
Load the export policy incident. Restore both paths, permit the prefix, install two next hops and complete the forwarding journey. Then remove one spine and verify degraded connectivity.
14 / Engineering interpretation
An Established session confirms successful BGP negotiation, not prefix acceptance. An export filter can suppress a route without disrupting the adjacency. A valid BGP path must also resolve its next hop and be installed by the routing manager before packets can use it. Multipath eligibility is separate from the maximum-paths setting: raising the limit cannot make unequal candidates equivalent.
In this model both spines share an ASN and both paths have equal attributes except the configurable MED. MED is compared because the neighbouring AS is the same. The source leaf rejects paths containing its own ASN. Real FRRouting deployments require explicit neighbour configuration, policy, connected reachability and platform-specific forwarding validation.
Model boundaries: IPv4 unicast only; deterministic stages rather than wire-level TCP/BGP; no timers, BFD, route refresh, actual kernel programming or hardware ECMP hashing. Configuration changes restart the staged convergence model. Withdrawals clear the modeled route immediately and then replay convergence. The lab is not a production configuration generator.
ECMP and Data Plane Forwarding
Multipath forwarding · Flow hashing · Elephant flows · Network polarisation
PLATINUM SIGNATURE · V10 STANDARD · EDITORIAL 05
From route selection to packet forwarding
A routed AI fabric separates the decision about where a destination is reachable from the mechanism that moves individual packets. BGP may select several eligible paths to a compute prefix; the routing manager then attempts to install a multipath route in the forwarding information base. The forwarding implementation resolves the destination address using longest-prefix matching and selects a member of the resulting next-hop group. Finally, adjacency information identifies the outgoing interface and link-layer rewrite. Each boundary can fail independently, so an operator should never infer the contents of the hardware forwarding table solely from a BGP summary.
Consider a leaf with four 400 Gb/s uplinks to four spines. All four spines advertise the same destination rack prefix with equivalent attributes. The source leaf can install four next hops if its configuration, platform and path eligibility rules allow it. The resulting 1.6 Tb/s aggregate uplink budget describes the sum of nominal link rates in one direction, not the throughput available to an arbitrary single transfer. A conventional flow hash normally selects one member for a given flow, limiting that flow to the capacity of its chosen path and any other bottleneck along the journey.
The packet itself does not contain a BGP AS_PATH. The forwarding device reads the packet headers, performs the lookup and uses local forwarding state. On an ordinary routed Ethernet hop, the device decrements the IP TTL or hop limit and rewrites the Ethernet header for the next adjacency. The IPv4 header checksum is updated when necessary. These operations are independent of whether the destination is a GPU server, a storage endpoint or a conventional application host. Transport-specific acceleration at the endpoints does not remove these basic routing responsibilities.
A useful acceptance test records the route, the resolved next-hop group, the actual outgoing interfaces and the observed traffic on those interfaces. On Linux, ip route show and ip route get provide different views: the former displays installed routes, while the latter performs a lookup for supplied packet attributes. On an offloaded switch, platform-specific hardware inspection may be required to confirm that the software state has reached the ASIC. A successful lookup is evidence of a forwarding decision, not proof that a packet arrived at the remote application.
01 · Forwarding pipeline
Flow hashing and the entropy budget
Equal-cost multipath forwarding commonly uses a deterministic hash of selected packet fields. A typical IPv4 or IPv6 transport flow can be identified by source and destination addresses, protocol and source and destination ports. The exact fields, seed, algorithm and member mapping depend on the platform and configuration. Some devices include additional fields or support configurable inner-header parsing for encapsulated traffic. Engineers should document the actual hash profile instead of assuming every device uses the same five-tuple.
The objective of stable per-flow hashing is to keep packets of a flow on a consistent path while spreading independent flows across the available next hops. This reduces the risk of reordering caused by different propagation delays or queue occupancies. A hash result may be mapped to a bucket, and a bucket may point to a next-hop member. This indirection allows some implementations to update selected buckets when membership changes, rather than recalculating the placement of every flow. The number of buckets and the update algorithm are implementation details, not properties guaranteed by BGP.
RoCEv2 encapsulates RDMA transport in UDP/IP. Its UDP destination port is conventionally 4791, and the source port can supply entropy for network load balancing. The relationship between queue pairs and source-port selection depends on the adapter and software. A workload with many queue pairs may create useful entropy, but it does not guarantee independent or uniformly distributed hashes. Changing an application configuration to increase connection diversity should therefore be evaluated using actual transport and collective performance measurements.
A hash collision in this context means two distinct flows select the same forwarding member. It does not imply a cryptographic failure or corrupted packets. With four equal members and two independent uniformly mapped flows, the probability of both selecting the same member is one quarter. With four independent flows, the probability that all four occupy different members is 4 factorial divided by 4 to the fourth power, approximately 9.375 percent. These are illustrative probability calculations, not a prediction of any particular switch hash. They explain why small numbers of large flows can create imbalances even when the algorithm is functioning as designed.
02 · Hash entropy
Elephant flows and capacity concentration
AI training communication often differs from a workload consisting of thousands of small web requests. Collective operations may produce sustained transfers between a limited set of endpoints, with synchronized bursts as workers reach the same communication phase. A few high-rate flows can dominate the offered load. Counting connections without measuring their rates can therefore give a misleading impression of distribution. Four flows on each link are not equivalent if one link carries four large transfers and the others carry mostly control traffic.
Take four 300 Gb/s offered flows and four 400 Gb/s links. The aggregate demand is 1.2 Tb/s against 1.6 Tb/s of nominal capacity. If two flows select the first link and one selects each of the next two, the offered loads are 600, 300, 300 and zero Gb/s. The first link has a 200 Gb/s excess even though the fabric has 400 Gb/s of aggregate headroom. The sum of per-link service ceilings is only 1.0 Tb/s for this placement, assuming independent links and no transport response. The unused fourth link cannot automatically serve traffic assigned to the first.
A queue absorbs a transient mismatch between arrival rate and service rate. It does not create bandwidth. In a simplified fluid model, a sustained 200 Gb/s excess corresponds to 25 GB per second of queue growth before congestion control, backpressure or drops intervene. A real queue has finite capacity, shared buffer constraints and implementation-specific thresholds. The example is deliberately not a prediction of buffer occupancy on a particular switch; it illustrates why persistent oversubscription of a single member requires a change in offered traffic or path placement.
Engineers should inspect both average and short-interval utilization, queue occupancy, discard counters and congestion signals. A low average over a five-minute polling window can hide short bursts that disrupt collective completion. Conversely, a link operating near line rate is not automatically faulty if its queues remain bounded and application objectives are met. The meaningful question is whether the distribution of traffic creates unacceptable completion time, loss or congestion propagation under the expected workload.
03 · Elephant flow concentration
| Member | Offered Gb/s | Service ceiling Gb/s |
|---|---|---|
| 1 | 600 | 400 |
| 2 | 300 | 300 |
| 3 | 300 | 300 |
| 4 | 0 | 0 |
Polarisation and correlated path selection
Hash polarisation occurs when forwarding decisions are correlated in a way that repeatedly concentrates traffic on a subset of available resources. In a multi-tier topology, identical or related hash inputs and mapping decisions can reduce the effective diversity of paths. It is not sufficient to count all theoretical paths through a graph: the workload must actually exercise them. In a simple two-tier Clos, the source leaf chooses a spine and the spine usually has a direct link to the destination leaf; additional independent choices arise in larger multi-stage fabrics.
A design review should distinguish the physical path count from the number of eligible forwarding members and from the observed distribution of bytes. A fabric may have eight physical paths, four installed paths after policy and only two heavily used paths because of workload entropy. These are different measurements and call for different remedies. Adding a spine will not correct a route-policy restriction, and changing a routing policy will not necessarily correct a collision among otherwise eligible paths.
Hash seeds and field selection can be adjusted on some platforms to reduce correlations, but a change can remap live flows and introduce transient reordering. Such changes require a maintenance plan, a documented baseline and a rollback procedure. Testing should use representative traffic matrices, including multiple source racks, destination racks, queue pairs and collective patterns. A single synthetic flow is useful for proving reachability but is not a sufficient distribution test.
Encapsulation adds another boundary. If a switch hashes only the outer tunnel addresses and those addresses are identical across many inner flows, the available entropy may be much smaller than the application connection count suggests. Some encapsulations provide an outer UDP source port derived from inner traffic, while some hardware can parse inner headers directly. The correct approach is to verify the configured encapsulation and parser behaviour rather than assume that all tunnel traffic will spread evenly. For a routed RoCEv2 backend without overlays, the relevant fields are those actually present on the compute network.
04 · Correlated choices
Resilience, remapping and packet ordering
When a spine or uplink fails, the forwarding group must stop using the affected adjacency. Physical failure detection, routing convergence, routing-manager updates and hardware programming may occur on different timescales. During the transition, some packets can be lost or delayed. Once the surviving group is installed, traffic may be redistributed, but the new placement can create congestion even if the remaining aggregate capacity appears sufficient. Availability and performance must be tested separately.
A simple modulo mapping changes the selected member when the group size changes. For a uniform integer hash mapped by remainder, changing from four members to three can remap a substantial fraction of flows. Resilient hashing uses an indirection or equivalent mechanism intended to reduce unnecessary movement, often retaining buckets associated with surviving members. The precise guarantees depend on the implementation, and restoration of a failed member can itself trigger redistribution. Do not equate resilient hashing with zero packet loss or zero reordering.
Per-packet spraying can use multiple paths more aggressively, but unequal delays can cause packets to arrive out of order. Flowlet switching attempts to exploit gaps between bursts to change paths with less reordering risk; the appropriate gap depends on differential path delay and queueing. Adaptive routing can use congestion information to select paths, but its behaviour depends on switch and transport capabilities. These techniques should be evaluated as an end-to-end system, particularly where RDMA transport behaviour and receiver capabilities matter.
For a maintenance exercise, establish a baseline using representative traffic, record the installed next-hop group and collect per-member byte rates. Remove one spine under controlled conditions and observe detection, forwarding-group update, transient loss and application completion time. Restore the spine and repeat the measurements. The acceptance criteria should include both reachability and a degraded-mode performance budget. A test that checks only whether ping succeeds after convergence misses the capacity and ordering consequences of the change.
05 · Failure and remapping
| Technique | Benefit | Trade-off |
|---|---|---|
| Per-flow ECMP | Stable path | Elephant collisions |
| Resilient hashing | Reduced remapping | Platform dependent |
| Flowlet switching | More path diversity | Gap sensitivity |
| Packet spraying | Fine-grained distribution | Reordering risk |
Production investigation: the idle fourth uplink
The following incident is synthetic and designed for engineering education. A four-spine fabric supports a distributed training job with four dominant transfers, each offering approximately 300 Gb/s. Operators observe a rise in collective completion time while BGP sessions remain established and the destination prefix has four installed next hops. No physical link failure is reported. The initial hypothesis that the fabric lacks aggregate capacity is plausible but incomplete: the nominal uplink budget is 1.6 Tb/s and the offered load is 1.2 Tb/s.
The investigation begins with a synchronized observation window. The routing team verifies that the destination prefix has four eligible and installed next hops. The network operations team compares interface byte deltas over the same interval and observes one saturated link, two moderately utilized links and one nearly idle link. Queue telemetry on the saturated member shows sustained pressure. The application team identifies four dominant transfers rather than a large population of independent flows. Together these observations support a distribution hypothesis, although they do not independently establish the exact hash inputs.
A controlled laboratory reproduction uses four traffic streams with fixed endpoints and ports. The team changes one stream's source port and observes a different member selection on the test platform. This is evidence that the tested field influences placement, not a universal rule for all switches. The production remediation is chosen only after validating the adapter and workload configuration: increase useful flow diversity or adopt a supported load-balancing mechanism, rather than blindly changing every switch hash seed. The test is repeated with the same offered load and a representative collective operation.
Recovery requires more than a balanced interface chart. The team verifies that the destination remains reachable, the expected next-hop group is installed, congestion indicators improve and the collective completion-time distribution returns to its agreed baseline. It also checks for new reordering, retransmissions or transport errors. If the change improves average utilization but worsens tail completion time, it has not met the application objective. The incident record should retain the original traffic matrix, timestamps, configuration changes and rollback criteria so the next investigation can distinguish a recurrence from a different failure.
06 · Evidence chain
| Relative time | Synthetic evidence |
|---|---|
| T+0 | Collective slowdown |
| T+5 min | Four next hops installed |
| T+10 min | One saturated uplink; fourth idle |
| T+20 min | Controlled flow placement reproduction |
| After change | Repeat workload and validate tail completion |
Operational evidence and engineering acceptance
A production fabric acceptance plan should define a traffic matrix before measuring throughput. Identify the source and destination racks, number of simultaneous transfers, expected transfer sizes, directionality and communication phases. Specify whether the workload is training, inference, storage access or a combination. A single aggregate bandwidth number cannot describe all these cases. The matrix should include both normal operation and the expected degraded topology during maintenance.
Collect evidence at the application, transport, host, routing and forwarding boundaries. Application metrics reveal completion time and synchronization delays; transport counters reveal retries or congestion feedback; host counters reveal adapter and PCIe constraints; routing inspection establishes eligible paths; switch telemetry reveals actual member utilization and queues. Use a common time reference and record counter intervals. Without time alignment, a routing event and a performance event may appear correlated simply because they occurred in the same broad reporting window.
For Linux forwarding inspection, route lookups can include source address, protocol and transport ports where supported. The kernel's multipath hash policy is configurable, and a Linux software router is not necessarily representative of a hardware switch. FRRouting supplies routing state, but it does not prescribe the ASIC's hash implementation. In a practical lab, compare the kernel route with FRRouting output and then use packet capture or interface counters to verify the actual egress. On production switches, consult the platform's supported hardware forwarding and telemetry commands.
Finally, record the limits of the test. A successful four-flow experiment does not establish that a thousand-worker collective will scale, and a balanced synthetic workload does not establish that every production traffic matrix is balanced. Define measurable objectives for throughput, tail latency, congestion, loss and recovery, and repeat the tests when topology, firmware, adapter configuration or workload scheduling changes. The next section extends this foundation into RDMA transport, where memory registration, queue pairs and completion semantics add further boundaries to the same end-to-end engineering problem.
Illustrative Linux / FRRouting inspection
vtysh -c "show bgp ipv4 unicast 10.10.2.0/24" vtysh -c "show ip route 10.10.2.0/24" ip route show 10.10.2.0/24 ip route get 10.10.2.10 from 10.10.1.10 ipproto udp sport 49152 dport 4791 ip -s link show ethtool -S eth0
Run in the appropriate routing namespace; interface names and command support vary.
Interactive ECMP Flow Distribution and Packet Journey Simulator
V10 Platinum Signature · Hash Engine · Elephant Flows · Resilient Forwarding
Investigate how identical routing costs can conceal unequal offered loads. Build a repeatable experiment, inspect the forwarding decision and recover a congested fabric.
01 / Mission control
Presets are synthetic experiments. Change the tuple, seed or member availability and compare the resulting forwarding assignments.
02 / Hash engine
03 / Failure injection
Member failures remove candidates. Background traffic consumes capacity before the modeled GPU workload.
04 / Flow tuple editor
| Flow | Source IP | Destination IP | Source port | Destination port | Protocol | Gb/s |
|---|
05 / Animated forwarding fabric
Gold: selected journey · Cyan: available member · Red: overloaded or unavailable member. Animation is conceptual.
06 / Capacity telemetry
07 / Member utilisation
08 / Hash and forwarding bucket inspector
| Flow | Hash (hex) | Member | Second stage* | Remapped? |
|---|
*Second-stage member is an independent hypothetical downstream ECMP group, not another hop in the two-tier diagram. Equal seeds and member sets can correlate selections; different seeds do not guarantee independence.
09 / Failure remapping comparison
Modulo uses the current ordered member list. Rendezvous selects the member with the highest deterministic per-member score. Removing a member preserves assignments to surviving members in this model.
10 / Synthetic forwarding evidence
Illustrative output only; actual Linux and ASIC hash policies vary.
11 / Engineering event ledger
12 / Production recovery challenge
Recover a four-flow 1.2 Tb/s workload with four 400 Gb/s links. Then investigate the impact of a member failure. A passing baseline requires all four flows to fit within their selected links.
13 / Engineering interpretation
ECMP installs multiple eligible next hops, but typically assigns a flow to one member to preserve ordering. Four 300 Gb/s flows on four 400 Gb/s members may fit perfectly or overload a member while another remains idle. Aggregate capacity is necessary but not sufficient.
RoCEv2 commonly uses UDP source-port entropy to distribute queue pairs. The exact fields, hash seed, indirection tables and adaptive mechanisms depend on the platform. This lab uses an illustrative FNV-1a hash, not a vendor ASIC algorithm. The service ceiling sums the smaller of offered load and available capacity for each member. It does not predict queue depth, latency, packet loss, RDMA retransmission or collective completion time.
In production, inspect per-member counters and queue telemetry alongside application performance. Validate flow diversity and failure behaviour under representative traffic before changing hash policy. A seed change can move established flows and may cause transient reordering. Never assume a successful ping proves capacity readiness.
Further study: RFC 2992 (ECMP analysis), RFC 2991 (multipath issues), FRRouting documentation and your switch platform's forwarding documentation.
RDMA and RoCEv2 Architecture
Remote Direct Memory Access · Queue Pairs · Memory Registration · GPUDirect RDMA
PLATINUM SIGNATURE · V10 STANDARD · EDITORIAL 06
Memory-to-memory transport
RDMA changes the division of labour between the application, operating system and network adapter. In a conventional socket application, the process submits data to a transport stack and the kernel manages protocol state, buffering and delivery. Modern socket implementations can already reduce copies and offload substantial processing, so the comparison is not simply software versus hardware. The distinctive feature of RDMA is an interface through which an application describes memory operations and allows a capable adapter to execute them against registered buffers. The application establishes resources and submits work; the adapter handles much of the subsequent transport processing.
Consider a distributed training worker that needs to exchange a gradient buffer with another worker. The sender must know which communication endpoint to use, which local buffer contains the data and which operation the peer has agreed to accept. For a remote write, the sender additionally needs a remote address and a valid remote key. The receiving adapter validates the operation against its registered memory permissions before placing the data. A successful transfer therefore depends on more than a reachable IP address: the transport context and memory access contract must also be correct.
Kernel bypass is a useful description of the fast path, not a claim that the operating system disappears. Resource creation, device access, memory registration, page pinning or on-demand paging, isolation and error recovery involve operating-system and driver responsibilities. User-space libraries expose verbs and may map device doorbells and completion queues into the process. The exact division of work depends on the adapter and driver. An engineer should inspect the actual device capabilities rather than assuming every operation is offloaded identically.
For an AI cluster, the benefit is often reduced CPU involvement and predictable data movement at high rates. However, the workload may still be constrained by GPU execution, PCIe topology, memory bandwidth, message size or synchronization. A network benchmark that transfers large buffers between host memory regions does not automatically establish the performance of a GPU collective. Acceptance must include both transport-level evidence and the application communication pattern.
01 · Memory-to-memory journey
Queue pairs and the verbs contract
A queue pair, or QP, provides a transport endpoint with send and receive work queues. A work request describes an operation and references one or more scatter-gather entries. The provider converts the request into device-specific work queue elements. A doorbell notifies the adapter that work is available; completion queues expose completion records to the application. Queue depth limits the number of outstanding requests and therefore affects the amount of work that can be kept in flight.
Reliable Connected transport is a common choice for RDMA workloads requiring reliable ordered delivery within a connection. A QP typically progresses through RESET, INIT, RTR and RTS states before normal send operations can proceed. Configuration includes local port selection, peer QP information, packet sequence numbers and path parameters. Connection management can exchange these parameters through RDMA CM or another application-specific mechanism. The existence of an Ethernet link does not imply that this exchange has succeeded.
A SEND operation requires a suitable receive buffer to have been posted by the remote endpoint. A remote WRITE places data into a permitted remote memory region without consuming an ordinary receive work request, although WRITE with immediate has additional receive-side requirements. A READ requests data from a remote registered region and places the returned bytes into local memory. Atomic operations are subject to device support, alignment and access permissions. These distinctions matter when diagnosing receiver-not-ready errors: posting more receives may fix a SEND workload but does not repair an invalid remote key.
Completion semantics must be interpreted precisely. A successful local completion permits the application to reuse resources according to the operation and provider semantics; it does not establish that the remote application has consumed the data. Applications need an explicit notification or synchronization protocol before treating a remote buffer as ready for computation. Unsignaled work requests can reduce completion processing overhead, but the application must still manage queue occupancy and periodically obtain completion evidence. Polling can reduce notification latency while consuming CPU resources; event-driven completion can be appropriate for less latency-sensitive workloads.
02 · Queue pair lifecycle
| Operation | Remote requirement | Completion caveat |
|---|---|---|
| SEND | Posted receive | Receiver must process buffer |
| WRITE | Remote address and writable rkey | Separate application notification |
| READ | Remote readable region | Local returned data available |
Memory registration and protection
A memory region establishes an adapter-visible mapping and access permissions for a buffer. Registration returns a local key, commonly called lkey, and a remote key, or rkey, when remote access is supported. A local scatter-gather entry identifies a buffer address, length and local key. A remote operation carries the remote address and key supplied by the peer. The receiving adapter checks that the requested range and operation are permitted. A protection domain associates resources and helps prevent unauthorized combinations of queue pairs and memory regions.
Traditional registration may pin pages and establish device address translations, which has a cost. Repeatedly registering and deregistering small buffers on a hot path can undermine the latency advantage of RDMA. Applications often reuse registered buffers or maintain a registration cache. On-demand paging and other provider capabilities can change the cost model, but must be verified for the actual memory type and device. Long-lived registration also consumes resources, so caching needs limits and lifecycle management.
An rkey is a capability-like access token, not an encrypted authentication protocol. It must be distributed only to the intended peer and invalidated or replaced when the associated access is no longer needed. Network segmentation, endpoint authorization and application identity remain necessary. A remote peer with a valid key and address can exercise the permissions granted by the region; granting remote write to a larger buffer than necessary increases the potential impact of a software defect. Avoid exposing unrelated application state in a broadly writable region.
A local protection error points toward local buffer registration, bounds or access checks. A remote access error suggests that the remote address, key or permissions may be incorrect. Neither error is repaired by adding spine switches. A diagnostic record should capture the work request identifier, operation, completion status, QP state and registration lifecycle without exposing live keys or sensitive buffer contents. The same application can have healthy network reachability while a stale registration prevents every transfer from completing.
03 · Memory protection boundary
RoCEv2 across routed Ethernet
RoCEv2 carries InfiniBand transport semantics over UDP/IP and Ethernet. Unlike RoCEv1, which uses a layer-two Ethernet encapsulation, RoCEv2 can traverse an IP-routed fabric. UDP destination port 4791 identifies RoCEv2 traffic; the source port can provide entropy for multipath forwarding. The base transport header contains fields including the destination QP and packet sequence number. Additional transport headers depend on the operation, and an invariant CRC provides transport integrity checks distinct from Ethernet FCS.
A router does not need to understand the remote memory operation to forward the packet. It performs an IP lookup, selects a next hop, updates hop-related fields and rewrites the link-layer header. The endpoint adapter interprets the RDMA transport headers. This separation permits an eBGP underlay to carry RoCEv2 traffic without BGP distributing memory addresses or queue pair state. IP reachability and transport readiness remain independent acceptance gates.
The source UDP port is important because multiple QPs between the same IP endpoints can otherwise concentrate on a single ECMP member. The exact entropy mapping is implementation-dependent. Inspect the switch hash profile and measure per-member traffic under the intended workload. A capture from a host interface may not show all offloaded traffic, so use appropriate adapter counters or an authorized switch mirror where necessary. Captured headers can support an investigation, but do not reveal whether the remote application has consumed a buffer.
MTU planning requires distinguishing the Ethernet frame size, IP MTU and RDMA path MTU. The verbs path MTU is selected from supported values and is not simply the Ethernet jumbo-frame setting. A consistent Ethernet MTU must accommodate the encapsulated packets produced by the selected transport configuration. A small ping can succeed while larger transport packets fail. Validate the actual path and provider configuration, including every relevant interface and routing boundary, rather than relying on a single host setting.
04 · RoCEv2 encapsulation
| Transport | Network boundary | Forwarding |
|---|---|---|
| RoCEv1 | Ethernet L2 | MAC switching |
| RoCEv2 | UDP/IP | IP routing and ECMP |
| iWARP | TCP/IP | IP routing |
GPU memory and PCIe locality
GPUDirect RDMA enables supported peer devices to access GPU memory through suitable mappings rather than requiring every transfer to stage through a CPU memory buffer. The application or communication library registers GPU memory through a supported provider mechanism. The NIC then uses the relevant device mapping to read or write the GPU buffer. This is a peer data path, not a claim that the CPU has no role: software still establishes communication resources, coordinates work and handles exceptions.
The PCIe topology determines which peer transactions are possible and how efficiently they can travel. A GPU and NIC under a suitable shared PCIe switch may have a shorter path than devices attached to different CPU sockets. Root complex behaviour, access control services, IOMMU configuration, driver support and platform firmware can affect peer access. Do not disable isolation mechanisms indiscriminately to improve performance. Verify supported configurations and security requirements with the platform documentation before changing them.
A useful inventory correlates GPU PCI addresses, NIC PCI addresses, NUMA nodes and negotiated link width and speed. The output of nvidia-smi topo -m provides a topology view on supported NVIDIA systems; lspci and sysfs provide complementary PCI and NUMA evidence. These tools describe attachment, not achieved throughput. A peer-memory benchmark using the intended GPU and adapter is necessary to distinguish a supported mapping from an efficient one.
Synchronization is equally important. A GPU kernel must finish producing a buffer before the NIC reads it, and the receiving GPU must not consume incoming data prematurely. The required ordering and visibility mechanisms depend on the GPU runtime, communication library and platform. A transport completion alone is not a universal GPU memory visibility guarantee. Use the supported synchronization contract of the communication library. Incorrect ordering can produce silent data corruption or stale results even when network counters show no errors.
05 · GPU peer data path
Transport reliability and congestion
Reliable Connected transport uses packet sequence tracking, acknowledgments and retry mechanisms to maintain reliable communication. Loss, excessive delay and receiver-not-ready conditions can cause retries or eventual completion errors. The exact retry behaviour depends on QP configuration and provider implementation. A retry counter is therefore a symptom to correlate with the network and receiver, not an automatic diagnosis of physical packet loss.
RoCE fabrics commonly use explicit congestion notification and may use priority flow control for selected traffic classes. ECN marks can trigger receiver-generated congestion notification packets, allowing a sender-side congestion control mechanism to reduce its injection rate. PFC pauses a priority on a link when buffer pressure reaches configured thresholds. These mechanisms operate at different scopes: ECN provides end-to-end feedback while PFC is hop-by-hop. PFC is not a substitute for capacity engineering and can propagate congestion or contribute to deadlock under unsuitable designs.
Consider eight workers each sending at 100 Gb/s toward one 400 Gb/s egress. The offered load is 800 Gb/s, so a queue grows at up to 400 Gb/s before feedback reduces injection, assuming no other constraints. That is 50 GB/s, or roughly 50 kB per microsecond. A ten-microsecond response interval could therefore require about 500 kB of additional buffering in this simplified example. Real thresholds depend on packet sizes, link delay, shared buffers, traffic classes and hardware implementation. This calculation is a reasoning aid, not a recommended switch configuration.
The operator should correlate ECN marks, congestion notification counters, pause duration, queue occupancy, drops, transport retries and completion latency over the same time interval. Averages can hide short bursts that disrupt collective operations. A single slow rank can delay a synchronization barrier for the entire job. The next editorial examines congestion control in depth; here the essential point is that reliable memory transport depends on a fabric capable of supporting its traffic pattern.
Production investigation: reachable but no completion
In this synthetic incident, two GPU workers have been restarted after a software deployment. The compute network is reachable and the BGP underlay remains stable. Host-memory RDMA tests between the racks succeed, but the application reports remote access errors during its first GPU buffer exchange. The team initially suspects the new Ethernet switches because the failure appeared during a fabric expansion. The evidence instead directs attention to the memory registration lifecycle.
The investigation begins by preserving the application error and the completion status before restarting processes. The engineer confirms that the intended RDMA device and port are active, then checks the IP route and relevant interface counters. There is no corresponding increase in link errors or congestion indicators during the failed request. The QP reached RTS, and the failure occurs after a remote write is submitted. These observations narrow the fault domain but do not by themselves prove a stale key.
The application team compares the peer metadata generation with the lifetime of the registered GPU buffer. The receiving worker recreated its memory region after restart, but the sending worker reused cached connection metadata from the previous generation. The old remote key no longer authorizes the target region. The corrective action is to invalidate cached metadata on reconnect, exchange the new registration information and reestablish the transport resources as required. The team does not weaken memory permissions or change routing policy to bypass the error.
Recovery requires more than the absence of an error message. The engineers execute a small known-pattern transfer, verify the destination contents after the appropriate synchronization, then increase message size and concurrency. They repeat the worker restart and verify that stale metadata is rejected and refreshed. Finally they run the representative collective workload and compare completion latency and throughput with the baseline. This establishes that the repair addresses both correctness and the operational lifecycle.
06 · Incident evidence chain
| Evidence | Synthetic observation | Interpretation |
|---|---|---|
| BGP and IP | Reachable | Underlay not implicated by test |
| QP | RTS | Connection configured |
| Completion | Remote access error | Inspect remote registration |
| Metadata | Old generation | Refresh access contract |
Illustrative diagnostic commands (run on authorized lab hosts) rdma link show ibv_devinfo ip route get 10.10.2.10 ethtool -S eth0 lspci -vv nvidia-smi topo -m # Inspect application WC status and registration generation separately
Production acceptance and operational ownership
A production acceptance plan should separate physical, network, transport, memory and application tests. Begin with device inventory, negotiated PCIe and Ethernet link properties, firmware compatibility and supported peer-memory capabilities. Confirm the selected RDMA device, port and GID correspond to the intended network. Verify routing and path MTU in both directions. Record the traffic class mapping and congestion control configuration, including any assumptions about lossless priorities.
Next establish a host-memory transport baseline with a suitable verbs benchmark. Record message size, queue depth, number of QPs, direction, duration and CPU affinity so that results are reproducible. Repeat with GPU memory where the benchmark and provider support it. Compare latency distributions as well as throughput. A single peak bandwidth number is insufficient because small-message latency, concurrent transfers and tail completion time can dominate real application behaviour.
Test failures deliberately in a controlled laboratory: remove a fabric member, interrupt a peer, exhaust a receive queue in a SEND test and attempt an operation against a revoked test registration. Each case should have a defined expected outcome and recovery procedure. Never perform destructive tests against production buffers or live workloads without an approved maintenance plan. Capture evidence before and after each test, including the application outcome, not only interface counters.
Ownership should be explicit. Network engineers own routing, link capacity and congestion configuration; platform engineers own PCIe topology, drivers and device provisioning; application engineers own queue management, memory lifetime and synchronization. Shared acceptance criteria prevent a fault from being passed between teams merely because each individual dashboard appears healthy. The engineering goal is a repeatable, observable and correctly synchronized memory-to-memory service, not just a fast Ethernet link.
Validate reachability, transport state, memory permissions, GPU synchronization and workload performance independently.
Further reading: Memory registration verbs · GPUDirect RDMA documentation · rdma-core. Links provided for further study; not independently checked in this edition.
RDMA & RoCEv2 Memory Transfer Simulator
V10 Platinum Signature • From work request to remote memory completion
Investigate reliable connected transport, memory protection and accelerator locality in a deterministic engineering laboratory.
01 / Mission control
Choose an incident, configure the transfer, then step through each gate. Configuration changes invalidate previous execution evidence.
02 / Queue pair configuration
03 / Fault injection
04 / Animated memory journey
Gold marker indicates the current logical operation boundary, not measured packet timing. READ payload returns from responder to initiator.
05 / Transport telemetry
06 / QP state inspector
RESET → INIT → RTR → RTS. Both peers are assumed to progress together in this model.
07 / Memory registration
Local key authorizes local DMA; remote key and access flags authorize one-sided operations. SEND instead requires a posted receive buffer.
08 / Work request and completion
A signaled successful completion does not by itself establish remote application synchronization.
09 / RoCEv2 packet inspector
| Field | Modeled value |
|---|
PSNs represent logical payload segments; READ requests and responses, ACKs and operation-specific header sizes are abstracted.
10 / Transfer decision gates
11 / Synthetic Linux evidence
Illustrative output, not captured from a live host. Inspect actual device counters and completion status when troubleshooting.
12 / Engineering event ledger
13 / Production recovery challenge
Load the stale-key incident. Observe the failed WRITE, refresh the remote key, and execute a successful GPU WRITE of at least 16 KiB with a 400 Gb/s or faster link.
14 / Engineering interpretation
RDMA separates transport readiness from memory authorization. An RTS queue pair and healthy IP route cannot override an invalid remote key. A SEND uses a posted receive buffer; ordinary WRITE and READ do not. GPUDirect RDMA requires compatible devices, drivers, memory registration and topology. This lab assumes reliable connected transport, signaled work requests and symmetric peer setup. It does not implement real verbs, packet serialization, retry timers, congestion control or GPU synchronization. The serialization figure is a payload-only lower bound, not a latency prediction.
Lossless Ethernet and Congestion Management
V10 Platinum Signature Priority Flow Control, ECN, DCQCN, Buffer Headroom, Queue Dynamics and AI Fabric Congestion Engineering Master Edition.
01 — Congestion is a resource problem
A leaf switch receiving traffic from eight GPU workers may have ample aggregate switching capacity and still encounter a bottleneck on a single egress port. The relevant resource is the service rate of that particular queue, not the advertised capacity of the chassis. When arrivals exceed service, occupancy increases. A finite buffer can absorb a burst, but it cannot sustain an indefinite rate mismatch. This distinction explains why a fabric that passes a steady-state bandwidth test may struggle during synchronized collective operations.
Consider four workers each offering 200 Gb/s toward a 400 Gb/s destination link. Ignoring overhead, the excess arrival rate is 400 Gb/s, equivalent to 50 GB/s. A queue with 2 MB of available storage fills in approximately 40 microseconds if that excess persists. This calculation uses decimal units and assumes constant arrivals and service. It is not a prediction of the actual buffer allocation on a particular switch. It does show why second-scale interface polling can completely miss a consequential congestion event.
Lossless operation is an engineering objective for a selected traffic class within a defined operating envelope. It is not a guarantee that every Ethernet frame survives every failure. Link errors, exhausted buffers, misconfiguration and equipment faults can still cause loss. An RDMA reliable connected transport can recover from certain losses, but recovery may increase completion latency and reduce useful throughput. A network that avoids drops by pausing almost continuously may be equally unsuitable for a latency-sensitive training workload.
02 — Priority Flow Control and the pause boundary
IEEE 802.1Qbb Priority Flow Control provides link-local backpressure for individual Ethernet priorities. A receiver experiencing buffer pressure can ask its directly connected transmitter to suspend traffic for a selected priority. Unlike ordinary link-wide pause, PFC can leave other priorities eligible to transmit. This isolation depends on consistent classification and queue mapping throughout the path; a priority number alone does not establish an end-to-end service guarantee.
A PFC frame carries a priority enable vector and pause quanta for the selected priorities. A quantum represents 512 bit times at the link rate. A nonzero pause value requests a bounded pause interval; a zero value can release the corresponding priority. The control frame is consumed on the adjacent link rather than routed through the fabric. Congestion may nevertheless propagate across several hops when each successive device experiences its own buffer pressure and independently generates pause frames.
Suppose a destination leaf cannot drain its GPU-facing egress queue quickly enough. Its ingress buffer accounting may reach a configured pause threshold. The leaf requests that the upstream spine stop transmitting the affected priority. If the spine continues receiving traffic for that destination, its own queues may grow and trigger further upstream pause. This creates a congestion tree. Unrelated flows sharing the paused priority and affected resources may experience head-of-line blocking even when their destinations are otherwise uncongested.
PFC watchdog mechanisms can detect prolonged pause conditions and take platform-specific remedial actions, potentially including dropping traffic to break a persistent blockage. That is a deliberate tradeoff between loss avoidance and network progress. A watchdog is not a substitute for designing a safe dependency topology, validating queue mappings and controlling sustained offered load.
03 — Buffer headroom and threshold engineering
Headroom is storage reserved or otherwise made available for traffic that continues arriving after a pause decision. The sender cannot react instantaneously: the pause frame must be transmitted, propagate along the link, be processed, and affect the transmitter. Frames already in flight must still be accommodated. Device pipelines, maximum frame sizes and implementation-specific accounting contribute to the required margin.
A useful first-order calculation is H = R × T / 8, where R is the incoming line rate in bits per second and T is the total effective stopping interval in seconds. At 400 Gb/s and two microseconds, the result is 100,000 bytes. At 800 Gb/s with the same interval it is 200,000 bytes. These values exclude additional frame and pipeline allowances. They are illustrative lower-order estimates, not recommended production settings. The actual stopping interval must include the relevant round-trip signalling and in-flight data assumptions for the platform.
An XOFF threshold determines when pause is requested; an XON threshold determines when the receiver can safely release it. Separating them introduces hysteresis, reducing rapid pause and resume oscillations. Thresholds must be understood in the context of the ASIC's ingress priority groups, shared pools, egress queues and dynamic allocation rules. An ECN threshold on an egress queue and a PFC threshold on an ingress priority group cannot always be compared as if they were positions on one physical buffer.
Over-reserving headroom can reduce the shared buffer available for useful bursts. Under-reserving it can allow overflow even when pause frames are transmitted correctly. Increasing a threshold without understanding the allocation model may move the failure rather than resolve it. Production validation therefore needs the switch vendor's buffer accounting documentation, actual link distances and speeds, maximum frame sizes, and controlled congestion tests.
04 — ECN: signal before exhaustion
Explicit Congestion Notification allows a congested IP forwarding device to mark eligible packets instead of relying exclusively on drops as congestion signals. The two ECN bits in the IP header distinguish Not-ECT, ECT(0), ECT(1) and Congestion Experienced (CE). A device can change an ECN-capable packet to CE according to its configured marking policy. Non-ECN-capable packets cannot simply be converted into equivalent congestion feedback by marking them CE.
RoCEv2 carries RDMA transport over UDP and IP, so ECN can be applied along a routed fabric. A receiving RDMA adapter that implements the relevant congestion notification behaviour can react to marked traffic by generating congestion notification packets toward the sender. The switch is not directly setting the sending application's rate; it is providing an indication that the endpoint congestion-control mechanism must interpret.
Marking policies may use fixed thresholds or probabilistic marking across a range of queue occupancies. A low threshold may signal transient bursts unnecessarily, while a high threshold may leave insufficient time for endpoint response before backpressure or drops occur. The objective is to signal persistent congestion early enough that the closed-loop response can reduce arrivals while retaining efficient use of the bottleneck.
ECN is not a buffer reservation mechanism. A marked packet still consumes forwarding resources and the feedback loop takes time. If a burst arrives faster than endpoints can react, PFC may still be needed within a design that uses it. Conversely, a carefully validated design may operate without PFC using suitable transport recovery and congestion control. The correct choice depends on the workload, adapters, switches and operational requirements.
05 — DCQCN and endpoint rate control
Data Center Quantized Congestion Notification is an endpoint rate-control approach developed for RoCEv2 environments. In the conceptual feedback loop, a congested switch marks an eligible packet, the receiving adapter generates congestion notification, and the transmitting adapter adjusts its sending rate. The sender subsequently recovers its rate as congestion indications subside. This is a closed-loop system with delayed feedback rather than a centralized bandwidth allocator.
DCQCN maintains congestion-related state and uses rate decrease and recovery mechanisms. Specific parameters, timer behaviour, rate limits and implementation details depend on adapter hardware and firmware. A simplified model that reduces rate by a fixed fraction after every notification can illustrate feedback, but should not be represented as the full DCQCN algorithm. Real implementations may coalesce notifications and maintain state at different granularities.
Imagine two senders sharing a 400 Gb/s bottleneck. Each initially offers 300 Gb/s. The aggregate arrival rate exceeds service by 200 Gb/s. If both reduce their rates to 180 Gb/s after receiving feedback, the queue can drain at 40 Gb/s while that rate persists. Subsequent rate recovery must avoid repeatedly recreating the same overload. The equilibrium is influenced by feedback delay, competing traffic, the recovery algorithm and the distribution of marks among flows.
A sender that ignores congestion notifications can consume disproportionate capacity and force compliant senders to reduce their rates. A feedback path that is impaired can also delay corrective action. Monitoring must therefore distinguish switch CE marking, receiver notification generation and sender notification reception or rate changes. Observing only one of these events cannot establish that the full control loop works.
06 — Production incident: the pause storm
In this synthetic incident, a distributed training job develops long iteration tails immediately after a new group of GPU workers joins the cluster. BGP sessions remain established and all spine links remain operational. Aggregate throughput appears below the installed capacity. Averages obscure a concentrated incast event toward a destination leaf. The incident team must investigate the queue and endpoint behaviour before changing routing policy.
At the first diagnostic boundary, compare per-member traffic rates and queue watermarks over the same workload interval. One destination-facing queue exhibits repeated occupancy peaks while several unrelated uplinks remain lightly loaded. This evidence is consistent with concentrated demand but does not yet prove a congestion-control failure. Check whether the workload's collective pattern and ECMP placement explain the bottleneck.
At the next boundary, compare ECN marks with PFC transmit and receive counters. The affected leaf reports increasing pause transmissions, while the expected ECN marking counter remains flat. Inspect classification, the actual egress queue selected by RoCEv2 traffic, and the marking policy applied to that queue. In this example the new worker traffic is mapped into a priority group with PFC enabled but without the intended egress ECN policy. This is an illustrative configuration mismatch, not a measured incident.
The corrective change is to align classification and marking with the approved fabric profile, after confirming the mapping on every relevant hop. Avoid globally disabling PFC or arbitrarily increasing buffer thresholds as an initial response. A controlled replay should show eligible packets receiving CE marks, receiver congestion notifications and sender rate adaptation. Pause events should be evaluated against the agreed operating envelope rather than assumed to disappear entirely.
Finally, verify the application outcome. Compare collective completion time distributions, useful throughput, RDMA retry counters and queue watermarks before and after the change under equivalent demand. A reduction in pause frames alone is not sufficient if it is accompanied by increased packet loss or slower training. Preserve the configuration diff, workload parameters and timestamped counter deltas as the incident record.
07 — Operational acceptance and engineering ownership
A production fabric needs an explicit traffic-class contract. Document how host DSCP or VLAN priority is mapped into switch traffic classes, ingress priority groups and egress queues. Document which classes use PFC, which are ECN-capable, and how congestion notifications are handled. Verify the contract across host drivers, adapters, switches and any intermediate encapsulation or remarking boundary. A consistent numeric label is not enough if the underlying queue behaviour differs.
Linux tools such as rdma link show, rdma statistic show and ethtool -S can help establish adapter state and available counters. The exact counter names and meanings vary by driver and firmware. Switch CLI and telemetry interfaces are likewise platform-specific. Collect counter deltas over a known interval, check for resets and wraparound, and correlate the observations with the workload. A cumulative pause counter without a time reference is weak evidence of a current problem.
Acceptance testing should cover steady traffic, synchronized incast, mixed priorities, a degraded spine path and sustained overload. Validate that the network can recover after each test and that unrelated traffic retains its intended service. Include a test of the monitoring pipeline itself: if queue peaks are shorter than the sampling interval, use supported watermarks or event telemetry rather than assuming the absence of a sampled peak proves the absence of congestion.
The engineering responsibility spans multiple teams. Network engineers own classification and switch resource policy; platform engineers own adapter firmware and host configuration; application engineers own communication patterns and workload acceptance. Changes to any of these layers can alter the behaviour of the feedback loop. Treat congestion management as a jointly validated system property, not a single switch feature that can be enabled once and forgotten.
A useful operational distinction is between offered traffic and delivered application data. Interface counters include protocol overhead and may include retransmitted traffic. A GPU collective can report poor useful bandwidth even when a physical interface is busy. Compare like-for-like units and measurement boundaries before attributing a performance regression to the network. A reproducible test should record message size, number of participants, placement, direction, duration and concurrent traffic. Without these controls, a change in application performance may reflect a different workload rather than a successful congestion policy adjustment.
Consider also the consequences of a failed uplink. Traffic previously distributed over several paths can be remapped onto fewer surviving members, increasing queue pressure without any increase in application demand. The routing system may converge correctly while the transport system enters a new congestion regime. Resilience testing must therefore evaluate both reachability and post-failure capacity. An acceptable recovery time for BGP does not by itself establish an acceptable recovery time for the GPU job.
Control mechanisms
| Mechanism | Scope | Effect |
|---|---|---|
| PFC | Adjacent link / priority | Temporary pause |
| ECN | IP forwarding path | Congestion indication |
| DCQCN | Endpoint | Rate adaptation |
Headroom sensitivity
| Rate | Stopping interval | Illustrative bytes |
|---|---|---|
| 400 Gb/s | 2 µs | 100,000 |
| 800 Gb/s | 2 µs | 200,000 |
| 800 Gb/s | 4 µs | 400,000 |
Diagnostic matrix
| Observation | Investigate |
|---|---|
| PFC rising, CE flat | Classification and marking policy |
| CE rising, CNP flat | Receiver capability and counters |
| CNP rising, queue persistent | Sender response and offered load |
| No drops, slow job | Pause duration and completion tails |
Linux evidence collection
rdma link show rdma statistic show ethtool -S ens5f0 ip -s link show dev ens5f0
Replace the interface with the actual adapter name. Counter availability varies. These are inspection commands, not a production configuration.
Engineering references: IEEE 802.1Qbb (Priority-based Flow Control); RFC 3168 (ECN); Zhu et al., Congestion Control for Large-Scale RDMA Deployments, SIGCOMM 2015.
Interactive Congestion Control and Lossless Ethernet Command Centre
V10 Platinum Signature · PFC, ECN, DCQCN-inspired rate adaptation and dynamic queue engineering.
Investigate an incast workload, measure queue growth and recover a congested fabric. All telemetry is synthetic; this is a discrete-time teaching model, not switch firmware.
01 — Mission control
Ready
02 — Traffic and queue configuration
03 — Fault injection
Faults are combinable. Configuration changes reset the experiment to prevent mixing incompatible baselines.
04 — Fabric architecture and feedback
Gold: delayed endpoint feedback. Red: modeled link-local pause. The single queue aggregates one traffic priority; the drawing does not imply PFC is routed end to end.
05 — Live telemetry
06 — Queue and headroom
Headroom estimate = aggregate ingress rate × effective stopping delay ÷ 8 (decimal KB). This conservative estimate ignores simultaneous draining.
07 — Queue history
08 — PFC state inspector
09 — ECN and endpoint feedback
10 — Rate adaptation inspector
11 — Packet journey
12 — Synthetic diagnostic console
On a real system correlate NIC counters (for example ethtool -S <interface>), switch per-priority queue counters and application collective timings. Counter names vary by platform.
13 — Engineering event ledger
14 — Recovery challenge
Load the pause storm, run for 100 µs, observe persistent backpressure, then enable ECN and endpoint feedback. Reset and compare the same offered workload. Seek zero modeled drops and a bounded queue without sustained pause.
15 — Engineering interpretation
ECN marks eligible traffic; the receiver generates congestion notifications and the sender adjusts its rate. PFC is a separate link-local protection mechanism. This model uses threshold marking and a simplified multiplicative decrease/additive recovery controller, not the full DCQCN algorithm. It omits per-packet serialization, actual pause quanta, shared buffer arbitration, multi-hop deadlock and transport retransmission. Dropped volume is not a packet count.
Distributed GPU Communication and AI Collective Operations
V10 Platinum Signature NVIDIA NCCL, AllReduce, AllGather, ReduceScatter, Ring and Tree Algorithms, GPU Communication Topology and Distributed AI Training Engineering Master Edition.
01 — Collectives as a distributed execution contract
A training job partitions computation across accelerators, but the partitions are rarely independent for the entire lifetime of a model. In data parallel training, each rank processes a different batch of examples and computes local gradients. The ranks then exchange information so that their parameter updates remain consistent. In tensor parallel training, individual matrix operations may require communication within a layer. Pipeline parallel training instead passes activations and gradients between stages. Each pattern creates a different relationship between message size, frequency, synchronization and network latency.
A collective is a coordinated operation involving a defined group of ranks. A rank is a logical participant, not necessarily a physical server. A process can manage one or more devices, although one process per GPU is a common deployment pattern. Every participant must agree on the operation, communicator and compatible arguments. A rank that enters a different collective or fails to enter at all can prevent progress even when every switch is healthy. This is a distributed software contract before it is a bandwidth problem.
NCCL provides GPU-oriented collective communication primitives and selects communication strategies based on the available topology and runtime configuration. It is not a routing protocol and does not replace the Ethernet fabric control plane. Its channels and transport choices determine how work is presented to the underlying links. A routing engineer must therefore understand the communication graph generated by the workload rather than assume that all GPU pairs exchange equal volumes of traffic.
A useful performance model separates compute time, communication time and the portion of communication that overlaps useful computation. A ten millisecond collective may add almost nothing to the critical path if it is fully hidden behind independent compute. The same collective may dominate iteration time when a subsequent operation must wait for its result. Measuring collective duration alone is consequently insufficient. The engineering objective is to reduce exposed communication time and its variation across iterations.
02 — AllReduce, AllGather and ReduceScatter
AllReduce combines corresponding elements from every participating rank using a reduction operation and returns the complete reduced result to every rank. For example, four ranks containing scalar values 1, 2, 3 and 4 produce the value 10 on all four ranks when the operation is SUM. Averaging requires an additional division or an appropriate averaging operation. The distinction matters because a network trace cannot establish whether the application has applied the correct numerical normalization.
AllGather collects contributions from all ranks and distributes the concatenated result to every participant. If four ranks each own a 256 MB shard, each receives a logical 1,024 MB gathered result including its own shard. Unlike AllReduce, it does not combine corresponding elements arithmetically. ReduceScatter performs a reduction and distributes disjoint portions of the reduced result. The output on each rank is smaller than the full reduced vector. These primitives are particularly useful when model parameters, gradients or optimizer state are sharded across devices.
A ring AllReduce can be decomposed into a ReduceScatter followed by an AllGather. The first phase moves chunks around the ring while accumulating contributions; the second circulates the completed chunks so that each rank obtains the entire reduced vector. This is an algorithmic decomposition, not a requirement that every implementation issue two separate application-level collective calls. The library may choose a different algorithm, segment messages, pipeline transfers or use specialized hardware capabilities.
Consider eight ranks and a 1 GB input vector on each rank. In an ideal ring each rank sends seven eighths of the vector during ReduceScatter and another seven eighths during AllGather, for a total of 1.75 GB sent per rank. Each rank also receives the same volume. These are logical payload volumes excluding headers and retransmissions. They should not be multiplied by two when estimating time on an ideal full-duplex link that can transmit and receive simultaneously. The traffic observed at a particular switch depends on rank placement and physical routing.
03 — Ring, tree and hierarchical algorithms
A ring connects each participant to a logical predecessor and successor. The ring need not correspond to a physical cable loop. Its edges can traverse PCIe, NVLink, a network adapter and multiple Ethernet switches. With sufficient pipelining and balanced edges, a ring can achieve high bandwidth efficiency for large messages. Its number of logical communication steps grows with the number of participants, so startup costs can become important for small transfers or very large groups.
Tree algorithms organize communication around branching relationships. A reduction travels toward a root or a set of roots and a distribution phase returns the result. A balanced binary tree has logarithmic depth, but that does not automatically imply superior throughput. Internal nodes may have multiple communication responsibilities, and actual link capacity, scheduling and implementation details determine the achievable rate. Double-tree and other optimized strategies can distribute responsibilities more evenly than a simple textbook tree.
An illustrative ring timing model is 2(N−1)α + 2(N−1)S/(NB), where N is the number of ranks, S is the input size in bytes, B is effective payload bandwidth in bytes per second and α is a per-step startup cost. This model assumes equal links, ideal scheduling and no congestion. It is useful for understanding why large transfers are bandwidth sensitive and small transfers are latency sensitive. It is not an exact predictor of NCCL execution time.
Hierarchical communication exploits differences between local and remote connectivity. A group of GPUs inside a server may communicate over a high-bandwidth accelerator fabric, while inter-server exchanges use network adapters. An algorithm can reduce data locally, exchange reduced contributions between servers and distribute results locally. Whether this improves performance depends on the number of available NICs, local topology, message size and the degree of parallelism. A hierarchy that funnels all remote traffic through one poorly placed GPU can create a bottleneck even when the local interconnect is extremely fast.
04 — Topology, channels and GPU memory locality
The physical topology of an AI server determines which communication paths are available. NVLink and NVSwitch can provide accelerator-to-accelerator connectivity on supported systems. PCIe connects devices to host bridges and may provide peer paths between GPUs and network adapters. NUMA locality influences host-side memory access and CPU scheduling. These technologies are complementary rather than interchangeable, and their presence does not guarantee that a particular GPU can access a particular NIC efficiently.
GPUDirect RDMA can allow a compatible network adapter to access registered GPU memory without staging the payload through host memory. The CPU still participates in control and resource management, and platform support, drivers, memory registration and peer mappings remain necessary. If a direct path is unavailable, the software may use an alternative transport or staging mechanism. The resulting throughput and latency can differ substantially from the expected direct path. An IP ping cannot distinguish these memory architectures.
NCCL channels permit communication work to be divided into parallel streams of chunks. Multiple channels can improve utilization by exposing concurrency, but more channels are not automatically better. They consume execution and transport resources, may compete for shared PCIe bandwidth and can generate additional flows. The number of channels is not equivalent to the number of physical uplinks, and an ECMP switch does not see a channel identifier unless it influences a field included in the hash.
Rank placement should be considered alongside GPU-to-NIC affinity. A server with two adapters may offer substantial aggregate bandwidth, yet a poorly mapped job may concentrate communication on one adapter or traverse an inter-socket path. Engineers should compare the detected topology with the intended placement and inspect per-port counters during actual collectives. A topology diagram is a hypothesis about connectivity; measured traffic and completion behavior are evidence about the path used.
05 — The collective meets the routed Ethernet fabric
When a collective crosses server boundaries using RoCEv2, the network carries RDMA transport packets encapsulated in UDP and IP. The fabric forwards these packets according to its installed forwarding state. ECMP may distribute flows over multiple spine paths based on selected header fields. The collective library and network adapter influence the traffic pattern, but neither can assume that each flow receives an independent physical path. Several high-rate flows can collide on the same forwarding member.
A synchronized training workload can generate bursts that are quite different from a steady synthetic stream. When many ranks complete computation at similar times, their communication phases can overlap and create incast or correlated congestion. Queue occupancy can rise on a microsecond timescale even though average interface utilization appears modest. ECN marking, endpoint congestion response and PFC behavior must therefore be interpreted in the context of collective timing rather than as isolated switch statistics.
Consider four 300 Gb/s transfers mapped onto four 400 Gb/s uplinks. If two transfers share one member while another member is idle, the overloaded member receives 600 Gb/s of offered demand. Under a simple capacity model the total service ceiling is 1 Tb/s rather than the offered 1.2 Tb/s. A collective can be limited by the slowest required transfer, so the impact on completion time may exceed what the aggregate throughput reduction suggests. The exact effect depends on scheduling and the communication graph.
A link failure can change the set of available ECMP next hops. Even after BGP convergence restores reachability, remapping can concentrate traffic on surviving members. A resilient hashing implementation may preserve some unaffected flow assignments, but it cannot create capacity that no longer exists. Production acceptance should include degraded topology tests at realistic workload sizes, with a clear distinction between reachability recovery and recovery of the collective completion time distribution.
The feedback loop also has a time dimension. A sender may reduce its rate after receiving congestion notification, but data already in flight continues to arrive at the bottleneck. If several senders react together, their aggregate rate can fall below the available capacity and later rise together. This can produce oscillation in a synchronized workload. Observing queue history and endpoint rate behavior over repeated collective phases is more informative than treating a single ECN counter as evidence of either success or failure. Thresholds should be validated against the actual switch and adapter implementations rather than copied from an unrelated fabric.
06 — Production incident: the slowest rank determines progress
In this synthetic incident, a sixteen-GPU training job spans two eight-GPU servers. The application reports that iteration duration has increased after a placement change. Compute kernels appear to execute normally, and all BGP sessions remain established. A small host-memory RDMA test succeeds. However, the large-message AllReduce benchmark shows a pronounced regression and the application spends more time waiting at synchronization boundaries.
The first investigation step is to reproduce the symptom with the same rank count, GPU placement, message size and transport configuration. Comparing a two-rank benchmark with a sixteen-rank training job would change too many variables. The team records the software versions, communicator size, GPU mapping and benchmark output. It then compares GPU topology and NCCL initialization logs against the last known healthy deployment. These records are preserved before changing configuration so that the original failure remains explainable.
The next observation is that one adapter carries most of the inter-server traffic while the second remains lightly utilized. Switch counters show congestion on one corresponding uplink, with ECN marks increasing during the benchmark. This does not yet prove that ECMP is the root cause. The imbalance could originate at GPU-to-NIC selection, the communication graph, or forwarding member selection. The team correlates per-adapter traffic with per-uplink traffic and discovers that the new placement has concentrated remote communication on one adapter.
The corrective experiment restores the previous GPU-to-NIC affinity while keeping the message size and rank count unchanged. The team repeats the benchmark, verifies that both adapters carry useful traffic and compares collective duration across multiple runs. It also checks that the numerical output remains correct. A lower average time alone is insufficient if the tail latency remains high or if the application has silently changed its collective semantics. Recovery is accepted only when the workload and infrastructure evidence agree.
07 — Operational acceptance and engineering ownership
A production collective benchmark should be treated as a controlled experiment. Record the exact executable, library build, driver and firmware versions, process launcher, rank mapping, message sizes and number of repetitions. Separate warm-up from measured iterations. Small-message tests reveal startup and synchronization costs; large-message tests expose bandwidth limitations. A single headline bandwidth figure conceals the transition between these regimes and cannot establish the health of every communication path.
NCCL tests commonly report algorithm bandwidth and bus bandwidth. Algorithm bandwidth is derived from the logical message size divided by execution time. Bus bandwidth applies an operation-specific normalization intended to facilitate comparison with hardware bandwidth. For AllReduce the conventional factor is 2(N−1)/N. This normalized metric is not a direct measurement of bytes on a particular physical NIC or switch port. Compare it with actual device counters and the known communication topology before attributing a bottleneck to the network.
Operational ownership spans application, accelerator, server and network teams. The application team validates collective ordering and numerical correctness. The accelerator team verifies device topology and communication library behavior. The server team checks PCIe locality, adapter configuration and peer-memory support. The network team validates forwarding, congestion telemetry and degraded capacity. A shared timestamped evidence set allows these teams to distinguish a transport failure from a workload scheduling problem without relying on assumptions about each other's systems.
The final acceptance gate should include a representative training run as well as isolated benchmarks. Compare iteration time, exposed communication time, collective latency percentiles, per-adapter utilization, switch queue watermarks, ECN and PFC activity, and errors or retries. Establish a baseline for both healthy and degraded fabric states. The objective is not to maximize a single synthetic metric but to provide repeatable, correct and predictable distributed computation under the expected operating envelope.
A useful failure exercise removes one spine during a controlled benchmark and records the time at which forwarding recovers separately from the time at which collective performance stabilizes. The application may continue, stall or abort depending on transport recovery and its own timeout policy. Repeat the experiment only in an authorized test environment with an agreed rollback procedure. This distinguishes the availability objective of the routing fabric from the performance objective of the training platform and provides a concrete basis for capacity planning.
Engineering reference matrices
| Operation | Result per rank | Typical purpose |
|---|---|---|
| AllReduce | Full reduced vector | Gradient synchronization |
| AllGather | Concatenated shards | Parameter reconstruction |
| ReduceScatter | Reduced shard | Sharded gradients |
| Algorithm | Strength | Constraint |
|---|---|---|
| Ring | Large-message bandwidth efficiency | Linear step count |
| Tree | Low logical depth | Internal link contention |
| Hierarchical | Locality exploitation | Placement and gateway capacity |
| Evidence | Question |
|---|---|
| NCCL logs | Which transport and topology were selected? |
| NIC counters | Which adapters carry traffic? |
| Queue telemetry | Where does congestion occur? |
| Application trace | Is communication exposed on the critical path? |
Diagnostic field notes
Illustrative commands for an authorized Linux lab. The benchmark executable must be built with the appropriate MPI support and launched using the site's configured process launcher.
nvidia-smi topo -m rdma link show ip -s link show ethtool -S eth0 # Example single-node benchmark, eight GPUs: NCCL_DEBUG=INFO ./build/all_reduce_perf -b 8M -e 1G -f 2 -g 8
Replace eth0 with the actual adapter interface. Inspect logs and counters before and after the same benchmark interval. Consult the installed NCCL and platform documentation for supported configuration options.
Distributed GPU Collective Communication Simulator
V10 Platinum Signature • Ring AllReduce • ReduceScatter • AllGather • Rank Synchronisation • Fabric Bottlenecks
Investigate the relationship between collective correctness and communication performance. Follow actual logical chunk ownership, then isolate a slow rank using controlled experiments.
01 — Mission control
02 — Collective configuration
03 — Fault injection
Configuration changes reset execution. Faults are synthetic and multiplicative where applicable.
04 — Logical ring and active chunk transfers
Gold arrows show the most recent logical transfer round. The logical ring is not a physical switch topology.
05 — Performance telemetry
06 — Rank and channel inspector
Channels share the same aggregate link budget; increasing channels does not multiply physical bandwidth.
07 — Chunk ownership and reduction state
Each cell represents one logical shard. Rk means contribution from rank k; multiple contributors indicate a partial or complete SUM. Blank cells are not yet owned. ReduceScatter retains only the completed shard per rank.
08 — Last round transfer ledger
09 — Ring versus tree performance
Tree comparison is a separate idealized reduce-then-broadcast model for AllReduce, not an NCCL algorithm selection prediction.
10 — Synchronisation and correctness
11 — Physical path interpretation
GPU memory → PCIe / local interconnect → NIC → leaf → spine → remote leaf → NIC → remote GPU memory. Actual NCCL topology and transport selection depend on hardware and software.
12 — Diagnostic evidence (synthetic)
On real Linux GPU nodes, inspect nvidia-smi topo -m, rdma link, adapter counters and NCCL INFO logs. Use a correctly built nccl-tests binary and a launcher appropriate to your cluster; compare algorithm bandwidth and bus bandwidth separately.
13 — Event history
14 — Production recovery challenge
Load the slow rank incident, complete the run, capture its timing, repair the link and complete the same workload again.
15 — Engineering interpretation
Ring AllReduce performs N−1 ReduceScatter rounds followed by N−1 AllGather rounds. Every round exchanges a shard with a logical neighbour. For a vector of S bytes, each rank sends 2(N−1)S/N bytes. ReduceScatter and AllGather each send (N−1)S/N bytes under the size convention used here. AllGather begins with one shard per rank. Reduction contributions are tracked exactly as sets of rank identifiers; the example SUM uses rank+1 as each contribution.
Model time is the sum of round startup and shard serialization at the slowest effective rank rate. The model assumes synchronized rounds, equal shard sizes, no overlap, no retransmission, and no real NCCL execution. It does not simulate CUDA streams, floating point rounding, packet queues, actual channel scheduling or hardware topology discovery. All timings and diagnostic outputs are illustrative, not measurements.
Building and Operating a Production AI Network Fabric
V10 Platinum Signature • Production Engineering Grand Master Edition
01 — Define the production contract
Begin with the workload rather than the switch catalogue. A training cluster exchanging gradients has a different communication pattern from an inference service receiving independent requests. Establish the number of participating ranks, their placement, expected collective sizes, simultaneous jobs and acceptable iteration-time variation. Record whether storage reads and checkpoint writes overlap the communication phase. A fabric sized from average interface utilisation can fail precisely when the application synchronises its workers. The design contract must therefore describe bursts, failure tolerance and tail behaviour as well as sustained throughput.
Consider a reference deployment with eight GPU servers, two leaf switches and four spines. Each leaf serves four servers with one 400 Gb/s network attachment per server and four 400 Gb/s spine-facing links. The nominal ratio of server-facing to uplink capacity is one to one in each direction. Losing one uplink reduces the available uplink capacity to 1.2 Tb/s against 1.6 Tb/s of server-facing line rate. These are decimal physical line rates, not measured application payload rates. A job that requires full bisection capacity during maintenance needs additional capacity or an explicit admission policy. The topology alone cannot guarantee that traffic will distribute evenly across surviving links.
Separate the management network from the compute fabric and decide whether storage requires its own physical network or a separately engineered traffic class. Isolation must be justified by resource contention, failure domains and operational ownership rather than by a diagram alone. A management path that depends on the fabric being repaired creates an avoidable recovery dependency. Maintain independent console access, authenticated administrative access and a documented method of recovering a device whose routing configuration is broken. Record the power and cooling dependencies of each rack alongside its network connections.
02 — Build and commission the physical fabric
Create a port-level inventory before connecting equipment. Each record should identify both endpoints, expected speed, media type, breakout configuration, FEC mode and the intended routing interface. Validate supported combinations against the actual adapter, optics and switch platform documentation. A link that reports operational state may still exhibit corrected errors, intermittent loss of signal or lane problems. Capture a baseline of physical counters under load and compare the rate of change rather than treating an isolated lifetime counter as evidence of a current fault.
Commission one rack at a time. Verify GPU and NIC placement using the host PCIe topology, then confirm the negotiated PCIe width and speed. A nominally fast adapter behind a constrained PCIe path cannot deliver its advertised Ethernet capacity to GPU memory. Cross-socket placement may introduce additional bandwidth and latency limitations. Use the actual host topology to guide rank placement, and verify whether peer-memory access is supported by the driver, firmware and platform. Do not disable IOMMU or other security controls indiscriminately to make a benchmark pass; investigate supported mappings and isolation requirements first.
Set a consistent IP MTU across the intended routed path and test the largest supported packets with the appropriate protocol overhead. Ethernet frame size and IP MTU are not interchangeable. An ordinary ping with a small payload does not validate the path for a large RDMA transfer. Document the intended RoCE path MTU separately, since it is negotiated or configured according to the transport and adapter implementation. Test every relevant direction and forwarding member, not only the first route selected by a diagnostic tool. Preserve the resulting evidence as a commissioning baseline.
03 — Deploy the FRRouting underlay
Use routed point-to-point links between leaves and spines. In this example each leaf has a distinct private autonomous system number, 65001 and 65002, while all four spines use 65100. Allocate non-overlapping link subnets and stable router identifiers. The compute prefixes belong to the leaves that actually provide reachability to those networks. A shared spine ASN is suitable for this simple two-tier design but should not be copied blindly into a multi-tier topology where AS path loop prevention may change the intended propagation behaviour.
Enable only the intended routing address families and apply explicit import and export policies. The example configuration below is a fragment for one leaf-to-spine adjacency, not a complete switch configuration. The peer must have matching addressing, an appropriate reciprocal policy and a reachable local interface. The network statement requires a corresponding route in the local routing table under normal FRRouting network import checking. Verify that route rather than assuming that a network statement creates connectivity. Use a second peer with its own link address and equivalent policy to exercise multipath selection.
Inspect the BGP neighbour summary, received and selected routes, and the forwarding entries independently. The bgpd process evaluates routing information; zebra manages routing integration and communicates with the underlying forwarding environment. On a Linux router, inspect the kernel routing table and neighbour state. On a hardware switch, verify the platform-specific ASIC programming evidence as well. A selected BGP path is not proof of successful hardware installation. Test a real packet exchange across the expected path, then repeat with each uplink removed in a controlled maintenance window.
Do not equate rapid failure detection with rapid application recovery. A physical link failure may be detected immediately, while a silent forwarding failure can require a separate detection mechanism. BFD can help where supported and appropriately configured, but timer selection must account for control-plane capacity and operational stability. Measure the interval between fault introduction, route withdrawal, forwarding restoration and resumed collective progress. These are different events and should be recorded separately.
Illustrative FRRouting configuration fragment
ip prefix-list COMPUTE-OUT seq 10 permit 10.10.1.0/24 ip prefix-list COMPUTE-IN seq 10 permit 10.10.2.0/24 route-map FABRIC-OUT permit 10 match ip address prefix-list COMPUTE-OUT route-map FABRIC-IN permit 10 match ip address prefix-list COMPUTE-IN router bgp 65001 bgp router-id 10.255.0.1 neighbor 172.16.0.1 remote-as 65100 address-family ipv4 unicast network 10.10.1.0/24 neighbor 172.16.0.1 activate neighbor 172.16.0.1 route-map FABRIC-IN in neighbor 172.16.0.1 route-map FABRIC-OUT out maximum-paths 4 exit-address-family ! Verify with vtysh: show bgp ipv4 unicast summary ! show bgp ipv4 unicast 10.10.2.0/24 ! Linux: ip route show 10.10.2.0/24
04 — Validate forwarding and RoCEv2
Once the underlay is stable, validate ECMP using a workload with sufficient independent flows. A single flow generally exercises only one forwarding member in a conventional per-flow hashing design. Compare per-member byte counters over a common interval and record the offered traffic distribution. A balanced aggregate counter can hide a saturated queue on one link. Conversely, an idle link is not necessarily faulty if the active flow keys simply do not select it. Change flow entropy deliberately during testing and observe whether the resulting distribution changes as expected.
Establish the traffic classification contract from endpoint to switch and back. Identify the intended DSCP or priority markings, the mapping to traffic classes, and the queue associated with RDMA traffic. Confirm that the policy is applied on every relevant ingress and egress interface. PFC operates on adjacent Ethernet links and selected priorities, whereas ECN conveys congestion information in the IP header. A receiving RoCE endpoint can generate congestion notification packets, allowing a compatible transmitting endpoint to adapt its rate. These mechanisms must be validated together, not enabled as independent checkboxes.
Estimate headroom from the incoming rate and the effective stopping interval, then account for platform-specific frame, pipeline and buffer allocation requirements. At 400 Gb/s, two microseconds of arriving traffic represent approximately 100 decimal KB before additional margins. This is an explanatory calculation, not a recommended switch threshold. Shared buffer allocation, simultaneous ingress ports and the actual reaction delay can substantially change the required reservation. Use vendor-supported configuration methods and measure the resulting queue occupancy under controlled incast.
Start RDMA validation with host memory and a small set of endpoints. Inspect the RDMA devices, ports, GID configuration and the selected network interface. Confirm that the application uses the intended RoCE version and address family. Test registered host-memory transfers before progressing to GPU memory. A successful host-memory transfer establishes useful transport evidence but does not prove that the GPU peer-memory path is supported. A remote access error can arise from stale registration metadata even when routing and Ethernet are completely healthy.
05 — Benchmark distributed GPU communication
Benchmark at several levels so that the first failing boundary is identifiable. Begin with a local GPU communication test, then test host-to-host RDMA and GPU-to-GPU communication across two nodes. Expand to a rack and then to the full fabric. Use a consistent message-size sweep, record the number of ranks and document the exact placement of each rank. Record software versions and environment settings because algorithm selection and transport behaviour can differ across deployments. A benchmark result without its execution context is difficult to reproduce.
NCCL tests report algorithm bandwidth and, for supported collectives, a normalized bus bandwidth metric. For AllReduce the conventional normalization multiplies algorithm bandwidth by twice the ratio of participating ranks minus one to participating ranks. This is a useful comparison metric, not a direct measurement of every physical link. A ring model with eight ranks and a 1,024 MB input vector sends 1,792 MB per rank. At an ideal effective payload rate of 400 Gb/s the serialization component is 35.84 milliseconds, before startup, contention and other costs. Compare measured results with this model only after identifying the assumptions that differ.
Use a launcher and process mapping appropriate to the installed MPI or distributed execution environment. An illustrative single-node command appears below; a multi-node run requires a supported build, launcher, host allocation and GPU mapping. Check the initialization logs for the selected transport and topology. Avoid forcing transport or algorithm settings merely to obtain a better number unless the change is a controlled experiment. The production objective is repeatable performance under representative job placement, not the highest isolated benchmark result.
Measure the application as well as the communication library. Capture training iteration time, collective duration, GPU idle intervals and checkpoint behaviour. Communication may overlap computation, so a change in collective time does not necessarily translate directly into the same change in end-to-end iteration time. Compare distributions and tail percentiles over repeated runs rather than relying on a single average. Establish an acceptance envelope that reflects the actual workload and agreed failure conditions.
Diagnostic command examples
ip -s link show ethtool -S eth0 rdma link show ibv_devinfo nvidia-smi topo -m NCCL_DEBUG=INFO ./build/all_reduce_perf -b 8M -e 1G -f 2 -g 4
Adapt interface names, GPU count and executable path to the installed environment. These commands are illustrative and have not been executed on the reference fabric.
06 — Build an evidence-driven operations plane
Collect interface throughput, physical errors, queue occupancy and watermarks, ECN marks, PFC events and discard counters. Correlate these with BGP adjacency state, route changes and forwarding member availability. At the endpoint, collect adapter transport counters, GPU utilisation and application collective timings. Use a consistent time reference and record the sampling interval. A one-second polling interval may miss a microsecond-scale burst even when its cumulative effects are visible in watermarks or counters. Counter resets and wraparound must be distinguished from genuine changes in traffic behaviour.
Define alerts around actionable conditions rather than around every available metric. Persistent pause activity combined with rising collective latency is more useful than an isolated pause counter increment. A route withdrawal during planned maintenance is expected; a route withdrawal accompanied by unexplained packet loss is a different operational event. Keep the underlying measurements available so that engineers can examine the evidence behind an alert. Record the topology and configuration revision associated with each incident, otherwise a historical graph may be interpreted against the wrong network layout.
Maintain a version-controlled inventory and configuration source of truth. Generate device-specific configuration from reviewed intent where practical, and validate the generated changes before deployment. Protect administrative credentials and avoid placing secrets in telemetry or configuration repositories. Define an explicit rollback procedure and ensure that the management path remains available during the change. A successful configuration commit is only the beginning of acceptance: verify route propagation, forwarding and representative workload performance after each change.
07 — Investigate a production incident
Consider a synthetic incident after four new GPU workers join the reference fabric. The application reports longer iteration times while BGP remains established on every uplink. The first operational question is whether the slowdown is local computation, storage or communication. Compare the collective duration with the previous baseline and verify that the same workload and rank count are being compared. In this scenario collective time increases while local computation remains stable, directing attention toward the communication path without yet proving a network fault.
The next observation is that one 400 Gb/s uplink receives 600 Gb/s of offered traffic in the simplified model, while two others receive 300 Gb/s each and the fourth is idle. Aggregate offered load is only 1.2 Tb/s against 1.6 Tb/s of installed capacity. The modeled service ceiling is nevertheless 1 Tb/s because the overloaded member cannot borrow capacity from an idle member. Real transport feedback may reduce the actual offered rate, so interface transmitted counters alone cannot reveal the original demand. Queue watermarks, ECN and endpoint rate changes provide complementary evidence.
Inspect the flow keys and traffic classification of the new workers. In the synthetic incident the application generates insufficient useful entropy and several large transfers select the same path. A separate configuration review reveals that the affected queue is missing the intended ECN policy. These are two distinct contributing conditions: uneven load distribution creates pressure, while absent congestion feedback makes recovery less effective. Correct the classification policy through the approved change process and test the workload again. Then evaluate supported flow distribution changes in a controlled experiment rather than repeatedly changing hash seeds in production.
Recovery requires more than a green routing dashboard. Verify that the intended queue now marks eligible traffic, that endpoint feedback is observed, and that persistent pause activity declines. Repeat the same benchmark with the same placement and message sizes, then compare the application iteration distribution. Test the agreed single-uplink failure condition separately. If the remaining capacity cannot meet the workload contract, document the degraded service envelope rather than claiming that redundancy guarantees unchanged performance. The incident record should distinguish observations, hypotheses, changes and measured outcomes.
08 — Establish the production acceptance gate
Before handover, require evidence at every layer. The physical inventory must match the installed topology; routing policy must permit only the intended prefixes; the forwarding table must contain the expected next hops; and the transport must complete representative host and GPU memory operations. Validate congestion behaviour under controlled bursts and confirm that the workload meets the agreed performance envelope. Test recovery from a link failure and a policy error without introducing uncontrolled disruption to unrelated jobs.
Assign ownership for the switch configuration, host drivers, GPU runtime, distributed execution framework and observability system. Cross-layer incidents often persist because each team validates only its own component. Establish a shared incident procedure that begins with the application symptom and traces the actual communication path. Preserve diagnostic evidence before restarting processes or clearing counters. A restart may remove the symptom while destroying the evidence needed to prevent recurrence.
Finally, treat capacity planning as an ongoing engineering activity. New models, larger batches and changing parallelism strategies alter communication demand even when the hardware inventory remains unchanged. Re-run the acceptance suite when the workload or infrastructure changes materially. The production fabric is not finished when the last cable is installed; it is ready when its behaviour is understood, its limitations are documented and its operators can demonstrate recovery using repeatable evidence.
A useful acceptance record includes the test identifier, topology revision, workload parameters, expected result, observed result and responsible reviewer. Store raw output alongside the interpretation so that another engineer can reproduce the conclusion. Where a test cannot be executed safely in production, use an isolated staging environment and explicitly document the remaining uncertainty. Never treat an educational simulation as evidence that a physical device has passed acceptance. A simulation can establish the reasoning behind a test; only measurements from the relevant environment can establish its actual outcome.
Capacity contract
| Boundary | Evidence | Criterion |
|---|---|---|
| Normal | 1.6 Tb/s | 1:1 |
| One uplink lost | 1.2 Tb/s | 4:3 |
Evidence boundaries
| Boundary | Evidence | Criterion |
|---|---|---|
| Routing | BGP and FIB | Expected prefixes |
| Transport | RDMA completion | Host and GPU memory |
| Application | Collective timing | Repeatable workload |
Incident acceptance
| Boundary | Evidence | Criterion |
|---|---|---|
| Classification | ECN policy | Correct queue |
| Distribution | Member counters | No unexplained hotspot |
| Recovery | Repeated benchmark | Agreed envelope |
Complete AI Fabric Deployment and Incident Investigation
V10 Platinum Signature • Production Engineering Command Centre Grand Master Edition
Commission a two-leaf, four-spine fabric. Establish the control plane, inspect forwarding, validate memory access and measure collective performance. Capture evidence before changing the configuration.
01 / Mission control
02 / Deployment configuration
03 / Fault injection
04 / Live spine–leaf architecture
Cyan: available path. Gold: selected path. Red: unavailable or overloaded path.
05 / Capacity and resilience
06 / BGP adjacency and RIB
07 / ECMP flow and FIB inspector
08 / RoCEv2 memory protection
09 / Queue and congestion telemetry
10 / GPU collective performance
11 / Packet journey and decision gates
12 / Synthetic diagnostic console
13 / Incident evidence ledger
14 / Production acceptance challenge
15 / Engineering interpretation
Engineering field notes
Start with physical connectivity, then establish adjacency and inspect the advertised prefix. A route accepted by BGP is not proof of kernel installation. Verify the next hop and compare individual link demand rather than aggregate utilisation. RDMA requires valid memory registration and compatible queue pair configuration. ECN feedback can reduce sustained offered load, but cannot create missing capacity. A collective is constrained by its slowest communication path; compare identical workloads before and after remediation.
Model boundary: This is a deterministic educational model, not FRRouting, NCCL or a switch ASIC. Four equal offered flows, symmetric return reachability, one bottleneck queue per spine, immediate ECN-inspired rate reduction and idealized ring timing are assumed. PFC is represented by a one-step delayed pause with hysteresis, not actual Ethernet frames. All counters and CLI output are synthetic. Do not apply these thresholds directly to production equipment.
- Building an AI Data Centre Network Fabric - December 4, 2026
- Linux Virtualisation and Virtual Networking for AI Infrastructure - December 4, 2026
- Building a Linux AI Server - December 4, 2026
