<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Packets & Fabrics]]></title><description><![CDATA[Decoding Networks. Designing AI Fabrics]]></description><link>https://packetsandfabrics.com</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Dec 2026 13:19:06 GMT</lastBuildDate><atom:link href="https://packetsandfabrics.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[How Does Light Travel Through Optical Fiber?]]></title><description><![CDATA[Learn how light travels through optical fiber, including total internal reflection, attenuation, dispersion, bend loss and reliable 800G connectivity.]]></description><link>https://packetsandfabrics.com/how-does-light-travel-through-optical-fiber</link><guid isPermaLink="true">https://packetsandfabrics.com/how-does-light-travel-through-optical-fiber</guid><category><![CDATA[fiber optics]]></category><category><![CDATA[Data Center]]></category><category><![CDATA[networking]]></category><category><![CDATA[Optical Networking]]></category><category><![CDATA[AI infrastructure]]></category><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Wed, 02 Dec 2026 19:09:10 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/39907131-2c85-48b5-91a0-933dc14936ee.svg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Data Center Optical Fundamentals Series — Lesson 02</em></p>
<p>In <a href="https://packetsandfabrics.hashnode.dev/data-center-optics-from-bits-to-light">Lesson 01 — Data Center Optics: From Bits to Light</a>, we explored how electrical signals become light.</p>
<p>🎬 <strong>Watch the quick introduction:</strong><br /><a href="https://youtube.com/shorts/dQ4Rs9Q4IQQ">https://youtube.com/shorts/dQ4Rs9Q4IQQ</a></p>
<p>In this lesson, we follow that light through the fiber and understand what makes optical connectivity reliable.</p>
<p>Imagine two data center switches connected through a 100-meter optical fiber.</p>
<p>The link works perfectly until an engineer reorganizes the cables behind the rack. Suddenly, received optical power drops, and transmission errors appear.</p>
<p>The switch configuration, bandwidth and transceivers remain unchanged.</p>
<p><strong>What happened?</strong></p>
<p>To understand why, let's explore how light travels through optical fiber and what affects its journey.</p>
<h2>1. What Is Inside an Optical Fiber?</h2>
<p>An optical fiber is not simply a thin piece of glass. It is a carefully engineered optical waveguide designed to carry light over distance.</p>
<p>It consists of three fundamental layers.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/8f1c9f66-dbd8-4bdc-8bfd-474ff99fda9b.svg" alt="Optical fiber structure and the function of each layer." style="display:block;margin:0 auto" />

<p><em>Figure 1 — Optical fiber structure and the function of each layer.</em></p>
<table>
<thead>
<tr>
<th>Component</th>
<th>Primary function</th>
</tr>
</thead>
<tbody><tr>
<td>Core</td>
<td>Guides the optical signal</td>
</tr>
<tr>
<td>Cladding</td>
<td>Enables optical confinement</td>
</tr>
<tr>
<td>Coating</td>
<td>Protects the glass fiber</td>
</tr>
</tbody></table>
<p>A typical single-mode fiber has a core diameter of approximately 8–10 µm and a cladding diameter of 125 µm. The guided optical field extends slightly into the cladding, so the physical core diameter and mode field diameter are not necessarily the same.</p>
<p>That incredibly small region can guide optical signals carrying enormous amounts of data.</p>
<p>But why does light remain confined inside it?</p>
<h2>2. Why Doesn't Light Escape From the Fiber?</h2>
<p>The answer begins with <strong>refractive index</strong>.</p>
<p>Refractive index describes the relationship between the speed of light in a vacuum and its phase velocity in a material.</p>
<p>$$n=\frac{c}{v_p}$$</p>
<p>When light crosses a boundary between materials with different refractive indices, its direction can change. This phenomenon is called <strong>refraction</strong>.</p>
<p>Under certain conditions, light is reflected entirely back into the higher-index material instead of passing through the boundary.</p>
<p>This is called <strong>Total Internal Reflection (TIR)</strong>.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/cb80bec8-d29c-4bfa-a38a-cfe1dc8eaa2a.svg" alt="Understanding refraction, critical angle and total internal reflection before applying the principle to optical fiber." style="display:block;margin:0 auto" />

<p><em>Figure 2 — Understanding refraction, critical angle and total internal reflection before applying the principle to optical fiber.</em></p>
<p>Two conditions are required for total internal reflection:</p>
<ul>
<li>Light encounters a boundary from a higher to a lower refractive index.</li>
<li>The incident angle, measured from the surface normal, exceeds the critical angle.</li>
</ul>
<p>An optical fiber is designed with a slightly higher refractive index in its core than in its cladding.</p>
<p>This difference enables optical guidance.</p>
<p><strong>💡 Analogy — An Underwater Mirror</strong></p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/d1ac9d4d-a124-400e-a3d8-5589a62cb183.svg" alt="An underwater ray reflects off the water surface toward an observer." style="display:block;margin:0 auto" />

<p>When looking toward the water surface from underwater at certain angles, the surface behaves like a mirror. Optical fiber uses a related physical principle to confine light.</p>
<p>Total internal reflection provides an intuitive explanation using the ray model. In single-mode fiber, light is more accurately described as a guided electromagnetic mode.</p>
<h2>3. How Does Light Enter the Fiber?</h2>
<p>Not every incoming light signal couples efficiently into an optical fiber.</p>
<p><strong>Numerical Aperture (NA)</strong> describes the fiber's light acceptance capability.</p>
<p>In the simplified ray model, it determines the acceptance cone within which incoming rays can be guided.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/4cb324ab-ac6d-42f0-a5ca-b598fb957f42.svg" alt="Acceptance angle, numerical aperture and optical coupling. Conceptual step-index ray model, not to scale." style="display:block;margin:0 auto" />

<p><em>Figure 3 — Acceptance angle, numerical aperture and optical coupling. Conceptual step-index ray model, not to scale.</em></p>
<p>A higher numerical aperture generally allows light to enter over a wider range of angles.</p>
<p>For single-mode fiber, efficient coupling requires matching the launched optical field to the guided mode. Alignment and connector conditions matter.</p>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Select fiber based on interface compatibility, supported reach, bandwidth and optical channel characteristics—not numerical aperture alone.</p>
</blockquote>
<p>We will explore the differences between single-mode and multimode fiber in the next lesson.</p>
<h2>4. How Fast Does Light Travel Through Fiber?</h2>
<p>Light travels at approximately 300,000 km/s in a vacuum.</p>
<p>Inside typical silica fiber, the optical signal travels at approximately 204,000 km/s.</p>
<p>There are two velocity concepts worth understanding.</p>
<table>
<thead>
<tr>
<th>Velocity</th>
<th>Meaning</th>
</tr>
</thead>
<tbody><tr>
<td>Phase velocity</td>
<td>Speed of an individual wave phase</td>
</tr>
<tr>
<td>Group velocity</td>
<td>Speed of the signal envelope</td>
</tr>
</tbody></table>
<p>For network propagation latency, group velocity is the relevant parameter.</p>
<p>A useful engineering approximation is:</p>
<p>$$\boxed{\text{One-way delay}\approx5\ \mu s/\text{km}}$$</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/86a7df58-41ef-4ea6-b8bd-f195f8275105.svg" alt="Propagation speed, one-way latency and round-trip latency." style="display:block;margin:0 auto" />

<p><em>Figure 4 — Propagation speed, one-way latency and round-trip latency.</em></p>
<blockquote>
<p><strong>💡 Analogy — A Wider Highway</strong></p>
<p>Adding more lanes to a highway increases the number of vehicles it can carry, but does not necessarily reduce the travel time of an individual vehicle.</p>
<p>Similarly, upgrading from 400G to 800G increases bandwidth but does not reduce fiber propagation delay.</p>
</blockquote>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>In distributed AI infrastructure, physical distance between GPU clusters can influence collective communication and workload synchronization.</p>
<p>Increasing bandwidth alone cannot compensate for every latency-related performance limitation.</p>
</blockquote>
<h2>5. Why Do Optical Pulses Spread?</h2>
<p>Light does not always arrive at the receiver in exactly the same form in which it was transmitted.</p>
<p>Two important transmission impairments are:</p>
<p><strong>Attenuation</strong> — reduction in optical power.</p>
<p><strong>Dispersion</strong> — spreading of optical pulses in time.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/03a805e8-dd51-4f32-801a-d024b1d4383c.svg" alt="Optical power loss, pulse spreading and intersymbol interference." style="display:block;margin:0 auto" />

<p><em>Figure 5 — Optical power loss, pulse spreading and intersymbol interference.</em></p>
<p>As optical pulses spread, adjacent symbols can overlap, making it more difficult for the receiver to recover the original information.</p>
<p>This is known as <strong>Intersymbol Interference (ISI)</strong>.</p>
<h3>Understanding the Three Types of Dispersion</h3>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/fb7596de-e107-4122-87f1-373e6501c2e3.svg" alt="Modal, chromatic and polarization mode dispersion. PMD involves two principal polarization states with differential delay; the arrival plots are generic illustrations of spreading." style="display:block;margin:0 auto" />

<p><em>Figure 6 — Modal, chromatic and polarization mode dispersion. PMD involves two principal polarization states with differential delay; the arrival plots are generic illustrations of spreading.</em></p>
<table>
<thead>
<tr>
<th>Dispersion type</th>
<th>Fundamental cause</th>
</tr>
</thead>
<tbody><tr>
<td>Modal</td>
<td>Different spatial modes experience different delays</td>
</tr>
<tr>
<td>Chromatic</td>
<td>Different wavelength components travel at different group velocities</td>
</tr>
<tr>
<td>Polarization mode (PMD)</td>
<td>Principal polarization states experience differential group delay</td>
</tr>
</tbody></table>
<p>Single-mode fiber eliminates intermodal dispersion when operating in its intended single-mode regime, but does not eliminate chromatic or polarization mode dispersion.</p>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Acceptable received optical power does not necessarily guarantee acceptable signal quality.</p>
<p>Standardized interface reach, channel characteristics, Bit Error Rate (BER) and Forward Error Correction (FEC) performance must be considered together.</p>
</blockquote>
<h2>6. Can Bending the Fiber Cause Signal Loss?</h2>
<p>Yes. Excessive bending can cause optical energy to escape from the guided mode.</p>
<p>Two common mechanisms are:</p>
<p><strong>Macrobending:</strong> Larger-scale curvature caused by tight cable routing.</p>
<p><strong>Microbending:</strong> Small-scale distortions associated with localized mechanical pressure.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/3985f470-3444-4817-95bd-71a75830b4d7.svg" alt="Macrobending, microbending and minimum bend radius." style="display:block;margin:0 auto" />

<p><em>Figure 7 — Macrobending, microbending and minimum bend radius.</em></p>
<p>Every optical cable has a specified <strong>minimum bend radius</strong> that must be respected during installation and operation.</p>
<h3>🌍 Real-World Reference — Bend-Insensitive Fiber</h3>
<p>ITU-T G.657 defines categories of single-mode fiber engineered for improved bending performance.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/ba3cde0e-8b20-49f8-a3d3-cf11d6f0f4ac.svg" alt="Bend-insensitive single-mode fiber categories defined by ITU-T G.657." style="display:block;margin:0 auto" />

<p><em>Figure 8 — Bend-insensitive single-mode fiber categories defined by ITU-T G.657.</em></p>
<table>
<thead>
<tr>
<th>Fiber category</th>
<th align="right">Minimum design radius</th>
</tr>
</thead>
<tbody><tr>
<td>G.657.A1</td>
<td align="right">10 mm</td>
</tr>
<tr>
<td>G.657.A2</td>
<td align="right">7.5 mm</td>
</tr>
<tr>
<td>G.657.B3</td>
<td align="right">5 mm</td>
</tr>
</tbody></table>
<p>These fibers are useful in space-constrained environments such as high-density racks and patch panels.</p>
<p>However, the fiber design radius is not necessarily the minimum bend radius of the finished cable assembly.</p>
<p><strong>Bend-insensitive does not mean bend-proof.</strong></p>
<p>Reference: <a href="https://www.itu.int/rec/T-REC-G.657/en">ITU-T G.657 — Bending-loss insensitive single-mode optical fibre and cable</a></p>
<h2>7. Bringing Everything Together — The Optical Signal Journey</h2>
<p>We now understand the fundamental processes that allow an optical signal to travel from one switch to another.</p>
<p>Let's connect everything into a complete transmission system.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/2862d363-08e6-4c06-9cc5-c2317f4bdcd0.svg" alt="The complete optical signal journey, from electrical transmission to data recovery." style="display:block;margin:0 auto" />

<p><em>Figure 9 — The complete optical signal journey, from electrical transmission to data recovery.</em></p>
<p>The complete journey involves four stages:</p>
<ol>
<li><strong>Prepare and launch:</strong> Encode information and modulate the optical carrier.</li>
<li><strong>Couple and guide:</strong> Couple the optical field into the guided fiber mode.</li>
<li><strong>Propagate:</strong> Carry the signal despite delay, attenuation and dispersion.</li>
<li><strong>Detect and recover:</strong> Convert light to electrical signals, make symbol decisions and correct errors within the supported FEC capability.</li>
</ol>
<p>The receiver uses optical detection and signal processing to recover the transmitted information. FEC corrects errors within its supported capability. FEC processing may reside in the host PHY rather than the optical module, depending on implementation.</p>
<p>The objective is not to deliver a perfectly unchanged optical signal.</p>
<p><strong>It is to deliver a reliably recoverable signal.</strong></p>
<h3>🌍 Real-World Reference — 800G DR8 Optical Connectivity</h3>
<p>Consider an 800GBASE-DR8 interface used for high-speed data center connectivity.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/133dfd66-ab54-4d97-87fc-6acfe0fd5d27.svg" alt="Applying optical propagation fundamentals to a real-world 800G parallel optical interface." style="display:block;margin:0 auto" />

<p><em>Figure 10 — Applying optical propagation fundamentals to a real-world 800G parallel optical interface.</em></p>
<table>
<thead>
<tr>
<th>Characteristic</th>
<th>Specification</th>
</tr>
</thead>
<tbody><tr>
<td>Aggregate Ethernet rate</td>
<td>800 Gbps per direction</td>
</tr>
<tr>
<td>Optical lanes</td>
<td>8 per direction</td>
</tr>
<tr>
<td>Nominal lane rate</td>
<td>100 Gb/s</td>
</tr>
<tr>
<td>Optical modulation</td>
<td>PAM4</td>
</tr>
<tr>
<td>Fiber type</td>
<td>Single-mode</td>
</tr>
<tr>
<td>Active fiber strands</td>
<td>16 — 8 Tx + 8 Rx</td>
</tr>
<tr>
<td>Nominal wavelength</td>
<td>1310 nm</td>
</tr>
<tr>
<td>Specified reach</td>
<td>500 m on applicable SMF channels</td>
</tr>
<tr>
<td>Maximum channel insertion loss</td>
<td>3.0 dB</td>
</tr>
</tbody></table>
<p>Each optical lane undergoes the same fundamental transmission processes we have explored throughout this lesson.</p>
<p>Reference: <a href="https://www.ieee802.org/3/df/">IEEE 802.3df — 400 Gb/s and 800 Gb/s Ethernet</a></p>
<h2>8. Design It — A Customer's 800G AI Fabric</h2>
<p>A customer is deploying an AI data center with 300-meter optical connections between leaf and spine switches.</p>
<p>The proposed solution uses 800G DR8 transceivers.</p>
<p>The interface supports a nominal reach of 500 meters.</p>
<p><strong>But is supported reach alone sufficient to approve the design?</strong></p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/e2955f86-9787-4818-bf0c-c221b4e7556f.svg" alt="Optical link design and deployment acceptance from a Solution Architect perspective." style="display:block;margin:0 auto" />

<p><em>Figure 11 — Optical link design and deployment acceptance from a Solution Architect perspective.</em></p>
<p>Consider an illustrative per-lane optical loss allocation:</p>
<table>
<thead>
<tr>
<th>Component</th>
<th align="right">Loss allocation</th>
</tr>
</thead>
<tbody><tr>
<td>300 m fiber at 0.4 dB/km</td>
<td align="right">0.12 dB</td>
</tr>
<tr>
<td>Two mated connector pairs at 0.5 dB each</td>
<td align="right">1.00 dB</td>
</tr>
<tr>
<td>Engineering reserve</td>
<td align="right">0.50 dB</td>
</tr>
<tr>
<td><strong>Total planned allocation</strong></td>
<td align="right"><strong>1.62 dB</strong></td>
</tr>
<tr>
<td>Maximum channel insertion loss</td>
<td align="right">3.00 dB</td>
</tr>
<tr>
<td>Remaining headroom</td>
<td align="right">1.38 dB</td>
</tr>
</tbody></table>
<p>These fiber, connector and reserve values are illustrative planning assumptions. Measured channel loss and applicable PHY limits govern acceptance.</p>
<p>A Solution Architect must evaluate the complete transmission system.</p>
<table>
<thead>
<tr>
<th>Design consideration</th>
<th>What should we verify?</th>
</tr>
</thead>
<tbody><tr>
<td>Interface compatibility</td>
<td>Supported optics, fiber type and reach</td>
</tr>
<tr>
<td>Optical power budget</td>
<td>Channel loss and engineering margin</td>
</tr>
<tr>
<td>Signal quality</td>
<td>Applicable dispersion and channel limits</td>
</tr>
<tr>
<td>Physical infrastructure</td>
<td>Bend radius, routing and connector cleanliness</td>
</tr>
<tr>
<td>Latency</td>
<td>End-to-end workload requirements</td>
</tr>
<tr>
<td>Acceptance testing</td>
<td>BER, FEC, sustained traffic and link stability</td>
</tr>
</tbody></table>
<p>For this 300-meter connection, fiber propagation introduces approximately 1.5 µs of one-way latency.</p>
<p>The complete link must also satisfy electrical and optical performance requirements. Supported reach is a starting point, not an acceptance criterion by itself.</p>
<h2>9. Returning to Our Original Problem</h2>
<p>Remember the optical link that began experiencing errors after cable reorganization?</p>
<p>Suppose the received optical power on the same lane decreased from −2 dBm to −4 dBm.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/28e1852a-848c-47e1-9c66-292c22ffae03.svg" alt="Connecting optical propagation fundamentals to a practical troubleshooting scenario." style="display:block;margin:0 auto" />

<p><em>Figure 12 — Connecting optical propagation fundamentals to a practical troubleshooting scenario.</em></p>
<p>A reduction from −2 dBm (0.631 mW) to −4 dBm (0.398 mW) represents approximately <strong>37% less received optical power</strong>. If transmitted power and measurement conditions remain comparable, this indicates additional channel loss.</p>
<p>Excessive bending, cable compression or disturbed connectors are possible causes, but the power reading alone cannot identify the fault.</p>
<p>The appropriate approach is to inspect the physical installation, verify optical measurements and validate link performance before and after corrective action.</p>
<p><strong>A link being operational does not necessarily mean it is reliable.</strong></p>
<h2>🎯 Key Takeaway</h2>
<p>Understanding how light enters, travels through and degrades within optical fiber helps us make better network design decisions.</p>
<p>Reliable optical connectivity depends not only on bandwidth and reach, but also on propagation delay, optical loss, dispersion, bend radius and signal quality.</p>
<p><strong>Design for reliable data recovery, not just optical connectivity.</strong></p>
<h2>🤔 Think About It</h2>
<p>A customer deploys a 300-meter 800G optical link within its specified reach.</p>
<p>The received optical power is acceptable, but recurring uncorrectable FEC errors appear during sustained traffic.</p>
<p><strong>Would you approve the link for production or investigate the complete electrical and optical transmission path before accepting it?</strong></p>
<h2>📝 Quick Revision — 60 Seconds</h2>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f94f5797-65f3-4af1-9f51-f3d351455a65.svg" alt="Quick revision of confinement, coupling, delay, attenuation, dispersion and reliability." style="display:block;margin:0 auto" />

<h2>➡️ What's Next?</h2>
<p><strong>Lesson 03 — Single-Mode vs. Multimode Fiber</strong></p>
<p>Why do some data centers use multimode fiber for short-distance connectivity while others standardize on single-mode fiber?</p>
<p>In the next lesson, we will explore their fundamental differences, OM and OS fiber classifications, supported distances and practical selection criteria for modern data centers and AI fabrics.</p>
<h2>📚 References and Further Reading</h2>
<ul>
<li><a href="https://www.itu.int/rec/T-REC-G.652/en">ITU-T G.652 — Single-mode optical fibre and cable</a></li>
<li><a href="https://www.itu.int/rec/T-REC-G.657/en">ITU-T G.657 — Bending-loss insensitive single-mode optical fibre and cable</a></li>
<li><a href="https://www.ieee802.org/3/df/">IEEE 802.3df — 400 Gb/s and 800 Gb/s Ethernet</a></li>
<li><a href="https://www.tiafotc.org/ieee-802-3-ethernet-standards-update/singlemode-standards-update/800gbase-dr8/">TIA — 800GBASE-DR8 Application Overview</a></li>
<li><a href="https://www.thefoa.org/tech/ref/contents.html">The Fiber Optic Association — Technical Reference Guide</a></li>
</ul>
<p>Stay curious. Keep learning.</p>
<p><strong>Packets &amp; Fabrics</strong></p>
<p><em>Decoding Networks. Designing AI Fabrics.</em></p>
]]></content:encoded></item><item><title><![CDATA[What Makes Up an InfiniBand Network? — From Two GPU Servers to an AI Fabric]]></title><description><![CDATA[Explore InfiniBand network architecture, HCAs, RDMA, Subnet Managers, fabric scalability and resilience for high-performance AI training.]]></description><link>https://packetsandfabrics.com/what-makes-up-an-infiniband-network-from-two-gpu-servers-to-an-ai-fabric</link><guid isPermaLink="true">https://packetsandfabrics.com/what-makes-up-an-infiniband-network-from-two-gpu-servers-to-an-ai-fabric</guid><category><![CDATA[infiniband]]></category><category><![CDATA[AI networking]]></category><category><![CDATA[RDMA]]></category><category><![CDATA[Data Center Networking]]></category><category><![CDATA[Network Architecture]]></category><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Tue, 01 Dec 2026 06:09:17 GMT</pubDate><content:encoded><![CDATA[<p><em>InfiniBand Essentials Learning Series | Lesson 02</em></p>
<p>In <a href="https://packetsandfabrics.hashnode.dev/why-was-infiniband-created-the-problem-that-existed-long-before-ai">Lesson 01</a>, we explored why InfiniBand was created and why faster processors alone cannot solve communication bottlenecks.</p>
<p>🎬 <strong>Watch the quick introduction:</strong> <a href="https://youtube.com/shorts/AyvNF5omxUA?si=tD4BJw2wr1DDMb_5"><strong>https://lnkd.in/gcBQywdS</strong></a></p>
<p>Now, let's understand how InfiniBand works.</p>
<p>Imagine two servers, each with eight GPUs, working together to train an AI model. The GPUs perform calculations, exchange data and synchronize their results.</p>
<p>If communication is slow, even powerful GPUs spend time waiting for data.</p>
<p><strong>How do GPUs in different servers communicate efficiently?</strong></p>
<p>In this lesson, we'll explore the fundamental building blocks of InfiniBand, understand how data travels between GPUs, and gradually scale from two GPU servers to a 256-GPU AI fabric.</p>
<h2>1. The building blocks of an InfiniBand network</h2>
<p>A switched InfiniBand network relies on four fundamental components.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/c6854dcc-0b86-48c0-a132-e8e7c2d588b9.svg" alt="Fundamental components of a switched InfiniBand network" style="display:block;margin:0 auto" />

<p><em>Figure 1 — Fundamental components of a switched InfiniBand network.</em></p>
<table>
<thead>
<tr>
<th>Component</th>
<th>Responsibility</th>
</tr>
</thead>
<tbody><tr>
<td>Host Channel Adapter (HCA)</td>
<td>Connects the server to the fabric</td>
</tr>
<tr>
<td>Link</td>
<td>Carries data between ports</td>
</tr>
<tr>
<td>Switch</td>
<td>Forwards packets</td>
</tr>
<tr>
<td>Subnet Manager (SM)</td>
<td>Initializes and manages the subnet</td>
</tr>
</tbody></table>
<p>Two HCAs can also be connected directly without a switch, although the InfiniBand subnet still requires initialization.</p>
<p>Each component has a different responsibility, but together they enable high-performance communication.</p>
<p>Let's start where data enters the network.</p>
<h2>2. Host Channel Adapter — The gateway to the fabric</h2>
<p>An HCA handles much of the transport processing and data movement in hardware.</p>
<h3>DMA, RDMA and GPUDirect RDMA</h3>
<p>To understand why HCAs are important, we need to understand three related concepts.</p>
<p><strong>Direct Memory Access (DMA)</strong> allows a hardware device to access local memory without requiring the CPU to copy every byte.</p>
<p><strong>Remote Direct Memory Access (RDMA)</strong> allows data to move between registered memory regions on different systems.</p>
<p><strong>GPUDirect RDMA</strong> allows a compatible HCA to directly access GPU memory without first staging the payload in host memory.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/50ecb09f-a27f-4e9b-acca-87b3d3435aca.svg" alt="Understanding DMA, RDMA and GPUDirect RDMA" style="display:block;margin:0 auto" />

<p><em>Figure 2 — Understanding DMA, RDMA and GPUDirect RDMA.</em></p>
<p>Without GPUDirect RDMA, GPU data may need to be copied into host memory before the network adapter can access it. GPUDirect RDMA removes this intermediate payload-staging step on supported platforms.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/0c085cee-da47-48e4-ba60-2d7d1f4477a8.svg" alt="Host-memory staging versus GPUDirect RDMA" style="display:block;margin:0 auto" />

