<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Gautam Vasudeva on Medium]]></title>
        <description><![CDATA[Stories by Gautam Vasudeva on Medium]]></description>
        <link>https://medium.com/@gautam.vasudeva07?source=rss-d1dd34f7baaf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*ZkFy5TFtrnanMx5f</url>
            <title>Stories by Gautam Vasudeva on Medium</title>
            <link>https://medium.com/@gautam.vasudeva07?source=rss-d1dd34f7baaf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:02:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gautam.vasudeva07/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[MCP Servers: From AI Chat to Production-Grade Actions [Article 1]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/mcp-servers-from-ai-chat-to-production-grade-actions-article-1-a11870e44448?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a11870e44448</guid>
            <category><![CDATA[ai-engineering]]></category>
            <category><![CDATA[model-context-protocol]]></category>
            <category><![CDATA[ai-infrastructure]]></category>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[network-automation]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Mon, 21 Sep 2026 12:29:19 GMT</pubDate>
            <atom:updated>2026-09-21T12:31:17.680Z</atom:updated>
            <content:encoded><![CDATA[<h3>MCP Servers: The Missing Layer Between AI and the Real World</h3><p>The most dangerous AI answer is not an obviously wrong one.</p><p>It is the answer that sounds perfectly confident.</p><p>Imagine you are an on-call engineer at <strong>AstraCloud</strong>, a cloud infrastructure company. At 02:13 AM, packet drops suddenly increase in production cluster eu-west-3.</p><p>You open an AI assistant and ask:</p><blockquote><em>“Why are packet drops rising in </em><em>eu-west-3? Check the latest changes, find the relevant runbook, and tell me the safest next step.”</em></blockquote><p>The assistant responds:</p><blockquote><em>“Packet drops are often caused by congestion, interface errors, MTU mismatch, or a recent configuration change. You should check…”</em></blockquote><p>Technically, that answer may be reasonable.</p><p>Operationally, it is almost useless.</p><p>It does not know whether the interfaces are actually dropping packets. It cannot see the current telemetry. It has not checked the last network change. It cannot access AstraCloud’s internal runbook. And it certainly should not be allowed to make a change in production just because it generated a convincing response.</p><p>The AI is intelligent.</p><p>But it is isolated.</p><p>This is the exact problem that <strong>Model Context Protocol (MCP)</strong> solves.</p><p>MCP gives AI applications a standard, controlled way to connect with real data and real capabilities: documentation, APIs, databases, source code, cloud platforms, monitoring systems, ticketing tools, and internal automation.</p><p>In simple words:</p><blockquote><strong><em>MCP helps an AI application move from “I can explain this” to “I can check the real system and help you act safely.”</em></strong></blockquote><p>In this series, we will build an internal service called the <strong>AstraOps MCP Server</strong>. It will help AstraCloud engineers investigate incidents, retrieve runbooks, inspect live operational data, and prepare safe change plans.</p><p>By the end of the series, you will understand how to create, use, secure, deploy, and operate MCP servers in production.</p><p>But before writing code, we need to understand why MCP exists.</p><h3>The real limitation of an AI assistant</h3><p>A Large Language Model, or LLM, is very good at understanding language and generating useful responses.</p><p>It can explain what packet loss is. It can write a Python script. It can summarize a document. It can reason through an incident based on the information it receives.</p><p>But an LLM does not automatically know:</p><ul><li>What is happening in your environment right now</li><li>Which changes were deployed ten minutes ago</li><li>What is inside your private documentation</li><li>Which service owns a particular cluster</li><li>Whether an incident ticket already exists</li><li>Which engineer is on call</li><li>Whether it is safe to run a command</li></ul><p>It only knows what is available in its conversation context.</p><p>This is why normal AI chat often reaches a frustrating point.</p><p>You ask:</p><blockquote><em>“What changed before this incident?”</em></blockquote><p>The assistant may reply:</p><blockquote><em>“Please provide the deployment logs or change records.”</em></blockquote><p>Then you copy dashboard output into the chat. You paste a change ticket. You paste a runbook. You paste an alert. You remove a secret accidentally included in a log. You ask the question again.</p><p>This can work for one investigation.</p><p>It does not work as an engineering operating model.</p><h3>Why manually pasting data does not scale</h3><p>At a small scale, people can manually provide context to an AI assistant.</p><p>At production scale, this creates several problems:</p><ul><li>The data may be stale by the time it is pasted.</li><li>Important information may be missed.</li><li>Different engineers provide different context.</li><li>Sensitive data can be exposed accidentally.</li><li>The same manual work is repeated during every incident.</li><li>The assistant cannot reliably perform follow-up checks.</li><li>Every AI application needs its own custom integration.</li></ul><p>The problem is not that the model needs a longer prompt.</p><p>The problem is that the AI application needs a trustworthy way to obtain the right context from the right system at the right time.</p><p>That is the role of MCP.</p><h3>So, what exactly is MCP?</h3><p><strong>Model Context Protocol</strong> is an open protocol that standardizes how AI applications connect to external data sources and capabilities.</p><p>MCP is not an AI model.</p><p>It is not a chatbot.</p><p>It is not a database.</p><p>It is not a replacement for REST APIs, GraphQL APIs, CLI tools, or automation platforms.</p><p>Instead, MCP is a common interface between an AI application and those existing systems.</p><p>Think about a company with these systems:</p><ul><li>Observability dashboards</li><li>Internal runbooks</li><li>Git repositories</li><li>Change-management tools</li><li>Cloud APIs</li><li>Databases</li><li>Ticketing platforms</li><li>Network automation services</li></ul><p>Each system has its own API, authentication method, data format, and operational rules.</p><p>Without MCP, every AI application would need a separate custom integration for every system.</p><p>With MCP, a team can build one well-designed MCP server that exposes the useful parts of those systems in a standard way.</p><pre>flowchart LR<br>    A[&quot;AI application&quot;] --&gt; B[&quot;MCP Server&quot;]<br>    B --&gt; C[&quot;Runbooks&quot;]<br>    B --&gt; D[&quot;Telemetry&quot;]<br>    B --&gt; E[&quot;Change system&quot;]<br>    B --&gt; F[&quot;Automation API&quot;]</pre><p>The MCP server does not replace these systems.</p><p>It acts as a controlled bridge to them.</p><p>The official MCP specification defines it as a standardized way for applications to share context with language models and expose tools and capabilities to AI systems. <a href="https://modelcontextprotocol.io/specification/2026-07-28">Read the official specification</a>.</p><h3>The simple mental model: AI application, client, and server</h3><p>MCP has three main participants:</p><ul><li><strong>Host</strong></li><li><strong>Client</strong></li><li><strong>Server</strong></li></ul><p>The terms sound technical, but the idea is straightforward.</p><pre>flowchart LR<br>    U[&quot;Engineer&quot;] --&gt; H[&quot;AI Host&quot;]<br>    H --&gt; C[&quot;MCP Client&quot;]<br>    C --&gt; S[&quot;AstraOps MCP Server&quot;]<br>    S --&gt; P[&quot;AstraCloud platforms&quot;]</pre><h3>1. The host: where the user talks to AI</h3><p>The <strong>host</strong> is the AI application used by the person.</p><p>It could be:</p><ul><li>An AI-enabled IDE</li><li>A desktop AI application</li><li>A web chat application</li><li>An internal engineering copilot</li></ul><p>At AstraCloud, the host is where an engineer asks:</p><blockquote><em>“Investigate packet drops in </em><em>eu-west-3.”</em></blockquote><p>The host manages the user experience. It presents the conversation, connects to MCP servers, shows approval prompts, and makes the server’s capabilities available to the model.</p><h3>2. The client: the connector inside the host</h3><p>The <strong>client</strong> is the component inside the host that maintains a connection to an MCP server.</p><p>A single host can connect to multiple MCP servers.</p><p>For example, AstraCloud’s engineering assistant may connect to:</p><ul><li>An AstraOps MCP Server for telemetry and runbooks</li><li>A source-control MCP Server for repositories and pull requests</li><li>A ticketing MCP Server for incident records</li><li>A cloud MCP Server for infrastructure inventory</li></ul><p>The engineer sees one assistant. Behind the scenes, the host may use several MCP clients — one connection per server.</p><h3>3. The server: the provider of context and capabilities</h3><p>The <strong>MCP server</strong> is the program that exposes useful data and controlled actions.</p><p>Our AstraOps MCP Server will connect to AstraCloud’s internal platforms and provide carefully designed capabilities such as:</p><ul><li>Retrieve the packet-loss troubleshooting runbook</li><li>Check cluster health</li><li>Find recent approved network changes</li><li>Compare interface error counters</li><li>Create a rollback plan</li></ul><p>An MCP server can run locally on a laptop or remotely as a shared service. The word “server” describes its role in the protocol; it does not necessarily mean a large machine in a data center.</p><p>The official MCP architecture describes the host as the AI application, the client as its dedicated connector to a server, and the server as the program that provides context. <a href="https://modelcontextprotocol.io/docs/2026-07-28/learn/architecture">MCP architecture overview</a></p><h3>The three things an MCP server can offer</h3><p>An MCP server can expose three core capabilities:</p><ul><li><strong>Tools</strong></li><li><strong>Resources</strong></li><li><strong>Prompts</strong></li></ul><p>Understanding this distinction is essential. A good MCP server does not expose everything as a tool.</p><h3>Tools: “Do something”</h3><p>A <strong>tool</strong> is a function that the AI application can invoke.</p><p>For AstraOps, tools may include:</p><pre>get_cluster_health<br>search_recent_network_changes<br>get_interface_counters<br>create_rollback_plan</pre><p>A tool accepts structured input, performs a specific operation, and returns a result.</p><p>For example, when an engineer asks:</p><blockquote><em>“Check the health of </em><em>eu-west-3.”</em></blockquote><p>The AI application may invoke:</p><pre>get_cluster_health(cluster=&quot;eu-west-3&quot;)</pre><p>The MCP server then queries the real monitoring and inventory systems and returns the result.</p><p>Tools are useful when the answer must be computed, retrieved dynamically, or generated from a live system.</p><h3>Resources: “Give me information”</h3><p>A <strong>resource</strong> provides context or data.</p><p>For AstraOps, resources may include:</p><ul><li>A packet-loss troubleshooting runbook</li><li>A cluster topology document</li><li>A network policy reference</li><li>A service ownership record</li><li>An incident timeline</li></ul><p>For example:</p><pre>runbook://network/packet-loss</pre><p>A resource is not an action. It is information that the host can retrieve and provide to the model as context.</p><p>If a tool is like asking someone to look up the current temperature, a resource is like opening the engineering handbook.</p><h3>Prompts: “Guide me through a workflow”</h3><p>A <strong>prompt</strong> is a reusable template that structures a conversation or workflow.</p><p>AstraOps may provide prompts such as:</p><ul><li>Investigate packet loss</li><li>Review a planned network change</li><li>Create an incident handover</li><li>Summarize a maintenance window</li></ul><p>For example, an “Investigate packet loss” prompt can guide the user through a consistent process:</p><ol><li>Select the cluster.</li><li>Choose the time range.</li><li>Retrieve health indicators.</li><li>Check recent changes.</li><li>Retrieve the relevant runbook.</li><li>Produce an evidence-based recommendation.</li></ol><p>Here is the simplest way to remember the difference:</p><p>MCP capabilityCore questionAstraOps exampleToolWhat should the system do?Check current cluster healthResourceWhat information should the model see?Retrieve the packet-loss runbookPromptWhat repeatable workflow should guide the interaction?Start an incident investigation</p><h3>What happens when an engineer asks a question?</h3><p>Let’s return to the original request:</p><blockquote><em>“Why are packet drops rising in </em><em>eu-west-3? Check the latest network changes and show me the relevant runbook.”</em></blockquote><p>A well-designed MCP flow looks like this:</p><pre>sequenceDiagram<br>    participant E as Engineer<br>    participant H as AI Host<br>    participant S as AstraOps MCP Server<br>    participant P as Internal Platforms<br><br>E-&gt;&gt;H: Investigate packet drops<br>    H-&gt;&gt;S: Discover available capabilities<br>    H-&gt;&gt;S: Get cluster health<br>    S-&gt;&gt;P: Query telemetry and inventory<br>    P--&gt;&gt;S: Current operational data<br>    H-&gt;&gt;S: Search recent network changes<br>    H-&gt;&gt;S: Retrieve packet-loss runbook<br>    S--&gt;&gt;H: Evidence and context<br>    H--&gt;&gt;E: Explanation and safe next step</pre><p>The important detail is that the model does not directly communicate with the telemetry platform, the documentation portal, or the network.</p><p>The model identifies what it needs.</p><p>The host invokes approved MCP capabilities.</p><p>The MCP server interacts with real systems under defined rules.</p><p>The results return to the host, which gives the model enough context to produce a useful answer.</p><p>This creates a clear boundary:</p><blockquote><strong><em>The model can reason about the environment, but the MCP server controls access to the environment.</em></strong></blockquote><blockquote><strong>The host mediates user consent and its MCP client sends MCP requests; the server enforces its own authentication, authorization, validation, and access boundaries for the systems behind it.</strong></blockquote><h3>MCP does not mean “give AI unrestricted access”</h3><p>This is one of the most important lessons in the entire series.</p><p>An MCP server can make an AI assistant far more useful. It can also create serious risk if designed carelessly.</p><p>Imagine exposing this tool:</p><pre>run_any_network_command(command)</pre><p>This is a bad design.</p><p>It gives the AI application an extremely broad and difficult-to-control capability.</p><p>Now compare it with:</p><pre>get_interface_counters(device_id, interface_name)</pre><p>This is much safer. Its purpose is narrow, the inputs are predictable, and the server can validate them.</p><p>For operational changes, a safer design is often a two-stage process:</p><pre>create_rollback_plan(change_id)<br>execute_approved_rollback(plan_id, approval_id)</pre><p>The first tool prepares a plan.</p><p>The second tool performs an action only after explicit approval.</p><p>This separation matters because an AI assistant can be wrong, incomplete, manipulated by untrusted content, or operating with incomplete context. Production systems need guardrails.</p><p>A good MCP server should apply:</p><ul><li>Strong authentication</li><li>Authorization based on identity and role</li><li>Input validation</li><li>Least-privilege access</li><li>Explicit user approval for consequential actions</li><li>Audit logging</li><li>Clear separation between read-only and write operations</li></ul><p>MCP does not automatically provide all of these controls. MCP gives us the protocol; we must build the system responsibly around it.</p><p>The specification explicitly advises that users should understand and approve tool operations, because tools may represent arbitrary code execution or real-world actions. <a href="https://modelcontextprotocol.io/specification/2026-07-28">MCP security and trust guidance</a></p><h3>Why MCP matters beyond one AI assistant</h3><p>Without MCP, teams commonly build separate integrations for each AI product and each internal system.</p><p>One team creates a custom connector for an IDE assistant.</p><p>Another creates one for an internal chat application.</p><p>Another writes an agent that calls the same APIs directly.</p><p>Soon, the same access logic, authentication logic, and data transformations are recreated in several places.</p><p>MCP changes the model:</p><pre>flowchart TB<br>    H1[&quot;AI Host A&quot;] --&gt; S[&quot;AstraOps MCP Server&quot;]<br>    H2[&quot;AI Host B&quot;] --&gt; S<br>    H3[&quot;AI Host C&quot;] --&gt; S<br>    S --&gt; I[&quot;AstraCloud internal systems&quot;]</pre><p>The AstraOps team can build and maintain one reusable MCP interface instead of rebuilding every integration from scratch.</p><p>This does not mean all hosts behave identically. Different AI applications can support different features and make different security decisions.</p><p>But MCP provides the shared language that makes interoperability possible.</p><h3>The key idea to carry forward</h3><p>An MCP server is not “an AI plugin.”</p><p>It is not “a wrapper around an API.”</p><p>It is not “a way to let an LLM run commands.”</p><p>A production-quality MCP server is a carefully designed boundary between AI and real systems.</p><p>It should give the AI application enough context to be useful, while keeping access narrow enough to remain secure, observable, and under human control.</p><p>At AstraCloud, we do not want an assistant that merely gives a generic explanation of packet loss.</p><p>We want an assistant that can:</p><ul><li>Check the current state</li><li>Retrieve the correct runbook</li><li>Find relevant recent changes</li><li>Explain the evidence it used</li><li>Recommend a safe next step</li><li>Require approval before a meaningful action occurs</li></ul><p>That is the real value of MCP.</p><p>In the next article, we will make this practical: <strong>we will connect to and use an MCP server before building one.</strong> You will see how a local MCP server is configured, what the AI host actually does with it, and why choosing a server is a security decision — not just a configuration step.</p><p><em>The model provides reasoning. MCP provides the controlled path to reality.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a11870e44448" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RDMA — The Secret Network Behind AI Supercomputers [Article 5]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/rdma-the-secret-network-behind-ai-supercomputers-article-5-122bfe37380f?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/122bfe37380f</guid>
            <category><![CDATA[rdma]]></category>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[infiniband]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Wed, 12 Aug 2026 11:37:37 GMT</pubDate>
            <atom:updated>2026-08-12T11:37:37.190Z</atom:updated>
            <content:encoded><![CDATA[<pre>RDMA - The Secret Network Behind AI Supercomputers<br><br>✅ Article 1: Why Ethernet Starts to Struggle at Scale<br>✅ Article 2: How a NIC Can Talk to Memory<br>✅ Article 3: The Journey of a Tensor — Following Every Byte from GPU Memory to the Network<br>✅ Article 4: RDMA From Scratch — Speaking the Language of the NIC<br>🟡 Article 5: RoCEv2 and InfiniBand — The Networks Powering AI Supercomputers</pre><h3>RoCEv2 and InfiniBand — The Networks Powering AI Supercomputers</h3><p>NovaAI has reached the final stage of its networking journey.</p><p>At the beginning of this series, the company was just trying to make ordinary Ethernet behave a little better.</p><p>Then it learned that the real problem was not only bandwidth.</p><p>It learned that the CPU was doing too much.</p><p>It learned how memory works.</p><p>It learned how the NIC can talk to memory.</p><p>It followed one tensor through the machine.</p><p>It learned how RDMA itself works.</p><p>Now there is one last question:</p><blockquote><strong><em>What network actually carries this RDMA traffic in the real world?</em></strong></blockquote><p>That question matters because RDMA is only useful if the fabric underneath it can keep up.</p><p>And once NovaAI reaches AI-supercomputer scale, the network becomes just as important as the GPUs themselves.</p><p>This is the final chapter.</p><h3>NovaAI at full scale</h3><p>NovaAI no longer looks like a small AI lab.</p><p>It looks more like this:</p><pre>Thousands of GPUs<br>Hundreds of servers<br>Many switches<br>Millions of tensor transfers<br>Every second</pre><p>At this scale, the network is no longer a background utility.</p><p>It is part of the compute system.</p><p>If the network is slow, the GPUs wait.</p><p>If congestion builds, training slows.</p><p>If packets are dropped too often, the entire pipeline suffers.</p><p>So NovaAI needs a fabric that can carry RDMA traffic efficiently and predictably.</p><p>That is where <strong>RoCEv2</strong> and <strong>InfiniBand</strong> enter the story.</p><h3>Why RDMA still needs a network fabric</h3><p>RDMA is the memory and NIC model.</p><p>But the data still has to cross the wire.</p><p>So the fabric underneath has to support:</p><ul><li>low latency</li><li>high throughput</li><li>predictable behaviour</li><li>congestion handling</li><li>large-scale communication patterns</li></ul><p>That is the challenge.</p><p>Now let us start with the Ethernet-based path.</p><h3>RoCEv2: RDMA over Converged Ethernet</h3><p><strong>RoCEv2</strong> stands for <strong>RDMA over Converged Ethernet version 2</strong>.</p><p>In simple words, it means RDMA traffic runs on Ethernet networks.</p><p>That is extremely useful because Ethernet is everywhere.</p><p>Data centres already know how to build Ethernet fabrics.</p><p>Operators already know how to manage Ethernet.</p><p>So RoCEv2 gives NovaAI RDMA-style efficiency while still using Ethernet infrastructure.</p><p>A simple view:</p><pre>Application<br>    |<br>    v<br>RDMA verbs<br>    |<br>    v<br>NIC<br>    |<br>    v<br>RoCEv2 packets<br>    |<br>    v<br>Ethernet fabric<br>    |<br>    v<br>Remote NIC<br>    |<br>    v<br>Remote memory</pre><p>RoCEv2 is powerful because it combines the direct-memory model of RDMA with the flexibility of Ethernet.</p><p>But it is not magic.</p><p>Ethernet was not originally designed to behave like a highly predictable RDMA fabric under extreme load.</p><p>That is where the real engineering work begins.</p><h3>Why RoCEv2 exists at all</h3><p>Before RoCEv2, there was <strong>RoCEv1</strong>.</p><p>RoCEv1 was tied much more closely to Layer 2 Ethernet behaviour.</p><p>That made it harder to route across a larger network in the way modern data centres need.</p><p>RoCEv2 solves that problem by carrying RDMA traffic over <strong>UDP/IP</strong>, which makes it routable across Layer 3 networks.</p><p>That is a big practical improvement.</p><p>So the evolution is:</p><ul><li><strong>RoCEv1</strong>: RDMA over Layer 2 Ethernet</li><li><strong>RoCEv2</strong>: RDMA over UDP/IP Ethernet</li></ul><p>That change matters because large AI clusters are not built from one switch and a few servers.</p><p>They are built from many racks, many switches, and many paths.</p><p>RoCEv2 is the version that fits that reality.</p><h3>The big enemy: congestion</h3><p>Now we arrive at the problem that controls almost everything in the final article.</p><p>Congestion.</p><p>When NovaAI reaches thousands of GPUs, many machines can suddenly try to send data at the same time.</p><p>That creates bursts of traffic.</p><p>Those bursts can fill switch queues.</p><p>When switch queues fill, the network gets slower.</p><p>And for RDMA traffic, even small congestion problems can hurt performance quickly.</p><p>Why?</p><p>Because RDMA is extremely sensitive to delay and retransmission cost.</p><p>So NovaAI must manage congestion very carefully.</p><p>That is why the rest of this article exists.</p><h3>What congestion looks like in NovaAI</h3><p>Imagine many GPU servers trying to send tensors at once.</p><pre>GPU Server A<br>GPU Server B<br>GPU Server C<br>GPU Server D<br>         \<br>          \<br>           -&gt; Switch -&gt; Next hop -&gt; Destination<br>          /<br>         /<br>Many flows at once</pre><p>The switch can become busy very quickly.</p><p>If the switch queue gets too full:</p><ul><li>packets are delayed</li><li>latency increases</li><li>drops may happen if the fabric is not controlled</li><li>RDMA performance suffers</li></ul><p>So NovaAI must make the fabric behave more politely under pressure.</p><p>That is where <strong>PFC</strong>, <strong>ECN</strong>, and <strong>DCQCN</strong> come in.</p><h3>PFC: telling a traffic class to pause</h3><p><strong>PFC</strong> stands for <strong>Priority Flow Control</strong>.</p><p>The simple idea is this:</p><p>If one traffic class is getting too crowded, the switch can tell the sender to pause that class briefly.</p><p>Not all traffic.</p><p>Just the class that needs to slow down.</p><p>That matters because RoCEv2 traffic is often placed into a priority class that receives special treatment.</p><p>A simple picture:</p><pre>Too much traffic in one class<br>          |<br>          v<br>Switch sends pause signal for that class<br>          |<br>          v<br>Sender stops briefly<br>          |<br>          v<br>Queue pressure drops</pre><p>PFC helps prevent packet loss.</p><p>That is useful.</p><p>But PFC is not a complete answer on its own.</p><p>Because if you only pause traffic without detecting congestion early, you can still create bad behaviour in the fabric.</p><p>So NovaAI also needs an early warning mechanism.</p><p>That is where ECN comes in.</p><h3>ECN: early warning without a separate alert packet</h3><p><strong>ECN</strong> stands for <strong>Explicit Congestion Notification</strong>.</p><p>This is where many explanations become unclear, so let us be very precise.</p><p>ECN does <strong>not</strong> create a separate brand-new warning packet.</p><p>Instead, the switch <strong>marks the packet that is already passing through</strong>.</p><p>That mark says:</p><blockquote><em>“Congestion is building here.”</em></blockquote><p>The packet continues forward.</p><p>The sender learns about the mark later through the normal transport feedback path.</p><p>A simple flow:</p><pre>Sender<br>  |<br>  v<br>Switch sees congestion<br>  |<br>  v<br>Switch marks packet with ECN<br>  |<br>  v<br>Receiver gets the packet<br>  |<br>  v<br>Receiver notices ECN mark<br>  |<br>  v<br>Receiver sends congestion feedback<br>  |<br>  v<br>Sender slows down</pre><p>That is the important point.</p><p>The switch does not say:</p><blockquote><em>“Here is a separate alarm packet.”</em></blockquote><p>It says:</p><blockquote><em>“This packet passed through a congested point, so I marked it.”</em></blockquote><p>Then the sender reacts after the mark is reported back through the protocol’s feedback path.</p><p>This is why ECN and DCQCN are usually explained together.</p><p>ECN detects congestion.</p><p>DCQCN reacts to congestion.</p><h3>DCQCN: how the sender actually slows down</h3><p><strong>DCQCN</strong> stands for <strong>Data Center Quantized Congestion Notification</strong>.</p><p>You do not need to remember the full name first.</p><p>What matters is the job.</p><p>DCQCN helps the sender reduce its sending rate when congestion is detected.</p><p>That means the sender does not keep blasting the network at the same speed forever.</p><p>Instead, it adapts.</p><p>The idea is simple:</p><pre>Congestion starts<br>    |<br>    v<br>Switch marks packet with ECN<br>    |<br>    v<br>Receiver detects the mark<br>    |<br>    v<br>Receiver sends congestion notification back<br>    |<br>    v<br>Sender receives notification<br>    |<br>    v<br>Sender reduces rate</pre><p>This is the feedback loop that keeps RoCEv2 stable.</p><p>Without it, the sender would be blind.</p><p>With it, the sender can respond to the fabric’s condition.</p><p>That is how large clusters keep moving traffic without collapsing under their own load.</p><h3>The missing link: CNP</h3><p>Now let us answer the question that made the ECN section clearer.</p><p>How does the sender actually learn about congestion?</p><p>In RoCEv2-style congestion control, the receiver can generate a <strong>Congestion Notification Packet</strong>, or <strong>CNP</strong>, after it sees ECN-marked traffic.</p><p>That means:</p><ul><li>the switch marks the packet</li><li>the receiver observes the mark</li><li>the receiver sends a CNP back to the sender</li><li>the sender reduces its rate using DCQCN</li></ul><p>A simple picture:</p><pre>Sender -&gt; Switch -&gt; Receiver<br>             |<br>             | ECN mark<br>             v<br>          Packet continues<br><br>Receiver detects ECN<br>          |<br>          v<br>Receiver sends CNP<br>          |<br>          v<br>Sender slows down</pre><p>So the switch itself is not sending a separate notification packet.</p><p>The switch marks the packet.</p><p>The receiver turns that signal into a congestion notification.</p><p>That notification reaches the sender.</p><p>Then the sender reacts.</p><p>That is the full loop.</p><h3>Why RoCEv2 still needs fabric discipline</h3><p>RoCEv2 works best when the data centre is designed carefully.</p><p>That usually means:</p><ul><li>good queue management</li><li>useful QoS policies</li><li>controlled oversubscription</li><li>strong congestion handling</li><li>leaf-spine topology</li><li>careful PFC and ECN tuning</li></ul><p>RoCEv2 is not “just Ethernet with RDMA added.”</p><p>It is Ethernet that must behave like a high-performance fabric.</p><p>That difference matters.</p><h3>Leaf-spine: the shape of a serious AI fabric</h3><p>A <strong>leaf-spine</strong> network is common in modern data centres.</p><p>A simple picture:</p><pre>Servers<br>  |<br>  v<br>Leaf switches<br>  |<br>  v<br>Spine switches<br>  |<br>  v<br>Leaf switches<br>  |<br>  v<br>Servers</pre><p>This design helps keep paths more predictable.</p><p>That matters because NovaAI’s GPUs are constantly exchanging data.</p><p>The fabric must stay balanced.</p><p>If one part of the network becomes a hot spot, the whole system feels it.</p><p>Leaf-spine helps scale better than older hierarchical designs.</p><h3>Why Ethernet is attractive anyway</h3><p>Even with all the tuning, RoCEv2 remains attractive because Ethernet is familiar.</p><p>The practical benefits are real:</p><ul><li>existing operational knowledge</li><li>existing switch ecosystems</li><li>easier integration with general data centre networking</li><li>strong flexibility</li></ul><p>That is why RoCEv2 is often a very compelling option.</p><p>It gives NovaAI RDMA efficiency without requiring a completely different world.</p><p>But RoCEv2 is not the only option.</p><p>Some environments choose something else.</p><p>That something else is InfiniBand.</p><h3>InfiniBand: a fabric built for this kind of work</h3><p>InfiniBand is not Ethernet.</p><p>It is a purpose-built high-performance interconnect for low-latency, high-throughput communication.</p><p>It was designed with RDMA-style workloads in mind from the start.</p><p>That means it does not need to pretend to be ordinary Ethernet.</p><p>It is already built for very demanding communication patterns.</p><p>A simple way to think about it:</p><ul><li><strong>RoCEv2</strong> brings RDMA onto Ethernet</li><li><strong>InfiniBand</strong> gives you a dedicated high-performance fabric</li></ul><p>That distinction matters.</p><p>For some systems, Ethernet is the right choice.</p><p>For others, the workload is so demanding that a dedicated fabric is worth it.</p><h3>Why InfiniBand still matters</h3><p>At very large AI scale, the quality of the fabric becomes a major deciding factor.</p><p>InfiniBand is still attractive because it offers:</p><ul><li>very low latency</li><li>high throughput</li><li>fabric behaviour designed for RDMA</li><li>strong scaling properties for large clusters</li></ul><p>For NovaAI, that means InfiniBand can be the better fit when the training system is huge and performance targets are strict.</p><p>It is not about fashion.</p><p>It is about whether the network is one of the main bottlenecks.</p><h3>Credit-based flow control</h3><p>One important conceptual difference is that InfiniBand uses <strong>credit-based flow control</strong>.</p><p>You can think of this as the network explicitly tracking how much room is available before sending more data.</p><p>A simple intuition:</p><pre>Sender asks:<br>&quot;Do you have space for more?&quot;<br><br>Receiver / fabric says:<br>&quot;Yes, you have credits.&quot;<br>Sender sends data only when credits are available.</pre><p>That is a different style from Ethernet’s world, and it helps InfiniBand behave very predictably at high scale.</p><p>For AI clusters, that predictability is very valuable.</p><h3>Why RDMA feels natural on InfiniBand</h3><p>Because InfiniBand was designed for high-performance transport, RDMA sits very naturally on top of it.</p><p>The whole fabric is already oriented around:</p><ul><li>low-latency transfers</li><li>efficient message passing</li><li>strong flow control</li><li>large-scale cluster communication</li></ul><p>That is why many very large systems still rely on it.</p><p>For NovaAI, InfiniBand can feel like the cleanest answer when the cluster is large enough that every fraction of a millisecond matters.</p><h3>SHARP: letting the fabric help with collective work</h3><p>Now we move to one of the most impressive ideas in the series.</p><p><strong>SHARP</strong> moves some collective communication work into the fabric itself.</p><p>Why is that useful?</p><p>Because AI workloads often do huge amounts of collective communication.</p><p>For example, many GPUs may need to participate in a reduction step.</p><p>Normally, that can put more work on the servers themselves.</p><p>With SHARP, some of that work can be helped by the network fabric.</p><p>A simple picture:</p><pre>Without SHARP:<br>GPU -&gt; GPU -&gt; GPU -&gt; GPU<br>All coordination happens at the nodes</pre><pre>With SHARP:<br>GPU -&gt; Fabric -&gt; GPU<br>Some work happens inside the network</pre><p>That is powerful because it reduces the burden on the endpoints.</p><p>For NovaAI, that can make large-scale training more efficient.</p><h3>GPUDirect RDMA: reducing the path to GPU memory</h3><p>Another important piece is <strong>GPUDirect RDMA</strong>.</p><p>This allows the NIC to interact more directly with GPU memory in supported environments.</p><p>Why is that important?</p><p>Because AI data lives heavily in GPU memory.</p><p>If data has to bounce through extra host buffers first, performance suffers.</p><p>GPUDirect RDMA reduces that extra movement.</p><p>A simple path:</p><pre>GPU memory<br>    |<br>    v<br>NIC access path<br>    |<br>    v<br>Network</pre><p>That tighter path matters a lot when the workload is dominated by GPU-to-GPU communication.</p><p>NovaAI does not want the CPU to become a traffic roundabout.</p><p>It wants the shortest practical route.</p><h3>BlueField: moving infrastructure work closer to the edge</h3><p><strong>BlueField</strong> is NVIDIA’s DPU platform.</p><p>The basic idea is to move more infrastructure work closer to the network edge.</p><p>That can help with:</p><ul><li>networking offload</li><li>security work</li><li>storage work</li><li>infrastructure separation</li></ul><p>Why does this matter?</p><p>Because at large scale, the host CPU should not have to manage every piece of infrastructure work itself.</p><p>If the DPU can take on part of that responsibility, the server CPU can focus more on the application.</p><p>That is useful in NovaAI’s world because the application already has a lot to do.</p><h3>Ultra Ethernet: the future pressure on Ethernet</h3><p>The industry is also pushing Ethernet further for AI workloads.</p><p>That is where <strong>Ultra Ethernet</strong> comes into the picture.</p><p>The motivation is simple:</p><p>Everyone likes Ethernet’s ecosystem.</p><p>Everyone wants AI-scale performance.</p><p>So the question becomes:</p><blockquote><em>How can Ethernet evolve to support the communication patterns of modern AI clusters even better?</em></blockquote><p>Ultra Ethernet represents that direction of travel.</p><p>It is not there to replace the whole story.</p><p>It is there because the pressure from AI workloads keeps increasing.</p><h3>So which one is better?</h3><p>This is not the best question.</p><p>The better question is:</p><blockquote><strong><em>What does the workload need?</em></strong></blockquote><p>For some environments:</p><ul><li>RoCEv2 is an excellent fit</li><li>Ethernet infrastructure is already in place</li><li>the economics make sense</li></ul><p>For other environments:</p><ul><li>InfiniBand is the stronger fit</li><li>the workload is extremely demanding</li><li>the system benefits from a purpose-built fabric</li></ul><p>NovaAI may choose one or the other depending on:</p><ul><li>scale</li><li>latency targets</li><li>operational goals</li><li>cost</li><li>existing infrastructure</li></ul><p>That is the real answer.</p><p>There is no single winner for every case.</p><p>There is only the right fit for the job.</p><h3>The full NovaAI story</h3><p>Let us step back now.</p><p>NovaAI started with a simple problem:</p><p>the network was becoming too expensive at scale.</p><p>Then it learned:</p><ul><li>why Ethernet alone starts to struggle</li><li>how a NIC reaches memory</li><li>how one tensor moves through the machine</li><li>how RDMA works inside the NIC</li><li>how queues, work requests, memory regions, and completions fit together</li></ul><p>Now it sees the bigger picture:</p><ul><li><strong>RoCEv2</strong> brings RDMA onto Ethernet</li><li><strong>ECN</strong> marks congestion early</li><li><strong>CNP</strong> carries the congestion signal back</li><li><strong>DCQCN</strong> helps the sender slow down</li><li><strong>PFC</strong> can pause selected traffic classes</li><li><strong>InfiniBand</strong> gives a purpose-built high-performance fabric</li><li><strong>SHARP</strong> helps with in-network collective operations</li><li><strong>GPUDirect RDMA</strong> tightens the path between GPU memory and the network</li><li><strong>BlueField</strong> helps offload infrastructure work</li><li><strong>Ultra Ethernet</strong> points toward the next wave of Ethernet design for AI</li></ul><p>That is the real architecture behind AI supercomputers.</p><p>Not one technology.</p><p>A stack of technologies, each solving a specific problem.</p><h3>What NovaAI now understands</h3><p>NovaAI now knows that modern AI networking is not just about “faster links.”</p><p>It is about:</p><ul><li>moving data with less waste</li><li>reducing congestion</li><li>keeping latency predictable</li><li>making memory and NICs cooperate</li><li>choosing the right fabric for the workload</li></ul><p>That is the point of this series.</p><p>RDMA is not the whole answer by itself.</p><p>It is the foundation that makes the rest possible.</p><h3>Takeaway</h3><p>If you remember only the most important ideas from this final article, keep these:</p><ul><li><strong>RoCEv2</strong> carries RDMA over Ethernet using UDP/IP</li><li><strong>ECN</strong> marks packets when congestion builds</li><li><strong>CNP</strong> carries that congestion signal back to the sender</li><li><strong>DCQCN</strong> reduces sending rate after congestion is detected</li><li><strong>PFC</strong> can pause specific traffic classes to reduce loss</li><li><strong>InfiniBand</strong> is a purpose-built high-performance fabric for RDMA</li><li><strong>SHARP</strong> moves some collective work into the network fabric</li><li><strong>GPUDirect RDMA</strong> tightens the path to GPU memory</li><li><strong>BlueField</strong> offloads infrastructure work</li><li><strong>Ultra Ethernet</strong> points toward the next generation of Ethernet for AI</li></ul><p>NovaAI’s journey is now complete.</p><p>What began as a simple network performance problem became a story about memory, NICs, queues, fabrics, congestion, and scale.</p><p>And that is why the network behind AI supercomputers is one of the most important engineering stories of the modern datacentre.</p><p>The secret is no longer a secret.</p><p>It is architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=122bfe37380f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RDMA — The Secret Network Behind AI Supercomputers [Article 4]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/rdma-the-secret-network-behind-ai-supercomputers-article-4-46cdfbc603ab?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/46cdfbc603ab</guid>
            <category><![CDATA[hpc]]></category>
            <category><![CDATA[rdma]]></category>
            <category><![CDATA[rocev2]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[network-engineering]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 12:00:40 GMT</pubDate>
            <atom:updated>2026-08-07T12:00:40.772Z</atom:updated>
            <content:encoded><![CDATA[<pre>RDMA - The Secret Network Behind AI Supercomputers<br><br>✅ Article 1: Why Ethernet Starts to Struggle at Scale<br>✅ Article 2: How a NIC Can Talk to Memory<br>✅ Article 3: The Journey of a Tensor — Following Every Byte from GPU Memory to the Network<br>🟡 Article 4: RDMA From Scratch — Speaking the Language of the NIC<br>⬜ Article 5: RoCEv2 and InfiniBand — The Networks Powering AI Supercomputers</pre><h3>RDMA From Scratch — Speaking the Language of the NIC</h3><p>NovaAI has already solved one hard problem.</p><p>Its tensor can sit in memory that the NIC is allowed to access.</p><p>That is progress, but it is not enough.</p><p>Now the NIC has a new question:</p><blockquote><em>“You gave me memory.<br>What exactly do you want me to do with it?”</em></blockquote><p>This is where RDMA really begins.</p><p>And this is the part that often gets explained too quickly.</p><p>So let us slow down and make it very clear.</p><h3>Before we talk about RDMA, let us answer the basic question</h3><p>When people hear words like <strong>send queue</strong>, <strong>receive queue</strong>, <strong>outbound work</strong>, and <strong>inbound work</strong>, it can sound like the queue is holding the actual data.</p><p>That is <strong>not</strong> the main idea.</p><p>The queue usually holds <strong>instructions</strong>.</p><p>The data is already in memory.</p><p>The queue tells the NIC:</p><ul><li>which memory to use</li><li>what operation to perform</li><li>how much data to move</li><li>where the data should go</li><li>when the operation is complete</li></ul><p>That is the heart of RDMA queue-based design.</p><p>So if you remember only one thing from this article, remember this:</p><blockquote><strong><em>The queue is not the payload.<br>The queue is the instruction for what to do with the payload.</em></strong></blockquote><p>That one sentence unlocks the whole article.</p><h3>The NovaAI situation</h3><p>NovaAI has a 4 MB tensor ready in registered memory.</p><p>The tensor is not floating around in the network yet.</p><p>It is simply sitting in a buffer that the NIC is allowed to access.</p><p>Now the application must tell the NIC what to do:</p><ul><li>send it to another server</li><li>receive new data into a buffer</li><li>write into remote memory</li><li>read from remote memory</li><li>report back when the job is done</li></ul><p>The NIC cannot guess.</p><p>Hardware does not guess.</p><p>It waits for instructions.</p><p>That is why RDMA uses queues.</p><h3>Outbound and inbound work in plain language</h3><p>Let us define the two words clearly.</p><h3>Outbound work</h3><p>Outbound means <strong>data leaving this machine</strong>.</p><p>So if NovaAI wants to send the tensor to another server, that is outbound work.</p><p>The application is telling the NIC:</p><blockquote><em>“Take this local buffer and move it out.”</em></blockquote><h3>Inbound work</h3><p>Inbound means <strong>data coming into this machine</strong>.</p><p>So if another server sends data to NovaAI, that is inbound work.</p><p>The application is telling the NIC:</p><blockquote><em>“If something arrives, place it in this buffer.”</em></blockquote><p>So outbound is about data going out.</p><p>Inbound is about data coming in.</p><p>That is all it means at the beginning.</p><h3>The easiest way to think about it</h3><p>Here is the simplest possible mental model:</p><pre>Outbound:<br>Local memory -&gt; NIC -&gt; Network -&gt; Remote side</pre><pre>Inbound:<br>Network -&gt; NIC -&gt; Local memory</pre><p>But even that is still incomplete.</p><p>Why?</p><p>Because the queue is not the data path itself.</p><p>The queue is the instruction path.</p><p>Let us make that difference very clear.</p><h3>Queue entries are instructions</h3><p>This is one of the most important ideas in RDMA.</p><p>A queue entry usually says something like:</p><ul><li>send this buffer</li><li>receive into this buffer</li><li>write this buffer to remote memory</li><li>read from that remote memory</li><li>complete this request and notify me</li></ul><p>So the queue entry is not the buffer content itself.</p><p>It is the <strong>instruction</strong> that describes what the NIC should do with the buffer.</p><p>That is why RDMA is so efficient.</p><p>The NIC is not being asked to think about the whole application.</p><p>It is being given a precise task.</p><p>A simple example:</p><pre>Work Request:<br>- operation: send<br>- source buffer: tensor<br>- length: 4 MB<br>- target: remote server</pre><p>That request does not contain the tensor itself.</p><p>It points to the tensor.</p><p>That distinction matters.</p><h3>Why queues are such a good fit for hardware</h3><p>Queues work well because hardware likes ordered work.</p><p>The application can post instructions in a defined order.</p><p>The NIC can read them in a defined order.</p><p>That makes the system predictable.</p><pre>Application posts work<br>        |<br>        v<br>Queue stores work requests<br>        |<br>        v<br>NIC reads next request<br>        |<br>        v<br>NIC performs the operation<br>        |<br>        v<br>Completion is recorded</pre><p>This is cleaner than having the CPU micromanage every byte of every transfer.</p><p>It is also faster.</p><h3>Queue Pair: the main RDMA control structure</h3><p>Now we can define the main structure.</p><p>A <strong>Queue Pair</strong> is the basic RDMA control unit.</p><p>It has two parts:</p><ul><li>a <strong>Send Queue</strong></li><li>a <strong>Receive Queue</strong></li></ul><p>Together, those two queues form the Queue Pair.</p><p>A simple diagram:</p><pre>+-----------------------------+<br>|         Queue Pair          |<br>+-----------------------------+<br>|  Send Queue                 |<br>|  Receive Queue              |<br>+-----------------------------+</pre><p>Why two queues?</p><p>Because sending and receiving are different jobs.</p><p>The NIC needs one place for outbound instructions and another place for inbound readiness.</p><p>That separation keeps the design simple and fast.</p><h3>Send Queue: outbound instructions</h3><p>The <strong>Send Queue</strong> is where the application posts instructions for outbound work.</p><p>Outbound means the data is leaving this machine.</p><p>So when NovaAI wants to send the 4 MB tensor, it posts a send request into the Send Queue.</p><p>The queue entry tells the NIC:</p><ul><li>which local buffer to use</li><li>how much data to send</li><li>what operation to perform</li><li>whether to notify the application later</li></ul><p>A simple picture:</p><pre>Application<br>    |<br>    v<br>Send Queue entry<br>    |<br>    v<br>NIC reads instruction<br>    |<br>    v<br>NIC moves data out</pre><p>This is why the Send Queue is not the data itself.</p><p>It is the instruction to use the data that is already in memory.</p><h3>Receive Queue: inbound readiness</h3><p>The <strong>Receive Queue</strong> is where the application posts buffers that are ready to accept incoming data.</p><p>Inbound means data is coming into this machine.</p><p>So NovaAI might say:</p><blockquote><em>“If another server sends data to me, place it here.”</em></blockquote><p>That means the application is preparing a destination ahead of time.</p><p>The NIC should not have to wonder where incoming data belongs.</p><p>The Receive Queue tells it.</p><p>A simple picture:</p><pre>Application<br>    |<br>    v<br>Receive Queue entry<br>    |<br>    v<br>NIC knows where incoming data can go</pre><p>This is the inbound side of RDMA.</p><p>The receive side is just as important as the send side.</p><h3>What the queue really contains</h3><p>Now we can answer the user question directly.</p><h3>Does the queue contain data?</h3><p>Usually, no.</p><h3>Does the queue contain instructions?</h3><p>Yes.</p><p>That is the important part.</p><p>The queue entry says what to do with data that is already sitting in memory.</p><p>That is why the distinction between <strong>instructions</strong> and <strong>payload</strong> matters so much.</p><p>If a beginner misses that, the rest of RDMA feels confusing.</p><p>If they understand it, the rest becomes much easier.</p><h3>Work Request: the instruction itself</h3><p>A <strong>Work Request</strong> is the application’s instruction to the NIC.</p><p>Think of it as a task card.</p><p>It says what the NIC should do.</p><p>For example:</p><pre>Work Request:<br>- operation: send<br>- buffer: NovaAI tensor<br>- length: 4 MB<br>- destination: remote server</pre><p>That is a Work Request.</p><p>The NIC does not need a paragraph of explanation.</p><p>It needs a structured request.</p><p>That is why RDMA is built around work requests.</p><h3>WQE: Work Queue Element</h3><p>You will also hear the term <strong>WQE</strong>, which means <strong>Work Queue Element</strong>.</p><p>That is just the queue entry version of the Work Request.</p><p>So:</p><ul><li><strong>Work Request</strong> = the instruction the application wants</li><li><strong>WQE</strong> = the actual queue entry that holds that instruction</li></ul><p>You do not need to worry too much about the difference at first.</p><p>Just remember that the NIC reads queue entries that describe work.</p><h3>Doorbell: notifying the NIC</h3><p>Once the application has placed a new WQE into the queue, it needs to tell the NIC that new work is ready.</p><p>That notification is often called a <strong>doorbell</strong>.</p><p>The term sounds dramatic, but the idea is simple.</p><p>The application is saying:</p><blockquote><em>“NIC, I have posted new work. Please look at the queue.”</em></blockquote><p>A simplified view:</p><pre>Application writes WQE<br>          |<br>          v<br>Application rings doorbell<br>          |<br>          v<br>NIC checks the queue<br>          |<br>          v<br>NIC processes the request</pre><p>This is efficient because the application is not endlessly explaining the same thing.</p><p>It posts the request once and notifies the NIC once.</p><h3>Memory Region: the memory the NIC is allowed to use</h3><p>Earlier articles explained that memory has to be prepared before the NIC can use it.</p><p>That prepared area is usually called a <strong>Memory Region</strong>, or <strong>MR</strong>.</p><p>A Memory Region is simply a block of memory that has been registered for RDMA use.</p><p>So NovaAI’s tensor lives in a Memory Region.</p><p>That region tells the NIC:</p><ul><li>where the buffer starts</li><li>how large it is</li><li>whether it may be read or written</li><li>whether local or remote access is allowed</li></ul><p>A simple picture:</p><pre>+--------------------------------+<br>|        Memory Region (MR)      |<br>|                                |<br>|   NovaAI tensor buffer         |<br>|                                |<br>+--------------------------------+</pre><p>Without a Memory Region, the NIC would not know what memory is valid.</p><p>That is why this piece matters.</p><h3>LKey: local permission</h3><p>Now let us talk about permissions.</p><p>The <strong>LKey</strong> means <strong>Local Key</strong>.</p><p>It is a permission token used by the NIC to validate access to a local registered memory region.</p><p>In simple language, the LKey proves:</p><blockquote><em>“This work request is allowed to use this memory on this machine.”</em></blockquote><p>That matters because the NIC must not use memory that was never registered for the operation.</p><p>A simple idea:</p><pre>Registered local memory<br>        |<br>        v<br>LKey says:<br>&quot;This request may use it.&quot;</pre><p>That is how the NIC knows the request is valid on the local side.</p><h3>RKey: remote permission</h3><p>The <strong>RKey</strong> means <strong>Remote Key</strong>.</p><p>It is used when one machine needs to access memory on another machine.</p><p>That is much more sensitive.</p><p>The remote side shares the RKey to say:</p><blockquote><em>“This remote memory region may be accessed in the way I allowed.”</em></blockquote><p>So the RKey is like the remote permission token.</p><p>A simple idea:</p><pre>Remote memory region<br>        |<br>        v<br>RKey says:<br>&quot;This region may be accessed remotely.&quot;</pre><p>This is one of the reasons RDMA can be both fast and safe.</p><p>It does not expose everything.</p><p>It only permits access to the right region.</p><h3>Completion Queue: the result mailbox</h3><p>RDMA also needs a way to tell the application that the operation finished.</p><p>That is the job of the <strong>Completion Queue</strong>.</p><p>When the NIC finishes a request, it writes a completion entry there.</p><p>That completion is the hardware’s way of saying:</p><blockquote><em>“The operation is done.”</em></blockquote><p>A simple picture:</p><pre>Application posts work<br>        |<br>        v<br>NIC performs operation<br>        |<br>        v<br>Completion Queue gets updated<br>        |<br>        v<br>Application sees completion</pre><p>The application can then continue safely.</p><p>That is very important because the program often needs to know when the data was actually sent, received, read, or written.</p><h3>CQE: the completion entry</h3><p>A <strong>CQE</strong> means <strong>Completion Queue Element</strong>.</p><p>You can think of it as the receipt for finished work.</p><p>It tells the application:</p><ul><li>what finished</li><li>whether it succeeded</li><li>sometimes how much progress was made</li></ul><p>This matters because high-performance systems still need reliable answers.</p><p>The NIC should not just do the work.</p><p>It should also confirm that the work is complete.</p><h3>Send, Receive, Write, Read, Atomic</h3><p>Now we can look at the actual operations.</p><p>These are the verbs RDMA uses.</p><h3>Send</h3><p>Send means the application wants to transmit data to a peer.</p><p>The local side prepares the request and the NIC sends the data out.</p><h3>Receive</h3><p>Receive means the application has posted a buffer ready for incoming data.</p><p>When the data arrives, the NIC places it there.</p><h3>RDMA Write</h3><p>Write means one machine writes directly into a remote machine’s registered memory.</p><p>The remote side does not have to read first.</p><p>That makes it very efficient.</p><h3>RDMA Read</h3><p>Read means one machine directly reads data from a remote machine’s registered memory.</p><p>The requester pulls the data.</p><h3>Atomic</h3><p>Atomic operations are special operations that need strict coordination.</p><p>They are used when the system needs careful ordering and correctness.</p><p>That is useful for counters and synchronization logic.</p><p>These are the main RDMA verbs.</p><p>They are the vocabulary the NIC understands.</p><h3>NovaAI follows the tensor again</h3><p>Now let us revisit NovaAI’s 4 MB tensor.</p><p>The tensor already exists in a registered Memory Region.</p><p>The application wants to send it to another server.</p><p>What happens?</p><ol><li>The application creates a Send Work Request.</li><li>The request points to the tensor buffer.</li><li>The request is posted into the Send Queue.</li><li>The application rings the doorbell.</li><li>The NIC reads the instruction.</li><li>The NIC validates the request using the local permissions.</li><li>The NIC performs the send.</li><li>The NIC updates the Completion Queue.</li><li>The application sees the completion.</li></ol><p>That is the full send path.</p><p>In diagram form:</p><pre>Tensor in registered memory<br>          |<br>          v<br>Send Work Request<br>          |<br>          v<br>Send Queue<br>          |<br>          v<br>Doorbell<br>          |<br>          v<br>NIC executes operation<br>          |<br>          v<br>Completion Queue<br>          |<br>          v<br>Application sees done</pre><p>That is the answer to the big question:</p><blockquote><em>“How does the NIC know what to do with the data?”</em></blockquote><p>It knows because the application gave it a structured instruction.</p><h3>Why inbound work matters too</h3><p>So far, we have spoken mostly about outbound work.</p><p>But inbound work matters just as much.</p><p>Suppose NovaAI expects incoming data from another server.</p><p>It must prepare a Receive Queue entry first.</p><p>That means:</p><ul><li>the buffer must already exist</li><li>the memory must be registered</li><li>the NIC must know where incoming data should go</li></ul><p>Then when the network packet arrives, the NIC can place the data into the correct buffer.</p><p>The application did not wait for the data blindly.</p><p>It prepared for it.</p><p>That is an important part of RDMA design.</p><h3>Why RDMA is so different from ordinary sockets</h3><p>In ordinary socket networking, the kernel does a lot of the work in the hot path.</p><p>In RDMA, the application and NIC cooperate much more directly.</p><p>That changes the cost structure:</p><ul><li>fewer unnecessary copies</li><li>less kernel involvement in the critical path</li><li>lower latency</li><li>more predictable performance</li><li>better scaling for large distributed systems</li></ul><p>That is why RDMA exists.</p><p>Not because it is complicated for the sake of being complicated.</p><p>Because it removes avoidable work.</p><h3>A full mental model of the flow</h3><p>If you want one simple picture to remember, use this:</p><pre>Application<br>    |<br>    v<br>Queue Pair<br>    |<br>    v<br>Work Request / WQE<br>    |<br>    v<br>Doorbell<br>    |<br>    v<br>NIC<br>    |<br>    v<br>Memory Region<br>    |<br>    v<br>LKey / RKey validation<br>    |<br>    v<br>Send / Receive / Read / Write / Atomic<br>    |<br>    v<br>Completion Queue</pre><p>That is RDMA in one line.</p><h3>Why NovaAI cares</h3><p>NovaAI is not using RDMA because it is fashionable.</p><p>It is using RDMA because AI-scale communication is expensive.</p><p>When many servers and GPUs work together:</p><ul><li>every extra copy matters</li><li>every extra microsecond matters</li><li>every CPU cycle matters</li><li>every completion matters</li></ul><p>RDMA helps by making the data path leaner and more direct.</p><p>That is the real reason it exists.</p><h3>Takeaway</h3><p>The missing basics are now clear:</p><ul><li><strong>Outbound work</strong> means data leaving this machine</li><li><strong>Inbound work</strong> means data coming into this machine</li><li><strong>Queue entries are instructions</strong>, not the payload itself</li><li><strong>Send Queue</strong> holds outbound work requests</li><li><strong>Receive Queue</strong> holds readiness for inbound data</li><li><strong>Memory Region</strong> is the registered memory the NIC may use</li><li><strong>LKey</strong> validates local access</li><li><strong>RKey</strong> validates remote access</li><li><strong>Completion Queue</strong> tells the application when the job is done</li></ul><p>This is the language of the NIC.</p><p>In the next article, we move into the final networking layer and explain how this language runs over <strong>RoCEv2 and InfiniBand</strong> in real AI fabrics.</p><p>That is where the story becomes a full production network story.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46cdfbc603ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RDMA — The Secret Network Behind AI Supercomputers [Article 3]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/rdma-the-secret-network-behind-ai-supercomputers-article-3-fcae3197b47a?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcae3197b47a</guid>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[rocev2]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[rdma]]></category>
            <category><![CDATA[infiniband]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 10:56:34 GMT</pubDate>
            <atom:updated>2026-08-06T10:56:34.819Z</atom:updated>
            <content:encoded><![CDATA[<pre>RDMA - The Secret Network Behind AI Supercomputers<br><br>✅ Article 1: Why Ethernet Starts to Struggle at Scale<br>✅ Article 2: How a NIC Can Talk to Memory<br>🟡 Article 3: The Journey of a Tensor - Following Every Byte from GPU Memory to the Network<br>⬜ Article 4: RDMA From Scratch - Speaking the Language of the NIC<br>⬜ Article 5: RoCEv2 and InfiniBand - The Networks Powering AI Supercomputers</pre><h3>The Journey of a Tensor — Following One Piece of Data from Memory to the Network</h3><p>NovaAI now knows two things for certain.</p><p>First, the old networking stack is expensive when the workload is large and tightly synchronized.</p><p>Second, the NIC can reach memory directly, but only if the system prepares that memory correctly.</p><p>Now it is time to stop talking about the idea in general and follow <strong>one real piece of data</strong>.</p><p>Not in theory.</p><p>Not as a definition.</p><p>As a journey.</p><p>Let us take one <strong>4 MB tensor</strong> inside NovaAI’s training system and follow it from the moment it is created to the moment it leaves the server.</p><p>That is where the story becomes real.</p><h3>The tensor is born</h3><p>Inside NovaAI, one training worker finishes a step of computation.</p><p>It produces a tensor.</p><p>A tensor is just a structured block of numbers. Sometimes it is a vector. Sometimes a matrix. Sometimes it is a larger multi-dimensional block. For this article, you can think of it as a <strong>4 MB chunk of training data</strong> that must be sent to another machine.</p><p>The important part is not the math.</p><p>The important part is that this tensor is now data that must move.</p><pre>NovaAI worker finishes computation<br>                 |<br>                 v<br>        4 MB tensor is created<br>                 |<br>                 v<br>        It must be sent onward</pre><p>At this moment, the tensor exists only as data in the application’s memory space.</p><p>That sounds simple.</p><p>It is not.</p><p>Because memory in modern systems is not one flat pile of bytes.</p><h3>The tensor gets a virtual address</h3><p>When the application creates the tensor, it receives an address that the program can use.</p><p>That address is usually a <strong>virtual address</strong>.</p><p>The application sees a simple pointer.</p><p>The operating system and hardware see something more complicated underneath.</p><pre>Application sees:<br><br>+----------------------+<br>| Tensor buffer        |<br>| at virtual address   |<br>| 0x7f3a....           |<br>+----------------------+</pre><p>The application does not know, and does not need to know, exactly where that data sits in physical RAM.</p><p>That is the job of the system.</p><p>This is a big reason why modern operating systems are so powerful. They make memory feel easy to use, even though the real machine underneath is doing much more.</p><h3>The memory is not one single physical block</h3><p>The tensor may look like one neat buffer from the application’s point of view.</p><p>But physical RAM can be more scattered.</p><p>The actual pages may be separated from each other.</p><pre>Application view<br><br>+----------------------------------+<br>| One 4 MB tensor buffer           |<br>+----------------------------------+<br><br>Real memory underneath<br>+---------+   +---------+   +---------+<br>| Page 12 |   | Page 48 |   | Page 91 |<br>+---------+   +---------+   +---------+<br>Not necessarily next to each other</pre><p>This is why memory management exists.</p><p>The application gets a clean view.</p><p>The system keeps the real structure hidden.</p><p>That works beautifully for normal software.</p><p>But now NovaAI wants the NIC to touch this memory directly.</p><p>And that changes the rules.</p><h3>The NIC cannot just reach in and grab the tensor</h3><p>This is the key problem.</p><p>The NIC does not get to read random application memory whenever it wants.</p><p>That would be unsafe.</p><p>So the tensor must be prepared first.</p><p>The system must say:</p><ul><li>this buffer is valid</li><li>this buffer may be used by the NIC</li><li>this buffer must stay in place</li><li>this buffer has specific permissions</li></ul><p>That process is called <strong>memory registration</strong>.</p><h3>Memory registration makes the tensor usable for direct access</h3><p>When NovaAI registers the tensor’s memory, it is telling the system:</p><blockquote><em>“This block of memory will be used for direct data movement. Please prepare it.”</em></blockquote><p>That preparation is crucial.</p><p>Without it, the NIC would not know whether the memory is valid or stable.</p><p>With it, the system can safely allow the NIC to access that buffer.</p><pre>Tensor created<br>      |<br>      v<br>Buffer is registered<br>      |<br>      v<br>System marks it as safe for device access<br>      |<br>      v<br>NIC can use it</pre><p>This is the moment where the data becomes RDMA-ready, even though we have not yet talked about RDMA commands.</p><h3>The tensor is pinned so it cannot move</h3><p>Once the memory is registered, it is often <strong>pinned</strong>.</p><p>Pinned means the operating system will not casually move that memory around while the NIC may need it.</p><p>Why is that important?</p><p>Because a NIC using DMA needs the memory location to stay stable.</p><p>If the system moved the data while the transfer was happening, the NIC could lose track of it.</p><p>So the buffer is locked in place.</p><pre>Normal memory<br>Page A  -&gt; may move<br>Page B  -&gt; may move<br>Page C  -&gt; may move<br><br>Pinned memory<br>Page A  -&gt; stays here<br>Page B  -&gt; stays here<br>Page C  -&gt; stays here</pre><p>This gives the hardware a stable target.</p><p>That stability is one of the reasons high-performance networking works.</p><p>The NIC can now trust that the memory region will remain where the system said it would be.</p><h3>The CPU still matters, but not as a data mover</h3><p>A common misunderstanding is that direct access means the CPU is gone.</p><p>Not true.</p><p>The CPU is still important.</p><p>It allocates the memory.</p><p>It launches the application.</p><p>It prepares the buffer.</p><p>It registers the memory.</p><p>It coordinates the work.</p><p>But it no longer needs to copy every byte by hand.</p><p>That is the big shift.</p><pre><strong>Old way<br></strong><br>Application<br>   |<br>   v<br>CPU copies data<br>   |<br>   v<br>Kernel buffers<br>   |<br>   v<br>NIC<br><br><br><strong>Better way<br></strong><br>Application<br>   |<br>   v<br>Prepared memory<br>   |<br>   v<br>NIC DMA engine</pre><p>The CPU becomes the coordinator.</p><p>The NIC becomes the mover.</p><p>That is much more efficient.</p><h3>The tensor is now ready for the NIC</h3><p>At this point, the tensor has gone through three important stages:</p><ol><li>it was created by the application</li><li>it received a virtual address</li><li>it was registered and pinned for direct access</li></ol><p>Now the NIC can safely reach it through the system’s DMA path.</p><p>This is the exact kind of preparation modern high-speed networking needs.</p><p>Not because the data is special.</p><p>Because the path is special.</p><h3>The NIC uses DMA to reach the tensor</h3><p>Now the real movement starts.</p><p>The NIC does not ask the CPU to copy the tensor into a special place.</p><p>Instead, it uses <strong>DMA</strong>.</p><p>DMA means <strong>Direct Memory Access</strong>.</p><p>That simply means the device can transfer data directly to or from memory.</p><p>The CPU does not carry each byte.</p><p>The NIC does.</p><pre>CPU:<br>  sets up the transfer<br><br>NIC:<br>  moves the data<br>Memory:<br>  stays in a stable, registered region</pre><p>Here is the simplified path for NovaAI’s tensor:</p><pre>Application buffer<br>      |<br>      v<br>Registered and pinned memory<br>      |<br>      v<br>NIC DMA engine<br>      |<br>      v<br>PCIe transfer<br>      |<br>      v<br>NIC buffer / wire</pre><p>This is one of the most important ideas in the whole series.</p><p>The data is not “teleported.”</p><p>It is moved by hardware through a carefully controlled path.</p><p>That path is what makes the system fast.</p><h3>Wait, wasn’t DMA already used before RDMA?</h3><p>Before RDMA-style direct access, the NIC was <strong>not</strong> reaching into the application’s memory directly.</p><p>The usual path was simpler, but more expensive:</p><ol><li>The application created data in its own memory.</li><li>The CPU copied that data into a <strong>kernel buffer</strong>.</li><li>The NIC used <strong>DMA over PCIe</strong> to read that kernel buffer.</li><li>The NIC sent the data over the network.</li></ol><p>So the NIC was already using DMA before RDMA. The difference is that the data first had to be copied into memory managed by the kernel.</p><pre><strong>Before RDMA</strong><br><br>Application memory<br>      |<br>      | CPU copy<br>      v<br>Kernel buffer / socket buffer<br>      |<br>      | NIC DMA read over PCIe<br>      v<br>NIC<br>      |<br>      v<br>Network</pre><p>On the receive side, the flow was the reverse:</p><pre>Network<br>  |<br>  v<br>NIC<br>  |<br>  | DMA write into kernel buffer<br>  v<br>Kernel memory<br>  |<br>  | CPU copy<br>  v<br>Application memory</pre><p>This is why traditional networking used more CPU time. The CPU had to move data between application space and kernel space, and only then could the NIC use DMA to handle the actual network transfer.</p><p>So the main problem was not DMA itself.</p><p>The main problem was the <strong>extra copy and kernel work</strong> around DMA.</p><p>That is exactly what RDMA tries to remove.</p><h3>PCIe is the road the NIC uses</h3><p>We now need to make the next piece very clear.</p><p>The NIC does not sit next to RAM with a magical private wire.</p><p>It sits on <strong>PCIe</strong>, the internal bus that connects devices to the host system.</p><p>Think of PCIe as the road inside the machine.</p><p>The NIC uses that road to reach memory.</p><pre>                CPU<br>                 |<br>                 |<br>                RAM<br>                 ^<br>                 |<br>         PCIe DMA transactions<br>                 |<br>                 v<br>                NIC</pre><p>So when people say the NIC “talks to memory directly,” they do not mean “outside the system.”</p><p>They mean the NIC uses PCIe and DMA to reach memory without forcing the CPU to copy every byte.</p><p>That distinction matters.</p><h3>The tensor does not travel as one giant block forever</h3><p>A real transfer usually breaks data into pieces.</p><p>The NIC works with chunks of data, and those chunks become network packets.</p><p>That means the 4 MB tensor is not sent as one giant mystical blob.</p><p>It is processed, split, and moved in a controlled way.</p><pre>4 MB tensor<br>     |<br>     v<br>Split into transfer-sized pieces<br>     |<br>     v<br>NIC processes each piece<br>     |<br>     v<br>Packets are sent on the wire</pre><p>This is why the system needs preparation.</p><p>The NIC needs to know where the data lives, how much to move, and what it is allowed to access.</p><p>That is not random behaviour.</p><p>That is managed hardware movement.</p><h3>What the tensor looks like from the NIC’s point of view</h3><p>From the application’s point of view, the tensor is just data.</p><p>From the NIC’s point of view, it is a registered memory region with a stable location and defined boundaries.</p><pre>Application view<br>&quot;Here is my tensor.&quot;<br><br>NIC view<br>&quot;Here is a valid memory region I am allowed to access.&quot;</pre><p>That difference is subtle but important.</p><p>The application thinks in terms of values and buffers.</p><p>The NIC thinks in terms of addresses, access rules, and transfer operations.</p><p>That is why memory registration is so important.</p><p>It translates the friendly application world into the stricter hardware world.</p><h3>Why this feels so different from ordinary networking</h3><p>In ordinary socket networking, the application often hands data to the operating system, and the kernel manages a lot of the movement.</p><p>In this flow, NovaAI’s tensor is prepared much more directly for hardware transfer.</p><p>That means:</p><ul><li>fewer unnecessary copies</li><li>less CPU overhead</li><li>lower latency</li><li>more predictable performance</li></ul><p>That does not mean “no software.”</p><p>It means less software in the hot path.</p><p>That difference is massive in high-scale systems.</p><h3>A simple diagram of the tensor’s journey</h3><p>Here is the full journey so far:</p><pre>1. Tensor is created in application memory<br>        |<br>        v<br>2. Tensor gets a virtual address<br>        |<br>        v<br>3. Tensor buffer is registered<br>        |<br>        v<br>4. Buffer is pinned in place<br>        |<br>        v<br>5. NIC is allowed to access it<br>        |<br>        v<br>6. NIC uses DMA over PCIe<br>        |<br>        v<br>7. Tensor moves toward the wire</pre><p>That is the story of the data path.</p><p>And it is not just theory.</p><p>This is the exact kind of path modern AI and distributed systems are trying to make as efficient as possible.</p><h3>What NovaAI has achieved so far</h3><p>NovaAI has not yet learned RDMA’s full language.</p><p>That comes next.</p><p>But the company has already solved something essential:</p><p>It has prepared data in a way that allows the hardware to move it efficiently.</p><p>That means the following are now true:</p><ul><li>the tensor is known</li><li>the tensor is addressable</li><li>the tensor is protected</li><li>the tensor is stable</li><li>the NIC can reach it</li></ul><p>Now the next question becomes much more interesting:</p><p><strong>How does the NIC know what operation to perform on that tensor?</strong></p><p>Should it send it?</p><p>Should it write it somewhere else?</p><p>Should it read from another machine?</p><p>Should it wait for a response?</p><p>That is where RDMA proper begins.</p><h3>Takeaway</h3><p>The journey of one tensor tells the whole story:</p><ul><li>the application creates data</li><li>the data lives at a virtual address</li><li>the memory is registered and pinned</li><li>the NIC is allowed to access it</li><li>DMA over PCIe moves it</li><li>the data leaves the server</li></ul><p>That is the path that makes efficient high-performance networking possible.</p><p>The next article will finally teach the NIC’s language itself:</p><p><strong>queue pairs, work requests, completion queues, and the operations that actually move the data.</strong></p><p>That is where RDMA becomes real.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcae3197b47a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RDMA — The Secret Network Behind AI Supercomputers [Article 2]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/rdma-the-secret-network-behind-ai-supercomputers-article-2-13a73102fbbf?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/13a73102fbbf</guid>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[rdma]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[rocev2]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 10:03:03 GMT</pubDate>
            <atom:updated>2026-07-30T10:03:03.233Z</atom:updated>
            <content:encoded><![CDATA[<pre>RDMA - The Secret Network Behind AI Supercomputers<br><br>✅ Article 1: Why Ethernet Starts to Struggle at Scale<br>🟡 Article 2: How a NIC Can Talk to Memory<br>⬜ Article 3: The Journey of a Tensor — Following Every Byte from GPU Memory to the Network<br>⬜ Article 4: RDMA From Scratch — Speaking the Language of the NIC<br>⬜ Article 5: RoCEv2 and InfiniBand — The Networks Powering AI Supercomputers</pre><h3>How a NIC Can Talk to Memory</h3><p>In the first article, NovaAI discovered that traditional Ethernet was not really the problem.</p><p>The real problem was <strong>too much work around the data</strong>.</p><p>The CPU was spending time copying bytes, managing buffers, handling the kernel networking stack, and coordinating transfers that should have been much cheaper.</p><p>So NovaAI asked a bold question:</p><p><strong>Can the NIC move data more directly, without making the CPU do so much work?</strong></p><p>That question is the beginning of RDMA.</p><p>But before we can understand RDMA, we need to understand something more basic:</p><p><strong>How can a network card talk to memory at all?</strong></p><p>That sounds simple.</p><p>It is not.</p><p>Because memory is not just a pile of bytes sitting in a box.</p><p>Modern computers protect memory, translate addresses, and keep devices under control. If a NIC is going to access memory directly, the system must decide exactly <strong>which memory</strong>, <strong>how</strong>, and <strong>under what rules</strong>.</p><p>This article explains that step by step.</p><h3>The NovaAI problem, in plain words</h3><pre>                One Server<br>                     │<br>                     │<br>     +-------------------------------+<br>     |                               |<br>     |  Application                  |<br>     |        │                      |<br>     |        ▼                      |<br>     |      Memory                   |<br>     |        ▲                      |<br>     |        │                      |<br>     |      CPU                      |<br>     |        ▲                      |<br>     |        │                      |<br>     |      PCIe                     |<br>     |        ▲                      |<br>     |        │                      |<br>     |       NIC                     |<br>     +-------------------------------+<br>                     │<br>             Ethernet Network<br>                     │<br>     +-------------------------------+<br>     |       Another Server          |<br>     +-------------------------------+</pre><p>NovaAI has many servers. Some of them run training jobs. Some move data. Some talk to storage. Some exchange results with other machines.</p><p>At first, everything worked well enough over normal TCP/IP networking.</p><p>But as the cluster grew, the same pattern kept showing up:</p><ul><li>the CPUs were busy doing networking work</li><li>the GPUs were waiting for data</li><li>the network was moving packets, but not efficiently enough</li><li>every data transfer seemed to involve too many steps</li></ul><p>NovaAI did not want the CPU to act like a courier for every transfer.</p><p>It wanted the NIC to do more of the real work.</p><p>To understand how that is possible, we need to understand how memory access works inside a modern machine.</p><h3>Memory is not as simple as it looks</h3><pre>Application thinks<br><br>+--------------------------------+<br>| 0x1000                         |<br>| 0x1001                         |<br>| 0x1002                         |<br>| 0x1003                         |<br>+--------------------------------+<br><br><br>Reality inside RAM<br><br>+---------+    +---------+    +---------+<br>| Page 14 |    | Page 92 |    | Page 41 |<br>+---------+    +---------+    +---------+<br><br>(Not physically next to each other)</pre><p>When an application asks for memory, it usually does <strong>not</strong> get a raw physical address.</p><p>It gets a <strong>virtual address</strong>.</p><p>That is an important idea.</p><p>A virtual address is the address the application sees. It is the address used in code, pointers, and buffers. But it is not always the actual location in RAM.</p><p>The operating system and hardware work together to translate that virtual address into a real memory location.</p><p>That gives us:</p><ul><li>safety</li><li>isolation</li><li>flexibility</li><li>easier programming</li></ul><p>So a program might think it owns a neat block of memory, even though the real RAM may be arranged differently underneath.</p><p>Here is the basic idea:</p><pre>Application sees:<br>0x1000, 0x1001, 0x1002, ...</pre><pre>But the real RAM may be:<br>page A here<br>page B somewhere else<br>page C later</pre><p>The application does not usually care.</p><p>The CPU and operating system care very much.</p><h3>The CPU uses the MMU to translate addresses</h3><p>The <strong>MMU</strong> is the <strong>Memory Management Unit</strong>.</p><p>You do not need to remember the acronym at first. Just remember the job:</p><p><strong>The MMU helps the CPU turn virtual addresses into physical addresses.</strong></p><p>So when the CPU wants to read or write memory, it does not blindly guess where the data is. It asks the MMU to translate the address safely.</p><p>A simple picture:</p><pre><strong>Application</strong><br><br>Virtual Address<br>      │<br>      ▼<br>+--------------+<br>|     MMU      |<br>+--------------+<br>      │<br>      ▼<br>Physical Address<br>      │<br>      ▼<br>     RAM</pre><p>This is how the CPU knows where data really lives.</p><p>But here is the problem:</p><p><strong>A NIC is not the CPU.</strong></p><p>So the NIC cannot automatically use the same translation system in the same way the CPU does.</p><p>That leads us to the next question.</p><h3>Why a NIC cannot just touch any memory it wants</h3><pre><strong>Wrong</strong> ❌<br><br>             NIC<br>              │<br>              │<br>              ▼<br>         Entire RAM<br><br>+----------------------------+<br>| OS Memory                  |<br>| Chrome                     |<br>| Database                   |<br>| AI Model                   |<br>| Passwords                  |<br>| Everything                 |<br>+----------------------------+</pre><p><strong>Obviously this would be a disaster.</strong></p><p>Imagine if a NIC could write to any memory address it liked.</p><p>That would be dangerous.</p><p>It could overwrite:</p><ul><li>another application’s buffer</li><li>the operating system</li><li>security-sensitive memory</li><li>data belonging to another process</li></ul><p>That would be chaos.</p><p>So the system must control device access very carefully.</p><p>The NIC needs permission before it can touch application memory.</p><p>That permission is one of the most important ideas behind RDMA.</p><h3>The NIC connects through PCIe</h3><p>Before a NIC can do anything useful, it needs a physical path into the machine.</p><p>That path is usually <strong>PCIe</strong>.</p><p>PCIe is the high-speed internal bus that connects devices like:</p><ul><li>network cards</li><li>storage controllers</li><li>GPUs</li><li>accelerators</li></ul><p>A simple mental model:</p><pre>                CPU<br>                 │<br>                 │<br>        Memory Controller<br>                 │<br>     +-----------+------------+<br>     |                        |<br>     ▼                        ▼<br>   RAM                    PCIe Root<br>                              │<br>                              │<br>                 +------------+------------+<br>                 |                         |<br>                 ▼                         ▼<br>               NIC                       GPU</pre><p>The NIC sits on the PCIe bus and communicates with the host system through it.</p><p>But PCIe is just the road.</p><p>It does not itself explain how the NIC gets permission to use memory.</p><p>That is where <strong>DMA</strong> comes in.</p><h3>DMA: the NIC moves data for us</h3><p><strong>DMA</strong> means <strong>Direct Memory Access</strong>.</p><p>This is the idea that a device can move data directly to or from system memory without the CPU copying every byte by hand.</p><p>That is a huge deal.</p><p>Without DMA, the CPU has to do more of the movement itself.</p><p>With DMA, the CPU can prepare the transfer, then let the hardware carry it out.</p><p>A simple comparison:</p><pre><strong>Without DMA:</strong><br><br><br><br>Application<br>     │<br>     ▼<br>CPU copies data<br>     │<br>     ▼<br>    RAM<br>     │<br>     ▼<br>    NIC</pre><pre><strong>With DMA:</strong></pre><pre>CPU<br> │<br> │ Configure DMA<br> ▼</pre><pre> RAM<br> ▲<br> │<br> │ PCIe DMA Transfer<br> ▼</pre><pre>NIC</pre><p>This does not mean the CPU disappears.</p><p>It means the CPU stops doing the boring part of the work.</p><p>That matters a lot at scale.</p><p>NovaAI wants the CPU to spend time on real application logic, not on repeatedly copying data around.</p><h3>How the NIC actually touches memory</h3><p>Now comes the big question:</p><p><strong>How does the NIC know which memory it is allowed to use?</strong></p><p>The answer is: it does not get free access to everything.</p><p>The memory has to be prepared first.</p><p>This preparation is called <strong>memory registration</strong>.</p><pre>                 CPU<br>                  │<br>     Register Memory Region<br>                  │<br>                  ▼<br><br>      +-----------------------+<br>      |      System RAM       |<br>      |                       |<br>      | Registered Buffer     |<br>      +-----------+-----------+<br>                  ▲<br>                  │<br>        DMA Read / Write<br>         through PCIe<br>                  │<br>                  ▼<br>        +----------------+<br>        |      NIC       |<br>        |   DMA Engine   |<br>        +----------------+</pre><h3>Memory registration: telling the system what the NIC may use</h3><pre>    <strong>Application</strong><br><br>   Allocate Buffer<br>         │<br>         ▼<br>+--------------------+<br>| Application Buffer |<br>+--------------------+<br>          │<br>          ▼<br><br>   Register Buffer<br><br>          │<br>          ▼<br><br>NIC now knows<br><br>✔ Start Address<br><br>✔ Size<br><br>✔ Permissions</pre><p>Memory registration is like saying:</p><blockquote><em>“This buffer will be used for direct high-speed access. Please make it ready for the NIC.”</em></blockquote><p>That is all.</p><p>But that one step is extremely important.</p><p>Why?</p><p>Because the NIC needs:</p><ul><li>a valid memory region</li><li>stable addresses</li><li>permission to access it</li><li>protection so it cannot touch other memory by mistake</li></ul><p>So when memory is registered, the system marks it as safe and usable for direct device access.</p><p>At a simple level:</p><pre>Application allocates buffer<br>            |<br>            v<br>Buffer is registered<br>            |<br>            v<br>System prepares it for device access<br>            |<br>            v<br>NIC can use it safely</pre><p>This is one of the biggest differences between normal socket networking and RDMA-style networking.</p><p>In ordinary networking, the kernel often manages the data path for you.</p><p>In RDMA, the memory is prepared more explicitly so the NIC can work with it directly.</p><h3>Why memory is often pinned</h3><p>When memory is registered, it is often <strong>pinned</strong>.</p><p>Pinned memory means the operating system will not casually move it around while the NIC is using it.</p><pre><strong>Normal Memory</strong><br><br>Page A<br>↓<br>OS moves it<br>↓<br>Page B<br><br><br><br><strong>Pinned Memory</strong><br><br>Page A<br>↓<br>Cannot Move<br>↓<br>DMA always knows<br>where it is</pre><p>Why does that matter?</p><p>Because the NIC needs the memory location to stay stable.</p><p>If the memory moved in the middle of a transfer, the NIC could lose track of it.</p><p>So the system says:</p><ul><li>this memory region is special</li><li>keep it in place</li><li>let the device use it safely</li></ul><p>This improves performance and reliability, but it also means the system has less freedom to reshuffle memory behind the scenes.</p><p>That is a normal tradeoff in systems engineering:</p><p><strong>more control for the hardware, less flexibility for the OS.</strong></p><h3>The IOMMU: protection for devices</h3><p>The CPU has the MMU.</p><p>Devices often need the <strong>IOMMU</strong>.</p><p>The IOMMU is similar in spirit to the MMU, but for hardware devices.</p><p>Its job is to help control what a device can access.</p><p>That way, the NIC cannot just read or write random memory. It can only access memory the system has allowed.</p><p>This is important because direct hardware access is powerful.</p><p>And power must be controlled.</p><p>A simple picture:</p><pre>          NIC<br>           │<br>           ▼<br><br>     +-----------+<br>     |  IOMMU    |<br>     +-----------+<br>           │<br><br>        Allowed?<br><br>    ──────────────<br><br>          YES<br>           ↓<br>     Registered Buffer<br><br><br><br>          NO<br>          ↓<br>     Access Blocked</pre><p>This helps keep the machine safe while still allowing fast transfers.</p><p>NovaAI needs this because it wants performance <strong>and</strong> security <strong>and</strong> stability.</p><p>It does not want one fast transfer to break the whole system.</p><h3>Bus mastering: the NIC becomes active</h3><p>Once the NIC is allowed to perform DMA, it can act like a <strong>bus master</strong>.</p><p>That means it can initiate transfers on the bus instead of waiting for everything to be copied by the CPU.</p><p>Think of it like this:</p><ul><li>the CPU says: “this buffer is ready”</li><li>the NIC says: “good, I will move the data now”</li><li>the data movement happens directly</li></ul><p>A simplified path:</p><pre>CPU prepares memory<br>      |<br>      v<br>Memory is registered and pinned<br>      |<br>      v<br>NIC performs DMA over PCIe<br>      |<br>      v<br>Data moves directly</pre><p>This is the first step toward RDMA.</p><p>But we still need to understand one more thing.</p><p>Memory is often not one perfect continuous block in the way people imagine it.</p><h3>Real memory is often fragmented</h3><p>In a real machine, memory can be scattered around.</p><p>The system may give an application a buffer that looks continuous from the outside, but internally it may be built from several pages.</p><p>That is normal.</p><p>To handle this, devices often use <strong>scatter-gather</strong> techniques.</p><p>The idea is simple:</p><ul><li>the buffer may be made of several pieces</li><li>the device knows how to follow those pieces</li><li>the transfer still works efficiently</li></ul><p>This is useful because production systems are not always tidy.</p><p>Memory is often fragmented.</p><p>Applications grow and shrink.</p><p>Workloads change.</p><p>The system has to handle all of that without falling apart.</p><h3>Put the whole picture together</h3><p>Here is the simplest way to remember the entire memory access model:</p><ol><li>The application asks for memory.</li><li>The application sees a virtual address.</li><li>The CPU uses the MMU to translate virtual memory to physical memory.</li><li>The memory region is registered so the NIC is allowed to use it.</li><li>The memory is pinned so it stays stable.</li><li>The IOMMU helps protect device access.</li><li>The NIC uses DMA over PCIe to move data directly.</li></ol><p>That is the foundation.</p><p>And now RDMA starts to make sense.</p><p>Because RDMA depends on this foundation.</p><h3>Why all of this matters to NovaAI</h3><p>NovaAI is not just moving small messages.</p><p>It is moving large amounts of data between machines all the time.</p><p>If the CPU has to copy every transfer, performance drops.</p><p>If the NIC can move data directly, the system becomes much more efficient.</p><p>That means:</p><ul><li>lower CPU usage</li><li>lower latency</li><li>better throughput consistency</li><li>less wasted work</li><li>more room for real application processing</li></ul><p>This is why memory registration, DMA, PCIe, and device protection matter so much.</p><p>They are not side details.</p><p>They are the reason high-performance networking works at all.</p><h3>A very simple diagram of the idea</h3><p>Here is the easiest picture to keep in your head:</p><pre>Application<br><br>      │<br><br>Allocate Memory<br><br>      │<br><br>Virtual Address<br><br>      │<br><br>MMU<br><br>      │<br><br>Physical Memory<br><br>      │<br><br>Register Buffer<br><br>      │<br><br>Pin Memory<br><br>      │<br><br>IOMMU Protection<br><br>      │<br><br>NIC DMA Engine<br><br>      │<br><br>PCIe DMA Transfer<br><br>      │<br><br>   Ethernet</pre><p>That is the bridge between ordinary computing and RDMA-style networking.</p><h3>What we still have not explained</h3><p>At this point, we know how a NIC can safely talk to memory.</p><p>But we still do not know how the application tells the NIC <strong>what to do next</strong>.</p><p>How does it say:</p><ul><li>send this data</li><li>receive that data</li><li>write into that memory</li><li>read from that memory</li><li>notify me when you are done</li></ul><p>That is where the real RDMA machinery begins.</p><p>We are now ready for the next layer:</p><ul><li>queue pairs</li><li>work requests</li><li>completion queues</li><li>memory keys</li><li>send and receive operations</li><li>RDMA read and write</li></ul><p>Those topics are the heart of RDMA.</p><p>And they deserve their own article.</p><h3>Takeaway</h3><p>The secret behind RDMA is not magic.</p><p>It is careful engineering.</p><p>The application uses virtual memory.</p><p>The CPU translates addresses with the MMU.</p><p>The system registers and pins the memory region.</p><p>The IOMMU protects device access.</p><p>The NIC uses DMA over PCIe to move data directly.</p><p>Once you understand that chain, RDMA stops feeling mysterious.</p><p>It becomes a logical next step.</p><p>And that is exactly where Article 3 will begin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13a73102fbbf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[RDMA — The Secret Network Behind AI Supercomputers [Article 1]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/rdma-the-secret-network-behind-ai-supercomputers-article-1-0836870fd3ff?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/0836870fd3ff</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[network-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Tue, 28 Jul 2026 11:57:54 GMT</pubDate>
            <atom:updated>2026-07-28T11:57:54.509Z</atom:updated>
            <content:encoded><![CDATA[<pre>RDMA - The Secret Network Behind AI Supercomputers<br><br>🟡 Article 1: Why Ethernet Starts to Struggle at Scale<br>⬜ Article 2: How a NIC Can Talk to Memory<br>⬜ Article 3: The Journey of a Tensor - Following Every Byte from GPU Memory to the Network<br>⬜ Article 4: RDMA From Scratch - Speaking the Language of the NIC<br>⬜ Article 5: RoCEv2 and InfiniBand - The Networks Powering AI Supercomputers</pre><h3>Why Ethernet Starts to Struggle at Scale</h3><p>At first, the network looks innocent.</p><p>A few servers. A few switches. Standard Ethernet. TCP/IP. Everything works. Dashboards are green. The team feels good.</p><p>Then the company grows.</p><p>More GPUs. More services. More data. More synchronization. More distributed jobs that all need data <strong>now</strong>, not “soon.”</p><p>And suddenly the network is no longer just a cable between machines.</p><p>It becomes a tax.</p><p>Not a bandwidth tax only.</p><p>A CPU tax.<br>A memory tax.<br>A latency tax.<br>A synchronization tax.</p><p>That is the moment NovaAI discovered something uncomfortable:</p><p><strong>the network was not failing because it was slow; it was failing because it was doing too much work.</strong></p><h3>Meet NovaAI</h3><p>NovaAI is a fast-growing AI company.</p><p>In the beginning, its infrastructure looked completely normal:</p><ul><li>a few application servers</li><li>a small storage cluster</li><li>25 GbE links</li><li>Linux everywhere</li><li>standard TCP sockets</li><li>ordinary east-west traffic</li></ul><p>For a while, this was enough.</p><p>Then the company added GPU servers.</p><p>Then more GPUs.</p><p>Then distributed training jobs that needed constant communication across machines.</p><p>Then the trouble started.</p><p>The GPUs were powerful. The storage was fine. The applications were healthy.</p><p>But performance still felt wrong.</p><p>Jobs were slower than expected.</p><p>Latency spikes appeared.</p><p>CPU usage climbed.</p><p>Network throughput looked “okay,” yet the cluster did not behave like a high-performance system.</p><p>That is one of the most frustrating problems in infrastructure engineering:</p><p><strong>the numbers look acceptable, but the system still feels broken.</strong></p><h3>The hidden enemy is not the wire</h3><p>When people hear “network problem,” they often think about bandwidth.</p><p>10 GbE.<br>25 GbE.<br>100 GbE.<br>400 GbE.</p><p>But a faster link does not automatically make the whole system faster.</p><p>Why?</p><p>Because the real cost is often not only on the wire. It is in everything that happens before and after the wire.</p><p>Traditional networking forces data through a long path:</p><pre>Application<br>   |<br>   v<br>Socket API<br>   |<br>   v<br>Kernel networking stack<br>   |<br>   v<br>Kernel buffers<br>   |<br>   v<br>NIC driver<br>   |<br>   v<br>NIC hardware<br>   |<br>   v<br>Network</pre><p>And on the receive side, the data must travel back through the reverse path.</p><p>That means the CPU is not just running the application. It is also helping move data, manage buffers, process protocol state, and coordinate delivery.</p><p>That is fine when traffic is modest.</p><p>It becomes painful when every second counts.</p><h3>Why this hurts so much in AI systems</h3><p>AI clusters are not ordinary client-server systems.</p><p>They behave more like giant synchronized machines.</p><p>One GPU finishes a piece of work and waits for another GPU.</p><p>One node sends gradients.</p><p>Another node receives them.</p><p>A storage service hands off blocks of data.</p><p>A model worker waits for the next batch.</p><p>A scheduler expects the network to keep up with the pace of compute.</p><p>So the network is no longer just transporting packets.</p><p>It is sitting in the middle of the critical path.</p><p>That changes everything.</p><p>A few extra microseconds here and there may not matter in a web request.</p><p>But across thousands of nodes, those delays pile up into real wasted time.</p><p>In large-scale systems, small inefficiencies become very expensive very quickly.</p><h3>The real bottleneck: copies</h3><p>Let’s make this concrete.</p><p>Suppose NovaAI wants to move a large chunk of data from one machine to another.</p><p>In a traditional design, the data is not simply sent from application memory to the wire in one clean motion. Often, it is copied into kernel-managed buffers, then processed by the network stack, then handed to the NIC, then transmitted, then reconstructed on the other side, then copied again for the receiving application.</p><p>That means the same data may be touched several times.</p><p>And every touch costs something.</p><p>Each copy consumes:</p><ul><li>CPU cycles</li><li>memory bandwidth</li><li>cache space</li><li>latency budget</li><li>energy</li></ul><p>That is why “copying data” sounds harmless but often becomes the silent killer of performance.</p><p>A copy is not just a copy.</p><p>At scale, it is repeated work.</p><p>And repeated work is exactly what high-performance infrastructure tries to avoid.</p><h3>A fast network can still feel slow</h3><p>This is one of the most important lessons in modern systems design.</p><p>A network can have high throughput and still deliver poor application performance.</p><p>That happens when the system spends too much time doing overhead around the data rather than moving the data itself.</p><p>Imagine a highway with very wide lanes but a toll booth every few hundred meters.</p><p>The road is technically fast.</p><p>The journey is still slow.</p><p>That is what happens when the CPU, kernel, and networking stack are involved in every transfer.</p><p>NovaAI upgraded links. It improved switch capacity. It tuned software.</p><p>The network got faster.</p><p>The jobs did not improve as much as expected.</p><p>Why?</p><p>Because the cluster was not limited by line rate alone.</p><p>It was limited by the full cost of moving data through the stack.</p><h3>TCP/IP was the right answer</h3><p>It is easy to speak about TCP/IP as if it were the villain. It is not.</p><p>TCP/IP solved an enormous problem.</p><p>It gave the world:</p><ul><li>interoperability</li><li>routing across networks</li><li>reliable delivery</li><li>congestion handling</li><li>compatibility across operating systems and vendors</li><li>a universal model for communication</li></ul><p>It became the default because it worked.</p><p>And for a long time, it worked beautifully.</p><p>But TCP/IP was built for general networking.</p><p>Not for the idea that a remote memory region might need to behave almost like local memory.</p><p>Not for clusters where communication latency becomes part of the compute budget.</p><p>Not for data pipelines where the CPU becomes the bottleneck simply because it keeps touching data it should not need to touch.</p><p>That is where modern AI and HPC workloads start pushing the design past its original comfort zone.</p><h3>The CPU should not be the courier</h3><p>In a traditional design, the CPU is doing too many jobs at once:</p><ul><li>running application logic</li><li>managing system calls</li><li>copying data</li><li>handling interrupts or polling</li><li>processing protocol state</li><li>coordinating send and receive buffers</li><li>waking and scheduling threads</li></ul><p>That is a lot.</p><p>And for many workloads, it is unnecessary.</p><p>The CPU is extremely valuable. It should be spending its cycles on actual application work, not acting like a manual parcel service for every packet.</p><p>This is the central insight behind RDMA.</p><p>Before we get there, though, we need to understand the first major enabler.</p><h3>DMA: the moment hardware starts helping</h3><p>DMA stands for <strong>Direct Memory Access</strong>.</p><p>This is a deceptively simple idea with huge consequences.</p><p>Instead of the CPU copying data byte by byte, a device such as a NIC or storage controller can move data directly to or from memory.</p><p>The CPU still participates, but mostly to set things up.</p><p>Then the hardware carries out the transfer.</p><p>That means the data path becomes far cleaner:</p><pre><strong>Traditional path</strong><br><br>Application Memory<br>   |<br>   v<br>CPU copy<br>   |<br>   v<br>Kernel Buffer<br>   |<br>   v<br>NIC<br>   |<br>   v<br>Network</pre><p>With DMA, the picture changes:</p><pre><strong>DMA-enabled path</strong><br><br>Application Memory<br>   |<br>   v<br>NIC DMA Engine<br>   |<br>   v<br>Network</pre><p>This is already a big improvement.</p><p>Why?</p><p>Because the CPU is no longer required to manually shuttle every byte.</p><p>The NIC can do the movement itself.</p><p>That reduces overhead, lowers latency, and frees the CPU to do more useful work.</p><p>But DMA alone does not yet solve the whole problem.</p><p>If a device can access memory directly, the system must still answer a crucial question:</p><p><strong>Which memory can it access, and under what rules?</strong></p><p>That is where RDMA starts to appear.</p><h3>What happens when the data path becomes the bottleneck</h3><p>At small scale, a few milliseconds of overhead are easy to ignore.</p><p>At large scale, they are impossible to hide.</p><p>NovaAI saw three symptoms that kept showing up together:</p><ol><li><strong>GPUs were waiting</strong></li><li><strong>CPUs were busy with networking work</strong></li><li><strong>Network upgrades were not giving proportional gains</strong></li></ol><p>That combination is a classic warning sign.</p><p>It tells you the problem is not just bandwidth.</p><p>It is the structure of the data path itself.</p><p>The system needs a way to move data with less software intervention, less copying, and less CPU involvement.</p><p>That is the reason RDMA exists.</p><p>Not because it is fashionable.</p><p>Not because it sounds advanced.</p><p>Because traditional networking becomes too expensive when the job is to move massive amounts of data with extremely low latency.</p><h3>What RDMA is really trying to do</h3><p>RDMA stands for <strong>Remote Direct Memory Access</strong>.</p><p>The name is precise.</p><p>It means one machine can access memory on another machine in a much more direct way than traditional networking allows.</p><p>That sounds almost magical at first, but the idea is actually grounded in very practical engineering goals:</p><ul><li>reduce copies</li><li>reduce CPU overhead</li><li>reduce latency</li><li>reduce software layers</li><li>let hardware do more of the transfer work</li></ul><p>Think of it as moving from “send a packet and let the operating system carry it through every step” to “prepare the transfer, let the NIC do the heavy lifting, and get out of the way.”</p><p>That is a huge shift in philosophy.</p><p>And once you understand why the shift exists, the rest of the RDMA story becomes much easier to follow.</p><h3>Why this matters to anyone building serious infrastructure</h3><p>This is not only about AI.</p><p>The same pressure shows up in:</p><ul><li>high-frequency trading</li><li>distributed databases</li><li>storage fabrics</li><li>microservice backends at extreme scale</li><li>telemetry pipelines</li><li>HPC systems</li><li>real-time analytics</li></ul><p>Whenever latency matters and data movement is constant, the traditional stack starts to show its age.</p><p>That is why RDMA matters.</p><p>It is not a niche trick.</p><p>It is a response to a very real scaling limit.</p><h3>A simple way to remember the problem</h3><p>If you remember only one thing from this article, remember this:</p><p><strong>Traditional Ethernet is excellent at delivering packets.<br>RDMA is about delivering data with far less overhead.</strong></p><p>That difference sounds small.</p><p>It is not.</p><p>It changes how the entire system behaves.</p><p>It changes where work happens.</p><p>It changes what the CPU is responsible for.</p><p>It changes how memory is used.</p><p>And it changes why modern AI fabrics are built the way they are.</p><h3>Where we go next</h3><p>By now, NovaAI understands the problem.</p><p>The company does not merely need more bandwidth.</p><p>It needs a more efficient way to move data.</p><p>That leads to the next question:</p><p><strong>How can a NIC talk to memory directly without turning the CPU into the bottleneck?</strong></p><p>To answer that, we need to open up RDMA itself, step by step, from the very beginning.</p><p>That is the next article in the series.</p><h3>Takeaway</h3><p>Ethernet did not fail.</p><p>TCP/IP did not fail.</p><p>The old stack simply was not designed for a world where data movement itself becomes one of the most expensive parts of computation.</p><p>Modern AI infrastructure needs something sharper.</p><p>Something leaner.</p><p>Something closer to memory than to ordinary networking.</p><p>That is the world RDMA was built for.</p><p>And that is where the story gets interesting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0836870fd3ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes: The Journey from One Server to Millions [Article 2.4]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/kubernetes-the-journey-from-one-server-to-millions-article-2-4-ba8a5e16e412?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba8a5e16e412</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[cloud-native]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Thu, 23 Jul 2026 09:43:33 GMT</pubDate>
            <atom:updated>2026-07-23T09:43:33.661Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Final Day - When Kubernetes Becomes a Living System</h3><p>The best way to understand Kubernetes is not to stare at the YAML first.</p><p>It is to watch a request walk through the system like a real production incident.</p><p>So let us return to Netflix one last time.</p><p>A new season is about to drop. Marketing has done its job. Social media is on fire. Millions of people are hitting refresh at the same time. The engineers are watching the cluster like it is the last scene of a thriller. And now, for the final time in this series, we are going to follow the request from the moment a human says, “run this,” all the way to the moment a workload is alive, reachable, healthy, and protected by the cluster. Kubernetes is an open source container orchestration engine for automating deployment, scaling, and management of containerized applications, and the architecture we have been building toward is the machinery that makes that sentence real.</p><h3>The request begins with a wish</h3><p>The Netflix Recommendation team wants five running copies of a new version of their service. They do not want to choose machines by hand. They do not want to SSH into servers. They do not want to copy files around like it is 2009. They simply describe the outcome they want and send it to Kubernetes through kubectl, which talks to the cluster through the Kubernetes API. The API Server validates and configures Kubernetes objects and provides the frontend to the cluster’s shared state through which the other components interact.</p><p>Here is the final mental model for the request flow. It is simplified, but it is the right way to think about it.</p><pre>Engineer<br>                    │<br>             kubectl apply<br>                    │<br>                    ▼<br>            +----------------+<br>            |   API Server   |<br>            +----------------+<br>                    │<br>          Stores Desired State<br>                    │<br>                    ▼<br>                 +------+<br>                 | etcd |<br>                 +------+<br>                    ▲<br>                    │<br>        (Cluster state is stored here)<br>────────────────────────────────────────────────────────<br>Controller Manager watches the API Server<br>                    │<br>                    ▼<br>     &quot;Deployment says 5 replicas should exist,<br>      but there are no Pods.&quot;<br>                    │<br>      Creates 5 Pending Pods<br>                    │<br>                    ▼<br>            +----------------+<br>            |   API Server   |<br>            +----------------+<br>                    │<br>                    ▼<br>                 +------+<br>                 | etcd |<br>                 +------+<br>────────────────────────────────────────────────────────<br>Scheduler watches the API Server<br>                    │<br>                    ▼<br>       Finds Pending Pods<br>                    │<br> Chooses the best Worker Node<br>                    │<br> Updates Pod assignment<br>                    │<br>                    ▼<br>            +----------------+<br>            |   API Server   |<br>            +----------------+<br>                    │<br>                    ▼<br>                 +------+<br>                 | etcd |<br>                 +------+<br>────────────────────────────────────────────────────────<br>kubelet on Worker Node watches the API Server<br>                    │<br> Notices Pod assigned to itself<br>                    │<br> Asks Container Runtime<br>                    │<br> Starts Containers<br>                    │<br> Updates Pod Status<br>                    │<br>                    ▼<br>            +----------------+<br>            |   API Server   |<br>            +----------------+<br>                    │<br>                    ▼<br>                 +------+<br>                 | etcd |<br>                 +------+</pre><p>That picture is the rhythm of Kubernetes. A human declares intent, the control plane stores it, controllers reconcile it, the scheduler places it, and kubelet turns it into something running on a node. Pods start in Pending, move to Running if at least one primary container starts successfully, and then continue through their lifecycle until they are terminated or deleted.</p><h3>The Control Plane is the brain, but it is not the hands</h3><p>The control plane is where the decisions happen. The worker nodes are where the work happens. Kubernetes is built around that separation, and that design is one of the reasons it scales so cleanly across large environments. Nodes are the machines that run the kubelet and the kube-proxy, while the control plane manages the cluster state and the placement decisions.</p><p>The control plane does not start your application by itself. It does not run your traffic. It does not serve your users. It decides what should happen, then the worker side of the cluster carries it out. That separation is not an implementation detail. It is the whole point.</p><h3>kubelet: the node’s local stage manager</h3><p>Every worker node runs a kubelet. kubelet is the primary node agent, and it works in terms of a PodSpec, which is the YAML or JSON object describing a Pod. kubelet registers the node with the API server and is the component that makes sure the node is actually doing the work the cluster assigned to it.</p><p>A good way to picture kubelet is as the stage manager on a live show. The control plane decides which act should perform. kubelet makes sure the act actually gets on stage on that node. If the Pod is assigned to the node, kubelet notices. If the Pod should start, kubelet acts. If the Pod needs health checks, kubelet performs them. If the Pod is gone, kubelet reports that too. The Pod lifecycle documentation makes clear that kubelet manages containers while the Pod runs and executes probes that track application health.</p><h3>kubelet does not create containers alone</h3><p>This is where many people get confused, so let us say it very plainly.</p><p>kubelet is not the container runtime. Kubernetes defines the Container Runtime Interface so kubelet can talk to a runtime through a standard contract. The node still needs a runtime, and kubelet asks that runtime to create, start, stop, and observe containers. Kubernetes explicitly documents that the container runtime must be configured to load the CNI plugins that implement the Kubernetes network model, and that CRI is the interface kubelet uses to communicate with the runtime.</p><p>So the split is simple:</p><ul><li>kubelet = the node agent</li><li>container runtime = the thing that actually runs containers</li><li>CRI = the interface between them</li></ul><p>That is one of Kubernetes’ signature moves: define the contract, not the implementation.</p><h3>The Scheduler is the matchmaker, not the boss</h3><p>The Scheduler watches for Pods that do not yet have a node assigned. It decides where a Pod should run by evaluating the nodes available in the cluster and applying the scheduling rules and constraints it knows about. Kubernetes documents that the Scheduler selects a node and binds the Pod through the API Server, rather than directly commanding worker-side components.</p><p>The Scheduler is not random, and it is not sentimental. It looks at the Pod, the node, the available resources, and the constraints you gave it, then makes the best placement decision it can. That is why resource requests matter. Kubernetes uses requests to make placement decisions, and limits to constrain what a running container can consume.</p><h3>The workload object chain: Deployment, ReplicaSet, Pod</h3><p>Now let us unwrap the part that feels magical when you first see it.</p><p>A Deployment is the object you usually apply when you want a stateless app running in Kubernetes. The Deployment object provides declarative updates for Pods and ReplicaSets. A ReplicaSet’s purpose is to maintain a stable set of replica Pods running at any given time. In other words, the Deployment is the higher-level controller, and ReplicaSets are part of the mechanism it uses to keep the right number of Pods alive.</p><p>So if Netflix wants five copies of the Recommendation service, the flow is not “Deployment directly creates five containers.” The actual path is more like this:</p><ol><li>You create or update a Deployment.</li><li>The Deployment controller reconciles the desired state.</li><li>A ReplicaSet exists to keep the desired number of Pods alive.</li><li>The ReplicaSet creates Pods.</li><li>Those Pods begin in Pending.</li><li>The Scheduler assigns them.</li><li>kubelet starts them.</li><li>That chain is what makes Kubernetes feel alive. You tell the system what should exist, and controllers keep pushing reality back toward that answer.</li></ol><h3>Pod: the smallest thing Kubernetes truly understands</h3><p>A Pod is the smallest deployable unit in Kubernetes. It is a group of one or more containers that share storage and network resources, and the containers in a Pod are co-located and co-scheduled. Kubernetes Pods are ephemeral, meaning they are not meant to be treated like durable servers; they are created, assigned a unique identity, scheduled to nodes, and eventually removed or replaced.</p><p>That is why Kubernetes does not schedule “containers” as the core unit. It schedules Pods. A Pod is the thing the cluster reasons about. A Pod is the thing the scheduler places. A Pod is the thing kubelet runs. A Pod is the thing Services point at. A Pod is the basic shape of workload in Kubernetes.</p><p>If a Pod has multiple containers, those containers are not random roommates. They share the same network identity and storage context, which is why they are used together when pieces of the same application need to live side by side. That design is what makes multi-container Pods meaningful rather than merely convenient.</p><h3>Health is a first-class problem, not an afterthought</h3><p>Kubernetes does not assume that a running container is healthy. kubelet can perform liveness, readiness, and startup probes on containers. Liveness probes help decide whether a container should be restarted, readiness probes help decide whether a container should receive traffic, and startup probes help slow-starting applications avoid being marked unhealthy too soon.</p><p>That distinction is pure production wisdom.</p><p>A container can still be alive and still be broken.<br>A container can still be starting and still not be ready for traffic.<br>A container can still be running and still be the wrong place to send users.</p><p>Kubernetes gives you different probes because real applications fail in different ways.</p><h3>Services: the stable door in a world of moving Pods</h3><p>Pods come and go. Their IP addresses change. Their names change. Their node placement changes. That is normal. Services exist so clients do not have to chase those moving targets. In Kubernetes, a Service is a method for exposing a network application that is running as one or more Pods in your cluster, and a key aim of Services is that you do not need to modify your application to use a new discovery mechanism.</p><p>A Service gives a stable endpoint in front of a changing set of backends. The set of backend Pods is usually selected by labels. Kubernetes updates EndpointSlices whenever the set of Pods behind a Service changes, which is how the cluster keeps the service mapping efficient at scale.</p><p>kube-proxy is the thing on each node that helps make that stable endpoint real in the network path. kube-proxy watches Service and EndpointSlice objects and configures the node to redirect traffic to one of the Service endpoints. Kubernetes also notes that some network plugins can provide their own proxying implementation, in which case the node does not need to run kube-proxy.</p><p>In plain English: the Service gives you the address, kube-proxy helps make that address work on the node, and EndpointSlices keep track of which Pods are actually behind it.</p><h3>DNS and discovery make the cluster feel less like chaos</h3><p>A stable Service would not be enough if your applications had to memorize raw IP addresses everywhere. Kubernetes also supports DNS for Services and Pods, so workloads can discover one another using names rather than hard-coded addresses. That is a huge part of what makes the cluster feel like one platform instead of a pile of temporary machines.</p><p>So when Netflix’s frontend wants the Recommendation backend, it does not need to know which specific Pod is alive right now. It asks for the Service name. Kubernetes keeps the moving parts behind the curtain.</p><h3>CNI: the road system under the city</h3><p>This is one of the most important missing pieces in many Kubernetes explanations, so let us say it properly.</p><p>Kubernetes requires a CNI-compatible network plugin to implement the Kubernetes network model. The container runtime must be configured to load the CNI plugins required to do that job, and the CNI plugin is what gives Pods the network behavior Kubernetes expects.</p><p>That means CNI is not just a plugin checkbox. It is the thing that makes Pod networking real.</p><p>If Services are the front doors, CNI is the road system underneath the city. It is how the Pod gets an IP address and becomes part of the cluster network in the first place. Some plugins also support NetworkPolicy enforcement, and Kubernetes explicitly says NetworkPolicies are implemented by the network plugin.</p><p>So the networking stack is not one feature. It is a chain:</p><ul><li>CNI gives the Pod its network presence.</li><li>kube-proxy implements Service forwarding.</li><li>EndpointSlices keep backend membership current.</li><li>DNS gives the app a name to use.</li><li>NetworkPolicy can restrict who may talk to whom, but only if the network plugin supports it.</li></ul><h3>Ingress and Gateway API: the outer gates</h3><p>Services are great for internal reachability. When you want to expose web traffic more intentionally, Kubernetes gives you Ingress and Gateway API.</p><p>Ingress is a protocol-aware mechanism for making HTTP or HTTPS services reachable using rules based on URIs, hostnames, and paths. The Service documentation and Ingress documentation both point to Ingress as the way to expose web traffic to workloads in the cluster.</p><p>Gateway API is the newer, more expressive networking model. Kubernetes describes Gateway API as a family of API kinds that provide dynamic infrastructure provisioning and advanced traffic routing. It is designed to be role-oriented, portable, expressive, and extensible.</p><p>So if Ingress feels like the classic front gate, Gateway API feels like a more modern, more capable entrance system with better separation of concerns.</p><h3>ConfigMaps, Secrets, and ServiceAccounts: the workload’s backstage pass</h3><p>A real workload needs more than compute and networking. It needs configuration, credentials, and identity.</p><p>ConfigMaps store non-confidential data in key-value form, and Pods can consume that data as environment variables, command-line arguments, or files in a volume. Kubernetes uses ConfigMaps so applications can stay portable while environment-specific settings remain outside the image.</p><p>Secrets are similar, but for sensitive values. Kubernetes applies additional protection to Secret objects, and Secrets often hold values such as service account tokens or external credentials.</p><p>ServiceAccounts provide identity for processes running in Pods. Kubernetes creates a default ServiceAccount in every namespace, and if you do not assign one to a Pod, Kubernetes uses the default ServiceAccount for that namespace. Pods that contact the API Server authenticate as a ServiceAccount identity.</p><p>That trio matters because production applications are never just “code in a container.” They are code plus configuration plus identity plus credentials, all of which Kubernetes has to manage cleanly.</p><h3>Namespaces, labels, and selectors: the organization system of the cluster</h3><p>Kubernetes is a shared platform, so it needs boundaries. Namespaces provide a way to divide cluster resources among users and teams. They are a core organizational primitive, even though they are not a security boundary by themselves.</p><p>Labels and selectors are the glue. Labels are key/value pairs attached to objects such as Pods, and selectors are how Kubernetes organizes and finds subsets of objects. Kubernetes uses labels and selectors throughout the platform to connect services to pods and controllers to the objects they manage.</p><p>This is one of the reasons Kubernetes feels so elegant under pressure. It is not trying to remember every object individually. It is using labels and selectors to keep the right things connected.</p><h3>Storage: because real applications remember things</h3><p>Pods are ephemeral. Data often is not.</p><p>Kubernetes handles storage as a separate concern from compute. PersistentVolumes are storage resources in the cluster, PersistentVolumeClaims are requests for storage, and StorageClasses describe the kinds of storage available. When a Pod needs data that survives restarts, this is the system that keeps the application from forgetting its past.</p><p>Kubernetes also uses the Container Storage Interface so storage systems can integrate in a standard way. CSI is part of the storage story that lets Kubernetes remain flexible while supporting many backends.</p><p>That matters for databases, caches, file stores, and anything else that cannot vanish when a Pod is rescheduled.</p><h3>Requests, limits, QoS, and graceful pressure</h3><p>Kubernetes does not just place Pods. It also decides how to treat them when the node gets crowded.</p><p>Resource requests and limits tell Kubernetes what a Pod needs and what it must not exceed. Resource management is part of the Pod contract, and Kubernetes uses those requests and limits to influence scheduling and runtime behavior.</p><p>Those requests and limits also feed into QoS classes. Kubernetes classifies Pods into Quality of Service classes based on how requests and limits relate, and that classification influences how Pods are handled when node resources are tight or when eviction is needed.</p><p>If you want the cluster to stay calm under pressure, this is where you tell it how important each workload is.</p><h3>Affinity and tolerations: choosing where a Pod belongs</h3><p>Sometimes “any healthy node” is not enough.</p><p>Kubernetes supports node affinity, pod affinity, pod anti-affinity, and taints and tolerations to shape where Pods can and should run. The scheduler can use node labels, affinity rules, and tolerations when deciding placement. Taints repel Pods, tolerations allow Pods to be scheduled onto tainted nodes, and node affinity can attract Pods toward particular nodes.</p><p>This is where Kubernetes starts feeling less like a simple launcher and more like an actual operating system for the cluster. You are no longer just starting things. You are expressing placement intent.</p><h3>Autoscaling: when the cluster should grow with the crowd</h3><p>A good cluster does not just react to failures. It reacts to load.</p><p>Horizontal Pod Autoscaling controls the replica count of workloads such as Deployments and their ReplicaSets based on metrics, and Kubernetes documents it as a control loop that runs intermittently through the controller manager.</p><p>That is important because it means scaling is not a manual event. It is a system behavior. When traffic rises, the controller notices and adjusts the number of running replicas. That is one of the most visible examples of Kubernetes acting like a platform instead of a pile of scripts.</p><h3>The other workload shapes: when not everything should behave like a Deployment</h3><p>Kubernetes gives you more than one workload controller because not every problem is the same.</p><ul><li>A <strong>DaemonSet</strong> ensures that all or some nodes run a copy of a Pod; Kubernetes uses this for node-local facilities such as networking helpers or cluster add-ons.</li><li>A <strong>StatefulSet</strong> manages stateful applications and gives Pods stable identity and ordering guarantees, which is different from the interchangeable Pods you get with a Deployment.</li><li>A <strong>Job</strong> runs a Pod to completion and can retry it if the first Pod fails or gets deleted.</li><li>A <strong>CronJob</strong> creates Jobs on a repeating schedule, like a cron table entry for cluster work.</li></ul><p>That is the cluster’s workload toolbox. One controller for continuously running interchangeable replicas. One for node-local daemons. One for ordered stateful workloads. One for tasks that run to completion. One for scheduled tasks.</p><h3>High availability: the control plane should not become the weak link</h3><p>If the cluster is going to manage your applications, the cluster itself must be resilient.</p><p>Kubernetes uses the Lease API to perform leader election among multiple instances of the same control-plane component in a high-availability cluster, such as kube-controller-manager or kube-scheduler. Only one instance actively performs the work while the others stay on standby.</p><p>That is the other half of the story we have been telling all along. Kubernetes is not just about running workloads. It is about making the platform itself dependable enough to keep doing its job even when a control-plane instance fails.</p><p>In cloud environments, the cloud-controller-manager separates cloud-specific integration logic from the parts of Kubernetes that only interact with the cluster itself, which helps Kubernetes remain portable while still integrating deeply with the provider’s API.</p><h3>The final request, the final reconciliation</h3><p>Now the Recommendation service is running. The Pod is healthy. The Service has a stable front door. DNS knows the name. kube-proxy and the network plugin have done their part. The scheduler has done its placement work. kubelet has done the local execution. Controllers keep watching. The cluster is not a pile of YAML anymore. It is a system that can keep itself aligned with what you asked for.</p><p>And that is the entire point.</p><p>Kubernetes does not make infrastructure disappear. It makes infrastructure behave predictably enough that humans can build on top of it.</p><h3>The end of the Netflix journey</h3><p>At the beginning of this series, we started with one server and one application.</p><p>That world did not need Kubernetes.</p><p>Then the application grew. The traffic grew. The number of machines grew. The number of moving parts grew. And the problem stopped being “can we run this application?” and became “can we keep this entire system sane while it keeps changing?” Kubernetes was built for that exact moment.</p><p>By now, you have seen the whole machine:</p><p>the API Server as the front door,<br>etcd as the memory,<br>controllers as the reconciliation loop,<br>the Scheduler as the matcher,<br>kubelet as the node guardian,<br>the container runtime as the executor,<br>CNI as the networking foundation,<br>kube-proxy as the Service proxy,<br>DNS as the naming layer,<br>Services as stable endpoints,<br>EndpointSlices as the backend map,<br>probes as the health checks,<br>ConfigMaps and Secrets as the backstage props,<br>ServiceAccounts as the workload identity,<br>storage as the persistent memory,<br>labels and selectors as the glue,<br>affinity and tolerations as placement rules,<br>QoS as the pressure valve,<br>autoscaling as the crowd control,<br>workload controllers as the shape of each job,<br>and leader election as the guardrail that keeps the control plane honest.</p><p>That is not just a list of Kubernetes features.</p><p>That is a production system.</p><p>And that is where this series ends.</p><p>Not with a command.<br>Not with a YAML file.<br>Not with a checklist of resource kinds.</p><p>With a mental model.</p><p>Because once the mental model is clear, Kubernetes stops feeling like a maze and starts feeling like a very well-organized machine.</p><p>One last time, the lesson of the whole journey:</p><p><strong>Kubernetes is not trying to hide complexity. It is trying to organize complexity well enough that humans can trust it at scale.</strong></p><p>That is the story of the platform.<br>That is the story of the series.<br>And that is the final curtain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba8a5e16e412" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes: The Journey from One Server to Millions [Article 2.3]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/kubernetes-the-journey-from-one-server-to-millions-article-2-3-56a29b2618ce?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/56a29b2618ce</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 09:39:16 GMT</pubDate>
            <atom:updated>2026-07-20T09:39:16.904Z</atom:updated>
            <content:encoded><![CDATA[<h3>Inside the Brain of Kubernetes</h3><p>In the previous section, we discovered that the <strong>Control Plane</strong> is the brain of a Kubernetes cluster.</p><p>But saying “the Control Plane” is a bit like saying:</p><blockquote><em>“The human brain.”</em></blockquote><p>The brain isn’t one giant cell.</p><p>It’s made up of many specialized regions working together.</p><p>The Kubernetes Control Plane works the same way.</p><p>It isn’t one application.</p><p>It’s a collection of components, each responsible for solving a specific problem.</p><p>To understand them, let’s return to Netflix.</p><h3>Netflix Wants to Deploy a New Service</h3><p>Imagine the Recommendation Team has finished developing a new version of their service.</p><p>After testing it thoroughly, they decide it’s time to deploy it.</p><p>Instead of logging into servers and manually copying files, they simply tell Kubernetes what they want.</p><p>For example:</p><blockquote><strong><em>“Run five instances of Recommendation Service version 2.0.”</em></strong></blockquote><p>Notice something important.</p><p>They aren’t saying:</p><ul><li>Run it on Server A.</li><li>Put another copy on Server C.</li><li>Restart Server B.</li><li>Allocate 8 CPU cores.</li></ul><p>They simply describe the <strong>desired outcome</strong>.</p><p>Everything that happens next is Kubernetes’ responsibility.</p><p>So…</p><p>where does this request go?</p><h3>Meet the API Server</h3><p>Every conversation with Kubernetes begins with one component.</p><p>The <strong>API Server</strong>.</p><p>Think of it as the <strong>front door</strong> of the cluster.</p><p>Every request — whether it’s from an engineer using kubectl, a CI/CD pipeline, another Kubernetes component, or an automation tool—enters the cluster through the API Server.</p><pre>              Engineer<br>                  │<br>           kubectl apply<br>                  │<br>                  ▼<br>         +------------------+<br>         |    API Server    |<br>         +------------------+</pre><p>The API Server is the only component that other systems are expected to communicate with directly.</p><p>Nobody bypasses it.</p><p>Nobody talks directly to the Scheduler.</p><p>Nobody updates cluster data directly.</p><p>Everything flows through the API Server.</p><p>Think of it as the receptionist at a large corporate office.</p><p>Visitors don’t walk directly into the CEO’s office.</p><p>They check in at reception first.</p><p>The receptionist verifies who they are, understands what they want, and forwards the request appropriately.</p><p>The API Server plays exactly that role.</p><h3>But the API Server Doesn’t Make Decisions</h3><p>This surprises many beginners.</p><p>The API Server receives requests.</p><p>It validates them.</p><p>It authenticates users.</p><p>It authorizes operations.</p><p>But it doesn’t decide where your application should run.</p><p>It doesn’t choose a Worker Node.</p><p>It doesn’t monitor failed applications.</p><p>It doesn’t scale workloads.</p><p>So…</p><p>what does it do?</p><p>It acts as the <strong>central communication hub</strong> for the entire Kubernetes cluster.</p><p>Every major component communicates through it.</p><p>This design has an important advantage.</p><p>Instead of every component talking directly to every other component, everyone speaks the same language through a single interface.</p><p>That keeps the architecture simpler, more consistent, and easier to extend.</p><h3>Every Cluster Needs Memory</h3><p>Suppose the API Server receives this request.</p><blockquote><em>“Run five Recommendation Service instances.”</em></blockquote><p>Now imagine the API Server immediately forgets the request.</p><p>How would Kubernetes know what should be running?</p><p>It wouldn’t.</p><p>Just like humans need memory…</p><p>Kubernetes needs memory too.</p><p>That memory is provided by <strong>etcd</strong>.</p><h3>Meet etcd</h3><p>Despite the unusual name, etcd has a very straightforward purpose.</p><p>It stores the <strong>entire state of the Kubernetes cluster</strong>.</p><p>Think of etcd as the cluster’s notebook.</p><p>Whenever something changes, Kubernetes writes it down.</p><p>Examples include:</p><ul><li>Which applications should exist.</li><li>How many instances should be running.</li><li>Which Worker Nodes are part of the cluster.</li><li>Configuration information.</li><li>Secrets.</li><li>Network settings.</li></ul><p>If the API Server is the front door…</p><p>etcd is the filing cabinet that stores the cluster’s knowledge.</p><pre>Engineer<br>    │<br>API Server<br>    │<br>Writes Request<br>    ▼<br>+-------------+<br>|    etcd     |<br>+-------------+<br>Desired State Stored</pre><p>Notice the wording.</p><p><strong>Desired State.</strong></p><p>Not necessarily what is running.</p><p>But what <strong>should</strong> be running.</p><p>That distinction is one of the most important ideas in Kubernetes.</p><h3>Desired State vs Current State</h3><p>Let’s simplify it.</p><p>Suppose you tell Kubernetes:</p><blockquote><em>“I want five Recommendation Service instances.”</em></blockquote><p>That statement becomes the <strong>Desired State</strong>.</p><p>But perhaps only three instances are actually running because two servers just failed.</p><p>Now the cluster has:</p><p>Desired State:</p><pre>5 Instances</pre><p>Current State:</p><pre>3 Instances</pre><p>Kubernetes immediately notices the difference.</p><p>Its entire job is to make those two numbers match.</p><p>This idea appears again and again throughout Kubernetes.</p><p>The cluster continuously compares:</p><p><strong>What should exist?</strong></p><p>versus</p><p><strong>What actually exists?</strong></p><p>When the two differ, Kubernetes takes action.</p><h3>Someone Still Needs to Choose a Worker Node</h3><p>At this point, Kubernetes knows:</p><ul><li>A new application should run.</li><li>Five instances are required.</li></ul><p>But another question remains.</p><p>Where should they run?</p><p>Suppose your cluster contains three Worker Nodes.</p><pre>Worker A<br>CPU Usage: 20%<br>----------------------<br><br>Worker B<br>CPU Usage: 90%<br>----------------------<br><br>Worker C<br>CPU Usage: 40%</pre><p>Which one should receive the next application?</p><p>This decision belongs to the <strong>Scheduler</strong>.</p><h3>Meet the Scheduler</h3><p>Imagine an airport.</p><p>Aircraft continuously request permission to land.</p><p>The control tower decides:</p><ul><li>Which runway is available.</li><li>Which aircraft lands first.</li><li>Which aircraft must wait.</li></ul><p>The Scheduler plays a similar role.</p><p>It doesn’t run applications.</p><p>Instead, it decides <strong>where</strong> applications should run.</p><p>When Kubernetes needs a new workload, the Scheduler evaluates every Worker Node.</p><p>It considers factors such as:</p><ul><li>Available CPU</li><li>Available memory</li><li>Resource requests</li><li>Scheduling rules</li><li>Node health</li><li>Placement constraints</li></ul><p>Then it selects the most appropriate Worker Node.</p><p>The decision is intelligent.</p><p>Not random.</p><h3>But Who Notices Something Is Wrong?</h3><p>Imagine one Recommendation Service instance suddenly crashes.</p><p>Nobody submits a new deployment.</p><p>Nobody presses a button.</p><p>Nobody even notices.</p><p>Should the cluster simply continue running with fewer instances?</p><p>Absolutely not.</p><p>Someone has to continuously watch the cluster and detect these differences.</p><p>That’s the job of the <strong>Controller Manager</strong>.</p><h3>Meet the Controller Manager</h3><p>Think of the Controller Manager as Kubernetes’ quality inspector.</p><p>It continuously compares:</p><p>Desired State</p><p>with</p><p>Current State.</p><p>If everything matches…</p><p>it does nothing.</p><p>If they differ…</p><p>it starts working.</p><p>Imagine our desired state is:</p><pre>Recommendation Service<br><br>Desired:<br>5 Instances</pre><p>Suddenly one instance crashes.</p><p>The current state becomes:</p><pre>Recommendation Service<br><br>Current:<br>4 Instances</pre><p>Immediately the Controller Manager notices.</p><p>It doesn’t ask an engineer for permission.</p><p>It doesn’t wait for someone to log into the cluster.</p><p>It simply tells Kubernetes:</p><blockquote><em>“We need one more Recommendation Service instance.”</em></blockquote><p>The process begins again.</p><p>The Scheduler selects a Worker Node.</p><p>The workload starts.</p><p>The cluster returns to the desired state.</p><p>This entire sequence often happens in seconds.</p><p>Many users never notice anything went wrong.</p><h3>The Control Plane Works Like a Team</h3><p>Let’s put everything together.</p><p>Imagine you deploy a new application.</p><pre>Engineer<br>     │<br>kubectl apply<br>     │<br>     ▼<br>API Server<br>     │<br>Stores Desired State<br>     ▼<br>etcd<br>     │<br>Controller notices new work<br>     ▼<br>Controller Manager<br>     │<br>Needs a Worker Node<br>     ▼<br>Scheduler<br>     │<br>Selects Best Worker Node<br>     ▼<br>Worker Node</pre><p>Notice something fascinating.</p><p>No single component performs every task.</p><p>Each component specializes.</p><p>Together, they behave like one intelligent system.</p><p>This separation of responsibilities is one of the reasons Kubernetes has scaled successfully from small development environments to some of the largest production platforms in the world.</p><h3>But Something Is Still Missing…</h3><p>We’ve followed a deployment request all the way to a Worker Node.</p><p>The Scheduler has selected the best machine.</p><p>The Control Plane has made all the necessary decisions.</p><p>But another question naturally appears.</p><p>Once the Worker Node receives those instructions…</p><p><strong>who actually starts the application?</strong></p><p>Who talks to the container runtime?</p><p>Who checks whether the application is still healthy?</p><p>Who reports back to the Control Plane?</p><p>Those responsibilities belong to another set of Kubernetes components that live on every Worker Node.</p><p>And that’s exactly where we’ll continue in the next part of this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56a29b2618ce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes: The Journey from One Server to Millions [Article 2.2]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/kubernetes-the-journey-from-one-server-to-millions-article-2-2-85dc30bbbd34?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/85dc30bbbd34</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Fri, 17 Jul 2026 10:32:56 GMT</pubDate>
            <atom:updated>2026-07-17T10:32:56.073Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Brain and the Workers</h3><p>At the end of the previous section, we discovered that a Kubernetes Cluster isn’t just a collection of servers.</p><p>It’s a collection of servers working together as a single platform.</p><p>We also learned something equally important.</p><p>Not every server performs the same job.</p><p>Some servers are responsible for <strong>making decisions</strong>.</p><p>Others are responsible for <strong>executing those decisions</strong>.</p><p>This separation of responsibilities is one of the fundamental design principles behind Kubernetes.</p><p>Let’s understand why.</p><h3>A Thought Experiment</h3><p>Imagine Netflix is preparing to release the final season of one of its most popular shows.</p><p>Millions of users are expected to join within minutes.</p><p>The engineering team knows traffic will spike dramatically.</p><p>New application instances will need to be created.</p><p>Old ones may need to be replaced.</p><p>Some servers could fail under heavy load.</p><p>Now imagine every server in the data center starts making independent decisions.</p><p>One server decides to start five new application instances.</p><p>Another server also decides to start five.</p><p>A third server thinks there are already enough running.</p><p>A fourth server believes an application has crashed when it hasn’t.</p><p>Very quickly, the entire system becomes chaotic.</p><p>The problem isn’t a lack of computing power.</p><p>The problem is <strong>coordination</strong>.</p><p>Somebody has to decide what the cluster should look like.</p><p>Somebody has to ensure every server agrees on that decision.</p><p>Without coordination, a distributed system quickly becomes unreliable.</p><h3>Divide Responsibilities</h3><p>Kubernetes solves this problem by dividing the cluster into two logical groups.</p><pre>                Kubernetes Cluster<br>        +--------------------------------------+<br>                Decision Makers<br>        +--------------------------------------+<br>        |          Control Plane               |<br>        +--------------------------------------+<br>                    │<br>                    │ Gives Instructions<br>                    ▼<br>        +--------------------------------------+<br>        |          Worker Nodes                |<br>        +--------------------------------------+<br>        | Run Your Applications                |<br>        +--------------------------------------+</pre><p>Think of it like a large logistics company.</p><p>There is a headquarters where planning happens.</p><p>And there are delivery trucks that perform the actual work.</p><p>If every truck planned its own routes, inventory, and schedules independently, operations would become chaotic.</p><p>Instead:</p><ul><li>Headquarters plans.</li><li>Delivery trucks execute.</li></ul><p>Kubernetes follows exactly the same philosophy.</p><h3>What Is the Control Plane?</h3><p>The <strong>Control Plane</strong> is the management layer of Kubernetes.</p><p>If the Kubernetes cluster were a company, the Control Plane would be its leadership team.</p><p>It doesn’t serve customer requests directly.</p><p>It doesn’t run your application.</p><p>Instead, it continuously answers questions like:</p><ul><li>What applications should be running?</li><li>How many copies should exist?</li><li>Which servers have enough capacity?</li><li>Has anything failed?</li><li>Does the current cluster match the desired state?</li></ul><p>You can think of the Control Plane as the <strong>brain</strong> of the Kubernetes cluster.</p><p>It observes.</p><p>It decides.</p><p>It coordinates.</p><p>But it doesn’t execute workloads itself.</p><h3>What Are Worker Nodes?</h3><p>If the Control Plane is the brain…</p><p>the <strong>Worker Nodes</strong> are the muscles.</p><p>These are the machines where your applications actually run.</p><p>When Kubernetes starts a new application, the Control Plane doesn’t execute it itself.</p><p>Instead, it selects an appropriate Worker Node and instructs it to run the workload.</p><pre>               Control Plane<br>            &quot;Run this application&quot;<br>                     │<br>                     ▼<br>              Worker Node A<br>           Application Starts</pre><p>Every application your users interact with ultimately runs on one or more Worker Nodes.</p><p>From the user’s perspective, they never know which Worker Node is serving their request.</p><p>And that’s exactly how it should be.</p><h3>Why Not Let Every Server Do Everything?</h3><p>This is a question many beginners ask.</p><p>Why introduce two different types of machines?</p><p>Why not simply install every Kubernetes component on every server?</p><p>It’s a reasonable question.</p><p>Imagine a hospital where every employee tries to perform every job.</p><p>Doctors manage appointments.</p><p>Receptionists perform surgeries.</p><p>Pharmacists schedule operations.</p><p>Nurses maintain payroll.</p><p>Everyone is busy.</p><p>Nothing is efficient.</p><p>Specialization exists because it reduces complexity.</p><p>Kubernetes follows the same idea.</p><p>The Control Plane specializes in <strong>management</strong>.</p><p>Worker Nodes specialize in <strong>running workloads</strong>.</p><p>Each side focuses on what it does best.</p><h3>The Control Plane Doesn’t Run Your Application</h3><p>This is one of the most common misconceptions among beginners.</p><p>Many people assume the Control Plane is simply another powerful server that runs applications.</p><p>It isn’t.</p><p>Its responsibility is coordination.</p><p>For example, suppose you tell Kubernetes:</p><blockquote><em>“I want five copies of my Recommendation Service.”</em></blockquote><p>The Control Plane doesn’t start five application processes itself.</p><p>Instead, it determines:</p><ul><li>Which Worker Nodes have available resources.</li><li>Where those five copies should run.</li><li>Whether additional Worker Nodes are needed.</li><li>Whether any existing applications must be moved or restarted.</li></ul><p>The actual execution always happens on Worker Nodes.</p><p>This separation keeps the management layer focused on decision-making rather than application execution.</p><h3>A Real Netflix Example</h3><p>Let’s return to our Netflix story.</p><p>Imagine the Recommendation Service is receiving far more traffic than expected after a new release.</p><p>The engineering team decides they now want <strong>10 running instances</strong> instead of <strong>5</strong>.</p><p>The request reaches Kubernetes.</p><p>Kubernetes doesn’t immediately start new instances.</p><p>First, the Control Plane asks several questions.</p><ul><li>How many instances are currently running?</li><li>Which Worker Nodes have enough CPU and memory?</li><li>Are any Worker Nodes unhealthy?</li><li>Where should the new instances be placed for maximum availability?</li></ul><p>Only after answering those questions does Kubernetes instruct the appropriate Worker Nodes to start the additional application instances.</p><p>Notice something subtle.</p><p>The engineering team never selected specific servers.</p><p>They simply declared what they wanted.</p><p>The cluster handled the rest.</p><p>This idea — <strong>declaring the desired outcome instead of manually managing infrastructure</strong> — is one of Kubernetes’ greatest strengths.</p><h3>One Brain Isn’t Enough</h3><p>At this point, another question naturally appears.</p><p>If the Control Plane is the brain of the entire cluster…</p><p>what happens if the brain fails?</p><p>Suppose the Control Plane machine suddenly crashes.</p><p>Can the cluster still make decisions?</p><p>Can new applications be deployed?</p><p>Can failed workloads be replaced?</p><p>Clearly, the Control Plane itself must also be highly available.</p><p>Large production Kubernetes clusters don’t rely on a single Control Plane machine.</p><p>They typically run multiple Control Plane nodes working together.</p><pre>                   Control Plane<br>        +-----------+   +-----------+   +-----------+<br>        | Control 1 |   | Control 2 |   | Control 3 |<br>        +-----------+   +-----------+   +-----------+<br>                 Working Together</pre><p>If one Control Plane node becomes unavailable, the others continue managing the cluster.</p><p>This design removes yet another single point of failure.</p><p>High availability is a recurring theme in Kubernetes because the platform itself must remain reliable before it can keep your applications reliable.</p><p>We’ll revisit this topic in depth when we discuss production-grade Kubernetes deployments later in the series.</p><h3>The Control Plane Is Actually a Team</h3><p>So far, we’ve been talking about the Control Plane as though it’s a single entity.</p><p>In reality, it isn’t one application.</p><p>It’s a collection of specialized components working together.</p><p>Each has a distinct responsibility.</p><p>One component receives requests.</p><p>Another stores the cluster’s data.</p><p>Another decides where workloads should run.</p><p>Another continuously watches the cluster and tries to keep reality aligned with the desired state.</p><p>Together, these components form what we call the <strong>Control Plane</strong>.</p><p>In the next part of this article, we’ll meet each member of that team:</p><ul><li><strong>API Server</strong></li><li><strong>etcd</strong></li><li><strong>Scheduler</strong></li><li><strong>Controller Manager</strong></li></ul><p>You’ll discover not only what each component does, but why Kubernetes needs all four — and why removing any one of them would fundamentally change how the cluster operates.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85dc30bbbd34" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kubernetes: The Journey from One Server to Millions [Article 2.1]]]></title>
            <link>https://medium.com/@gautam.vasudeva07/kubernetes-the-journey-from-one-server-to-millions-article-2-1-7d5f7ccdc48c?source=rss-d1dd34f7baaf------2</link>
            <guid isPermaLink="false">https://medium.com/p/7d5f7ccdc48c</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <dc:creator><![CDATA[Gautam Vasudeva]]></dc:creator>
            <pubDate>Thu, 16 Jul 2026 12:18:44 GMT</pubDate>
            <atom:updated>2026-07-16T12:18:44.688Z</atom:updated>
            <content:encoded><![CDATA[<h3>Understanding the Brain Behind Modern Infrastructure</h3><blockquote>“In the previous article, we discovered why Kubernetes was invented. Now it’s time to open the hood and understand how it actually works.”</blockquote><h3>The Morning After</h3><p>It’s Monday morning.</p><p>Last Friday, the Netflix engineering team made a big decision.</p><p>Instead of manually managing thousands of containers across hundreds of servers…</p><p>they decided to adopt Kubernetes.</p><p>The team is excited.</p><p>Someone asks the obvious question.</p><blockquote><strong><em>“Great… so where do we install Kubernetes?”</em></strong></blockquote><p>The room goes quiet.</p><p>One engineer points at Server A.</p><p>Another suggests installing it on every server.</p><p>Someone else asks whether Kubernetes is just another application.</p><p>These questions might sound simple.</p><p>But they reveal one of the biggest misconceptions about Kubernetes.</p><p>Most beginners think Kubernetes is <strong>a program</strong>.</p><p>It isn’t.</p><p>Kubernetes is <strong>a distributed system</strong>.</p><p>And understanding that single idea changes everything.</p><h3>Is Kubernetes Just Another Application?</h3><p>Imagine someone asks you:</p><blockquote><strong><em>“Where is the Internet installed?”</em></strong></blockquote><p>It sounds like a strange question.</p><p>Because the Internet isn’t one computer.</p><p>It’s a collection of computers working together.</p><p>Now imagine someone asks:</p><blockquote><strong><em>“Where is Kubernetes installed?”</em></strong></blockquote><p>The answer is surprisingly similar.</p><p>Kubernetes isn’t a single application running on one server.</p><p>It’s a collection of specialized components working together across multiple machines.</p><p>Those machines collectively form something called a <strong>Kubernetes Cluster</strong>.</p><h3>What Is a Kubernetes Cluster?</h3><p>Let’s forget Kubernetes for a moment.</p><p>Imagine you’re asked to build Netflix today.</p><p>Not for 100 users.</p><p>Not for 10,000 users.</p><p>For <strong>300 million users</strong>.</p><p>Would you buy one gigantic server?</p><p>Of course not.</p><p>You’d build an entire fleet of servers.</p><p>Some servers would manage the platform.</p><p>Others would actually run your applications.</p><p>Together, those servers would behave like one enormous computer.</p><p>That is exactly what a Kubernetes Cluster is.</p><blockquote><strong><em>A Kubernetes Cluster is a group of computers that work together to run and manage containerized applications as if they were one unified platform.</em></strong></blockquote><p>Notice something important.</p><p>The cluster — not an individual server — is what engineers interact with.</p><p>When you deploy an application to Kubernetes, you don’t choose a specific machine.</p><p>You deploy it to the <strong>cluster</strong>.</p><p>The cluster decides where it should run.</p><p>That distinction is one of Kubernetes’ biggest strengths.</p><h3>Thinking Differently</h3><p>Before Kubernetes, infrastructure engineers thought like this:</p><pre>Application<br>   ↓<br>Server 17</pre><p>Everything revolved around machines.</p><p>Every deployment involved choosing a server.</p><p>Every incident involved identifying which server had failed.</p><p>Every scaling decision involved selecting another machine.</p><p>Infrastructure teams spent most of their time managing servers.</p><p>Kubernetes changes the mindset completely.</p><p>Now engineers think like this:</p><pre>        Application<br>            ↓<br>      Kubernetes Cluster<br>            ↓<br> Cluster decides everything else</pre><p>The servers are still there.</p><p>But they fade into the background.</p><p>Instead of managing machines…</p><p>you manage applications.</p><p>This shift from <strong>server-centric thinking</strong> to <strong>application-centric thinking</strong> is one of the biggest philosophical changes Kubernetes introduced.</p><h3>A Simple Analogy</h3><p>Imagine an airline.</p><p>When you book a ticket, you don’t choose:</p><ul><li>The pilot</li><li>The flight attendants</li><li>The aircraft</li><li>The gate</li><li>The runway</li></ul><p>You simply choose:</p><blockquote><strong><em>“I want to travel from London to New York.”</em></strong></blockquote><p>The airline figures out everything else.</p><p>Kubernetes works the same way.</p><p>Instead of saying:</p><blockquote><em>“Run this application on Server 42.”</em></blockquote><p>You simply declare:</p><blockquote><em>“Run my application.”</em></blockquote><p>Kubernetes decides:</p><ul><li>Which machine has enough CPU.</li><li>Which machine has enough memory.</li><li>Which machine is healthy.</li><li>Which machine should receive the workload.</li></ul><p>You describe the <strong>destination</strong>.</p><p>Kubernetes determines the <strong>journey</strong>.</p><h3>But How Can a Cluster Behave Like One Computer?</h3><p>This is where Kubernetes becomes fascinating.</p><p>Imagine you have ten independent servers.</p><p>Normally…</p><p>each server knows only about itself.</p><pre>Server A<br>&quot;I know Server A.&quot;<br>--------------------<br>Server B<br>&quot;I know Server B.&quot;<br>--------------------<br>Server C<br>&quot;I know Server C.&quot;</pre><p>There’s no coordination.</p><p>No shared understanding.</p><p>No common decision-making.</p><p>Now imagine those servers continuously communicating.</p><p>Sharing information.</p><p>Agreeing on the current state of the system.</p><p>Suddenly…</p><p>they stop behaving like isolated computers.</p><p>They begin behaving like a single coordinated platform.</p><p>That coordination is exactly what Kubernetes provides.</p><h3>Not Every Server Has the Same Job</h3><p>At this point, another question naturally appears.</p><p>If every server belongs to the cluster…</p><p>do they all perform the same work?</p><p>The answer is no.</p><p>Just as a hospital doesn’t expect surgeons, receptionists, pharmacists, and nurses to perform identical roles…</p><p>a Kubernetes Cluster assigns different responsibilities to different machines.</p><p>Some machines make decisions.</p><p>Others execute those decisions.</p><p>This separation makes the platform more organized, scalable, and resilient.</p><p>To understand Kubernetes, we first need to understand these two categories of machines.</p><p>They are called:</p><ul><li><strong>Control Plane Nodes</strong></li><li><strong>Worker Nodes</strong></li></ul><p>Don’t worry about the details just yet.</p><p>For now, remember only this:</p><blockquote><strong><em>Some machines manage the cluster.</em></strong></blockquote><blockquote><strong><em>Other machines run your applications.</em></strong></blockquote><p>That simple distinction forms the foundation of Kubernetes architecture.</p><h3>A New Mental Model</h3><p>Before moving further, replace this picture in your mind:</p><pre>Application<br>  ↓<br>Server</pre><p>with this one:</p><pre>               Kubernetes Cluster<br>        ┌───────────────────────────────┐<br>        │                               │<br>        │     Many Computers Working    │<br>        │       As One Platform         │<br>        │                               │<br>        └───────────────────────────────┘<br>                   ▲<br>            Your Application</pre><p>From now on, every concept we learn — whether it’s Pods, Deployments, Services, or Autoscaling — will happen <strong>inside this cluster</strong>.</p><p>The cluster is the stage on which the rest of Kubernetes operates.</p><h3>What’s Coming Next</h3><p>We’ve answered our first question:</p><blockquote><strong><em>What is a Kubernetes Cluster?</em></strong></blockquote><p>But another question immediately follows.</p><p>If some machines manage the cluster…</p><p>and others run applications…</p><p><strong>who is actually making all the decisions?</strong></p><p>Who decides where applications run?</p><p>Who notices when a server fails?</p><p>Who ensures the desired number of application instances are always running?</p><p>Who keeps the entire cluster synchronized?</p><p>Those questions lead us to the <strong>Control Plane</strong> — the brain of Kubernetes.</p><p>And that’s where our journey continues in the next part of this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7d5f7ccdc48c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>