<p><em>Figure 3 — Host-memory staging versus GPUDirect RDMA.</em></p>
<p>The CPU still coordinates setup and synchronization.</p>
<blockquote>
<p><strong>💡 Analogy — A factory and a warehouse</strong></p>
<p>Instead of moving finished goods into an intermediate warehouse before loading a truck, the truck collects them directly from the factory.</p>
</blockquote>
<h3>Can the server keep up with the network?</h3>
<p>A 400 Gbps HCA needs adequate PCIe capacity. PCIe Gen4 x16 offers approximately 252 Gbps per direction, while Gen5 x16 offers approximately 504 Gbps. These theoretical figures account for line encoding but exclude transaction overhead.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/325b0926-bc0d-4151-9285-7b83eb366be3.svg" alt="Theoretical PCIe bandwidth compared with nominal HCA link capacity" style="display:block;margin:0 auto" />

<p><em>Figure 4 — Theoretical PCIe bandwidth compared with nominal HCA link capacity.</em></p>
<p>A 400G HCA operating over PCIe Gen4 x16 could therefore be limited by its PCIe connectivity rather than its network link.</p>
<h3>Why GPU-to-HCA placement matters</h3>
<p>Even two servers equipped with identical GPUs, HCAs and PCIe generations can deliver different communication performance. The reason may be their internal hardware topology.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/bc86f323-c40b-4958-bb53-a5ae2746ca0b.svg" alt="Local versus cross-socket GPU-to-HCA connectivity" style="display:block;margin:0 auto" />

<p><em>Figure 5 — Local versus cross-socket GPU-to-HCA connectivity.</em></p>
<p>A GPU and HCA connected through a nearby PCIe switch may have a more efficient communication path than devices located across different CPU sockets. This relationship is commonly referred to as <strong>GPU-to-HCA affinity</strong>. Actual performance and GPUDirect RDMA support depend on the platform and software configuration.</p>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Check negotiated PCIe generation and width, GPU-to-HCA affinity, and concurrent adapter capacity. A faster network adapter cannot compensate for an internal server bottleneck.</p>
</blockquote>
<h2>3. InfiniBand links — The highways carrying data</h2>
<p>InfiniBand links are point-to-point and full-duplex.</p>
<h3>Understanding lanes and link bandwidth</h3>
<p>A four-lane NDR link provides nominal 400 Gbps in each direction simultaneously.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/81bd1d0c-8421-413b-b0e5-7c668ca44834.svg" alt="Four-lane full-duplex NDR connectivity" style="display:block;margin:0 auto" />

<p><em>Figure 6 — Four-lane full-duplex NDR connectivity.</em></p>
<p>Full-duplex operation means that both devices can transmit and receive simultaneously. However, 400 Gbps in each direction does not mean a single unidirectional transfer can achieve 800 Gbps.</p>
<h3>How InfiniBand link speeds have evolved</h3>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/043f6f45-92cd-4527-ba3d-eb617fffb052.svg" alt="Nominal four-lane InfiniBand link speed evolution" style="display:block;margin:0 auto" />

<p><em>Figure 7 — Nominal four-lane InfiniBand link speed evolution.</em></p>
<p>These generation labels are nominal rates, not guaranteed application throughput; historical encoding conventions differ.</p>
<blockquote>
<p><strong>💡 Analogy — A multilane highway</strong></p>
<p>Multiple lanes carry traffic in parallel, with independent capacity in each direction.</p>
</blockquote>
<h3>Copper or optical connectivity?</h3>
<table>
<thead>
<tr>
<th>Medium</th>
<th>Typical role</th>
</tr>
</thead>
<tbody><tr>
<td>Passive DAC</td>
<td>Short connections</td>
</tr>
<tr>
<td>Active copper cable</td>
<td>Extended copper reach</td>
</tr>
<tr>
<td>AOC</td>
<td>Integrated optical cable</td>
</tr>
<tr>
<td>Optical transceivers and fiber</td>
<td>Longer or more flexible connections</td>
</tr>
</tbody></table>
<p>For example, a server connected to a nearby leaf switch within the same rack may use a qualified copper cable. Longer inter-rack connections may require optical connectivity, depending on supported reach and installation requirements.</p>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Choose qualified cables based on reach, compatibility, power, cost and maintenance requirements.</p>
</blockquote>
<h2>4. InfiniBand switches — How does data reach its destination?</h2>
<p>Connecting two servers directly is relatively simple. But what happens when we need to connect hundreds of endpoints?</p>
<table>
<thead>
<tr>
<th align="right">Network endpoints</th>
<th align="right">Direct full-mesh connections</th>
</tr>
</thead>
<tbody><tr>
<td align="right">2</td>
<td align="right">1</td>
</tr>
<tr>
<td align="right">8</td>
<td align="right">28</td>
</tr>
<tr>
<td align="right">32</td>
<td align="right">496</td>
</tr>
<tr>
<td align="right">128</td>
<td align="right">8,128</td>
</tr>
</tbody></table>
<p>Switches solve this scalability problem by providing shared connectivity. For conventional intra-subnet unicast forwarding, the switch uses the destination LID (DLID) and a linear forwarding table (LFT) to select an output port. Unlike traditional Ethernet MAC learning, the forwarding information is installed through subnet management.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/ebb48a15-88ad-41c9-987a-e4428b088397.svg" alt="Simplified destination-LID-based packet forwarding" style="display:block;margin:0 auto" />

<p><em>Figure 8 — Simplified destination-LID-based packet forwarding.</em></p>
<table>
<thead>
<tr>
<th>Traditional Ethernet bridging</th>
<th>Native InfiniBand unicast</th>
</tr>
</thead>
<tbody><tr>
<td>Destination MAC address</td>
<td>Destination LID</td>
</tr>
<tr>
<td>MAC forwarding database</td>
<td>Linear Forwarding Table</td>
</tr>
<tr>
<td>Typically learns source MAC addresses</td>
<td>Forwarding information installed through subnet management</td>
</tr>
</tbody></table>
<h3>Why credit-based flow control matters</h3>
<p>Imagine a switch receiving data faster than its receiving buffers can accommodate. InfiniBand uses <strong>credit-based link flow control</strong> to help prevent buffer overflow.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/0345d95b-6a4f-4780-a6d1-5f76cf116dc7.svg" alt="Simplified InfiniBand credit-based link flow control" style="display:block;margin:0 auto" />

<p><em>Figure 9 — Simplified InfiniBand credit-based link flow control.</em></p>
<p>A sender transmits according to its available credits, which represent receiving-buffer capacity. When credits are exhausted, transmission for the affected data virtual lane must wait until additional credits become available. This does not eliminate congestion or guarantee that packets can never be lost.</p>
<p>We will explore flow control, virtual lanes and congestion management in dedicated lessons later in this series.</p>
<blockquote>
<p><strong>💡 Analogy — A railway junction</strong></p>
<p>Trains follow established routes through junctions instead of discovering a new route at every crossing.</p>
</blockquote>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Switch radix determines how many ports are available for endpoints and inter-switch connections.</p>
</blockquote>
<h2>5. Subnet Manager — Who makes the fabric operational?</h2>
<p>Imagine that the physical links are up but the servers cannot communicate. A missing or malfunctioning Subnet Manager is one possible cause.</p>
<p>The SM discovers devices, assigns LIDs, computes forwarding paths, programs switches, activates ports and monitors topology changes.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/2b4ee7c1-3be6-49c7-9ff0-2b3aa4ec80ad.svg" alt="Subnet Manager responsibilities and simplified port initialization" style="display:block;margin:0 auto" />

<p><em>Figure 10 — Subnet Manager responsibilities and simplified port initialization.</em></p>
<p>A physical LinkUp state does not necessarily mean that a logical port is ACTIVE. A port remaining in INIT warrants investigation of subnet initialization. OpenSM is an open-source implementation; supported switches can also host subnet management.</p>
<blockquote>
<p><strong>💡 Analogy — A railway control center</strong></p>
<p>The control center establishes routes, but trains do not travel through the control center.</p>
</blockquote>
<h3>What happens if the Subnet Manager fails?</h3>
<p>Existing forwarding may continue with unchanged topology, but new endpoints and topology reconfiguration may be affected.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/6b83f6be-f5f0-41b7-8788-ef4c2fe2daaf.svg" alt="Master and standby Subnet Managers in independent failure domains" style="display:block;margin:0 auto" />

<p><em>Figure 11 — Master and standby Subnet Managers in independent failure domains.</em></p>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Place redundant SMs in independent failure domains and validate takeover, new endpoint discovery and routing changes.</p>
</blockquote>
<h2>6. GUID, LID and GID — Identity versus address</h2>
<table>
<thead>
<tr>
<th>Identifier</th>
<th align="right">Size</th>
<th>Role</th>
</tr>
</thead>
<tbody><tr>
<td>GUID</td>
<td align="right">64 bits</td>
<td>Globally unique device or port identity</td>
</tr>
<tr>
<td>Conventional LID</td>
<td align="right">16 bits</td>
<td>Local forwarding identifier within a subnet</td>
</tr>
<tr>
<td>GID</td>
<td align="right">128 bits</td>
<td>Global identifier</td>
</tr>
</tbody></table>
<p>A port GUID normally remains stable, whereas its assigned LID can change. A default unicast GID consists of a 64-bit subnet prefix and a 64-bit port GUID.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f0020876-672f-4740-ac71-e0d33b532fd4.svg" alt="Illustrative GUID-to-LID mapping and default unicast GID structure" style="display:block;margin:0 auto" />

<p><em>Figure 12 — Illustrative GUID-to-LID mapping and default unicast GID structure.</em></p>
<blockquote>
<p><strong>💡 Analogy — Employee ID and desk number</strong></p>
<p>An employee can move to another desk without changing their identity.</p>
</blockquote>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Track Port GUIDs and dynamic subnet-scoped LID mappings rather than treating a changed LID as a replaced device.</p>
</blockquote>
<h2>7. Putting everything together — A GPU-to-GPU data journey</h2>
<p>Return to our two GPU servers. Assume the subnet is initialized, GPU memory is registered and an authorized RDMA connection is established.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/29317087-c39c-4683-8846-e0673ed9a068.svg" alt="End-to-end GPU-to-GPU communication using GPUDirect RDMA" style="display:block;margin:0 auto" />

<p><em>Figure 13 — End-to-end GPU-to-GPU communication using GPUDirect RDMA.</em></p>
<ol>
<li>GPU A produces data and software coordinates synchronization.</li>
<li>The sending HCA accesses registered GPU memory.</li>
<li>The HCA constructs and transmits InfiniBand packets.</li>
<li>The switch forwards using the destination LID.</li>
<li>The receiving HCA processes the RDMA Write and places data into authorized GPU memory.</li>
<li>Software handles completion and GPU synchronization.</li>
</ol>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Successful host-memory RDMA does not establish that GPU-memory RDMA is efficient. Validate both paths.</p>
</blockquote>
<h2>8. From two GPU servers to a 256-GPU fabric</h2>
<p>Consider 32 servers, each with eight GPUs.</p>
<h3>How many HCAs do we need?</h3>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/4e030e4f-43df-466d-95c6-ec32fd898e20.svg" alt="Illustrative HCA bandwidth sizing for an eight-GPU server" style="display:block;margin:0 auto" />

<p><em>Figure 14 — Illustrative HCA bandwidth sizing for an eight-GPU server.</em></p>
<table>
<thead>
<tr>
<th align="right">Single-port 400G HCAs/server</th>
<th align="right">Server bandwidth</th>
<th align="right">Nominal average per GPU</th>
</tr>
</thead>
<tbody><tr>
<td align="right">1</td>
<td align="right">400 Gbps</td>
<td align="right">50 Gbps</td>
</tr>
<tr>
<td align="right">4</td>
<td align="right">1.6 Tbps</td>
<td align="right">200 Gbps</td>
</tr>
<tr>
<td align="right">8</td>
<td align="right">3.2 Tbps</td>
<td align="right">400 Gbps</td>
</tr>
</tbody></table>
<p>Suppose our workload requires 150 Gbps of nominal network capacity per GPU. Eight GPUs require 1,200 Gbps per server.</p>
<p>Among these three configurations, four HCAs provide sufficient nominal capacity assuming equal sharing and sufficient internal PCIe capacity, with approximately 33% headroom. Eight HCAs require additional PCIe resources, switch ports, cables, power and investment.</p>
<p>For our example, we select four 400G HCAs per server, giving 128 endpoint links.</p>
<h3>Why do we need a leaf-spine architecture?</h3>
<p>A single 64-port switch cannot connect 128 HCA ports. Leaf switches connect endpoints; spine switches interconnect leaves.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/68a8630d-a60c-4af6-8e20-1ea33290e7c7.svg" alt="Illustrative 256-GPU InfiniBand leaf-spine fabric" style="display:block;margin:0 auto" />

<p><em>Figure 15 — Illustrative 256-GPU InfiniBand leaf-spine fabric.</em></p>
<table>
<thead>
<tr>
<th>Component</th>
<th align="right">Quantity</th>
</tr>
</thead>
<tbody><tr>
<td>Servers</td>
<td align="right">32</td>
</tr>
<tr>
<td>GPUs</td>
<td align="right">256</td>
</tr>
<tr>
<td>400G HCA ports</td>
<td align="right">128</td>
</tr>
<tr>
<td>Leaf switches</td>
<td align="right">8</td>
</tr>
<tr>
<td>Spine switches</td>
<td align="right">3</td>
</tr>
<tr>
<td>Logical 400G ports per switch</td>
<td align="right">64</td>
</tr>
</tbody></table>
<p>Each leaf connects 16 endpoint ports and eight links to each of three spines. Each spine uses 64 ports. The fabric has 192 inter-switch links and 128 endpoint links. Individual server mappings and SM connectivity are omitted from this illustrative port budget.</p>
<table>
<thead>
<tr>
<th>Resource</th>
<th>Calculation</th>
<th align="right">Result</th>
</tr>
</thead>
<tbody><tr>
<td>Endpoint links per leaf</td>
<td>128 ÷ 8</td>
<td align="right">16</td>
</tr>
<tr>
<td>Uplinks per leaf</td>
<td>3 × 8</td>
<td align="right">24</td>
</tr>
<tr>
<td>Used ports per leaf</td>
<td>16 + 24</td>
<td align="right">40</td>
</tr>
<tr>
<td>Spare ports per leaf</td>
<td>64 − 40</td>
<td align="right">24</td>
</tr>
<tr>
<td>Used ports per spine</td>
<td>8 × 8</td>
<td align="right">64</td>
</tr>
<tr>
<td>Inter-switch links</td>
<td>8 × 3 × 8</td>
<td align="right">192</td>
</tr>
</tbody></table>
<h3>Understanding fabric scalability</h3>
<p>Connecting every GPU server is only the first step. During distributed training, many servers can communicate simultaneously. Can the fabric carry their combined traffic?</p>
<h4>Oversubscription — Can the uplinks carry the endpoint traffic?</h4>
<p><strong>Oversubscription</strong> compares endpoint-facing bandwidth with uplink bandwidth. A leaf with 32 x 400G endpoint links and 32 x 400G uplinks has a 1:1 ratio. Reducing uplinks to 16 gives 2:1: 12.8 Tbps of endpoint capacity shares 6.4 Tbps of uplink capacity.</p>
<ul>
<li>Endpoint capacity: 32 × 400 Gbps = 12.8 Tbps.</li>
<li>Balanced uplink capacity: 32 × 400 Gbps = 12.8 Tbps.</li>
<li>Oversubscribed uplink capacity: 16 × 400 Gbps = 6.4 Tbps.</li>
<li>Oversubscription ratio: 12.8 ÷ 6.4 = 2:1.</li>
</ul>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/07a63df2-70db-4468-9c01-5ebd373fcb74.svg" alt="Comparing 1:1 and 2:1 leaf oversubscription" style="display:block;margin:0 auto" />

<p><em>Figure 16 — Comparing 1:1 and 2:1 leaf oversubscription.</em></p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">Balanced</th>
<th align="right">Oversubscribed</th>
</tr>
</thead>
<tbody><tr>
<td>Endpoint bandwidth</td>
<td align="right">12.8 Tbps</td>
<td align="right">12.8 Tbps</td>
</tr>
<tr>
<td>Uplink bandwidth</td>
<td align="right">12.8 Tbps</td>
<td align="right">6.4 Tbps</td>
</tr>
<tr>
<td>Oversubscription</td>
<td align="right">1:1</td>
<td align="right">2:1</td>
</tr>
</tbody></table>
<p>Oversubscription can be economical when traffic demand is not simultaneous, but communication-intensive workloads may require more capacity.</p>
<h4>Bisection bandwidth — Can both halves communicate at scale?</h4>
<p><strong>Bisection bandwidth</strong> is the minimum aggregate capacity across a balanced partition of the network. In our example, each half has 64 HCA ports, giving an endpoint-limited target of 25.6 Tbps per direction (64 × 400 Gbps = 25,600 Gbps). Actual usable capacity depends on the fabric cuts, routing and traffic distribution.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/c563c72a-c213-4f2a-a135-09898591ef7b.svg" alt="Endpoint-limited bisection bandwidth of the 256-GPU fabric" style="display:block;margin:0 auto" />

<p><em>Figure 17 — Endpoint-limited bisection bandwidth of the 256-GPU fabric.</em></p>
<blockquote>
<p><strong>💡 Analogy — A highway bottleneck</strong></p>
<p>If sixteen lanes merge into eight, every destination remains reachable, but simultaneous traffic cannot necessarily maintain its original rate.</p>
</blockquote>
<p><strong>Oversubscription describes bandwidth allocation. Bisection bandwidth describes aggregate capacity across a balanced partition.</strong></p>
<p>Both are important when designing scalable AI fabrics.</p>
<h3>Designing for failures</h3>
<p>What happens when one spine fails? Each leaf has 16 endpoint links and 24 uplinks in normal operation. Losing one spine removes eight uplinks per leaf.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/784a9b09-147f-487b-956e-f427cbdfb4a3.svg" alt="Nominal bandwidth during normal operation and one or two spine failures" style="display:block;margin:0 auto" />

<p><em>Figure 18 — Nominal bandwidth during normal operation and one or two spine failures.</em></p>
<table>
<thead>
<tr>
<th>Per leaf</th>
<th align="right">Normal</th>
<th align="right">1 spine failed</th>
<th align="right">2 spines failed</th>
</tr>
</thead>
<tbody><tr>
<td>Endpoint links</td>
<td align="right">16</td>
<td align="right">16</td>
<td align="right">16</td>
</tr>
<tr>
<td>Uplinks</td>
<td align="right">24</td>
<td align="right">16</td>
<td align="right">8</td>
</tr>
<tr>
<td>Endpoint bandwidth</td>
<td align="right">6.4 Tbps</td>
<td align="right">6.4 Tbps</td>
<td align="right">6.4 Tbps</td>
</tr>
<tr>
<td>Uplink bandwidth</td>
<td align="right">9.6 Tbps</td>
<td align="right">6.4 Tbps</td>
<td align="right">3.2 Tbps</td>
</tr>
<tr>
<td>Endpoint/uplink ratio</td>
<td align="right">0.67:1</td>
<td align="right">1:1</td>
<td align="right">2:1</td>
</tr>
</tbody></table>
<p>The surviving fabric retains nominal 1:1 leaf bandwidth after a single spine failure. Application throughput still depends on routing, traffic distribution and recovery.</p>
<h3>Rail optimization — Organizing GPU communication</h3>
<p>Corresponding HCA indices across servers can be grouped into rails. When GPU placement and collective communication patterns align with those rails, locality can improve.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/d46f03ec-c6e1-482c-a565-4ff1529b3ffd.svg" alt="Simplified two-rail connectivity" style="display:block;margin:0 auto" />

<p><em>Figure 19(a) — Simplified two-rail connectivity.</em></p>
<p>Rails may be logical groupings within a shared fabric; they need not be separate subnets.</p>
<h4>Understanding the benefit of rail optimization</h4>
<p>Imagine two GPU servers exchanging data during distributed AI training. When the communicating GPUs use HCAs connected to the same leaf switch, their traffic can remain within that leaf without traversing the spine tier. When they use HCAs attached to different rail leaves, traffic traverses the shared leaf-spine fabric in this example.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/23e9c632-c65c-40a5-8d4f-4236834cf9d8.svg" alt="Comparing same-leaf and cross-rail communication paths" style="display:block;margin:0 auto" />

<p><em>Figure 19(b) — Comparing same-leaf and cross-rail communication paths in a simplified rail-aware InfiniBand fabric.</em></p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>Same-leaf path</th>
<th>Cross-leaf path</th>
</tr>
</thead>
<tbody><tr>
<td>Switch traversals</td>
<td>1</td>
<td>3</td>
</tr>
<tr>
<td>Spine traversal</td>
<td>No</td>
<td>Yes</td>
</tr>
<tr>
<td>Inter-switch link utilization</td>
<td>None</td>
<td>Required</td>
</tr>
<tr>
<td>Potential network latency</td>
<td>Lower</td>
<td>Higher</td>
</tr>
<tr>
<td>Additional fabric resources</td>
<td>Fewer</td>
<td>More</td>
</tr>
</tbody></table>
<p>By aligning GPU placement, HCA connectivity and collective communication patterns, rail-aware designs can reduce unnecessary spine traffic and improve fabric utilization. However, same-rail endpoints attached to different leaves may still require spine traversal.</p>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Rail optimization is not simply about connecting corresponding HCAs to the same group of switches. It is about aligning the physical network topology with how the application communicates.</p>
</blockquote>
<h3>Planning for future expansion</h3>
<p>Suppose our infrastructure needs to grow from 256 GPUs to 512 GPUs.</p>
<table>
<thead>
<tr>
<th>Design parameter</th>
<th align="right">256 GPUs</th>
<th align="right">512 GPUs</th>
</tr>
</thead>
<tbody><tr>
<td>Eight-GPU servers</td>
<td align="right">32</td>
<td align="right">64</td>
</tr>
<tr>
<td>400G HCA ports</td>
<td align="right">128</td>
<td align="right">256</td>
</tr>
<tr>
<td>Nominal server capacity</td>
<td align="right">1.6 Tbps</td>
<td align="right">1.6 Tbps</td>
</tr>
<tr>
<td>Aggregate endpoint capacity</td>
<td align="right">51.2 Tbps</td>
<td align="right">102.4 Tbps</td>
</tr>
<tr>
<td>Endpoint-limited bisection target, per direction</td>
<td align="right">25.6 Tbps</td>
<td align="right">51.2 Tbps</td>
</tr>
</tbody></table>
<p>Although our existing leaf switches have unused ports, the spine switches are already fully populated. Adding more servers and leaf switches alone does not guarantee that the expanded fabric will retain the required bandwidth and failure resilience.</p>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>A scalable fabric needs sufficient normal-state bandwidth, sufficient capacity during required failures, and a practical expansion path.</p>
<p><strong>Connectivity redundancy is not the same as bandwidth redundancy.</strong></p>
</blockquote>
<h3>🌐 Real-World Reference — InfiniBand in AI Fabrics</h3>
<p>NVIDIA's Quantum-2 QM9700 switch provides 64 × 400 Gbps InfiniBand ports. The NVIDIA DGX SuperPOD H100 uses these switches in a rail-optimized fat-tree architecture to connect GPU servers at scale.</p>
<p>This is a real-world example of how switch port capacity, fabric scalability and rail optimization come together in AI infrastructure design.</p>
<p>Our 256-GPU example illustrates the same fundamental design principles using a simplified architecture.</p>
<h2>9. The Bigger Picture — Designing a balanced AI fabric</h2>
<p>Throughout this lesson, we started with two GPU servers, understood how InfiniBand enables communication between them, and gradually scaled the network into a 256-GPU AI fabric.</p>
<p>But does connecting powerful GPUs using high-speed InfiniBand switches automatically create a high-performance AI infrastructure?</p>
<p><strong>Not necessarily.</strong></p>
<p>The performance of an AI fabric depends on how well its individual components work together.</p>
<h3>Understanding the weakest link</h3>
<p>Consider the complete journey of data between two GPUs residing in different servers.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/8763e93f-4cb9-4daf-beda-f763e787c7ef.svg" alt="Designing a balanced end-to-end GPU communication path" style="display:block;margin:0 auto" />

<p><em>Figure 20 — Designing a balanced end-to-end GPU communication path.</em></p>
<p>Even when the InfiniBand fabric provides sufficient bandwidth, limitations in GPU memory access, PCIe connectivity or HCA placement can restrict overall communication performance.</p>
<p>The achievable transfer rate is bounded by the effective capacity of the slowest component along the communication path.</p>
<blockquote>
<p><strong>💡 Analogy — A water pipeline</strong></p>
<p>Imagine connecting several pipes of different diameters. Installing a larger pipe in the middle does not necessarily increase the water flow if a narrower pipe continues to restrict it elsewhere.</p>
<p>Similarly, upgrading an InfiniBand link from 400G to 800G may not improve performance if PCIe connectivity is already the bottleneck.</p>
</blockquote>
<h3>When faster networks do not solve the problem</h3>
<p>Imagine that we have deployed our 256-GPU AI fabric and observe the following results during a point-to-point RDMA test.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/82b9ddd4-7bf9-4952-baed-254bd20a1c00.svg" alt="Comparing host-memory and GPU-memory RDMA performance" style="display:block;margin:0 auto" />

<p><em>Figure 21 — Comparing host-memory and GPU-memory RDMA performance.</em></p>
<p>The network achieves 375 Gbps when transferring data between host-memory buffers. However, GPU-memory transfers achieve only 185 Gbps. These are hypothetical values, not hardware benchmarks.</p>
<p>Would upgrading the network to 800G solve this problem?</p>
<p>The relatively high host-memory throughput suggests that the common network path can support substantially higher throughput than observed during GPU-memory transfers.</p>
<p>Before upgrading the network, we should investigate:</p>
<ul>
<li>Negotiated PCIe generation and lane width.</li>
<li>GPU-to-HCA affinity.</li>
<li>GPUDirect RDMA configuration.</li>
<li>Internal server topology and resource contention.</li>
</ul>
<p>These observations help narrow the investigation but do not independently prove the root cause.</p>
<h3>Balancing the entire AI fabric</h3>
<p>A balanced AI fabric requires several interconnected design decisions.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/e369e14b-cd7f-4361-993e-0abc4e4e4a95.svg" alt="Fundamental design dimensions of a balanced AI fabric" style="display:block;margin:0 auto" />

<p><em>Figure 22 — Fundamental design dimensions of a balanced AI fabric.</em></p>
<table>
<thead>
<tr>
<th>Design dimension</th>
<th>Fundamental question</th>
</tr>
</thead>
<tbody><tr>
<td>Workload</td>
<td>How much communication capacity does the application require?</td>
</tr>
<tr>
<td>Server architecture</td>
<td>Can the internal data path sustain the required bandwidth?</td>
</tr>
<tr>
<td>Endpoint capacity</td>
<td>How many HCAs are needed per server?</td>
</tr>
<tr>
<td>Fabric architecture</td>
<td>Can the network support simultaneous communication?</td>
</tr>
<tr>
<td>Resilience</td>
<td>Is sufficient capacity available during failures?</td>
</tr>
<tr>
<td>Economics</td>
<td>Can the design meet performance, cost, power and future growth requirements?</td>
</tr>
</tbody></table>
<p>Optimizing one component independently does not necessarily optimize the entire system.</p>
<h3>Validating the complete AI fabric</h3>
<p>Once the fabric is deployed, how do we know that it meets our design objectives?</p>
<table>
<thead>
<tr>
<th>Validation area</th>
<th>What to verify</th>
</tr>
</thead>
<tbody><tr>
<td>Physical connectivity</td>
<td>Link state, speed, width and errors</td>
</tr>
<tr>
<td>Fabric management</td>
<td>SM availability, addressing and forwarding</td>
</tr>
<tr>
<td>Server connectivity</td>
<td>PCIe capacity and GPU-HCA affinity</td>
</tr>
<tr>
<td>RDMA performance</td>
<td>Host-memory and GPU-memory bandwidth and latency</td>
</tr>
<tr>
<td>Fabric performance</td>
<td>Concurrent traffic, congestion and aggregate bandwidth</td>
</tr>
<tr>
<td>Application performance</td>
<td>NCCL collectives, GPU utilization and training iteration time</td>
</tr>
<tr>
<td>Failure resilience</td>
<td>Recovery time and surviving application performance</td>
</tr>
</tbody></table>
<p>Tools such as <code>ib_write_bw</code> and NCCL Tests can help validate different parts of the communication path.</p>
<p>However, successful point-to-point RDMA tests alone do not guarantee that a large-scale distributed AI workload will perform efficiently.</p>
<blockquote>
<p><strong>🧭 Architect's Corner</strong></p>
<p>Start with workload requirements, translate them into measurable infrastructure requirements, and validate the complete system under both normal and failure conditions.</p>
<p>The success of an AI fabric should ultimately be measured by how effectively it supports the application, not simply by the speed of its network links.</p>
</blockquote>
<p><strong>A well-designed AI fabric is not necessarily the fastest or most expensive network. It is a balanced infrastructure that enables GPUs to spend more time computing and less time waiting for data.</strong></p>
<h2>🔍 Think About It</h2>
<p>You have been asked to expand a 256-GPU AI fabric to 512 GPUs while maintaining application performance during a single spine failure.</p>
<p><strong>Would adding more GPU servers and leaf switches be sufficient, or would you need to reconsider the entire fabric design?</strong></p>
<h2>🎯 Key Takeaways</h2>
<ul>
<li>HCAs provide hardware-assisted communication and RDMA.</li>
<li>GPUDirect RDMA avoids intermediate host-memory payload staging.</li>
<li>PCIe capacity, HCA count and affinity influence performance.</li>
<li>InfiniBand links provide point-to-point, full-duplex connectivity.</li>
<li>Switches forward using programmed forwarding information.</li>
<li>Credit-based flow control helps prevent receive-buffer overflow.</li>
<li>The Subnet Manager initializes and manages the subnet.</li>
<li>GUID, LID and GID serve distinct purposes.</li>
<li>Scalable fabrics balance bandwidth, rail placement and failure resilience.</li>
<li>Connectivity redundancy does not guarantee bandwidth redundancy; validate surviving capacity under required failure conditions.</li>
<li>Application performance is the ultimate measure of design effectiveness.</li>
</ul>
<h2>🚀 What's Next?</h2>
<p>We now understand the components that make up an InfiniBand network. But what information does an InfiniBand packet carry? How does the receiving HCA identify the correct communication endpoint? How is data integrity maintained?</p>
<p><strong>Lesson 03 — How Does Data Travel Through InfiniBand?</strong></p>
<h2>📚 References</h2>
<ul>
<li><a href="https://www.infinibandta.org/">InfiniBand Trade Association</a></li>
<li><a href="https://docs.nvidia.com/cuda/gpudirect-rdma/">NVIDIA GPUDirect RDMA</a></li>
<li><a href="https://pcisig.com/">PCI-SIG</a></li>
<li><a href="https://networking-docs.nvidia.com/doca/sdk/rdma-aware-networks-programming-guide">NVIDIA DOCA — RDMA-aware Networks Programming Guide</a></li>
<li><a href="https://github.com/linux-rdma/opensm">OpenSM</a></li>
<li><a href="https://github.com/linux-rdma/opensm/blob/master/doc/current-routing.txt">OpenSM routing</a></li>
<li><a href="https://www.nvidia.com/en-us/networking/quantum2/">NVIDIA Quantum-2</a></li>
<li><a href="https://networking-docs.nvidia.com/qm97x0hw">QM97x0 hardware documentation</a></li>
<li><a href="https://docs.nvidia.com/dgx-superpod/reference-architecture-scalable-infrastructure-h100/latest/">DGX SuperPOD H100 reference architecture</a></li>
<li><a href="https://www.nvidia.com/en-us/networking/interconnect/">NVIDIA interconnects</a></li>
<li><a href="https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/">NCCL documentation</a></li>
<li><a href="https://github.com/NVIDIA/nccl-tests">NCCL Tests</a></li>
</ul>
<hr />
<p><strong>Packets &amp; Fabrics</strong></p>
<p><em>Decoding Networks. Designing AI Fabrics.</em></p>
]]></content:encoded></item><item><title><![CDATA[Before Designing an AI Data Center, Understand the Workload]]></title><description><![CDATA[Learn how AI workloads, GPU memory, KV cache, parallelism and collective communication shape AI data center and network architecture.]]></description><link>https://packetsandfabrics.com/before-designing-an-ai-data-center-understand-the-workload</link><guid isPermaLink="true">https://packetsandfabrics.com/before-designing-an-ai-data-center-understand-the-workload</guid><category><![CDATA[AI infrastructure]]></category><category><![CDATA[AI networking]]></category><category><![CDATA[Data Center Networking]]></category><category><![CDATA[GPU]]></category><category><![CDATA[System Design]]></category><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Mon, 30 Nov 2026 07:02:15 GMT</pubDate><content:encoded><![CDATA[<p><em>AI Data Center End-to-End Design Series | Lesson 02 · Part 1</em></p>
<p>In <a href="01-why-ai-data-centers-are-different.md">Lesson 01 — Why AI Data Centers Are Different: Designing from Scratch</a>, we explored GPU clusters, scale-up and scale-out networks, and established our initial 32-GPU reference architecture.</p>
<p>Before selecting GPUs, switches or network speeds, we need to answer a more fundamental question:</p>
<p><strong>What exactly are we building this infrastructure for?</strong></p>
<h2>1. Architecture begins with customer requirements</h2>
<p>Imagine a customer approaches us with a requirement:</p>
<blockquote>
<p>We want to build an AI infrastructure platform with 32 GPUs today, expand to 256 GPUs within a year, and eventually scale to 1,024 GPUs.</p>
</blockquote>
<p>Should we immediately recommend 400G Ethernet, 800G Ethernet, InfiniBand or the latest GPU?</p>
<p>Not yet.</p>
<p>As a Solution Architect, our first responsibility is to understand the customer's business objectives and application requirements.</p>
<p><a href="../blog-articles/lesson-02/part-01/diagrams-source/01-customer-requirement-discovery.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/0a378faf-f3fe-4880-ab8e-a4e8ad624bdc.svg" alt="Key dimensions of customer requirement discovery." width="480" /></a></p>
<p><em>Figure 1 — Key dimensions of customer requirement discovery.</em></p>
<table>
<thead>
<tr>
<th>Discovery area</th>
<th>Questions to ask</th>
</tr>
</thead>
<tbody><tr>
<td>Business</td>
<td>What problem are we solving?</td>
</tr>
<tr>
<td>Workload</td>
<td>Training, fine-tuning or inference?</td>
</tr>
<tr>
<td>Model</td>
<td>What size, architecture and precision?</td>
</tr>
<tr>
<td>Performance</td>
<td>What throughput and latency targets?</td>
</tr>
<tr>
<td>Capacity</td>
<td>How many concurrent jobs or requests?</td>
</tr>
<tr>
<td>Availability</td>
<td>What failures must we tolerate?</td>
</tr>
<tr>
<td>Scalability</td>
<td>How will the platform grow?</td>
</tr>
<tr>
<td>Economics</td>
<td>What are the budget and operating constraints?</td>
</tr>
</tbody></table>
<p>🏗️ <strong>Architect's Corner — Beyond GPU Count</strong></p>
<p>Two customers requesting the same number of GPUs may need very different architectures. Understand the workload, performance targets and business objectives before selecting infrastructure.</p>
<h2>2. Not all AI workloads are the same</h2>
<p><a href="../blog-articles/lesson-02/part-01/diagrams-source/02-ai-workload-types.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/18929609-bc4a-4bab-ac33-7ecea171da93.svg" alt="Training, fine-tuning and inference." width="480" /></a></p>
<p><em>Figure 2 — Training, fine-tuning and inference.</em></p>
<h3>Training — Teaching the model</h3>
<p>The model learns patterns from data by adjusting its internal parameters. Large-scale distributed training often requires frequent exchanges of gradients and intermediate computation results between GPUs.</p>
<h3>Fine-tuning — Adapting the model</h3>
<p>An existing pretrained model is adapted for a specific task or domain, such as networking documentation.</p>
<p>Low-Rank Adaptation (LoRA) reduces training memory requirements by training additional parameters while keeping the original weights frozen.</p>
<h3>Inference — Using the model</h3>
<p>A trained model generates predictions or responses without normally updating its weights. When we ask an AI assistant a question, the model performs inference.</p>
<table>
<thead>
<tr>
<th>Characteristic</th>
<th>Training</th>
<th>Fine-tuning</th>
<th>Inference</th>
</tr>
</thead>
<tbody><tr>
<td>Objective</td>
<td>Learn</td>
<td>Adapt</td>
<td>Predict</td>
</tr>
<tr>
<td>Weight updates</td>
<td>Yes</td>
<td>Full or partial</td>
<td>Normally no</td>
</tr>
<tr>
<td>Memory demand</td>
<td>High</td>
<td>Method dependent</td>
<td>Context and concurrency dependent</td>
</tr>
<tr>
<td>Communication</td>
<td>Often collective-heavy</td>
<td>Method dependent</td>
<td>Architecture dependent</td>
</tr>
<tr>
<td>Key metric</td>
<td>Time to train</td>
<td>Time to adapt</td>
<td>Latency and throughput</td>
</tr>
</tbody></table>
<blockquote>
<p>💡 <strong>Analogy — Learning and Applying Knowledge</strong></p>
<ul>
<li><strong>Training:</strong> Completing an engineering degree.</li>
<li><strong>Fine-tuning:</strong> Specializing in a particular technology.</li>
<li><strong>Inference:</strong> Applying that knowledge to solve a problem.</li>
</ul>
</blockquote>
<blockquote>
<p>🏗️ <strong>Architect's Corner — Workload Determines the Fabric</strong></p>
<p>Independent inference replicas may not require a dedicated GPU backend fabric, while distributed inference can introduce significant network requirements. Understand the workload before selecting the network.</p>
</blockquote>
<h2>3. Understanding the building blocks of an AI model</h2>
<p><a href="../blog-articles/lesson-02/part-01/diagrams-source/03-transformer-model-architecture.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/d2ae1523-de5e-4bdb-b569-277cb2bcfa0f.svg" alt="Simplified transformer model architecture." width="480" /></a></p>
<p><em>Figure 3 — Simplified transformer model architecture.</em></p>
<table>
<thead>
<tr>
<th>Term</th>
<th>Simple explanation</th>
</tr>
</thead>
<tbody><tr>
<td>Token</td>
<td>A unit of text processed by the model</td>
</tr>
<tr>
<td>Parameter</td>
<td>A numerical value learned during training</td>
</tr>
<tr>
<td>Tensor</td>
<td>A multidimensional collection of numbers</td>
</tr>
<tr>
<td>Layer</td>
<td>A computational stage within the model</td>
</tr>
<tr>
<td>Shard</td>
<td>A partition of a larger tensor or model state</td>
</tr>
<tr>
<td>Activation</td>
<td>An intermediate computation result</td>
</tr>
<tr>
<td>Gradient</td>
<td>Indicates how the loss changes with respect to a variable</td>
</tr>
<tr>
<td>Optimizer</td>
<td>An algorithm that updates model parameters</td>
</tr>
<tr>
<td>Expert</td>
<td>A computational component selected by an MoE router</td>
</tr>
<tr>
<td>HBM</td>
<td>High-bandwidth accelerator memory</td>
</tr>
<tr>
<td>KV cache</td>
<td>Stored attention keys and values from processed tokens</td>
</tr>
</tbody></table>
<p>Tokens are represented numerically using tensors. Model layers process those tensors using learned weights and produce intermediate results called activations. During training, gradients help determine how model weights should be updated.</p>
<h2>4. How much GPU memory do we really need?</h2>
<p>A customer wants to deploy a 70-billion-parameter language model. Does that mean it requires 70 GB of GPU memory? Not necessarily. It depends on numerical precision.</p>
<table>
<thead>
<tr>
<th>Precision</th>
<th align="right">Bits</th>
<th align="right">Bytes per parameter</th>
</tr>
</thead>
<tbody><tr>
<td>FP32</td>
<td align="right">32</td>
<td align="right">4</td>
</tr>
<tr>
<td>FP16 / BF16</td>
<td align="right">16</td>
<td align="right">2</td>
</tr>
<tr>
<td>INT8</td>
<td align="right">8</td>
<td align="right">1</td>
</tr>
<tr>
<td>INT4</td>
<td align="right">4</td>
<td align="right">0.5</td>
</tr>
</tbody></table>
<p><strong>Weight memory = parameters × bytes per parameter.</strong></p>
<p><a href="../blog-articles/lesson-02/part-01/diagrams-source/04-model-precision-weight-memory.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/abc88717-fec1-4869-82a9-7c2e45bed6ea.svg" alt="Impact of numerical precision on model weight memory." width="480" /></a></p>
<p><em>Figure 4 — Impact of numerical precision on model weight memory.</em></p>
<p>For a 70B BF16 model: 70 billion × 2 = <strong>140 GB</strong>.</p>
<p>Quantization can reduce memory consumption but may introduce accuracy trade-offs, metadata overhead and hardware compatibility requirements.</p>
<p>Two 80 GB GPUs provide 160 GB of aggregate memory. Does that guarantee efficient inference? No. Weights are only one part of the memory requirement.</p>
<h2>5. Why training and inference have different memory requirements</h2>
<p><a href="../blog-articles/lesson-02/part-01/diagrams-source/05-training-vs-inference-memory.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/eca77057-b40e-41ac-982c-d0d8926a4f93.svg" alt="Comparison of illustrative training and inference memory requirements." width="480" /></a></p>
<p><em>Figure 5 — Comparison of illustrative training and inference memory requirements.</em></p>
<h3>5.1 Inference memory — Understanding KV cache</h3>
<p>During autoregressive inference, a language model generates new tokens based on previously processed tokens. Instead of repeatedly computing attention keys and values for those tokens, it stores them in a Key-Value (KV) cache.</p>
<p>For a conventional transformer using grouped-query attention:</p>
<p><strong>KV memory = 2 × L × Hkv × D × B × T × C</strong></p>
<p>L = layers; Hkv = KV heads; D = head dimension; B = bytes per cached element; T = cached tokens per sequence; C = concurrent sequences.</p>
<p>Consider a Llama 3.1 70B-style model with 80 layers, eight KV heads, head dimension 128, BF16 KV cache, 8,192 cached tokens per sequence and 32 concurrent sequences. Estimated KV cache: <strong>85.9 GB</strong>.</p>
<table>
<thead>
<tr>
<th>Memory component</th>
<th align="right">Requirement</th>
</tr>
</thead>
<tbody><tr>
<td>Model weights</td>
<td align="right">140 GB</td>
</tr>
<tr>
<td>KV cache</td>
<td align="right">85.9 GB</td>
</tr>
<tr>
<td>Illustrative runtime reserve</td>
<td align="right">40 GB</td>
</tr>
<tr>
<td><strong>Total</strong></td>
<td align="right"><strong>265.9 GB</strong></td>
</tr>
<tr>
<td>Candidate capacity (4 × 80 GB)</td>
<td align="right">320 GB</td>
</tr>
<tr>
<td>Remaining headroom</td>
<td align="right">54.1 GB</td>
</tr>
</tbody></table>
<p>Four 80 GB GPUs are a potential candidate, provided the framework supports suitable partitioning and each GPU's allocation remains within capacity.</p>
<h3>5.2 Training memory — Beyond model weights</h3>
<p>Training requires additional memory for gradients, optimizer states, activations and temporary buffers. Consider one conventional mixed-precision Adam configuration:</p>
<table>
<thead>
<tr>
<th>Component</th>
<th align="right">Bytes per parameter</th>
</tr>
</thead>
<tbody><tr>
<td>BF16 weight</td>
<td align="right">2</td>
</tr>
<tr>
<td>BF16 gradient</td>
<td align="right">2</td>
</tr>
<tr>
<td>FP32 master weight</td>
<td align="right">4</td>
</tr>
<tr>
<td>Adam first moment</td>
<td align="right">4</td>
</tr>
<tr>
<td>Adam second moment</td>
<td align="right">4</td>
</tr>
<tr>
<td><strong>Total</strong></td>
<td align="right"><strong>16</strong></td>
</tr>
</tbody></table>
<p>70 billion × 16 = <strong>1,120 GB</strong>, before activations and runtime memory. An eight-GPU server with 80 GB per GPU provides only 640 GB.</p>
<p>Tensor Parallelism, Pipeline Parallelism, FSDP and ZeRO can help distribute computation or training state. Actual requirements depend on the implementation.</p>
<p>🏗️ <strong>Architect's Corner — Memory Fit ≠ Performance</strong></p>
<p>A model that fits within available GPU memory may still fail latency or throughput targets. Validate both per-GPU memory requirements and application performance.</p>
<h2>6. Why do we need different parallelism techniques?</h2>
<p>A model that fits comfortably on one GPU and meets performance requirements may not need distributed parallelism. But processing more data, distributing large layers, distributing groups of layers and distributing experts are different problems.</p>
<p><a href="../blog-articles/lesson-02/part-01/diagrams-source/06-ai-parallelism-techniques.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/4612c48d-32e3-4d64-9b43-50a33f766bb7.svg" alt="Fundamental differences between DP, TP, PP and EP." width="480" /></a></p>
<p><em>Figure 6 — Fundamental differences between DP, TP, PP and EP.</em></p>
<h3>Data Parallelism (DP) — Divide the data</h3>
<p>For 1,000 training samples, two GPUs can process different samples using identical model replicas in conventional DP, then synchronize gradients. <strong>Problem solved:</strong> increase training throughput.</p>
<h3>Tensor Parallelism (TP) — Divide the work within layers</h3>
<p>Partition a large weight matrix across GPUs. Each GPU performs a portion of the computation and exchanges partial results. For 140 GB of weights across four GPUs, ideal partitioning requires 35 GB per GPU. <strong>Problem solved:</strong> distribute model memory and computation.</p>
<h3>Pipeline Parallelism (PP) — Divide the layers</h3>
<p>An eight-layer model can be distributed across four GPUs with two consecutive layers each. Activations pass between stages; during training, activation gradients propagate backward. <strong>Problem solved:</strong> distribute model capacity.</p>
<h3>Expert Parallelism (EP) — Divide the experts</h3>
<p>Mixture of Experts (MoE) models contain computational components called experts. A learned router selects a subset for each token representation. Distributed experts receive token representations and return results. <strong>Problem solved:</strong> distribute expert memory and computation.</p>
<p>💡 <strong>Analogy — A Busy Restaurant</strong></p>
<ul>
<li><strong>DP:</strong> Multiple chefs prepare different orders using the same recipe.</li>
<li><strong>TP:</strong> Multiple chefs collaborate on one complex dish.</li>
<li><strong>PP:</strong> Different stations handle preparation, cooking and presentation.</li>
<li><strong>EP:</strong> Specialized chefs handle selected parts of an order.</li>
</ul>
<p>These techniques are not mutually exclusive. They can be used independently or combined depending on workload memory and performance requirements.</p>
<h3>How do GPUs exchange information?</h3>
<p>Distributed AI frameworks use communication operations called collectives.</p>
<p><a href="../blog-articles/lesson-02/part-01/diagrams-source/07-gpu-collective-communication.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/a419eb2d-4f11-4cb4-86b4-2cc73d555ad1.svg" alt="Fundamental GPU collective communication operations." width="480" /></a></p>
<p><em>Figure 7 — Fundamental GPU collective communication operations.</em></p>
<p>Libraries such as NVIDIA Collective Communications Library (NCCL) provide these operations.</p>
<table>
<thead>
<tr>
<th>Parallelism</th>
<th>What is divided?</th>
<th>Typical communication</th>
</tr>
</thead>
<tbody><tr>
<td>DP</td>
<td>Training data</td>
<td>AllReduce</td>
</tr>
<tr>
<td>TP</td>
<td>Layer computations</td>
<td>AllReduce, AllGather</td>
</tr>
<tr>
<td>PP</td>
<td>Model layers</td>
<td>Point-to-point</td>
</tr>
<tr>
<td>EP</td>
<td>Model experts</td>
<td>All-to-All</td>
</tr>
</tbody></table>
<p>🏗️ <strong>Architect's Corner — Parallelism Shapes the Network</strong></p>
<p>Different parallelism techniques create different communication patterns. These patterns determine the fabric's bandwidth, latency and congestion-control requirements.</p>
<h2>7. Connecting the workload to the network</h2>
<table>
<thead>
<tr>
<th>Characteristic</th>
<th>Scale-up</th>
<th>Scale-out</th>
</tr>
</thead>
<tbody><tr>
<td>Purpose</td>
<td>Tightly coupled accelerator communication</td>
<td>Communication across compute systems</td>
</tr>
<tr>
<td>Technologies</td>
<td>NVLink, NVSwitch, UALink</td>
<td>RoCEv2, InfiniBand</td>
</tr>
<tr>
<td>Typical placement</td>
<td>Server or rack-scale domain</td>
<td>Across servers and racks</td>
</tr>
<tr>
<td>Common workloads</td>
<td>Tensor parallelism</td>
<td>Data and pipeline parallelism</td>
</tr>
</tbody></table>
<p>These placements are common design preferences, not mandatory rules.</p>
<table>
<thead>
<tr>
<th>Interface</th>
<th align="right">Nominal one-direction bandwidth</th>
</tr>
</thead>
<tbody><tr>
<td>H100 NVLink aggregate</td>
<td align="right">450 GB/s</td>
</tr>
<tr>
<td>800G NIC</td>
<td align="right">100 GB/s</td>
</tr>
<tr>
<td>400G NIC</td>
<td align="right">50 GB/s</td>
</tr>
</tbody></table>
<p>H100 NVLink aggregate bandwidth is 900 GB/s bidirectional. NIC values are nominal line rates, not measured application throughput. This difference helps explain why frequent tensor communication is generally preferred within a high-bandwidth scale-up domain.</p>
<h3>Returning to our 32-GPU architecture</h3>
<p>Our customer plans four eight-GPU servers connected through a dedicated backend network.</p>
<p><a href="../blog-articles/lesson-02/part-01/diagrams-source/08-32-gpu-reference-architecture.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/983d4f24-3b94-400f-a229-73b9d8c2b518.svg" alt="Initial 32-GPU logical architecture with scale-up and scale-out communication domains." width="480" /></a></p>
<p><em>Figure 8 — Initial 32-GPU logical architecture with scale-up and scale-out communication domains.</em></p>
<p>Each server provides a high-bandwidth scale-up domain, while the leaf-spine backend enables communication across servers. Depending on workload placement, tensor communication can remain within servers while other distributed operations traverse the backend.</p>
<p>NIC speeds, switch capacity, oversubscription and congestion control must still be derived from measurable workload requirements.</p>
<p>🏗️ <strong>Architect's Corner — Workload-Driven Fabric Design</strong></p>
<p>Map GPU communication patterns to the physical topology before selecting NIC speeds, switch capacity and oversubscription.</p>
<p><strong>Design the network around the workload, not the workload around the network.</strong></p>
<h2>8. Think About It</h2>
<p>A customer's model fits comfortably within one GPU, but training takes longer than the business can tolerate. Would you recommend DP, TP or PP?</p>
<p>What changes if the customer upgrades to a model that no longer fits?</p>
<p><strong>Architect's reasoning:</strong> DP is a natural starting point for throughput when the complete training workload fits. TP, PP or sharded training-state techniques may help when it does not. The final decision depends on memory, communication overhead and performance targets.</p>
<h2>9. Key takeaways</h2>
<ul>
<li>Business objectives drive workload requirements.</li>
<li>Workloads drive compute and memory requirements.</li>
<li>Parallelism determines GPU communication patterns.</li>
<li>Communication patterns drive network requirements.</li>
<li>Memory feasibility does not guarantee application performance.</li>
<li>Architecture decisions must be validated against actual workloads.</li>
</ul>
<h2>What's next?</h2>
<p><strong>Lesson 02 — Part 2: From AI Workloads to Infrastructure Requirements</strong></p>
<p>We will translate these concepts into measurable training throughput, inference latency, network bandwidth, scaling efficiency, storage, availability and future growth requirements.</p>
<h2>Further reading</h2>
<ul>
<li><a href="https://pytorch.org/tutorials/beginner/dist_overview.html">PyTorch Distributed Overview</a></li>
<li><a href="https://docs.nvidia.com/megatron-core/developer-guide/latest/">NVIDIA Megatron Core</a></li>
<li><a href="https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/">NVIDIA NCCL</a></li>
<li><a href="https://www.deepspeed.ai/tutorials/zero/">DeepSpeed ZeRO</a></li>
<li><a href="https://www.nvidia.com/en-us/data-center/h100/">NVIDIA H100</a></li>
</ul>
<p>All sizing examples use illustrative assumptions and decimal GB; actual allocations and performance require validation.</p>
<p><strong>Understand the workload. Design around customer requirements. Validate the outcome.</strong></p>
<p><strong>Packets &amp; Fabrics</strong></p>
<p><em>Decoding Networks. Designing AI Fabrics.</em></p>
]]></content:encoded></item><item><title><![CDATA[Why Were Faster GPUs No Longer Enough? — The Pascal Breakthrough]]></title><description><![CDATA[Discover how NVIDIA Pascal introduced HBM2, NVLink and DGX-1 to overcome data movement bottlenecks and transform GPU computing.]]></description><link>https://packetsandfabrics.com/why-were-faster-gpus-no-longer-enough-the-pascal-breakthrough</link><guid isPermaLink="true">https://packetsandfabrics.com/why-were-faster-gpus-no-longer-enough-the-pascal-breakthrough</guid><category><![CDATA[NVIDIA]]></category><category><![CDATA[GPU Architecture]]></category><category><![CDATA[HBM2]]></category><category><![CDATA[NVLink]]></category><category><![CDATA[DGX-1]]></category><category><![CDATA[AI networking]]></category><category><![CDATA[AI infrastructure]]></category><category><![CDATA[cuda]]></category><category><![CDATA[Data Center Networking]]></category><category><![CDATA[High Performance Computing ]]></category><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Sat, 28 Nov 2026 18:21:59 GMT</pubDate><content:encoded><![CDATA[<p><em>NVIDIA GPU Architecture Learning Bytes | Lesson 06 | Pascal (2016)</em></p>
<p>📖 <strong>Previous Lesson:</strong> <a href="https://packetsandfabrics.hashnode.dev/why-did-gpus-need-to-become-more-power-efficient">Why Did GPUs Need to Become More Power Efficient? — The Kepler and Maxwell Evolution</a></p>
<p>Imagine a GPU capable of trillions of calculations every second, but many of its cores are waiting for data.</p>
<p>Now imagine connecting eight such GPUs. Each is powerful individually, but exchanging data introduces another bottleneck. What happens when we connect hundreds?</p>
<p>The challenge is no longer just computational performance. <strong>It is how efficiently data moves — within a GPU, between GPUs and across an entire data center.</strong></p>
<p>In 2016, NVIDIA Pascal addressed these challenges through innovations in memory, compute architecture and GPU interconnects.</p>
<p>Let's explore why these innovations mattered and what they teach us about designing AI infrastructure.</p>
<h2>1. The Data Movement Problem</h2>
<blockquote>
<p><strong>💡 Analogy — A Factory and Its Warehouse</strong></p>
<p>Imagine hundreds of factory workers supplied by a narrow road from a warehouse. Hiring more workers cannot increase production if materials cannot arrive fast enough.</p>
</blockquote>
<p>Memory capacity determines how much data can be stored; memory bandwidth determines how quickly it can move. A workload with 40% compute utilization, 98% memory bandwidth utilization and 60% memory capacity utilization suggests a memory bandwidth bottleneck.</p>
<h3>Let's calculate</h3>
<p>Arithmetic intensity is the number of floating-point operations performed per byte transferred from memory. At 10 FLOPs/byte, the Maxwell M40's 288 GB/s memory bandwidth limits theoretical performance to 2.88 TFLOPS, despite its 6.84 TFLOPS peak FP32 performance. This is the fundamental idea behind the Roofline model.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f4d3316b-c1ba-40d5-b443-fd533e73cde3.svg" alt="Figure 6.1 — Understanding the data movement bottleneck." style="display:block;margin:0 auto" />

<p><em>Figure 6.1 — Understanding the data movement bottleneck.</em></p>
<blockquote>
<p><strong>🏗️ Architect's Corner — Identify the Bottleneck</strong></p>
<p>Profile computation, memory bandwidth, memory capacity and communication before recommending an upgrade. Upgrading the wrong component may increase cost without improving performance.</p>
</blockquote>
<hr />
<h2>2. From GDDR5 to HBM2 — Building Wider Roads</h2>
<blockquote>
<p><strong>💡 Analogy — Wider Highways</strong></p>
<p>To transport more goods, either make trucks travel faster or add lanes. HBM2 uses a much wider memory interface.</p>
</blockquote>
<p>GDDR5 uses memory chips around the GPU on a circuit board. HBM2 stacks memory dies vertically using Through-Silicon Vias (TSVs). A silicon interposer provides dense connections between the GPU and memory stacks.</p>
<h3>Let's calculate</h3>
<p>Bandwidth in GB/s = interface width in bits × pin rate in Gbps ÷ 8.</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">Maxwell M40</th>
<th align="right">Pascal P100 SXM2</th>
</tr>
</thead>
<tbody><tr>
<td>Memory</td>
<td align="right">GDDR5</td>
<td align="right">HBM2</td>
</tr>
<tr>
<td>Interface width</td>
<td align="right">384 bits</td>
<td align="right">4096 bits</td>
</tr>
<tr>
<td>Pin rate</td>
<td align="right">6 Gbps</td>
<td align="right">≈1.43 Gbps</td>
</tr>
<tr>
<td>Bandwidth</td>
<td align="right">288 GB/s</td>
<td align="right">732 GB/s</td>
</tr>
<tr>
<td>Ideal 1 GB transfer</td>
<td align="right">3.47 ms</td>
<td align="right">1.37 ms</td>
</tr>
</tbody></table>
<p>At 10 FLOPs/byte, the memory-limited ceiling rises from 2.88 to 7.32 TFLOPS, a theoretical 2.54× improvement.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/e87db208-c0df-42ed-9a4f-64dfab47b677.svg" alt="Figure 6.2 — Comparing traditional GDDR5 and stacked HBM2 memory architectures." style="display:block;margin:0 auto" />

<p><em>Figure 6.2 — Comparing traditional GDDR5 and stacked HBM2 memory architectures.</em></p>
<blockquote>
<p><strong>🏗️ Architect's Corner — Bandwidth Is Not Latency</strong></p>
<p>Higher bandwidth moves more data simultaneously but does not necessarily reduce individual memory access latency. Evaluate capacity, bandwidth, power efficiency, workload and packaging cost together.</p>
</blockquote>
<hr />
<h2>3. Rethinking the Streaming Multiprocessor</h2>
<blockquote>
<p><strong>💡 Analogy — Organizing a Factory</strong></p>
<p>An SM is like a production department, CUDA cores are workers, a warp is a team, registers are workspaces and warp schedulers are supervisors. When one team waits, another eligible team can work.</p>
</blockquote>
<p>An SM contains computational cores, registers and scheduling resources. A warp consists of 32 threads. Registers store operands and intermediate results. Scheduling another eligible warp while one waits helps hide memory latency.</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">Kepler GK110</th>
<th align="right">Maxwell GM200</th>
<th align="right">Pascal GP100</th>
</tr>
</thead>
<tbody><tr>
<td>FP32 cores/SM</td>
<td align="right">192</td>
<td align="right">128</td>
<td align="right">64</td>
</tr>
<tr>
<td>Warp schedulers/SM</td>
<td align="right">4</td>
<td align="right">4</td>
<td align="right">2</td>
</tr>
<tr>
<td>32-bit registers/SM</td>
<td align="right">65,536</td>
<td align="right">65,536</td>
<td align="right">65,536</td>
</tr>
</tbody></table>
<h3>Let's calculate</h3>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">Maxwell M40</th>
<th align="right">Pascal P100</th>
</tr>
</thead>
<tbody><tr>
<td>Active SMs</td>
<td align="right">24</td>
<td align="right">56</td>
</tr>
<tr>
<td>Total FP32 cores</td>
<td align="right">3,072</td>
<td align="right">3,584</td>
</tr>
<tr>
<td>Aggregate register capacity</td>
<td align="right">6 MiB</td>
<td align="right">14 MiB</td>
</tr>
</tbody></table>
<p>GP100 uses smaller SMs while retaining the same register capacity per SM. Registers remain distributed across SMs. GP100 also provides strong FP64 performance and packed FP16 arithmetic for suitable workloads.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/e2b6a187-fba7-499c-8532-bcaddbcf68d1.svg" alt="Figure 6.3 — Comparing Maxwell GM200 and Pascal GP100 SM architectures." style="display:block;margin:0 auto" />

<p><em>Figure 6.3 — Comparing Maxwell GM200 and Pascal GP100 SM architectures.</em></p>
<blockquote>
<p><strong>🏗️ Architect's Corner — Look Beyond CUDA Core Count</strong></p>
<p>Evaluate register usage, warp occupancy, memory stalls and kernel execution time. Higher occupancy does not guarantee better performance. These characteristics are specific to GP100, not every Pascal GPU.</p>
</blockquote>
<hr />
<h2>4. Why PCIe Was No Longer Enough — NVLink</h2>
<blockquote>
<p><strong>💡 Analogy — Connecting Two Factories</strong></p>
<p>Two efficient factories exchange materials through a narrow connecting road. Improving machinery inside each factory does not solve the transportation bottleneck between them.</p>
</blockquote>
<p>PCI Express connects GPUs and other system components. PCIe Gen 3 ×16 provides approximately 15.75 GB/s per direction after encoding overhead. Each first-generation NVLink provides 20 GB/s per direction; four links provide 80 GB/s aggregate TX per GPU, approximately 5.08× PCIe Gen 3 ×16.</p>
<h3>Let's calculate — Faster compute or faster communication?</h3>
<p>Consider 20 ms of computation followed by a 1 GB transfer.</p>
<table>
<thead>
<tr>
<th>Architecture</th>
<th align="right">Compute</th>
<th align="right">Transfer</th>
<th align="right">Total</th>
</tr>
</thead>
<tbody><tr>
<td>Original PCIe</td>
<td align="right">20 ms</td>
<td align="right">63.49 ms</td>
<td align="right">83.49 ms</td>
</tr>
<tr>
<td>Double compute</td>
<td align="right">10 ms</td>
<td align="right">63.49 ms</td>
<td align="right">73.49 ms</td>
</tr>
<tr>
<td>Improve communication</td>
<td align="right">20 ms</td>
<td align="right">12.50 ms</td>
<td align="right">32.50 ms</td>
</tr>
</tbody></table>
<p>Improving communication provides a theoretical 2.57× speedup versus 1.14× from doubling compute. This assumes no overlap and effective use of all four NVLinks.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/14b7ae47-c570-4a22-97a4-7a7af641c6eb.svg" alt="Figure 6.4 — Comparing PCIe and first-generation NVLink bandwidth." style="display:block;margin:0 auto" />

<p><em>Figure 6.4 — Comparing PCIe and first-generation NVLink bandwidth.</em></p>
<blockquote>
<p><strong>🏗️ Architect's Corner — Optimize the System</strong></p>
<p>Aggregate interconnect bandwidth is not individual peer bandwidth. Understand physical topology, communication patterns and parallel paths. NVLink complements PCIe rather than eliminating it.</p>
</blockquote>
<hr />
<h2>5. The Birth of DGX-1 — From GPU to Computing System</h2>
<blockquote>
<p><strong>💡 Analogy — An Industrial Campus</strong></p>
<p>Connecting eight factories directly to every other factory requires too many roads. Interconnected groups can provide efficient communication with fewer connections.</p>
</blockquote>
<p>In 2016, NVIDIA introduced DGX-1.</p>
<table>
<thead>
<tr>
<th>Component</th>
<th>Specification</th>
</tr>
</thead>
<tbody><tr>
<td>GPUs</td>
<td>8 × Tesla P100</td>
</tr>
<tr>
<td>Aggregate GPU memory</td>
<td>128 GB HBM2</td>
</tr>
<tr>
<td>FP32 CUDA cores</td>
<td>28,672</td>
</tr>
<tr>
<td>GPU interconnect</td>
<td>NVLink hybrid cube mesh</td>
</tr>
<tr>
<td>External network</td>
<td>4 × 100 Gbps EDR InfiniBand</td>
</tr>
</tbody></table>
<p>A full mesh requires 8 × 7 ÷ 2 = 28 links and seven connections per GPU. P100 provides four NVLinks per GPU. The hybrid cube mesh uses two fully interconnected four-GPU groups and four cross-group links: 16 links total. GPU identifiers are logical.</p>
<h3>Why does topology matter?</h3>
<p>If GPU 0 transfers 2 GB each to GPU 1 and GPU 2 over separate 20 GB/s direct links, ideal sequential completion takes 200 ms, while concurrent completion takes 100 ms.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f98c630c-a387-487c-8a1c-cfe39f4bacf6.svg" alt="Figure 6.5 — Logical representation of the original DGX-1 NVLink topology." style="display:block;margin:0 auto" />

<p><em>Figure 6.5 — Logical representation of the original DGX-1 NVLink topology.</em></p>
<blockquote>
<p><strong>🏗️ Architect's Corner — Topology Matters</strong></p>
<p>Validate GPU-to-GPU and GPU-to-NIC affinity using nvidia-smi topo -m, compatible peer bandwidth tests and collective benchmarks. The 128 GB aggregate memory is distributed across eight GPUs, not automatically one unified pool.</p>
</blockquote>
<hr />
<h2>6. Scale-up vs. Scale-out — Beyond Eight GPUs</h2>
<blockquote>
<p><strong>💡 Analogy — Campuses and Highways</strong></p>
<p>Internal roads connect factories within a campus; external highways connect campuses. Excellent internal transportation cannot compensate for congested external highways.</p>
</blockquote>
<p>Scale-up expands a tightly interconnected GPU communication domain, such as NVLink within DGX-1. Scale-out connects systems through external InfiniBand or Ethernet networks.</p>
<h3>Let's calculate</h3>
<p>Four 100 Gbps interfaces provide 400 Gbps = 50 GB/s aggregate TX per server. An illustrative equal share across eight GPUs is 6.25 GB/s per GPU, compared with 80 GB/s aggregate local NVLink TX per GPU. These are different bandwidth scopes, not measured goodput.</p>
<p>If eight GPUs each send 1 GB externally:</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">Normal</th>
<th align="right">One NIC failure</th>
</tr>
</thead>
<tbody><tr>
<td>External bandwidth</td>
<td align="right">400 Gbps</td>
<td align="right">300 Gbps</td>
</tr>
<tr>
<td>Ideal transfer time</td>
<td align="right">160 ms</td>
<td align="right">213.33 ms</td>
</tr>
</tbody></table>
<p>A 25% bandwidth reduction increases ideal transfer time by 33.33%, assuming recovery and redistribution.</p>
<p>GPUDirect RDMA allows supported NICs to access GPU memory directly without host-memory payload staging. CPU control and PCIe connectivity still matter.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/6d479f98-0fc3-4d5f-9b61-3d9a2d3debd0.svg" alt="Figure 6.6 — Understanding scale-up and scale-out communication domains." style="display:block;margin:0 auto" />

<p><em>Figure 6.6 — Understanding scale-up and scale-out communication domains.</em></p>
<blockquote>
<p><strong>🏗️ Architect's Corner — Design Both Communication Domains</strong></p>
<p>Evaluate how much traffic remains local, how much crosses the external fabric, GPU-to-NIC affinity, RDMA support, traffic distribution and failure-state application performance.</p>
</blockquote>
<hr />
<h2>7. Hierarchical AllReduce — Move Less Data</h2>
<blockquote>
<p><strong>💡 Analogy — Combining Company Sales Figures</strong></p>
<p>Four branches report $2M, $4M, $6M and $8M. Two campuses combine locally to $6M and $14M, exchange subtotals and distribute the global $20M total to every branch.</p>
</blockquote>
<p>During synchronous data-parallel training, GPUs compute gradients that guide model parameter updates. AllReduce combines these values and returns the result to every participant.</p>
<p>A tensor is a structured collection of numerical values. Element-wise addition preserves shape: [1,2,3] + [4,5,6] = [5,7,9]. Reducing eight 1 GB tensors produces a 1 GB tensor of the same shape and numerical representation.</p>
<p>Consider two DGX-1 systems, each with eight GPUs generating 1 GB gradients.</p>
<h3>Let's calculate</h3>
<table>
<thead>
<tr>
<th>Approach</th>
<th align="right">External TX/server</th>
<th align="right">Ideal transfer at 50 GB/s</th>
</tr>
</thead>
<tbody><tr>
<td>Naive raw exchange</td>
<td align="right">8 GB</td>
<td align="right">160 ms</td>
</tr>
<tr>
<td>Local reduction first</td>
<td align="right">1 GB</td>
<td align="right">20 ms</td>
</tr>
</tbody></table>
<p>This is 87.5% less external traffic than the deliberately naive baseline, not an optimized AllReduce comparison. Four 250 MB chunks can use four NICs concurrently.</p>
<p>An illustrative complete collective takes 15 ms local reduction + 20 ms external exchange + 15 ms local distribution = 50 ms. Real implementations may use ReduceScatter and AllGather.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/0a64ef35-9c3e-438c-b12c-6a680757cdd1.svg" alt="Figure 6.7 — Illustrative hierarchical gradient reduction and exchange." style="display:block;margin:0 auto" />

<p><em>Figure 6.7 — Illustrative hierarchical gradient reduction and exchange.</em></p>
<blockquote>
<p><strong>🏗️ Architect's Corner — Move Less Data Before Adding Bandwidth</strong></p>
<p>Evaluate collective algorithms and multi-rail utilization before upgrading network capacity. Measure collective completion time, per-interface throughput and training performance. This example is not a measured NCCL benchmark.</p>
</blockquote>
<hr />
<h2>8. Design It — Building a Resilient AI Fabric</h2>
<blockquote>
<p><strong>💡 Analogy — Independent Highways</strong></p>
<p>Four highway lanes depend on one bridge. If that bridge fails, the campus is disconnected. Two lanes on each of two independent bridges preserve half the capacity when either fails.</p>
</blockquote>
<p>A customer deploying 64 GPUs across eight DGX-1 servers requires 400 Gbps nominal TX capacity per server normally and at least 200 Gbps after any single switch failure, with cost efficiency and future scalability.</p>
<table>
<thead>
<tr>
<th>Architecture</th>
<th align="right">Normal</th>
<th align="right">Worst-case failure</th>
</tr>
</thead>
<tbody><tr>
<td>A — Single switch (4+0)</td>
<td align="right">400G</td>
<td align="right">0G</td>
</tr>
<tr>
<td>B — Asymmetric (3+1)</td>
<td align="right">400G</td>
<td align="right">100G</td>
</tr>
<tr>
<td>C — Symmetric (2+2)</td>
<td align="right">400G</td>
<td align="right">200G</td>
</tr>
</tbody></table>
<p>C alone meets the nominal surviving-capacity requirement. B and C require the same quantities of switches, NICs and server-facing links.</p>
<h3>Can the architecture scale?</h3>
<p>With 36-port switches (36-port radix), eight servers consume 16 ports per switch, leaving 20 spare.</p>
<table>
<thead>
<tr>
<th>GPUs</th>
<th align="right">Servers</th>
<th align="right">Ports/switch</th>
</tr>
</thead>
<tbody><tr>
<td>64</td>
<td align="right">8</td>
<td align="right">16</td>
</tr>
<tr>
<td>128</td>
<td align="right">16</td>
<td align="right">32</td>
</tr>
<tr>
<td>144</td>
<td align="right">18</td>
<td align="right">36</td>
</tr>
<tr>
<td>256</td>
<td align="right">32</td>
<td align="right">64</td>
</tr>
</tbody></table>
<p>The theoretical limit is 144 GPUs if all ports are server-facing, with no spare ports at that limit. Larger deployments require additional rails, higher radix or scalable fabrics.</p>
<h3>Does losing 50% of bandwidth mean losing 50% of training performance?</h3>
<p>Using the earlier two-server exchange:</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">Normal</th>
<th align="right">Switch failure</th>
</tr>
</thead>
<tbody><tr>
<td>External bandwidth</td>
<td align="right">400G</td>
<td align="right">200G</td>
</tr>
<tr>
<td>Compute</td>
<td align="right">200 ms</td>
<td align="right">200 ms</td>
</tr>
<tr>
<td>Local communication</td>
<td align="right">30 ms</td>
<td align="right">30 ms</td>
</tr>
<tr>
<td>External exchange</td>
<td align="right">20 ms</td>
<td align="right">40 ms</td>
</tr>
<tr>
<td>Iteration time</td>
<td align="right">250 ms</td>
<td align="right">270 ms</td>
</tr>
<tr>
<td>Iterations/second</td>
<td align="right">4.00</td>
<td align="right">3.70</td>
</tr>
</tbody></table>
<p>A 50% nominal network capacity loss results in a modeled 7.41% application throughput loss. This assumes successful recovery, ideal bandwidth utilization and no overlap; it models a pairwise exchange, not the full eight-server collective.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/b388786b-e353-4b00-8509-efeb4bb61ffa.svg" alt="Figure 6.8 — Comparing network architectures under a single-switch failure." style="display:block;margin:0 auto" />

<p><em>Figure 6.8 — Comparing network architectures under a single-switch failure.</em></p>
<blockquote>
<p><strong>🏗️ Architect's Corner — Design for Application Resilience</strong></p>
<p>Surviving bandwidth does not guarantee uninterrupted training. Validate independent failure domains, RDMA recovery, collective correctness, normal and degraded throughput, and application recovery time. Meet application performance and availability requirements, not merely connectivity.</p>
</blockquote>
<hr />
<h2>💭 Think About It</h2>
<p>Imagine that the computational performance of every GPU doubles, but memory bandwidth and network bandwidth remain unchanged.</p>
<p><strong>Will AI training finish twice as fast?</strong></p>
<p>Consider how compute-intensive, memory-intensive and communication-intensive workloads would respond differently.</p>
<p>As a Solution Architect, which bottleneck would you investigate before recommending a hardware upgrade?</p>
<h2>💡 Key Takeaways</h2>
<p>HBM2 increased memory bandwidth, GP100 reorganized execution resources, NVLink improved GPU communication and DGX-1 integrated these innovations. Scale-out networking, topology-aware collectives and resilient fabric design enabled larger systems.</p>
<p><strong>The fastest component does not necessarily create the fastest system.</strong></p>
<p>Design computation, memory, communication and topology together.</p>
<h2>➡️ Next Lesson — Why Did GPUs Need Tensor Cores?</h2>
<p>Pascal improved memory bandwidth and GPU communication.</p>
<p>But could GPUs perform the matrix calculations required by deep learning more efficiently?</p>
<p>In the next lesson, we explore how NVIDIA Volta introduced Tensor Cores and mixed-precision acceleration.</p>
<h2>📚 References</h2>
<ul>
<li><a href="https://developer.nvidia.com/blog/inside-pascal/">NVIDIA — Inside Pascal</a></li>
<li><a href="https://docs.nvidia.com/cuda/pascal-tuning-guide/">NVIDIA — Pascal CUDA Tuning Guide</a></li>
<li><a href="https://images.nvidia.com/content/pdf/dgx1-system-architecture-whitepaper1.pdf">NVIDIA — DGX-1 System Architecture Whitepaper</a></li>
<li><a href="https://docs.nvidia.com/cuda/gpudirect-rdma/">NVIDIA — GPUDirect RDMA Documentation</a></li>
<li><a href="https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/usage/collectives.html">NVIDIA — NCCL Collective Operations</a></li>
<li><a href="https://docs.nvidia.com/dgx/bp-dgx/networking.html">NVIDIA — DGX Networking Best Practices</a></li>
</ul>
<hr />
<p><strong>Packets &amp; Fabrics</strong></p>
<p><em>Decoding Networks. Designing AI Fabrics.</em></p>
]]></content:encoded></item><item><title><![CDATA[Why Was InfiniBand Created? — The Problem That Existed Long Before AI]]></title><description><![CDATA[Discover why InfiniBand was created, how RDMA reduces communication overhead, and why it remains essential to modern AI networking.]]></description><link>https://packetsandfabrics.com/why-was-infiniband-created-the-problem-that-existed-long-before-ai</link><guid isPermaLink="true">https://packetsandfabrics.com/why-was-infiniband-created-the-problem-that-existed-long-before-ai</guid><category><![CDATA[infiniband]]></category><category><![CDATA[AI networking]]></category><category><![CDATA[RDMA]]></category><category><![CDATA[High Performance Computing ]]></category><category><![CDATA[Data Center Networking]]></category><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Thu, 26 Nov 2026 02:06:18 GMT</pubDate><content:encoded><![CDATA[<p><em>InfiniBand Essentials Learning Bytes | Lesson 01</em></p>
<p>Imagine a customer comes to you with a problem:</p>
<blockquote>
<p>“We upgraded our computing servers, but our applications are still taking too long to complete. Why?”</p>
</blockquote>
<p>Would faster processors or higher-bandwidth switches solve the problem?</p>
<p>Before investing in new infrastructure, let's understand what's slowing down the application.</p>
<h2>🌦️ It all starts with weather forecasting</h2>
<p>Imagine trying to predict tomorrow's weather.</p>
<p>A weather forecasting application divides the atmosphere into smaller regions and distributes the calculations across multiple processors.</p>
<p>But weather conditions in one region affect neighboring regions. These processors must regularly exchange information to continue their calculations.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f80b524f-e0ad-4bc3-99e0-3380788c2fb9.svg" alt="Figure 1 — Distributed weather simulation" style="display:block;margin:0 auto" />

<p><em>Figure 1 — Processors exchange boundary information during a weather simulation.</em></p>
<p>Even if a processor finishes its calculations quickly, it may still need to wait for information from another processor.</p>
<p><strong>The problem may not be computation. It may be communication.</strong></p>
<h2>🔍 Will faster processors solve the problem?</h2>
<p>Let's assume our customer's application takes 10 seconds to perform calculations and another 10 seconds to exchange information.</p>
<p>What happens if we double the processing speed?</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/09150fb3-61c7-43f2-94c7-7348817185d7.svg" alt="Figure 2 — Compute versus communication" style="display:block;margin:0 auto" />

<p><em>Figure 2 — Illustrative execution time, assuming no overlap between computation and communication.</em></p>
<p>Despite doubling the processing speed, the application takes 15 seconds instead of 20 seconds — only a 25% reduction in execution time.</p>
<p>The processors are faster, but the communication bottleneck remains.</p>
<p>What if we could improve the way these systems exchange data?</p>
<h2>📜 Enter InfiniBand</h2>
<p>The computing industry faced similar challenges during the 1990s.</p>
<p>Weather forecasting, scientific research and engineering simulations required increasingly powerful computing systems and more efficient communication between them.</p>
<p>Around 2000, InfiniBand emerged as a high-performance interconnect architecture to address communication and server I/O challenges.</p>
<p>The idea was not simply to build faster network links, but to reduce communication delays and improve how data moves between computing systems.</p>
<p><strong>InfiniBand wasn't invented for AI. It existed decades before modern AI training.</strong></p>
<h2>⚙️ What if the network adapter could do more?</h2>
<p>Imagine Server A needs to transfer data to Server B.</p>
<p>With conventional socket-based communication, the CPU and operating system typically participate in processing the transfer.</p>
<p>But what if the network adapter could handle much of this work instead?</p>
<p>This is where <strong>Remote Direct Memory Access (RDMA)</strong> comes into the picture.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/d9ced39b-a9b5-4464-8274-d8c6ee739b62.svg" alt="Figure 3 — Conventional sockets versus RDMA" style="display:block;margin:0 auto" />

<p><em>Figure 3 — Conventional socket-based communication versus RDMA-assisted data movement.</em></p>
<p>RDMA allows a capable network adapter to transfer data directly to or from registered application memory, reducing CPU involvement.</p>
<p>InfiniBand supports this through specialized network adapters called <strong>Host Channel Adapters (HCAs)</strong>.</p>
<p>The CPU still manages communication setup and control, but much of the data movement is handled by hardware.</p>
<p>This leaves more processing resources available for the application.</p>
<h2>🎯 What does our customer really need?</h2>
<p>Returning to our customer's problem, we now understand that higher bandwidth alone may not be enough.</p>
<table>
<thead>
<tr>
<th>Customer requirement</th>
<th>InfiniBand capability</th>
</tr>
</thead>
<tbody><tr>
<td>Transfer large amounts of data</td>
<td>High bandwidth</td>
</tr>
<tr>
<td>Reduce communication delays</td>
<td>Low latency</td>
</tr>
<tr>
<td>Reduce CPU overhead</td>
<td>Hardware-assisted data movement</td>
</tr>
</tbody></table>
<p>InfiniBand combines these capabilities, making it a strong candidate for communication-intensive applications.</p>
<p>However, InfiniBand is not the only option. Technologies such as RoCE also provide RDMA capabilities over Ethernet.</p>
<p>The right choice depends on the workload, performance requirements, cost and operational needs.</p>
<h2>🧠 From weather forecasting to AI training</h2>
<p>Fast-forward to modern AI.</p>
<p>Instead of processors exchanging weather information, GPUs exchange data such as gradients during distributed AI training.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/71ce1258-9ac3-49b1-9594-d89db7012354.svg" alt="Figure 4 — HPC to AI" style="display:block;margin:0 auto" />

<p><em>Figure 4 — Communication in scientific computing and distributed AI training.</em></p>
<p>When communication becomes a bottleneck, expensive GPUs may spend time waiting instead of computing.</p>
<p>Different applications. Same fundamental problem.</p>
<p>And that's why InfiniBand remains relevant today.</p>
<h2>🤔 Think about it</h2>
<p>Your customer is evaluating two networks for an application that frequently exchanges small messages.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/ffe1ac53-944e-4546-8bbe-51c80d4320db.svg" alt="Figure 5 — Network comparison" style="display:block;margin:0 auto" />

<p><em>Figure 5 — Two hypothetical networks with identical link bandwidth.</em></p>
<p>Both networks offer 400 Gbps bandwidth.</p>
<p><strong>Would they deliver the same application performance? Which network would you evaluate first, and why?</strong></p>
<h2>💡 Key takeaway</h2>
<p>InfiniBand was created to help powerful computing systems communicate more efficiently.</p>
<p>A high-performance network is not just about how much data it can carry, but also how quickly and efficiently it can deliver that data.</p>
<h2>🚀 Next lesson — Building Our First InfiniBand Network</h2>
<p>Now that we understand why InfiniBand exists, let's connect two GPU servers and discover how HCAs, switches, links and the Subnet Manager work together.</p>
<h3>📚 References</h3>
<ul>
<li><a href="https://www.infinibandta.org/">InfiniBand Trade Association</a></li>
<li><a href="https://network.nvidia.com/pdf/whitepapers/IB_Intro_WP_180.pdf">NVIDIA — Introduction to InfiniBand</a></li>
<li><a href="https://scied.ucar.edu/learning-zone/how-weather-works/weather-forecasting">UCAR — Weather Forecasting</a></li>
</ul>
<hr />
]]></content:encoded></item><item><title><![CDATA[Data Center Optics: From Bits to Light]]></title><description><![CDATA[Learn data center optics, fiber, transceivers, NRZ, PAM4, WDM, DR4, FR4 and optical power budgets through simple examples and practical design.]]></description><link>https://packetsandfabrics.com/data-center-optics-from-bits-to-light</link><guid isPermaLink="true">https://packetsandfabrics.com/data-center-optics-from-bits-to-light</guid><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Wed, 25 Nov 2026 14:00:00 GMT</pubDate><content:encoded><![CDATA[<p><em>Data Center Optical Fundamentals Series | Lesson 01</em></p>
<p>🎬 <strong>Watch the Quick Visual Explainer:</strong> <a href="https://youtube.com/shorts/cQgUrgoxIm8?utm_source=chatgpt.com">Data Center Optics: From Bits to Light</a></p>
<h2><strong>🎯 Why Can't We Use the Same Cable Everywhere?</strong></h2>
<p>Imagine helping a customer design a data center network with three connectivity requirements.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f07c08e1-a91a-400f-bdf1-ed20b400ca4f.svg" alt="Three different connectivity requirements." style="display:block;margin:0 auto" />

<p><em>Figure 1 — Three different connectivity requirements.</em></p>
<table>
<thead>
<tr>
<th>Connection</th>
<th align="right">Bandwidth</th>
<th align="right">Distance</th>
</tr>
</thead>
<tbody><tr>
<td>Server to switch</td>
<td align="right">400G</td>
<td align="right">1–3 m</td>
</tr>
<tr>
<td>Switch to switch</td>
<td align="right">800G</td>
<td align="right">100 m</td>
</tr>
<tr>
<td>Between halls</td>
<td align="right">400G</td>
<td align="right">2 km</td>
</tr>
</tbody></table>
<p>All three connections carry digital information. Yet they may require different connectivity technologies.</p>
<p><strong>Why can't we use the same cable everywhere?</strong></p>
<p>Let's find out.</p>
<h2>⚡ When Copper Reaches Its Limits</h2>
<p>Copper carries information using electrical signals. However, higher speeds and longer distances make these signals harder to recover.</p>
<ul>
<li><strong>Skin effect:</strong> High-frequency current concentrates near the conductor's surface, increasing resistance.</li>
<li><strong>Dielectric loss:</strong> Cable insulation absorbs signal energy.</li>
<li><strong>Crosstalk:</strong> Nearby signals interfere with each other.</li>
<li><strong>Reflections:</strong> Changes in the electrical path distort signals.</li>
</ul>
<p>What if we used light instead?</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/7d22ebb1-f7ef-4cf3-9680-ab01725e2ae9.svg" alt="A simplified comparison of signal loss in copper and fiber." style="display:block;margin:0 auto" />

<p><em>Figure 2 — A simplified comparison of signal loss in copper and fiber.</em></p>
<p>Optical fiber offers lower attenuation over long distances and immunity to electromagnetic interference along the fiber.</p>
<p>Its biggest advantage is not necessarily faster propagation, but <strong>maintaining high bandwidth over longer distances.</strong></p>
<h2>💡 How Do Bits Become Light?</h2>
<p>A network switch processes electrical signals, but optical fiber carries light.</p>
<p>How do we connect these two?</p>
<p>An <strong>optical transceiver</strong> performs this conversion. Its name comes from combining transmitter (TX) and receiver (RX).</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/dd0cffbd-9941-4b58-8091-15a53e49d200.svg" alt="How an optical transceiver connects the electrical and optical worlds." style="display:block;margin:0 auto" />

<p><em>Figure 3 — How an optical transceiver connects the electrical and optical worlds.</em></p>
<p>A <strong>laser</strong> generates light. Information is encoded onto that light and transmitted through the fiber.</p>
<p>At the other end, a <strong>photodetector</strong> converts the received light back into an electrical signal.</p>
<p>But how does light represent binary information?</p>
<p>Imagine we want to send these eight bits:</p>
<p><code>1 0 1 1 0 0 1 0</code></p>
<p>We can represent a 1 using higher light intensity and a 0 using lower intensity.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/445cdccc-28cf-4394-a548-b5c735bfc12d.svg" alt="Encoding binary information using different light intensities." style="display:block;margin:0 auto" />

<p><em>Figure 4 — Encoding binary information using different light intensities.</em></p>
<p>Think of it like sending information using a flashlight, but at billions of symbols per second.</p>
<p>This is the basic idea behind <strong>Intensity Modulation and Direct Detection (IM-DD)</strong>.</p>
<p>A binary zero does not necessarily mean the laser is completely off.</p>
<h3>🔦 What is optical modulation?</h3>
<p>Modulation simply means changing a property of a signal to carry information.</p>
<p>We can change the intensity of light in two common ways.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/a53a2006-c17d-4896-a1fc-6a103adbd0bc.svg" alt="Two ways to encode information onto light." style="display:block;margin:0 auto" />

<p><em>Figure 5 — Two ways to encode information onto light.</em></p>
<p><strong>Direct modulation:</strong> Change the electrical current supplied to the laser to vary its light output.</p>
<p><strong>External modulation:</strong> Keep the laser producing continuous-wave (CW) light and use a separate component called a modulator to change its intensity.</p>
<p>Both approaches achieve the same goal: carrying information using light.</p>
<h2>🌐 Single-Mode vs. Multimode Fiber</h2>
<p>An optical fiber contains a thin glass core that guides light.</p>
<p>However, not all fibers guide light in the same way.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/578127bd-8eca-40b7-90b6-535182778824.svg" alt="Simplified visualization of single-mode and multimode fiber, not to scale." style="display:block;margin:0 auto" />

<p><em>Figure 6 — Simplified visualization of single-mode and multimode fiber, not to scale.</em></p>
<p><strong>Single-mode fiber (SMF)</strong> has a small core that supports one spatial mode of light, making it suitable for longer distances.</p>
<p><strong>Multimode fiber (MMF)</strong> has a larger core that supports multiple spatial modes. Think of these as different ways light can travel through the fiber.</p>
<p>These modes can arrive at slightly different times, limiting the distance over which high-speed signals can be transmitted.</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>SMF</th>
<th>MMF</th>
</tr>
</thead>
<tbody><tr>
<td>Typical core diameter</td>
<td>9 µm</td>
<td>50 µm</td>
</tr>
<tr>
<td>Common wavelengths</td>
<td>1310/1550 nm</td>
<td>850 nm</td>
</tr>
<tr>
<td>Typical use</td>
<td>Longer links</td>
<td>Shorter links</td>
</tr>
</tbody></table>
<p>We will explore how light travels through these fibers in the upcoming lessons.</p>
<h2>📶 From NRZ to PAM4 — Can We Carry More Bits?</h2>
<p>Our customer needs 400G and 800G connections.</p>
<p>How do we achieve such high speeds?</p>
<p>First, let's understand two simple terms.</p>
<p>A <strong>bit</strong> is a binary value — 0 or 1.</p>
<p>A <strong>symbol</strong> is a signal state that represents one or more bits.</p>
<h3>What is NRZ?</h3>
<p><strong>Non-Return-to-Zero (NRZ)</strong> uses two signal levels to represent 0 and 1.</p>
<p>The signal does not need to return to a neutral level between symbols.</p>
<p>Each symbol carries one bit.</p>
<h3>What is PAM4?</h3>
<p><strong>Four-level Pulse Amplitude Modulation (PAM4)</strong> uses four signal levels instead of two.</p>
<p>Each symbol can now represent two bits: 00, 01, 10 or 11.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/20858c40-a23a-4388-b15a-a34f7293406c.svg" alt="NRZ and PAM4 carrying the same eight bits. Horizontal scales are normalized." style="display:block;margin:0 auto" />

<p><em>Figure 7 — NRZ and PAM4 carrying the same eight bits. Horizontal scales are normalized.</em></p>
<h3>Understanding bit rate and baud rate</h3>
<p><strong>Bit rate</strong> tells us how many bits are transmitted per second.</p>
<p><strong>Baud rate</strong>, also called symbol rate, tells us how many symbols are transmitted per second.</p>
<p>Let's compare NRZ and PAM4 at the same symbol rate.</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">NRZ</th>
<th align="right">PAM4</th>
</tr>
</thead>
<tbody><tr>
<td>Signal levels</td>
<td align="right">2</td>
<td align="right">4</td>
</tr>
<tr>
<td>Bits per symbol</td>
<td align="right">1</td>
<td align="right">2</td>
</tr>
<tr>
<td>Symbol rate</td>
<td align="right">50 GBd</td>
<td align="right">50 GBd</td>
</tr>
<tr>
<td>Raw bit rate</td>
<td align="right">50 Gbps</td>
<td align="right">100 Gbps</td>
</tr>
</tbody></table>
<p>PAM4 carries twice as many bits without doubling the symbol rate.</p>
<p>But there is a trade-off. Four signal levels are closer together, making them harder to distinguish.</p>
<p><strong>Forward Error Correction (FEC)</strong> adds extra information that helps the receiver correct certain transmission errors without retransmission.</p>
<h2>🚀 How Do We Achieve 800G Bandwidth?</h2>
<p>Does an 800G connection require a single laser transmitting at 800 Gbps?</p>
<p>Not necessarily.</p>
<p>We can combine multiple high-speed channels called <strong>lanes</strong>.</p>
<p>A <strong>SerDes (Serializer/Deserializer)</strong> converts parallel data into high-speed serial streams for transmission and converts received serial streams back into parallel data.</p>
<p>Electrical lanes carry information between the switch chip and transceiver. Optical lanes carry information using light.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/18f527c7-a76f-4ba5-8f64-eeb4927d14f9.svg" alt="Conceptual lane scaling. Not every combination represents a standardized interface." style="display:block;margin:0 auto" />

<p><em>Figure 8 — Conceptual lane scaling. Not every combination represents a standardized interface.</em></p>
<p>Faster lanes mean fewer lanes are needed to achieve the same bandwidth.</p>
<p>However, faster signals are also more challenging to design and recover reliably.</p>
<p>Actual physical signaling rates are slightly higher than the nominal lane rates because of encoding and FEC overhead.</p>
<p><strong>🏗️ Architect's perspective:</strong> The latest lane technology is not always the best choice. Platform compatibility, power consumption, reliability and interoperability also matter.</p>
<h2>🌈 Multiple Wavelengths, One Fiber</h2>
<p>Before answering that question, let's understand two properties of light.</p>
<p><strong>Wavelength</strong> is the distance between two successive wave peaks.</p>
<p><strong>Frequency</strong> is the number of wave cycles per second.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/873abe41-f1e3-45de-8031-911ccf9886da.svg" alt="Different optical wavelengths and their carrier frequencies." style="display:block;margin:0 auto" />

<p><em>Figure 9 — Different optical wavelengths and their carrier frequencies.</em></p>
<p>Think of different wavelengths as different colors of light, although the wavelengths commonly used in networking are invisible to our eyes.</p>
<p>Now imagine four independent data streams, each carrying 100G.</p>
<p>Instead of using four separate fibers, what if each stream used a different wavelength and shared the same fiber?</p>
<h3>What is WDM?</h3>
<p><strong>Wavelength Division Multiplexing (WDM)</strong> allows multiple optical signals to travel through a single fiber using different wavelengths.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/44b5b947-1d96-4b67-b6bb-954f49cf6fc8.svg" alt="Four independent wavelengths sharing one optical fiber." style="display:block;margin:0 auto" />

<p><em>Figure 10 — Four independent wavelengths sharing one optical fiber.</em></p>
<p>A multiplexer (MUX) combines the wavelengths at the transmitting end. A demultiplexer (DEMUX) separates them at the receiving end.</p>
<p>There are two common WDM approaches:</p>
<p><strong>Coarse WDM (CWDM):</strong> Uses wider spacing between wavelengths and is used in various data center optical interfaces.</p>
<p><strong>Dense WDM (DWDM):</strong> Uses closer spacing to accommodate more wavelengths, commonly for longer-distance optical networks.</p>
<p>Remember, the frequency of light is different from the rate at which we transmit information using that light.</p>
<h2>🔤 Understanding SR, DR, FR and LR Optics</h2>
<p>When selecting optical transceivers, we often see names like 400GBASE-DR4 and 400GBASE-FR4.</p>
<p>These names provide useful information about the optical interface.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/71d7b438-75f2-44b1-9cf7-694dcb4a7b83.svg" alt="Understanding Ethernet optical interface names." style="display:block;margin:0 auto" />

<p><em>Figure 11 — Understanding Ethernet optical interface names.</em></p>
<table>
<thead>
<tr>
<th>Abbreviation</th>
<th>Common industry meaning</th>
<th align="right">Typical reach</th>
</tr>
</thead>
<tbody><tr>
<td>SR</td>
<td>Short Reach</td>
<td align="right">70–100 m</td>
</tr>
<tr>
<td>DR</td>
<td>Data Center Reach</td>
<td align="right">500 m</td>
</tr>
<tr>
<td>FR</td>
<td>Far Reach</td>
<td align="right">2 km</td>
</tr>
<tr>
<td>LR</td>
<td>Long Reach</td>
<td align="right">10 km</td>
</tr>
<tr>
<td>ER</td>
<td>Extended Reach</td>
<td align="right">40 km</td>
</tr>
</tbody></table>
<p>These distances are representative. The actual supported distance depends on the Ethernet interface specification and fiber type.</p>
<h3>Why do DR4 and FR4 need different cables?</h3>
<p>Both 400G DR4 and 400G FR4 carry 400G using four 100G-class optical lanes.</p>
<p>The difference is how those lanes travel through the fiber.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/ee3b7e1f-5620-4dc8-8c7a-28fbb8b48346.svg" alt="Four separate fibers versus four wavelengths sharing one fiber, in one transmission direction." style="display:block;margin:0 auto" />

<p><em>Figure 12 — Four separate fibers versus four wavelengths sharing one fiber, in one transmission direction.</em></p>
<p>DR4 uses four separate fibers in each direction.</p>
<p>FR4 uses four different wavelengths over a single fiber in each direction.</p>
<p>The result? FR4 needs only two active fibers for a complete connection, compared with eight for DR4.</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th>400G DR4</th>
<th>400G FR4</th>
</tr>
</thead>
<tbody><tr>
<td>Optical lanes</td>
<td>4 × 100G</td>
<td>4 × 100G</td>
</tr>
<tr>
<td>Technology</td>
<td>Parallel optics</td>
<td>CWDM</td>
</tr>
<tr>
<td>Reach</td>
<td>500 m</td>
<td>2 km</td>
</tr>
<tr>
<td>Fiber type</td>
<td>Single-mode</td>
<td>Single-mode</td>
</tr>
<tr>
<td>Active fibers</td>
<td>8</td>
<td>2</td>
</tr>
<tr>
<td>Typical connector</td>
<td>MPO-12</td>
<td>Duplex LC</td>
</tr>
</tbody></table>
<p>Notice that the number <strong>4</strong> represents the number of optical lanes, not necessarily the number of physical fibers.</p>
<h3>🔗 What are LC and MPO connectors?</h3>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/796b27db-10f4-496e-be4b-ec9bda282c92.svg" alt="Simplified illustrations of LC and MPO connectors." style="display:block;margin:0 auto" />

<p><em>Figure 13 — Simplified illustrations of LC and MPO connectors.</em></p>
<p><strong>LC (Lucent Connector)</strong> connects one fiber per connector. A duplex LC connection typically uses two fibers.</p>
<p><strong>MPO (Multi-fiber Push-On)</strong> connects multiple fibers using a single connector.</p>
<p>Simplex communication travels in one direction. Full-duplex communication allows information to travel in both directions simultaneously.</p>
<p><strong>🏗️ Architect's perspective:</strong> If the customer already has duplex single-mode fiber installed, FR4 may avoid the need to install new cables. DR4 may be preferable when parallel fiber or breakout connectivity is required.</p>
<h2>🖥️ From Fundamentals to Real-World Ethernet Interfaces</h2>
<p>Let's connect everything we have learned to actual Ethernet optical interfaces.</p>
<table>
<thead>
<tr>
<th>Ethernet interface</th>
<th>Signaling</th>
<th>Optical lanes</th>
<th align="right">Reach</th>
</tr>
</thead>
<tbody><tr>
<td>100GBASE-SR4</td>
<td>NRZ</td>
<td>4 × 25G</td>
<td align="right">100 m (OM4)</td>
</tr>
<tr>
<td>100GBASE-LR4</td>
<td>NRZ</td>
<td>4 × 25G</td>
<td align="right">10 km</td>
</tr>
<tr>
<td>400GBASE-DR4</td>
<td>PAM4</td>
<td>4 × 100G</td>
<td align="right">500 m</td>
</tr>
<tr>
<td>400GBASE-FR4</td>
<td>PAM4</td>
<td>4 × 100G</td>
<td align="right">2 km</td>
</tr>
<tr>
<td>800GBASE-DR8</td>
<td>PAM4</td>
<td>8 × 100G</td>
<td align="right">500 m</td>
</tr>
</tbody></table>
<p><em>Lane rates are nominal.</em></p>
<p>Both 100GBASE-LR4 and 400GBASE-FR4 use four optical wavelengths, but FR4 delivers four times the aggregate bandwidth. This is possible through improvements in signaling and lane technology.</p>
<p><strong>Higher bandwidth does not always require more fibers or wavelengths.</strong></p>
<h2>📏 The optics support 2 km. But will the link work?</h2>
<p>Let's return to our customer's requirement to connect two data center halls.</p>
<p>The optical transceiver supports 2 km, and the fiber path is exactly 2 km.</p>
<p>Will the connection work reliably?</p>
<p>Not necessarily.</p>
<p>Every fiber segment, connector and splice introduces some optical power loss, also called attenuation.</p>
<p>If too little light reaches the receiver, transmission errors can occur.</p>
<h3>Understanding dB and dBm</h3>
<p>We use two common units when working with optical power.</p>
<p><strong>dBm</strong> tells us how much power we have, relative to 1 milliwatt.</p>
<p><strong>dB</strong> tells us how much power we have gained or lost.</p>
<table>
<thead>
<tr>
<th>Optical power</th>
<th align="right">Equivalent</th>
</tr>
</thead>
<tbody><tr>
<td>+3 dBm</td>
<td align="right">Approximately 2 mW</td>
</tr>
<tr>
<td>0 dBm</td>
<td align="right">1 mW</td>
</tr>
<tr>
<td>−3 dBm</td>
<td align="right">Approximately 0.5 mW</td>
</tr>
<tr>
<td>−10 dBm</td>
<td align="right">0.1 mW</td>
</tr>
</tbody></table>
<p>A loss of 3 dB approximately halves the optical power.</p>
<h3>What is an optical power budget?</h3>
<p>An optical power budget tells us how much optical power loss a connection can tolerate.</p>
<p>Consider this simplified example.</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">Value</th>
</tr>
</thead>
<tbody><tr>
<td>Minimum transmitter power</td>
<td align="right">−2 dBm</td>
</tr>
<tr>
<td>Receiver sensitivity</td>
<td align="right">−5 dBm</td>
</tr>
<tr>
<td>Available power budget</td>
<td align="right">3 dB</td>
</tr>
<tr>
<td>Fiber length</td>
<td align="right">2 km</td>
</tr>
<tr>
<td>Fiber loss per km</td>
<td align="right">0.35 dB</td>
</tr>
<tr>
<td>Four connector pairs</td>
<td align="right">2 dB</td>
</tr>
<tr>
<td>Required engineering margin</td>
<td align="right">1 dB</td>
</tr>
</tbody></table>
<p>Receiver sensitivity is the minimum received signal level needed to achieve the specified error performance.</p>
<p>Let's calculate our losses.</p>
<p>Fiber loss = 2 × 0.35 = <strong>0.7 dB</strong></p>
<p>Connector loss = 4 × 0.5 = <strong>2 dB</strong></p>
<p>Total required budget = 0.7 + 2 + 1 = <strong>3.7 dB</strong></p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/c5a7cf60-e941-4573-8cf2-8b36c620dbf5.svg" alt="A link that meets the distance requirement but lacks sufficient engineering margin." style="display:block;margin:0 auto" />

<p><em>Figure 14 — A link that meets the distance requirement but lacks sufficient engineering margin.</em></p>
<p>We need 3.7 dB, but our available budget is only 3 dB.</p>
<p>The link may come up, but it has only 0.3 dB of remaining margin.</p>
<p>Engineering margin is like a safety allowance for additional losses caused by aging, environmental changes or other unexpected conditions.</p>
<p>If we reduce the connector pairs from four to two, our remaining margin increases to 1.3 dB.</p>
<p><strong>🏗️ Architect's perspective:</strong> Never select optics based on distance alone. Evaluate the actual fiber path and its losses.</p>
<p><em>This is an illustrative power-budget calculation. Actual PAM4 optical interfaces also require additional signal quality checks.</em></p>
<h2>🧩 Design It — A Customer's Data Center Connectivity</h2>
<p>We now have enough information to answer our customer's original question.</p>
<p>Why not use the same type of cable everywhere?</p>
<p>Because each connection has different requirements.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/c50a5013-0c88-4867-9cf4-ec5fbd4af433.svg" alt="Selecting connectivity based on customer requirements." style="display:block;margin:0 auto" />

<p><em>Figure 15 — Selecting connectivity based on customer requirements.</em></p>
<table>
<thead>
<tr>
<th>Requirement</th>
<th>Proposed solution</th>
<th>Why?</th>
</tr>
</thead>
<tbody><tr>
<td>400G, 1–3 m</td>
<td>Passive DAC</td>
<td>Lower cost and power</td>
</tr>
<tr>
<td>800G, 100 m</td>
<td>800G DR8</td>
<td>High bandwidth over parallel SMF</td>
</tr>
<tr>
<td>400G, 2 km</td>
<td>400G FR4</td>
<td>Longer reach over duplex SMF</td>
</tr>
</tbody></table>
<p>These are candidate solutions, subject to platform compatibility, existing cabling and link qualification.</p>
<p>For short server connections, a qualified <strong>Direct Attach Copper (DAC)</strong> cable may be the simplest and most economical option.</p>
<p>For longer connections, optical transceivers offer greater flexibility in bandwidth and reach.</p>
<h3>💰 Why does the choice matter?</h3>
<p>Imagine the cost of connecting a server to a switch over a short distance.</p>
<table>
<thead>
<tr>
<th>Component</th>
<th align="right">Copper</th>
<th align="right">Optical</th>
</tr>
</thead>
<tbody><tr>
<td>Passive DAC</td>
<td align="right">$200</td>
<td align="right">—</td>
</tr>
<tr>
<td>Two optical modules</td>
<td align="right">—</td>
<td align="right">$1,600</td>
</tr>
<tr>
<td>Fiber cable</td>
<td align="right">—</td>
<td align="right">$100</td>
</tr>
<tr>
<td><strong>Total</strong></td>
<td align="right"><strong>$200</strong></td>
<td align="right"><strong>$1,700</strong></td>
</tr>
</tbody></table>
<p><em>Illustrative prices, not actual product quotations.</em></p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/79e10c84-9839-44b9-aa1e-272bd8e4183d.svg" alt="Illustrative cost per 400G link" style="display:block;margin:0 auto" />

<p><em>Figure 16 — Hypothetical equipment cost comparison for a short 400G connection.</em></p>
<p>If copper meets the requirements, why spend more on optics?</p>
<p>Choosing the right connectivity can reduce equipment costs, power consumption and cooling requirements.</p>
<p>The best design is not always the one using the latest technology. It is the one that meets customer requirements reliably and economically.</p>
<h2>🌐 Why Do Optics Matter to an AI Network Architect?</h2>
<p>A modern AI fabric may require thousands of high-speed connections. A small difference in transceiver power, cost or fiber count can have a significant impact when multiplied across the entire fabric.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/d86d4dac-88e4-40a6-b9fd-77d7868864f8.svg" alt="Optical technology influences AI fabric design" style="display:block;margin:0 auto" />

<p><em>Figure 17 — Optical technology influences multiple AI fabric design decisions.</em></p>
<p>An AI Network Architect must evaluate bandwidth, power consumption, fiber infrastructure, reliability and cost together.</p>
<p><strong>Optics are not just connectivity components. They are an important part of the overall fabric architecture.</strong></p>
<h2>🧪 What Should We Validate?</h2>
<p>Our design looks good on paper. But how do we prove that it works?</p>
<p>We can use a <strong>Variable Optical Attenuator (VOA)</strong> to gradually reduce optical power while transmitting network traffic.</p>
<p>This helps us understand how the connection behaves as optical loss increases.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/a53a0ddf-9b7d-435a-8d5a-490506f6834c.svg" alt="Testing optical link performance under controlled signal loss." style="display:block;margin:0 auto" />

<p><em>Figure 18 — Testing optical link performance under controlled signal loss.</em></p>
<p><strong>BER (Bit Error Rate):</strong> Proportion of incorrect received bits. Pre-FEC BER measures errors before correction; post-FEC BER measures remaining errors.</p>
<p><strong>DOM (Digital Optical Monitoring):</strong> Monitors optical power, module temperature and other parameters.</p>
<p>During validation, verify:</p>
<ul>
<li>Optical power and available margin.</li>
<li>Pre-FEC BER and uncorrectable FEC errors.</li>
<li>Traffic throughput and frame loss.</li>
<li>Link stability and recovery.</li>
<li>Platform and transceiver interoperability.</li>
</ul>
<p>Results must meet interface specifications and customer requirements.</p>
<p><strong>Getting a link up is different from validating a solution</strong></p>
<h2>🎯 Key Takeaway</h2>
<p>Understanding how bits become light is only the beginning.</p>
<p>A Network Solutions Architect must select the right connectivity technology based on bandwidth, distance, fiber infrastructure, reliability, power and cost.</p>
<p><strong>Understand the requirements. Evaluate the trade-offs. Design the architecture. Validate the outcome.</strong></p>
<h2>🤔 Think about it</h2>
<p>Your customer needs a 400G connection over 300 meters and already has duplex single-mode fiber installed.</p>
<p>Both DR4 and FR4 support the distance, but only FR4 can directly reuse the existing duplex fiber.</p>
<p>Would you choose a potentially cheaper transceiver or avoid installing new cables?</p>
<p><strong>The cheapest component does not necessarily produce the cheapest solution.</strong></p>
<h2>📝 Lesson 01 — Quick Revision (60 Seconds)</h2>
<h3>⚡ From Electrical Signals to Light</h3>
<table>
<thead>
<tr>
<th>Concept</th>
<th>What to remember</th>
</tr>
</thead>
<tbody><tr>
<td>Copper vs. fiber</td>
<td>Electrical signals vs. optical signals</td>
</tr>
<tr>
<td>Optical transceiver</td>
<td>Converts electrical signals to light and back</td>
</tr>
<tr>
<td>Optical modulation</td>
<td>Encodes information onto light</td>
</tr>
<tr>
<td>SMF vs. MMF</td>
<td>One spatial mode vs. multiple modes</td>
</tr>
</tbody></table>
<h3>🚀 Achieving Higher Bandwidth</h3>
<table>
<thead>
<tr>
<th>Concept</th>
<th>What to remember</th>
</tr>
</thead>
<tbody><tr>
<td>NRZ</td>
<td>Two levels, one bit per symbol</td>
</tr>
<tr>
<td>PAM4</td>
<td>Four levels, two bits per symbol</td>
</tr>
<tr>
<td>SerDes</td>
<td>Converts parallel data to serial data and back</td>
</tr>
<tr>
<td>Optical lanes</td>
<td>Combine channels to achieve higher bandwidth</td>
</tr>
<tr>
<td>WDM</td>
<td>Multiple wavelengths share one fiber</td>
</tr>
<tr>
<td>DR4 vs. FR4</td>
<td>Parallel fibers vs. wavelength multiplexing</td>
</tr>
</tbody></table>
<h3>📏 Designing Reliable Optical Links</h3>
<table>
<thead>
<tr>
<th>Concept</th>
<th>What to remember</th>
</tr>
</thead>
<tbody><tr>
<td>dB</td>
<td>Relative power gain or loss</td>
</tr>
<tr>
<td>dBm</td>
<td>Absolute power relative to 1 mW</td>
</tr>
<tr>
<td>Optical power budget</td>
<td>Maximum tolerable optical loss</td>
</tr>
<tr>
<td>Engineering margin</td>
<td>Allowance for additional losses</td>
</tr>
<tr>
<td>BER and FEC</td>
<td>Measure and correct transmission errors</td>
</tr>
<tr>
<td>DOM</td>
<td>Monitor optical power and module health</td>
</tr>
</tbody></table>
<h3>🧮 Essential formulas</h3>
<table>
<thead>
<tr>
<th>Concept</th>
<th>Formula</th>
</tr>
</thead>
<tbody><tr>
<td>Aggregate bandwidth</td>
<td>Number of lanes × lane rate</td>
</tr>
<tr>
<td>Raw bit rate</td>
<td>Symbol rate × bits per symbol</td>
</tr>
<tr>
<td>Optical frequency</td>
<td>Speed of light ÷ vacuum wavelength</td>
</tr>
<tr>
<td>Power in dBm</td>
<td>10 log₁₀(power in mW)</td>
</tr>
<tr>
<td>Fiber loss</td>
<td>Distance × loss per km</td>
</tr>
<tr>
<td>Received power</td>
<td>TX power − channel loss</td>
</tr>
<tr>
<td>Simplified power budget</td>
<td>Minimum TX − RX sensitivity</td>
</tr>
<tr>
<td>Remaining margin</td>
<td>Available budget − channel loss</td>
</tr>
</tbody></table>
<h3>🎯 Architect's Takeaway</h3>
<p><strong>Select optics based on bandwidth, distance, fiber infrastructure, power, cost and reliability — not bandwidth alone.</strong></p>
<h2>➡️ Next lesson — How Does Light Travel Through Optical Fiber?</h2>
<p>Have you ever wondered how light stays inside a thin glass fiber, even when the fiber bends?</p>
<p>In our next lesson, we will explore fiber structure, refraction, total internal reflection and why fiber bends matter in network design.</p>
<p><em>Stay curious. Keep learning.</em></p>
<h2>📚 References and further reading</h2>
<ul>
<li><a href="https://www.ieee802.org/3/bs/">IEEE 802.3bs — 200G and 400G Ethernet</a></li>
<li><a href="https://www.ieee802.org/3/cu/">IEEE 802.3cu — Single-mode optical interfaces</a></li>
<li><a href="https://www.ieee802.org/3/df/">IEEE 802.3df — 800G Ethernet</a></li>
<li><a href="https://www.thefoa.org/">Fiber Optic Association</a></li>
<li><a href="https://www.oiforum.com/">Optical Internetworking Forum</a></li>
</ul>
<hr />
]]></content:encoded></item><item><title><![CDATA[Why Did GPUs Need to Become More Power Efficient?]]></title><description><![CDATA[Explore NVIDIA's Fermi, Kepler and Maxwell GPU architectures, CUDA cores, SM vs. SMX vs. SMM, power efficiency and AI data center design.]]></description><link>https://packetsandfabrics.com/why-did-gpus-need-to-become-more-power-efficient</link><guid isPermaLink="true">https://packetsandfabrics.com/why-did-gpus-need-to-become-more-power-efficient</guid><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Tue, 24 Nov 2026 14:00:00 GMT</pubDate><content:encoded><![CDATA[<p><em>The NVIDIA Kepler and Maxwell Evolution (2012–2014) — GPU Architecture Learning Bytes | Lesson 05</em></p>
<p>🎬 <strong>Watch the Quick Visual Explainer:</strong> <a href="https://youtube.com/shorts/SGChEWpF23I"><strong>Why Did GPUs Need to Become More Power Efficient?</strong></a></p>
<p>In <a href="https://packetsandfabrics.hashnode.dev/why-did-gpus-need-caches-and-ecc-the-fermi-breakthrough">Lesson 04</a>, we explored how NVIDIA's Fermi architecture improved GPU memory efficiency and reliability through caching and ECC support.</p>
<p>But solving one problem often reveals another.</p>
<p>Imagine building a data center with hundreds of GPUs. Your applications are becoming more demanding, and you need significantly more computing power.</p>
<p>There is just one problem: <strong>your data center has a limited power budget.</strong></p>
<p>Could we design GPUs that perform more calculations while consuming less electricity?</p>
<p>This challenge helps explain NVIDIA's evolution from Fermi to Kepler and Maxwell.</p>
<h2>⚡ When More GPU Performance Becomes a Power Problem</h2>
<p>Consider a hypothetical computing facility with <strong>1,000 GPUs</strong>, each consuming <strong>250 W</strong>.</p>
<p><strong>1,000 × 250 W = 250 kW</strong></p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/1bc87b11-b9d8-4902-9b99-11b05226169d.svg" alt="Figure 1 — Illustrative GPU cluster power" style="display:block;margin:0 auto" />

<p><em>Figure 1 — Hypothetical GPU-only power, excluding CPUs, networking and cooling.</em></p>
<p>Now the customer wants twice the computing capacity. Adding another 1,000 identical GPUs would increase GPU power consumption to <strong>500 kW</strong>, assuming the same operating conditions.</p>
<p>That increases electrical infrastructure requirements and potentially cooling costs.</p>
<p><strong>The challenge: Deliver more computational performance without proportionally increasing power consumption.</strong></p>
<h2>💡 Understanding Performance per Watt</h2>
<p>Performance per watt measures computational throughput relative to power consumption:</p>
<p><strong>Performance per watt = Computational throughput ÷ Power consumption</strong></p>
<p>Compare two <strong>hypothetical</strong> GPUs at the same numerical precision:</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">GPU A</th>
<th align="right">GPU B</th>
</tr>
</thead>
<tbody><tr>
<td>Computing performance</td>
<td align="right">1 TFLOPS</td>
<td align="right">2 TFLOPS</td>
</tr>
<tr>
<td>Power consumption</td>
<td align="right">250 W</td>
<td align="right">200 W</td>
</tr>
<tr>
<td>Performance per watt</td>
<td align="right">4 GFLOPS/W</td>
<td align="right">10 GFLOPS/W</td>
</tr>
</tbody></table>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/1b8de1d9-b3e4-4689-ba31-e81c6da21543.svg" alt="Figure 2 — Performance per watt comparison" style="display:block;margin:0 auto" />

<p><em>Figure 2 — GPU B provides 2.5× higher peak throughput per watt in this hypothetical example.</em></p>
<p>GPU B delivers twice the theoretical computing throughput while consuming less power. This illustrates why architectural efficiency matters.</p>
<h2>🚀 Kepler (2012) — More Parallel Computing</h2>
<p>NVIDIA introduced Kepler with a redesigned Streaming Multiprocessor called <strong>SMX</strong>.</p>
<p>Compared with Fermi GF100's 40 nm process and separate faster shader clock, Kepler GK110 used a 28 nm process and a unified core clock.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/73fe988c-f65b-48d9-a289-7cb0d82979bb.svg" alt="Figure 3 — Fermi SM and Kepler SMX" style="display:block;margin:0 auto" />

<p><em>Figure 3 — Simplified comparison; core tiles are conceptual, not a complete chip schematic.</em></p>
<p>Kepler increased parallel execution resources within a multiprocessor. Selected Kepler GPUs also introduced <strong>Hyper-Q</strong> and <strong>Dynamic Parallelism</strong>.</p>
<p>These architectural changes helped increase throughput and improve efficiency.</p>
<p><strong>The lesson: Higher performance does not always require higher clock frequencies.</strong></p>
<h2>🔋 Maxwell (2014) — Improving Efficiency Within the GPU</h2>
<p>Maxwell introduced another redesigned multiprocessor, the <strong>SMM</strong>, emphasizing efficient organization of execution resources.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/c96e1063-24be-4143-b455-21e856e0a649.svg" alt="Figure 4 — Maxwell SMM architecture" style="display:block;margin:0 auto" />

<p><em>Figure 4 — Conceptual SMM organization; not all hardware resources are shown.</em></p>
<p>This organization helped reduce scheduling and control complexity and improve execution efficiency. Maxwell also improved cache architecture and power management.</p>
<p>An important observation: <strong>Both Kepler and Maxwell used 28 nm manufacturing processes.</strong> Architectural improvements could increase efficiency even without moving to a smaller process node.</p>
<h2>🔍 SM vs. SMX vs. SMM — What Really Changed?</h2>
<p>We have seen how NVIDIA evolved from Fermi to Kepler and Maxwell.</p>
<p>But what exactly changed inside the GPU?</p>
<h3>💡 What Do These Names Mean?</h3>
<ul>
<li><strong>SM — Streaming Multiprocessor:</strong> The general GPU execution unit, used in Fermi and other NVIDIA architectures.</li>
<li><strong>SMX — Streaming Multiprocessor eXtreme:</strong> Kepler's redesigned multiprocessor.</li>
<li><strong>SMM — Maxwell Streaming Multiprocessor:</strong> Maxwell's more efficiently organized multiprocessor.</li>
</ul>
<p>All three execute GPU threads in parallel. The difference is how their execution resources are organized.</p>
<h3>⚙️ Comparing the Three Architectures</h3>
<table>
<thead>
<tr>
<th>Feature</th>
<th align="right">Fermi SM</th>
<th align="right">Kepler SMX</th>
<th align="right">Maxwell SMM</th>
</tr>
</thead>
<tbody><tr>
<td>CUDA cores</td>
<td align="right">32</td>
<td align="right">192</td>
<td align="right">128</td>
</tr>
<tr>
<td>Warp schedulers</td>
<td align="right">2</td>
<td align="right">4</td>
<td align="right">4</td>
</tr>
<tr>
<td>Maximum resident warps</td>
<td align="right">48</td>
<td align="right">64</td>
<td align="right">64</td>
</tr>
<tr>
<td>Design emphasis</td>
<td align="right">General-purpose computing</td>
<td align="right">More parallel throughput</td>
<td align="right">Better power efficiency</td>
</tr>
</tbody></table>
<p><em>Values represent Fermi GF100, Kepler GK110, and first-generation Maxwell multiprocessors.</em></p>
<h3>🤔 Why Did Maxwell Reduce CUDA Cores from 192 to 128?</h3>
<p>Kepler increased CUDA cores to execute more work in parallel. However, <strong>more cores are not useful if they cannot be kept busy</strong>.</p>
<p>Maxwell reorganized its 128 CUDA cores into <strong>four partitions</strong>, each with its own warp scheduler and 32 CUDA cores.</p>
<p>This helped simplify scheduling and improve execution efficiency and performance per watt.</p>
<p><strong>The lesson: More CUDA cores per multiprocessor do not automatically mean better performance.</strong></p>
<h3>🖥️ Real NVIDIA GPUs — From Architecture to Product</h3>
<p>Let's connect these architectural concepts to GPUs that NVIDIA actually released.</p>
<table>
<thead>
<tr>
<th>GPU Model</th>
<th>Architecture</th>
<th>GPU Chip</th>
<th align="right">SMs</th>
<th align="right">Total CUDA Cores</th>
</tr>
</thead>
<tbody><tr>
<td>Tesla M2090 (2011)</td>
<td>Fermi</td>
<td>GF110</td>
<td align="right">16 SM</td>
<td align="right">512</td>
</tr>
<tr>
<td>Tesla K20X (2012)</td>
<td>Kepler</td>
<td>GK110</td>
<td align="right">14 SMX</td>
<td align="right">2,688</td>
</tr>
<tr>
<td>GeForce GTX 980 (2014)</td>
<td>Maxwell</td>
<td>GM204</td>
<td align="right">16 SMM</td>
<td align="right">2,048</td>
</tr>
</tbody></table>
<p><strong>How do we calculate total CUDA cores?</strong></p>
<p>Total CUDA cores = Number of multiprocessors × CUDA cores per multiprocessor</p>
<p>For example, the Tesla K20X:</p>
<p><strong>14 SMX × 192 CUDA cores = 2,688 CUDA cores</strong></p>
<p>This explains the difference between the number of CUDA cores inside one multiprocessor and the total CUDA cores available across the entire GPU.</p>
<p>Notice something interesting: <strong>The GTX 980 has fewer CUDA cores per multiprocessor than the Tesla K20X, but it has more multiprocessors.</strong></p>
<p>This demonstrates how GPU architectures can use different internal organizations. It does not, by itself, establish which GPU performs better.</p>
<p><em>Note: These are representative historical GPU products. Different models within the same architecture may have different numbers of active multiprocessors. The GTX 980 is a consumer graphics card, while the Tesla models are compute accelerators; this table illustrates organization, not like-for-like performance.</em></p>
<h3>🎯 Key Takeaway</h3>
<p><strong>Fermi → Kepler → Maxwell: Capable computing → More parallelism → Better efficiency.</strong></p>
<p><strong>For architects:</strong> Compare GPUs using actual workload performance, memory bandwidth, and power consumption — not CUDA core counts alone.</p>
<h2>🧩 Design It — A Customer's GPU Power Budget</h2>
<p>A customer requires <strong>1,000 TFLOPS</strong> of theoretical compute capacity, with a maximum <strong>150 kW GPU power budget</strong>.</p>
<p>Two hypothetical options are available:</p>
<table>
<thead>
<tr>
<th>Parameter</th>
<th align="right">GPU A</th>
<th align="right">GPU B</th>
</tr>
</thead>
<tbody><tr>
<td>Throughput per GPU</td>
<td align="right">1 TFLOPS</td>
<td align="right">2 TFLOPS</td>
</tr>
<tr>
<td>Power per GPU</td>
<td align="right">250 W</td>
<td align="right">200 W</td>
</tr>
<tr>
<td>GPUs required</td>
<td align="right">1,000</td>
<td align="right">500</td>
</tr>
<tr>
<td>Total GPU power</td>
<td align="right">250 kW</td>
<td align="right">100 kW</td>
</tr>
<tr>
<td>Meets power budget?</td>
<td align="right">❌ No</td>
<td align="right">✅ Yes</td>
</tr>
</tbody></table>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/1fedc2f4-5c3a-47e6-9fa3-92c19963c912.svg" alt="Figure 5 — GPU cluster power comparison" style="display:block;margin:0 auto" />

<p><em>Figure 5 — Equivalent theoretical throughput, with 60% lower GPU power for option B.</em></p>
<p>GPU B meets the budget using fewer GPUs.</p>
<p>At <strong>$0.15/kWh</strong>, assuming continuous operation at the stated GPU power levels:</p>
<p><strong>Annual GPU electricity difference = (250 − 100) kW × 8,760 h × $0.15/kWh = $197,100</strong></p>
<p>This excludes cooling, networking and other server components. The example assumes equivalent precision and useful workload throughput; actual GPU selection requires application benchmarking.</p>
<h2>🌐 Why Does GPU Efficiency Matter to a Network Architect?</h2>
<p>GPU efficiency affects more than electrical power. It can influence server count, NICs, switch ports, rack density, cooling and infrastructure cost.</p>
<p>But faster GPUs can also generate communication traffic more quickly. Fewer, more powerful GPUs do <strong>not</strong> automatically imply lower network bandwidth requirements.</p>
<img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/6674556b-2c78-43d5-a588-ae7fdaf012f1.svg" alt="Figure 6 — GPU efficiency and network design" style="display:block;margin:0 auto" />

<p><em>Figure 6 — GPU architecture influences multiple data center design decisions.</em></p>
<p>An AI Network Architect must evaluate <strong>compute performance, memory bandwidth, communication patterns, network capacity, power and cost together</strong>.</p>
<h2>🧪 What Should We Validate?</h2>
<p>Before choosing a GPU platform, compare candidates using the same representative application workload and numerical precision. Measure:</p>
<ul>
<li>Useful application throughput and total job completion time.</li>
<li>GPU power consumption and energy per completed job.</li>
<li>Memory behavior and thermal throttling.</li>
<li>For distributed workloads, GPU communication time, network throughput and utilization.</li>
</ul>
<p><strong>The best GPU is not necessarily the one with the highest peak TFLOPS. It is the one that best meets the customer's workload, performance, power and cost requirements.</strong></p>
<h2>🎯 Key Takeaway</h2>
<p>Fermi strengthened GPU computing with caching and ECC. Kepler and Maxwell advanced the architecture toward greater computational efficiency.</p>
<p><strong>The goal was no longer simply to make GPUs faster, but to deliver more useful work per watt.</strong></p>
<p>This principle remains central to modern AI infrastructure design.</p>
<h2>🤔 Think About It</h2>
<p>If GPUs continue becoming faster, but memory bandwidth and GPU-to-GPU communication cannot keep up, what happens?</p>
<h2>📝 Lesson 05 — Quick Revision (60 Seconds)</h2>
<h3>⚡ Why Did GPU Efficiency Matter?</h3>
<p>As GPU computing demands increased, adding more GPUs meant higher power consumption, cooling requirements, and infrastructure costs.</p>
<p><strong>The goal: More computing performance per watt.</strong></p>
<h3>🚀 Fermi → Kepler → Maxwell</h3>
<table>
<thead>
<tr>
<th>Architecture</th>
<th>What Changed?</th>
<th>Why?</th>
</tr>
</thead>
<tbody><tr>
<td><strong>Fermi (2010)</strong></td>
<td>L1/L2 cache and ECC</td>
<td>Better memory efficiency and reliability</td>
</tr>
<tr>
<td><strong>Kepler (2012)</strong></td>
<td>SMX with greater parallelism</td>
<td>More computing throughput per watt</td>
</tr>
<tr>
<td><strong>Maxwell (2014)</strong></td>
<td>More efficient SMM design</td>
<td>Better resource utilization and power efficiency</td>
</tr>
</tbody></table>
<h3>💡 Three Things to Remember</h3>
<ul>
<li><strong>Performance per watt</strong> = Computing throughput ÷ Power consumption.</li>
<li><strong>CUDA cores per SM ≠ Total GPU cores.</strong> Total CUDA cores = Number of SMs × CUDA cores per SM. More cores don't automatically mean better performance.</li>
<li><strong>GPU efficiency affects network design.</strong> Fewer servers may reduce network ports, while faster GPUs may increase communication demands.</li>
</ul>
<h3>🎯 Architect's Takeaway</h3>
<p><strong>The best GPU is not simply the fastest. It must deliver the required workload performance within the customer's power, cooling, network, and cost constraints.</strong></p>
<h3>🚀 Next Lesson: NVIDIA Pascal (2016) — Why Did GPUs Need HBM2 and NVLink?</h3>
<h2>📚 References</h2>
<ul>
<li><a href="https://www.nvidia.com/content/PDF/kepler/NVIDIA-Kepler-GK110-Architecture-Whitepaper.pdf">NVIDIA Kepler GK110 Architecture Whitepaper</a></li>
<li><a href="https://docs.nvidia.com/cuda/maxwell-tuning-guide/index.html">NVIDIA Maxwell Tuning Guide</a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Why AI Data Centers Are Different — Designing from Scratch]]></title><description><![CDATA[Learn how to design AI data centers from scratch, covering GPU servers, scale-up and scale-out networks, leaf-spine fabrics, storage and management.]]></description><link>https://packetsandfabrics.com/why-ai-data-centers-are-different-designing-from-scratch</link><guid isPermaLink="true">https://packetsandfabrics.com/why-ai-data-centers-are-different-designing-from-scratch</guid><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Sun, 22 Nov 2026 14:00:00 GMT</pubDate><content:encoded><![CDATA[<h1>Why AI Data Centers Are Different — Designing from Scratch</h1>
<p><em>AI Data Center End-to-End Design Series | Lesson 01</em></p>
<p>Imagine a customer approaches you with a requirement:</p>
<blockquote>
<p>“We want to start with eight GPUs today and eventually scale to thousands. How would you design our infrastructure?”</p>
</blockquote>
<p>Would you immediately start selecting GPU servers, 400G switches or InfiniBand fabrics?</p>
<p>Before selecting any technology, we need to understand what makes AI infrastructure different. Let's build our first AI data center, one component at a time.</p>
<h2>🧠 Why are AI data centers different?</h2>
<p>Consider a traditional online shopping application. Different application servers can process many customer requests independently.</p>
<p>Distributed AI training works differently. Multiple GPUs work together to train a model and frequently exchange computation data. When communication slows down, some GPUs may have to wait for others.</p>
<p><a href="../blog-articles/lesson-01/diagrams-source/01-traditional-vs-ai-workloads.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f93fc527-473d-4915-b8ca-fa49cdb8f4d2.svg" alt="Independent application requests versus coordinated GPU computation" width="480" /></a></p>
<p><em>Figure 1 — Independent application requests versus coordinated GPU computation.</em></p>
<p>Consider an AI training iteration that requires 800 ms of computation and 200 ms of communication.</p>
<p>If network congestion introduces another 200 ms of communication delay, training throughput decreases by approximately 17%, assuming no computation-communication overlap.</p>
<p><a href="../blog-articles/lesson-01/diagrams-source/02-network-congestion-impact.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/d11ed530-e9ab-4684-93e3-04b0bb03aa5f.svg" alt="Illustrative impact of network congestion on training throughput" width="460" /></a></p>
<p><em>Figure 2 — Illustrative impact of network congestion on training throughput.</em></p>
<p>The GPUs haven't changed. The AI model hasn't changed. Yet our expensive infrastructure is doing less productive work.</p>
<p><strong>The objective of AI networking is not simply higher bandwidth. It is more productive GPU time.</strong></p>
<h2>⚙️ Starting small — our first eight GPUs</h2>
<p>Let's begin with a single eight-GPU server.</p>
<p>The GPUs communicate through a high-bandwidth interconnect such as NVLink and NVSwitch. This is called <strong>scale-up connectivity</strong>.</p>
<p>When eight GPUs are no longer sufficient, we add more GPU servers. To enable communication between these servers, we introduce a high-performance external network.</p>
<p>This is called <strong>scale-out connectivity</strong>.</p>
<p><a href="../blog-articles/lesson-01/diagrams-source/03-scale-up-vs-scale-out.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/98cee921-e3bf-4238-9b9c-8818247f28c4.svg" alt="Scale-up and scale-out communication domains" width="480" /></a></p>
<p><em>Figure 3 — Scale-up and scale-out communication domains.</em></p>
<table>
<thead>
<tr>
<th>Scale-up</th>
<th>Scale-out</th>
</tr>
</thead>
<tbody><tr>
<td>Within a tightly coupled GPU domain</td>
<td>Between distributed compute systems</td>
</tr>
<tr>
<td>NVLink, NVSwitch, UALink</td>
<td>InfiniBand, RoCEv2 Ethernet</td>
</tr>
</tbody></table>
<p>An important design principle is to keep communication-intensive GPU operations within an appropriate high-bandwidth scale-up domain wherever possible.</p>
<h2>🌐 Building our first 32-GPU network</h2>
<p>Our customer now needs 32 GPUs.</p>
<p>We deploy four eight-GPU servers and select RoCEv2 Ethernet for our illustrative backend network.</p>
<p>Since the customer plans to expand, we consider a leaf-spine architecture.</p>
<p><a href="../blog-articles/lesson-01/diagrams-source/07-32-gpu-backend.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/fbc5e076-63ba-4983-bb26-3c84feec3edb.svg" alt="Conceptual 32-GPU leaf-spine backend network" width="520" /></a></p>
<p><em>Figure 4 — Conceptual 32-GPU leaf-spine backend network.</em></p>
<p>Each GPU server connects to a leaf switch through its RDMA network interfaces. Each leaf switch connects to both spine switches.</p>
<p>When Server 1 communicates with Server 3, traffic can follow this path:</p>
<p><strong>Server 1 → Leaf 1 → Spine 2 → Leaf 2 → Server 3</strong></p>
<p>Multiple spine paths provide opportunities for load balancing and additional capacity.</p>
<p>A smaller deployment could also use a single sufficiently capable switch. The final topology depends on workload bandwidth, availability and expansion requirements.</p>
<h2>🔄 Why is the GPU backend network not enough?</h2>
<p>Our GPU servers can now communicate. But where does the training data come from? How do customers submit jobs? How do administrators recover failed servers?</p>
<p>These requirements introduce four network domains.</p>
<table>
<thead>
<tr>
<th>Network</th>
<th>Purpose</th>
</tr>
</thead>
<tbody><tr>
<td>Backend</td>
<td>GPU communication and synchronization</td>
</tr>
<tr>
<td>Frontend</td>
<td>Customer access and workload orchestration</td>
</tr>
<tr>
<td>Storage</td>
<td>Training datasets and checkpoints</td>
</tr>
<tr>
<td>Management</td>
<td>Hardware monitoring and remote recovery</td>
</tr>
</tbody></table>
<p>Why not carry everything over a single network?</p>
<p>Imagine GPU communication generates 350 Gbps while checkpointing generates another 196 Gbps, competing for the same 400G bottleneck.</p>
<p><a href="../blog-articles/lesson-01/diagrams-source/08-shared-link-contention.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/32c1a8e2-c128-499e-8dac-f33206e28e7b.svg" alt="Potential contention between GPU communication and storage traffic" width="460" /></a></p>
<p><em>Figure 5 — Potential contention between GPU communication and storage traffic.</em></p>
<p>The combined offered traffic exceeds the available bandwidth, potentially delaying GPU communication.</p>
<p>This is one reason architects often deploy a dedicated GPU backend network.</p>
<p>However, four functional networks do not necessarily require four separate physical fabrics. Separation depends on performance, isolation, reliability and cost.</p>
<h2>🏗️ Putting everything together — our end-to-end design</h2>
<p>For our initial 32-GPU deployment, we choose:</p>
<ul>
<li>Four eight-GPU servers with NVLink and NVSwitch.</li>
<li>A dedicated RoCEv2 backend fabric.</li>
<li>A shared frontend and storage IP fabric with segmentation and QoS.</li>
<li>An independent out-of-band management network.</li>
<li>Supporting orchestration, power and cooling infrastructure.</li>
</ul>
<p><a href="../blog-articles/lesson-01/diagrams-source/04-ai-network-domains.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f0d1bd17-db4f-46f2-91f0-6a87c70d2412.svg" alt="End-to-end conceptual AI data center architecture" width="540" /></a></p>
<p><em>Figure 6 — End-to-end conceptual AI data center architecture.</em></p>
<p>Physical port counts and network-device management connections are abstracted. Blue represents frontend/storage, teal represents GPU backend, and dashed gray represents management connectivity.</p>
<p>Notice how each GPU server connects to different networks through different interfaces.</p>
<table>
<thead>
<tr>
<th>Server interface</th>
<th>Connected to</th>
</tr>
</thead>
<tbody><tr>
<td>Local GPU interconnect</td>
<td>GPUs within the compute domain</td>
</tr>
<tr>
<td>RDMA NICs</td>
<td>Backend leaf switches</td>
</tr>
<tr>
<td>IP NICs</td>
<td>Frontend and storage fabric</td>
</tr>
<tr>
<td>BMC management interface</td>
<td>Independent management network</td>
</tr>
</tbody></table>
<p>This allows each network to be engineered according to its specific requirements.</p>
<h2>🧪 Following a training job through our infrastructure</h2>
<p>Now that we have designed the infrastructure, let's understand how everything works together.</p>
<p><a href="../blog-articles/lesson-01/diagrams-source/09-training-workflow.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/d3abc0ff-c599-46e7-855c-8b4f047bb5c6.svg" alt="AI workload lifecycle and the infrastructure supporting it" width="400" /></a></p>
<p><em>Figure 7 — AI workload lifecycle and the infrastructure supporting it.</em></p>
<p>The frontend enables customer access, storage supplies training data, the backend enables distributed computation, and the management network supports monitoring and recovery.</p>
<p>A bottleneck in any of these components can affect the overall workload.</p>
<p>This is why AI infrastructure must be designed end to end.</p>
<h2>🚀 Growing from eight GPUs to hyperscale</h2>
<p>Our customer eventually wants thousands of GPUs. As we expand, new architectural challenges emerge.</p>
<p><a href="../blog-articles/lesson-01/diagrams-source/05-infrastructure-expansion.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/f4b833c7-f056-4e5e-a2c4-885503ad31e3.svg" alt="Progressive infrastructure expansion" width="400" /></a></p>
<p><em>Figure 8 — Progressive infrastructure expansion.</em></p>
<table>
<thead>
<tr>
<th>Infrastructure scale</th>
<th>Primary design challenge</th>
</tr>
</thead>
<tbody><tr>
<td>8 GPUs</td>
<td>GPU server architecture</td>
</tr>
<tr>
<td>32 GPUs</td>
<td>Distributed communication</td>
</tr>
<tr>
<td>256 GPUs</td>
<td>Congestion, load balancing and resilience</td>
</tr>
<tr>
<td>1,024 GPUs</td>
<td>Modular fabrics, storage and orchestration</td>
</tr>
<tr>
<td>8,192+ GPUs</td>
<td>Optics, power and cooling</td>
</tr>
<tr>
<td>100,000+ GPUs</td>
<td>Multi-building and campus connectivity</td>
</tr>
</tbody></table>
<p>Consider power alone.</p>
<p>A 1,024-GPU deployment using eight-GPU DGX H100 systems, each rated at approximately 10.2 kW maximum system power, could require around 1.3 MW for GPU servers alone — excluding networking, storage and cooling.</p>
<p>At hyperscale, network design is only one part of a much larger engineering challenge.</p>
<h2>🌍 Learning from real-world deployments</h2>
<p><strong>Meta — Large-scale AI training.</strong> In 2024, Meta documented two AI clusters, each containing 24,576 NVIDIA H100 GPUs. One used RoCE Ethernet and the other used InfiniBand.</p>
<p><strong>NVIDIA — Modular infrastructure.</strong> NVIDIA's DGX SuperPOD architecture demonstrates how modular compute infrastructure and specialized networks enable large-scale AI deployments.</p>
<p>These examples show that there is no single universal AI data center design.</p>
<p>The right architecture depends on workload characteristics, performance, reliability, operational requirements and economics.</p>
<h2>🤔 Think about it — Your first architecture decision</h2>
<p>You need to design a 32-GPU training cluster. You have two options.</p>
<p><a href="../blog-articles/lesson-01/diagrams-source/06-architecture-design-question.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/15df363e-9c5d-4568-9b6e-9d00004c536c.svg" alt="Comparing two compute architectures" width="480" /></a></p>
<p><em>Figure 9 — Comparing two compute architectures.</em></p>
<p>Both options have the same total GPU capacity and external bandwidth per GPU.</p>
<p>The workload uses tensor parallelism across eight GPUs, and each server provides high-bandwidth connectivity between its local GPUs.</p>
<p>Which architecture would you choose to minimize external GPU communication?</p>
<p>Would your decision change if smaller server failure domains were more important?</p>
<h2>💡 Key takeaway</h2>
<p>An AI data center is not simply a collection of powerful GPUs connected by high-speed switches. It is an integrated system combining compute, networking, storage, orchestration, power and cooling.</p>
<p><strong>Understand the workload. Design around customer requirements. Validate the outcome.</strong></p>
<p>In this series, we will progressively design each component of this infrastructure, starting with a single GPU server and growing toward a hyperscale AI campus.</p>
<h2>🚀 Coming Up Next</h2>
<p><strong>Next Lesson:</strong> Customer Requirements and AI Workload Characterization.</p>
<h3>📚 References</h3>
<ul>
<li><a href="https://engineering.fb.com/2024/03/12/data-center-engineering/building-metas-genai-infrastructure/">Meta — Building Meta's GenAI Infrastructure</a></li>
<li><a href="https://docs.nvidia.com/dgx/dgxh100-user-guide/introduction-to-dgxh100.html">NVIDIA — DGX H100 System Documentation</a></li>
<li><a href="https://docs.nvidia.com/dgx-superpod/reference-architecture-scalable-infrastructure-h100/latest/dgx-superpod-architecture.html">NVIDIA — DGX SuperPOD Reference Architecture</a></li>
</ul>
<hr />
]]></content:encoded></item><item><title><![CDATA[Why Did GPUs Need Caches and ECC? — The Fermi Breakthrough]]></title><description><![CDATA[Discover why NVIDIA introduced L1/L2 caches and ECC support in its 2010 Fermi GPU architecture, improving memory efficiency and reliability in scientific…]]></description><link>https://packetsandfabrics.com/why-did-gpus-need-caches-and-ecc-the-fermi-breakthrough</link><guid isPermaLink="true">https://packetsandfabrics.com/why-did-gpus-need-caches-and-ecc-the-fermi-breakthrough</guid><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Sat, 21 Nov 2026 15:03:21 GMT</pubDate><content:encoded><![CDATA[<p><em>GPU Architecture — Learning Bytes | Lesson 04</em></p>
<p>🎬 <strong>Watch Lesson 04 in 14 seconds:</strong> <a href="https://youtube.com/shorts/1VdT4udokCI"><u>Why Did GPUs Need Caches and ECC? — YouTube Short</u></a></p>
<p>In <a href="https://github.com/shakeerahmedshaik/nvidia-gpu-architecture-learning-bytes/blob/main/packetsandfabrics/03-why-was-cuda-invented.md"><u>Lesson 03</u></a>, we explored how CUDA made general-purpose GPU programming practical.</p>
<p>But making GPUs programmable was only the beginning. <strong>Could they run demanding scientific calculations efficiently and reliably?</strong></p>
<p>NVIDIA's <strong>Fermi architecture (2010)</strong> helped address that challenge.</p>
<h2><strong>🧪 Imagine Running a Weather Simulation</strong></h2>
<p>Your GPU performs millions of calculations using large datasets.</p>
<p>Two problems can slow down or undermine the result:</p>
<ul>
<li><strong>Memory access:</strong> Threads need data repeatedly, and fetching it from external memory can be slow.</li>
<li><strong>Reliability:</strong> A flipped memory bit can corrupt a calculation.</li>
</ul>
<p>How could GPU hardware better support serious scientific computing?</p>
<h2><strong>📚 Breakthrough 1: Caches — Keep Useful Data Close</strong></h2>
<p>Imagine a student solving 100 problems. If every problem requires a book from a distant shelf, the student wastes time walking. Keeping frequently used books on a desk helps.</p>
<p>A <strong>cache</strong> similarly stores copies of data closer to the processor.</p>
<p><a href="https://github.com/shakeerahmedshaik/nvidia-gpu-architecture-learning-bytes/blob/main/packetsandfabrics/assets/lesson-04-fermi-cache-hierarchy.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/3334fcfd-10f0-4a48-bd2f-e8f13d5492ba.svg" alt="Simplified Fermi GPU memory hierarchy: GPU threads, L1 cache, shared L2 cache, and external GDDR5 memory" style="display:block;margin:0 auto" /></a></p>
<p><em>Simplified memory hierarchy; the exact path and caching behavior depend on access type and configuration.</em></p>
<p>Fermi added a more general-purpose memory hierarchy, including a configurable L1 cache/shared-memory partition in each SM and a shared L2 cache.</p>
<p><strong>Why it mattered:</strong> When data is reused and found in cache, some expensive external-memory accesses can be avoided.</p>
<p>Caches don't make every workload faster. Access patterns and capacity matter.</p>
<h2><strong>🛡️ Breakthrough 2: ECC — Protect the Result</strong></h2>
<p>Imagine the simulation runs for hours and a stored bit unexpectedly changes from <code>0</code> to <code>1</code>.</p>
<p><strong>ECC (Error-Correcting Code)</strong> adds redundant information that lets supported memory errors be detected and certain errors corrected.</p>
<p><a href="https://github.com/shakeerahmedshaik/nvidia-gpu-architecture-learning-bytes/blob/main/packetsandfabrics/assets/lesson-04-ecc-explained.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/ca4178c1-6fb2-4997-94f1-b1e7ef0505a3.svg" alt="ECC explained: without ECC a memory bit error may go unnoticed; with ECC supported errors can be detected and some corrected" style="display:block;margin:0 auto" /></a></p>
<p>ECC is not a guarantee against every possible error. On supported Fermi products, it helped make GPU computing more suitable for scientific and enterprise applications where correctness matters.</p>
<h2><strong>⚙️ Tesla vs. Fermi: What Changed?</strong></h2>
<table>
<thead>
<tr>
<th><strong>Capability</strong></th>
<th><strong>Tesla unified architecture (2006)</strong></th>
<th><strong>Fermi (2010)</strong></th>
</tr>
</thead>
<tbody><tr>
<td>Central advance</td>
<td>Unified programmable shader hardware</td>
<td>More compute-oriented GPU architecture</td>
</tr>
<tr>
<td>General-purpose programming</td>
<td>Early CUDA foundation</td>
<td>Improved CUDA execution and compute features</td>
</tr>
<tr>
<td>Cache hierarchy</td>
<td>Limited general-purpose caching</td>
<td>Configurable L1 and shared L2</td>
</tr>
<tr>
<td>ECC</td>
<td>Not a general feature of early Tesla GPUs</td>
<td>Supported on selected Fermi products</td>
</tr>
<tr>
<td>Double-precision math</td>
<td>Limited in first-generation G80</td>
<td>Significantly improved</td>
</tr>
<tr>
<td>Long-term significance</td>
<td>Practical programmable parallel compute</td>
<td>Stronger scientific/HPC platform</td>
</tr>
</tbody></table>
<h3><strong>Representative accelerator: NVIDIA Tesla C2050</strong></h3>
<table>
<thead>
<tr>
<th><strong>Specification</strong></th>
<th><strong>Tesla C2050 (Fermi generation)</strong></th>
</tr>
</thead>
<tbody><tr>
<td>Launch</td>
<td>2010</td>
</tr>
<tr>
<td>CUDA cores</td>
<td>448</td>
</tr>
<tr>
<td>Graphics memory</td>
<td>3 GB GDDR5</td>
</tr>
<tr>
<td>Peak memory bandwidth</td>
<td>Approximately 144 GB/s (theoretical)</td>
</tr>
<tr>
<td>ECC</td>
<td>Supported</td>
</tr>
<tr>
<td>Tensor Cores / NVLink</td>
<td>Not available</td>
</tr>
</tbody></table>
<p><em>These are specifications for the Tesla C2050 product, not all Fermi GPUs. “Tesla” was also used as a product brand; it should not be confused with the earlier Tesla GPU architecture.</em></p>
<h2><strong>🧩 Design It: Why Keep Reading the Same Data from Memory?</strong></h2>
<p>Imagine you're designing a GPU application that predicts tomorrow's weather.</p>
<p>The GPU performs thousands of calculations, and many calculations need the <strong>same input data</strong>.</p>
<p>Here's the challenge: <strong>Should the GPU fetch that data from external memory every time?</strong></p>
<h3><strong>Step 1 — The Problem: Repeated Memory Access</strong></h3>
<p>Suppose our application reads a <strong>256 KiB dataset 100 times</strong>.</p>
<p>Without any effective reuse, that's:</p>
<p><strong>256 KiB × 100 = 25 MiB of logical reads.</strong></p>
<p><a href="https://github.com/shakeerahmedshaik/nvidia-gpu-architecture-learning-bytes/blob/main/packetsandfabrics/assets/lesson-04-cache-reuse-example.svg"><img src="https://cdn.hashnode.com/uploads/covers/68d2ecc1b6291e1e0598bdb1/4794efa4-05dd-49ea-9cb6-059c61c8589e.svg" alt="Illustrative cache reuse comparison: 25 MiB external reads without reuse versus 0.25 MiB with idealized perfect reuse" style="display:block;margin:0 auto" /></a></p>
<p>The GPU may spend valuable time moving data instead of calculating.</p>
<h3><strong>Step 2 — The Idea: Keep Frequently Used Data Closer</strong></h3>
<p>Think of a student working through 100 problems.</p>
<p>Would it be faster to walk to a bookshelf for every problem—or keep the needed pages nearby?</p>
<p>That's the idea behind <strong>caching</strong>.</p>
<p>Fermi introduced a configurable <strong>L1 cache</strong> within each Streaming Multiprocessor and a <strong>shared L2 cache</strong>. When needed data is already cached, the GPU may avoid another external-memory fetch.</p>
<p>In an <em>idealized</em> example, if the dataset were fetched once and all subsequent accesses reused it, external reads could fall from <strong>25 MiB to 0.25 MiB</strong>—a <strong>99% reduction</strong>.</p>
<p><strong>Important:</strong> That's an illustration, not a Fermi benchmark. A 256 KiB dataset is larger than an individual Fermi SM's L1 cache, and real results depend on cache capacity, access patterns, and eviction.</p>
<h3><strong>Step 3 — The Second Problem: Can We Trust the Result?</strong></h3>
<p>Imagine the same weather simulation runs for hours.</p>
<p>What happens if a memory bit changes unexpectedly?</p>
<p>On supported Fermi products, <strong>ECC (Error-Correcting Code)</strong> helps detect and correct certain memory errors.</p>
<p>Caching helps with <strong>efficiency</strong>. ECC helps with <strong>data integrity</strong>. They solve different problems.</p>
<h3><strong>Step 4 — The Architect's Question</strong></h3>
<p>Would you always choose the largest possible cache—or always enable ECC?</p>
<p>Not automatically.</p>
<p>A workload that reuses nearby data may benefit from caching. Other workloads may benefit from carefully managed <strong>shared-memory tiles</strong>. ECC can improve reliability on supported hardware, but may introduce memory-capacity or performance tradeoffs.</p>
<p>The right choice depends on the application.</p>
<h3><strong>🔬 How Would We Validate This?</strong></h3>
<p>For a suitable GPU and numerical workload, compare:</p>
<ul>
<li>Execution time with and without an effective data-reuse strategy.</li>
<li>Memory traffic and cache behavior.</li>
<li>Correctness of the calculated results and, where supported, ECC status.</li>
</ul>
<p><strong>Design takeaway:</strong> Before adding more compute power—or more network bandwidth—identify whether the real bottleneck is <strong>memory access, computation, or data movement between devices</strong>.</p>
<p><em>Reference:</em> <a href="https://www.nvidia.com/content/PDF/fermi_white_papers/NVIDIA_Fermi_Compute_Architecture_Whitepaper.pdf"><em><u>NVIDIA Fermi Compute Architecture Whitepaper</u></em></a><em>. The weather workload and calculations are illustrative; no measurements are claimed.</em></p>
<h2><strong>🌐 Why Should an AI Network Architect Care?</strong></h2>
<p>Fermi's caches and ECC primarily improved <strong>what happens inside a GPU</strong>, not how GPU servers communicate.</p>
<p>But the distinction is useful when designing modern AI infrastructure:</p>
<table>
<thead>
<tr>
<th><strong>Inside a GPU</strong></th>
<th><strong>Between GPUs and servers</strong></th>
</tr>
</thead>
<tbody><tr>
<td>Cache efficiency</td>
<td>Interconnect bandwidth</td>
</tr>
<tr>
<td>Memory access latency</td>
<td>Network latency</td>
</tr>
<tr>
<td>ECC and memory integrity</td>
<td>Transport and system reliability</td>
</tr>
<tr>
<td>SM utilization</td>
<td>Distributed workload efficiency</td>
</tr>
</tbody></table>
<p>A GPU may compute efficiently yet still wait for data from another GPU. Solving memory bottlenecks and solving network bottlenecks require different approaches.</p>
<h2><strong>🎯 The One Thing to Remember</strong></h2>
<p><strong>CUDA made GPUs easier to program. Fermi improved the efficiency and reliability needed for demanding general-purpose computing.</strong></p>
<p>Caches support data reuse. ECC helps protect data integrity.</p>
<h3><strong>🤔 Think About It</strong></h3>
<p>What happens when you need more GPU performance, but a server's power and cooling budget cannot keep increasing?</p>
<p>That's the question for <strong>Lesson 05 — Kepler and Maxwell: Why Does Performance per Watt Matter?</strong></p>
<hr />
<p><strong>Series:</strong> NVIDIA GPU Architecture — Learning Bytes</p>
<p><strong>References:</strong></p>
<ul>
<li><a href="https://www.nvidia.com/content/PDF/fermi_white_papers/NVIDIA_Fermi_Compute_Architecture_Whitepaper.pdf"><u>NVIDIA Fermi Compute Architecture Whitepaper</u></a></li>
<li><a href="https://docs.nvidia.com/cuda/cuda-c-programming-guide/"><u>NVIDIA CUDA C++ Programming Guide</u></a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Why Was CUDA Invented? — The Breakthrough That Took GPUs Beyond Graphics]]></title><description><![CDATA[Discover why NVIDIA invented CUDA in 2006, how Tesla GPU architecture enabled parallel computing, and why it mattered for modern AI and HPC.]]></description><link>https://packetsandfabrics.com/why-was-cuda-invented-the-breakthrough-that-took-gpus-beyond-graphics</link><guid isPermaLink="true">https://packetsandfabrics.com/why-was-cuda-invented-the-breakthrough-that-took-gpus-beyond-graphics</guid><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Fri, 20 Nov 2026 19:07:55 GMT</pubDate><content:encoded><![CDATA[<p><em>GPU Architecture — Learning Bytes | Lesson 03</em></p>
<p>In <a href="https://packetsandfabrics.hashnode.dev/why-did-gpus-become-programmable-the-step-before-cuda"><u>Lesson 02</u></a>, we discovered that programmable shaders gave developers control over graphics calculations.</p>
<p>But here's a puzzle.</p>
<p><strong>If GPUs were already programmable, why did NVIDIA need CUDA?</strong></p>
<p>Let's explore.</p>
<h2><strong>🧪 Imagine You're a Scientist in 2005</strong></h2>
<p>You are running a simulation involving millions of mathematical operations. Your CPU can do the work, but it takes time. A GPU has many arithmetic units capable of working on data in parallel.</p>
<p>There's a catch: <strong>the GPU is designed around graphics, not ordinary scientific programs.</strong></p>
<p>To use early programmable GPUs for non-graphics calculations, researchers often represented numbers as graphics textures, performed operations with shaders, and retrieved the results through graphics interfaces.</p>
<p>Imagine having to format a spreadsheet as an image before adding two columns of numbers.</p>
<p>It was possible, but awkward.</p>
<h2><strong>💡 The Breakthrough: CUDA</strong></h2>
<p>NVIDIA introduced <strong>CUDA — Compute Unified Device Architecture</strong> in 2006, with developer tools becoming broadly available in 2007.</p>
<p>CUDA gave developers a general-purpose parallel computing platform and programming model. Instead of disguising scientific calculations as graphics operations, programmers could express parallel algorithms directly using a C-based programming interface.</p>
<p>Consider adding two arrays:</p>
<p><strong>Array A:</strong> 1, 2, 3, 4<br /><strong>Array B:</strong> 5, 6, 7, 8<br /><strong>Result:</strong> 6, 8, 10, 12</p>
<p>A developer writes a GPU function called a <strong>kernel</strong>. Many GPU threads execute that kernel, with different threads working on different array elements.</p>
<p><strong>CUDA made GPU computing more practical without requiring developers to express every problem through the graphics pipeline.</strong></p>
<h2><strong>⚙️ Tesla: The Hardware Foundation</strong></h2>
<p>CUDA didn't arrive in isolation.</p>
<p>In 2006, NVIDIA launched the GeForce 8800 GTX, based on the <strong>Tesla unified shader architecture</strong>. Earlier GPUs commonly had distinct vertex and pixel shader processing hardware. Tesla used unified programmable processors that could be allocated more flexibly to different shader workloads.</p>
<p>The GeForce 8800 GTX had <strong>128 unified stream processors</strong>, a significant departure from earlier fixed allocations of vertex and pixel processing resources.</p>
<p>The distinction matters:</p>
<ul>
<li><strong>Tesla:</strong> A GPU hardware architecture with unified shader processing.</li>
<li><strong>CUDA:</strong> A software platform and programming model for general-purpose GPU computing.</li>
</ul>
<p>They are related, but they are <strong>not the same thing</strong>.</p>
<h2><strong>🧵 How Does CUDA Organize Parallel Work?</strong></h2>
<p>Think of a factory containing many teams of workers.</p>
<p>CUDA organizes work in a similar way:</p>
<pre><code class="language-plaintext">GPU hardware
└── Streaming Multiprocessors (SMs)
    └── Resident thread blocks
        └── Warps
            └── 32 threads per warp

CUDA software launch
Kernel → Grid → Thread blocks → Threads
</code></pre>
<ul>
<li><strong>Kernel:</strong> A function executed by GPU threads.</li>
<li><strong>Thread:</strong> An instance of the program working on its own data.</li>
<li><strong>Thread block:</strong> A group of threads scheduled to run on one SM.</li>
<li><strong>Warp:</strong> A scheduling group of 32 threads on NVIDIA GPUs.</li>
<li><strong>SM:</strong> Hardware that schedules and executes groups of threads.</li>
</ul>
<p>For example, a launch of <strong>1,024 threads</strong> could use four blocks of <strong>256 threads</strong>. Each block contains <strong>eight warps</strong> of 32 threads. The GPU schedules blocks on available SMs, subject to hardware resources.</p>
<p><em>This is a simplified model: GPU hardware doesn't necessarily execute every resident thread at the same instant.</em></p>
<h2><strong>🧩 Design It: How Would You Process One Million Numbers?</strong></h2>
<p>Imagine you're building a scientific application.</p>
<p>You have two lists, each containing <strong>one million numbers</strong>, and you want to add them together.</p>
<p>For example:</p>
<pre><code class="language-plaintext">Array A:  10   20   30   40
Array B:   1    2    3    4
          -----------------
Result:   11   22   33   44
</code></pre>
<p>Simple, right?</p>
<p>But what if the arrays contain <strong>1,048,576 numbers</strong>?</p>
<h3><strong>Step 1 — Think Like a CPU</strong></h3>
<p>A simple CPU program could process the numbers one after another:</p>
<pre><code class="language-plaintext">Add A[0] + B[0]
Add A[1] + B[1]
Add A[2] + B[2]
...
</code></pre>
<p>This is a sequential example. Modern CPUs can also process multiple elements in parallel.</p>
<h3><strong>Step 2 — Think Like a GPU</strong></h3>
<p>Notice something interesting.</p>
<p><strong>Each addition is independent.</strong></p>
<p>We don't need to wait for the first addition before calculating the second.</p>
<p>CUDA lets us assign different elements to different GPU threads.</p>
<pre><code class="language-plaintext">Thread 0 → A[0] + B[0] → C[0]
Thread 1 → A[1] + B[1] → C[1]
Thread 2 → A[2] + B[2] → C[2]
Thread 3 → A[3] + B[3] → C[3]
              ...
</code></pre>
<p>Instead of writing a program that explicitly processes each element in sequence, we launch many threads that can execute the same calculation on different data.</p>
<p><strong>This is the fundamental idea behind CUDA parallel programming.</strong></p>
<h3><strong>Step 3 — How Does CUDA Organize the Work?</strong></h3>
<p>CUDA groups threads into <strong>blocks</strong>.</p>
<p>Suppose we choose <strong>256 threads per block</strong>.</p>
<p>For 1,048,576 elements:</p>
<p><strong>1,048,576 ÷ 256 = 4,096 blocks</strong></p>
<p>Each block contains 256 threads, organized into eight groups of 32 called <strong>warps</strong>.</p>
<p>The GPU schedules these blocks across its available Streaming Multiprocessors (SMs). They do not all execute simultaneously.</p>
<h3><strong>Step 4 — The Architect's Question</strong></h3>
<p>Does this mean the GPU will always finish faster than a CPU?</p>
<p><strong>Not necessarily.</strong></p>
<p>The GPU must access the input arrays and store the results. If the data starts in CPU memory, transferring it to the GPU also takes time.</p>
<p>For a very small calculation, these overheads might outweigh the benefit of parallel execution.</p>
<p>For a larger workload involving many calculations on data already in GPU memory, GPU acceleration can become much more attractive.</p>
<h3><strong>🔬 How Would We Validate This?</strong></h3>
<p>Try the same array addition on a CPU and a supported CUDA GPU.</p>
<p>Measure three things:</p>
<ul>
<li>CPU execution time.</li>
<li>GPU kernel execution time.</li>
<li>Total GPU time, including data transfers.</li>
</ul>
<p>Then compare the results.</p>
<p><strong>Design takeaway:</strong> A GPU is valuable not simply because it has many threads, but because a workload has enough suitable parallel work to justify using them.</p>
<p><em>Reference:</em> <a href="https://docs.nvidia.com/cuda/cuda-c-programming-guide/"><em><u>NVIDIA CUDA C++ Programming Guide</u></em></a><em>. The array size and thread configuration are illustrative; no benchmark results are claimed.</em></p>
<h2><strong>🌐 Why Does This Matter for AI Network Architects?</strong></h2>
<p>CUDA helped turn GPUs into practical platforms for scientific and, later, AI workloads. Modern model training performs enormous amounts of matrix multiplication.</p>
<p>But as models grew, one GPU was no longer enough. Training expanded to multiple GPUs within a server and then to thousands of GPUs across clusters.</p>
<p>That created a new challenge: <strong>moving data efficiently between processors</strong>.</p>
<ul>
<li><strong>CUDA</strong> enables GPU computation and exposes GPU memory and execution APIs.</li>
<li><strong>NCCL</strong> provides collective communication operations such as AllReduce.</li>
<li><strong>PCIe, NVLink and NVSwitch</strong> connect devices within supported systems.</li>
<li><strong>InfiniBand or Ethernet</strong> networks connect GPU servers using suitable transports and network adapters.</li>
</ul>
<p>CUDA is essential to much GPU computing, but <strong>CUDA alone is not the entire distributed-training communication stack</strong>.</p>
<h2><strong>🎯 The One Thing to Remember</strong></h2>
<p><strong>Programmable shaders made general-purpose GPU calculations possible. CUDA made programming GPUs for those calculations substantially more practical.</strong></p>
<p>Tesla's unified architecture helped supply the hardware foundation.</p>
<h3><strong>🤔 Think About It</strong></h3>
<p>A GPU has many threads ready to run. Some threads are waiting for data from memory.</p>
<p><strong>How can the GPU keep doing useful work instead of sitting idle while memory responds?</strong></p>
<p>That's the question we'll explore in Lesson 04, when we look inside a Streaming Multiprocessor.</p>
<hr />
<p><strong>Series:</strong> NVIDIA GPU Architecture — Learning Bytes</p>
<p><strong>References:</strong></p>
<ul>
<li><a href="https://docs.nvidia.com/cuda/cuda-c-programming-guide/"><u>NVIDIA — CUDA C++ Programming Guide</u></a></li>
<li><a href="https://www.nvidia.com/content/PDF/Geforce_8800/GeForce_8800_GPU_Architecture_Technical_Brief.pdf"><u>NVIDIA — GeForce 8800 GPU Architecture Technical Brief</u></a></li>
<li><a href="https://developer.nvidia.com/blog/cuda-refresher-cuda-programming-model/"><u>NVIDIA — CUDA Programming Model</u></a></li>
</ul>
]]></content:encoded></item><item><title><![CDATA[Why Did GPUs Become Programmable? The Step Before CUDA]]></title><description><![CDATA[GPU Architecture — Learning Bytes | Lesson 02 In Lesson 01, we discovered why GPUs emerged: to accelerate graphics calculations that were placing…]]></description><link>https://packetsandfabrics.com/why-did-gpus-become-programmable-the-step-before-cuda</link><guid isPermaLink="true">https://packetsandfabrics.com/why-did-gpus-become-programmable-the-step-before-cuda</guid><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Thu, 19 Nov 2026 18:33:08 GMT</pubDate><content:encoded><![CDATA[<p><em>GPU Architecture — Learning Bytes | Lesson 02</em></p>
<p>In <a href="https://packetsandfabrics.hashnode.dev/why-were-gpus-invented-the-problem-before-ai"><u>Lesson 01</u></a>, we discovered why GPUs emerged: to accelerate graphics calculations that were placing increasing demands on CPUs.</p>
<p>But that created another interesting problem.</p>
<p><strong>What happens when graphics hardware is fast, but developers want it to do something it wasn't originally designed to do?</strong></p>
<p>Let's explore.</p>
<h2><strong>🎮 Imagine Designing a Racing Game in 2001</strong></h2>
<p>You're building a racing game.</p>
<p>Your GPU can already draw cars, roads, and buildings. It can perform geometry transformations and lighting calculations.</p>
<p>But you want something more realistic:</p>
<ul>
<li>A car's paint should reflect its surroundings.</li>
<li>Water should ripple naturally.</li>
<li>Characters should move with more realistic animation.</li>
<li>Different surfaces should react differently to light.</li>
</ul>
<p>The problem?</p>
<p>Much of the graphics pipeline follows predefined operations.</p>
<p>You can configure the available functions, but you cannot freely replace their underlying calculations.</p>
<p><strong>The hardware is fast, but not flexible enough.</strong></p>
<h2><strong>🚦 Fixed-Function Graphics: Like a Calculator With Preset Buttons</strong></h2>
<p>Imagine a calculator that only has buttons for addition, subtraction, multiplication, and division.</p>
<p>It's excellent at those operations.</p>
<p>But what if you need a custom formula?</p>
<p>You need something programmable.</p>
<p>Early graphics hardware faced a similar limitation.</p>
<p>Fixed-function pipelines provided specialized operations for transforming geometry, applying lighting, and rendering pixels.</p>
<p>Developers needed greater control over how those calculations were performed.</p>
<p>That led to a major architectural change.</p>
<h2><strong>💡 The Breakthrough: Programmable Shaders</strong></h2>
<p>Instead of relying entirely on predefined graphics operations, GPUs began supporting small programs called <strong>shaders</strong>.</p>
<p>A shader is a program that runs on the GPU to perform particular graphics calculations.</p>
<p>Two important types emerged:</p>
<p><strong>Vertex Shader:</strong> Controls calculations involving 3D vertices, such as position transformations and character deformation.</p>
<p><strong>Pixel Shader:</strong> Controls calculations used to determine how surfaces appear, including color, lighting, and reflections.</p>
<p>Let's return to our racing game.</p>
<p>With programmable shaders, developers could create custom calculations for the appearance of a car's paint rather than relying only on preset lighting and texture operations.</p>
<p><strong>The GPU was no longer limited to executing a fixed collection of graphics formulas.</strong></p>
<h2><strong>🕰️ Four NVIDIA Architectures That Tell the Story</strong></h2>
<table>
<thead>
<tr>
<th><strong>Year</strong></th>
<th><strong>Architecture</strong></th>
<th><strong>Important development</strong></th>
</tr>
</thead>
<tbody><tr>
<td>1999</td>
<td>Celsius — GeForce 256</td>
<td>Hardware Transform &amp; Lighting</td>
</tr>
<tr>
<td>2001</td>
<td>Kelvin — GeForce3</td>
<td>Programmable vertex shaders and early programmable pixel shading</td>
</tr>
<tr>
<td>2003</td>
<td>Rankine — GeForce FX</td>
<td>More capable floating-point shader processing</td>
</tr>
<tr>
<td>2004</td>
<td>Curie — GeForce 6800</td>
<td>Shader Model 3.0 and greater programming flexibility</td>
</tr>
</tbody></table>
<p>Each generation gave developers more control over graphics calculations.</p>
<p>The transition was gradual: fixed-function hardware and programmable stages coexisted for years.</p>
<h2><strong>⚡ Why Was This More Than a Graphics Improvement?</strong></h2>
<p>Consider the difference:</p>
<p><strong>Fixed-function GPU:</strong> The hardware determines which calculations are available.</p>
<p><strong>Programmable GPU:</strong> Developers can supply programs that perform supported calculations on large amounts of data.</p>
<p>This changed what GPUs could potentially be used for.</p>
<p>Researchers began exploring whether graphics processors could perform useful calculations outside traditional graphics applications.</p>
<p>However, early GPU computing was still difficult. Developers often had to express general computations through graphics-oriented programming interfaces.</p>
<p>Programmability was an important step, but it wasn't yet the convenient general-purpose GPU computing model we know today.</p>
<h2><strong>🌐 What Does This Mean for AI Network Architects?</strong></h2>
<p>At this stage, GPU innovation was primarily about computation within a graphics processor.</p>
<p>There were no modern GPU training clusters exchanging gradients over high-speed AI fabrics.</p>
<p>But the architectural direction mattered.</p>
<p>Once GPUs became increasingly programmable, they could eventually be used for many parallel computations beyond graphics.</p>
<p>Later developments made them practical for scientific computing and AI workloads.</p>
<p>And as applications expanded from one GPU to multiple GPUs and eventually thousands of accelerators, another challenge became increasingly important:</p>
<p><strong>How do we move data between all these processors efficiently?</strong></p>
<p>That's where GPU interconnects and AI networking enter the story.</p>
<h2><strong>🎯 The One Thing to Remember</strong></h2>
<p><strong>Fixed-function GPUs accelerated predefined graphics operations. Programmable GPUs gave developers control over the calculations themselves.</strong></p>
<p>That flexibility was an essential step toward general-purpose GPU computing.</p>
<h3><strong>🤔 Think About It</strong></h3>
<p>If GPUs already supported programmable shaders by 2004, <strong>why did NVIDIA still need CUDA?</strong></p>
<p>That's the question we'll explore in Lesson 03.</p>
<hr />
<p><em>Packets and Fabrics — Decoding Networks. Designing AI Fabrics.</em></p>
<p><strong>Series:</strong> NVIDIA GPU Architecture — Learning Bytes</p>
<p><strong>References:</strong> <a href="https://developer.nvidia.com/gpugems/gpugems2/part-iv-general-purpose-computation-gpus-primer/chapter-30-geforce-6-series-gpu"><u>NVIDIA GPU Gems 2 — GeForce 6 Architecture</u></a> · <a href="https://developer.download.nvidia.com/presentations/2006/siggraph/kilgard-siggraph-06.pdf"><u>NVIDIA GeForce History</u></a></p>
]]></content:encoded></item><item><title><![CDATA[Why Were GPUs Invented? The Problem Before AI]]></title><description><![CDATA[GPU Architecture — Learning Bytes | Lesson 01 Today, when we hear the word GPU, we think of AI, ChatGPT, massive data centers, and thousands of processors…]]></description><link>https://packetsandfabrics.com/why-were-gpus-invented-the-problem-before-ai</link><guid isPermaLink="true">https://packetsandfabrics.com/why-were-gpus-invented-the-problem-before-ai</guid><dc:creator><![CDATA[Shakeer Ahmed Shaik]]></dc:creator><pubDate>Tue, 17 Nov 2026 21:16:43 GMT</pubDate><content:encoded><![CDATA[<p><em>GPU Architecture — Learning Bytes | Lesson 01</em></p>
<p>Today, when we hear the word <strong>GPU</strong>, we think of AI, ChatGPT, massive data centers, and thousands of processors working together.</p>
<p>But here's something interesting:</p>
<p><strong>GPUs weren't originally created for artificial intelligence. They were built to make computer graphics faster.</strong></p>
<p>To understand why, let's travel back to 1999.</p>
<h2>🎮 Imagine Playing a Racing Game in 1999</h2>
<p>You're driving a car through a virtual city.</p>
<p>As you turn a corner, the computer must repeatedly calculate:</p>
<ul>
<li>Where is the car positioned?</li>
<li>How should its 3D shape appear from your viewpoint?</li>
<li>How does light fall on its surfaces?</li>
<li>What colors should appear on the screen?</li>
</ul>
<p>And it must do all this while handling steering, collisions, and game logic.</p>
<p>Now imagine adding more cars, buildings, reflections, and realistic lighting.</p>
<p><strong>The workload grows dramatically.</strong></p>
<p>The CPU can perform these calculations, but doing more graphics work leaves fewer processing resources for everything else.</p>
<p>And that creates a problem.</p>
<h2>🚦 The Problem: One Processor, Too Much Work</h2>
<p>A CPU is a general-purpose processor. It's designed to handle a wide variety of tasks.</p>
<p>Graphics processing is different.</p>
<p>Many graphics operations apply similar calculations to thousands of vertices and pixels.</p>
<p>Earlier graphics accelerators already handled portions of rendering, but the CPU frequently remained responsible for geometry transformations and lighting.</p>
<p>As 3D scenes became more complex, this work could become a significant performance bottleneck.</p>
<p><strong>What if dedicated hardware could handle those repetitive graphics calculations instead?</strong></p>
<p>That idea helped drive the evolution of GPUs.</p>
<h2>💡 1999: NVIDIA GeForce 256 Arrives</h2>
<p>In 1999, NVIDIA introduced the <strong>GeForce 256</strong>, built on its Celsius architecture.</p>
<p>One important innovation was hardware <strong>Transform &amp; Lighting (T&amp;L)</strong>.</p>
<p>Let's simplify what those terms mean:</p>
<p><strong>Transform:</strong> Calculate where 3D objects appear when viewed from a particular camera position.</p>
<p><strong>Lighting:</strong> Calculate how light affects the appearance of those objects.</p>
<p>Instead of relying entirely on the CPU for these operations, supported applications could offload them to dedicated GPU hardware.</p>
<h3>Before and after</h3>
<p><strong>Earlier graphics pipeline</strong></p>
<p>CPU → Game logic + geometry/lighting → Graphics accelerator → Display</p>
<p><strong>With GeForce 256 hardware T&amp;L</strong></p>
<p>CPU → Game logic + scene setup → GPU performs T&amp;L + rendering → Display</p>
<p><em>These are simplified pipelines; actual work distribution varied by hardware and application.</em></p>
<p>The CPU didn't disappear.</p>
<p><strong>It gained a more specialized partner.</strong></p>
<h2>⚡ What Made This GPU Special?</h2>
<p>The GeForce 256 looks modest compared with modern AI accelerators.</p>
<p>A typical SDR version featured:</p>
<table>
<thead>
<tr>
<th>Specification</th>
<th>GeForce 256 SDR</th>
</tr>
</thead>
<tbody><tr>
<td>Architecture</td>
<td>Celsius (NV10)</td>
</tr>
<tr>
<td>Introduced</td>
<td>1999</td>
</tr>
<tr>
<td>GPU clock</td>
<td>120 MHz</td>
</tr>
<tr>
<td>Memory</td>
<td>Typically 32 MB SDR</td>
</tr>
<tr>
<td>Memory interface</td>
<td>128-bit</td>
</tr>
<tr>
<td>Memory bandwidth</td>
<td>Approximately 2.66 GB/s</td>
</tr>
</tbody></table>
<p>It had no CUDA, no Tensor Cores, and no NVLink.</p>
<p>Yet its architectural direction was important: <strong>use specialized processing hardware to accelerate computationally intensive tasks.</strong></p>
<h2>🌐 So How Did Gaming GPUs Lead to AI Networks?</h2>
<p>The GeForce 256 wasn't an AI accelerator.</p>
<p>But GPU architecture continued evolving.</p>
<p>Graphics processors became increasingly programmable. Developers eventually gained the ability to use GPU computing resources for general-purpose parallel workloads.</p>
<p>Much later, specialized AI acceleration and high-speed interconnects helped make large-scale GPU systems practical.</p>
<p>This introduced a new challenge.</p>
<p>A single GPU can perform enormous amounts of computation. But what happens when hundreds or thousands of GPUs need to exchange information to train one model?</p>
<p><strong>Computing power alone isn't enough. Data must move between GPUs efficiently.</strong></p>
<p>That's where modern AI networking becomes essential.</p>
<p>And that's why we're exploring GPU architecture in <em>Packets and Fabrics</em>—not just to learn what GPUs contain, but to understand why their evolution changes how networks are designed.</p>
<h2>🎯 The One Thing to Remember</h2>
<p><strong>GPUs began as specialized graphics accelerators, not AI processors.</strong></p>
<p>Their evolution from fixed-function graphics hardware into programmable parallel processors laid the groundwork for today's AI computing systems.</p>
<h3>🤔 Think About It</h3>
<p>If fixed-function graphics hardware was already accelerating calculations, <strong>why did GPUs need to become programmable?</strong></p>
<p>That's the question we'll explore in Lesson 02.</p>
<hr />
<p><em>Packets and Fabrics — Decoding Networks. Designing AI Fabrics.</em></p>
<p><strong>Series:</strong> NVIDIA GPU Architecture — Learning Series</p>
<p><strong>References:</strong> <a href="https://blogs.nvidia.com/blog/first-gpu-gaming-ai/">NVIDIA GPU History</a> · <a href="https://www.nvidia.com/en-us/technologies/">NVIDIA Technologies</a></p>
]]></content:encoded></item></channel></rss>