<?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 Sujal Das on Medium]]></title>
        <description><![CDATA[Stories by Sujal Das on Medium]]></description>
        <link>https://medium.com/@sujal_51397?source=rss-e8c4352cbbec------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1ZBzWqSjLXq12qyy</url>
            <title>Stories by Sujal Das on Medium</title>
            <link>https://medium.com/@sujal_51397?source=rss-e8c4352cbbec------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:05:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sujal_51397/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[The Future is “Collectively Distinct”]]></title>
            <link>https://blog.enfabrica.net/the-future-is-collectively-distinct-5f5914789d6e?source=rss-e8c4352cbbec------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f5914789d6e</guid>
            <dc:creator><![CDATA[Sujal Das]]></dc:creator>
            <pubDate>Sat, 23 Nov 2024 00:32:14 GMT</pubDate>
            <atom:updated>2024-11-23T00:32:14.340Z</atom:updated>
            <content:encoded><![CDATA[<p>Last week was momentous! Enfabrica announced a $115M series C funding round and the availability of the world’s fastest GPU-attached Network Inference Controller (NIC) chip that we call the Accelerated Compute Fabric (ACF) SuperNIC chip.</p><p>(please insert links to the two PRs)</p><p>We also launched our new brand slogan ‘Collectively Distinct’.</p><p>With GenAI, the way data center infrastructure is built and scaled has changed dramatically. With that, the way AI networking products are built and delivered has changed forever. A foundational element has brought about that shift with a groundswell of innovations that have shaken the industry, which is the way data and compute that does not fit in a single GPU or AI Accelerator is scaled through interconnects. This enables massive, accelerated compute power and exacerbates the need for improved efficiency measured as MFU or Model FLOPs Utilization. These critical scale and efficiency metrics are achieved by artfully weaving together different communication patterns, specifically inter process communication or IPC used for scale-up networking, and remote procedure call or RPC used for scale-out computing. It is about working collectively, from silicon to software stack to how parameters and tokens are processed to create the magic that users experience daily.</p><p>At Enfabrica, our culture is about how we are recognizably different as a group, and as a whole. We are collectively distinct in how we create innovative technologies and how we collaborate with our customers and partners. Our products are designed from the ground up to collectively connect and efficiently move data across all endpoints in modern AI datacenter infrastructure, whether they are GPUs, AI Accelerators, CPUs or forms of data store like SSD, NVMe, or CXL memory. Our unique software-hardware codesign and software-defined silicon approach allows us to innovate collectively with our customers to support their unique AI workload and network topologies, enabling faster time to market while creating significant operational advantages.</p><p>My esteemed colleagues at Enfabrica, who are building the world-class ACF SuperNIC solution, will attest emphatically that the way Enfabrica creates technology and products is fundamentally different from how other networking silicon companies design and deliver their products. They rely on a collective and deep understanding of how each hardware and software layer works and interacts, from the silicon physical layer to the software collective communications layer that our customers’ workloads and AI models run on. There is intense focus on the data center operator’s ability to keep modern AI networks up and running, ensuring their users have the best and fastest experience possible. At Enfabrica, we live by and practice these doctrines daily, involving our partners and customers. Therefore, the future is collectively distinct.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f5914789d6e" width="1" height="1" alt=""><hr><p><a href="https://blog.enfabrica.net/the-future-is-collectively-distinct-5f5914789d6e">The Future is “Collectively Distinct”</a> was originally published in <a href="https://blog.enfabrica.net/">enfabrica</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Defined RDMA Networks for Large Scale AI Infrastructure]]></title>
            <link>https://blog.enfabrica.net/software-defined-rdma-networks-for-large-scale-ai-infrastructure-7ad0fe6d3910?source=rss-e8c4352cbbec------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ad0fe6d3910</guid>
            <dc:creator><![CDATA[Sujal Das]]></dc:creator>
            <pubDate>Tue, 10 Sep 2024 03:25:07 GMT</pubDate>
            <atom:updated>2024-09-11T19:12:18.223Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kIcyuVLPoNx1-Ecp" /><figcaption>Photo by <a href="https://unsplash.com/@christopher__burns?utm_source=medium&amp;utm_medium=referral">Christopher Burns</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Bifurcation of SDN and RDMA Networks</h3><p>SDN (Software Defined Networking) evolved in the last decade and became the de facto standard as it made networking suitable for cloud scale, delivering significant operational efficiencies. SDN gave data center operators two fundamental advantages related to control and flexibility. Over the last decade, data center operators improved operational metrics such as faster and predictive roll out of new features and capabilities. Successful implementation of SDN hinged on the ability to decouple network control and data forwarding functions, enabling the network control to become programmable and the underlying infrastructure to be abstracted from applications and network services. Programmability significantly enhanced control-related benefits while abstraction enabled implementation flexibility.</p><p>During the same decade, RDMA (remote DMA) networks found limited use in large scale deployments; in storage and high-performance computing (HPC) applications, the infrastructure size had been relatively smaller than what was required for general purpose computing infrastructure where SDN prevailed. Early adopters of RDMA networking for larger cloud-scale deployments, like Microsoft Azure [1] and Amazon Web Services (AWS) [2], faced similar challenges around control and flexibility. They dealt with the challenges in different ways as discussed in the next section.</p><p>Fast forward to the current decade, the advent of networking for GPUs in AI applications, also known as backend or scale-out networking, catapulted RDMA networking to large scale deployments within a short period of time. The growing demand for higher performance and scalability, coupled with different traffic patterns from advancements in Generative AI (GenAI), are driving data center operators to rapidly adopt new AI infrastructure designs and technologies. For example, the traffic patterns of Large Language Model (LLM) training differ greatly from traditional data center workloads, producing infrequent bursts of data resulting in low entropy and high network utilization. The burst can directly reach the capacity of modern RDMA NICs (400Gbps), while the low-entropy traffic pattern disrupts the effectiveness of Equal-Cost Multi-Path (ECMP) load balancing, widely deployed in traditional data center networks.</p><p>The rapid evolution of AI infrastructure is unprecedented, leading to a growing fear of being left behind. As a result, data center operators are quickly relinquishing what they cherished the most in the last decade–control and flexibility. There is little or no decoupling in current RDMA implementations. Instead, tightly engineered, vertical and prescribed rack designs are being adopted for faster time to revenue. While there is abstraction in the AI stack, the rapid pace of new deployments is forcing operators to ignore or refrain from insisting that the stack implementations function across multiple RDMA NIC solutions.</p><p>As a result, the data center network has become fragmented to the legacy and the new. Storage and compute networking are categorized as legacy systems, often referred to as front-end networking. The value of SDN and its use persists in that domain. Backend networking for GPUs is relatively new. Aspects of operator control and flexibility are currently eclipsed by the GenAI and LLM arms race. There is not much SDN in this domain. The two worlds have bifurcated.</p><p>According to Alibaba [3], their production statistics show that a fault in LLM training can cost the company 20 times more than when it occurs in general cloud computing. As backend networking for GPUs (including AI accelerators) matures, and the sizes of such GPU clusters increase to match the scale of general cloud computing [4], the well-established operational efficiency norms in cloud infrastructures are bound to become prevalent once again. The need for control and flexibility is perennial. Technology and product innovations in this space, as related to decoupling and abstractions, already exist in some instances as we will discuss in the next section. It is only a matter of time before the demand for cloud-based efficiency extends to RDMA networks.</p><h3>The Need for Control and Flexibility in RDMA Networks</h3><p>The need for control and flexibility in backend AI networks that use RDMA will only exacerbate as the sizes of GPU clusters deployed by data center operators increase. This will be driven by the rapid progress we are experiencing in newer GenAI models where training a multi-trillion parameter multimodal transformer with massive amounts of video, image, audio, and text will be the next big challenge. To assess where the need for control and flexibility may head, let’s take a step back and double-click on where we have come from — the innovative work by cloud service providers (CSPs) like Microsoft, Amazon, Google, Meta and Alibaba to make their respective RDMA networks suitable for scale of up to about 32,000 GPU clusters. The next step in the scale continuum is 100,000+ GPUs in a cluster [4].</p><h4>Scaling RDMA Networks at Microsoft Azure</h4><p>Microsoft is an early user of the RoCEv2 (RDMA over Converged Ethernet version 2) to support storage and HPC services that are highly-reliable and latency-sensitive. In its quest to scale to larger networks and intra data center communications, Microsoft added new capabilities to its cloud infrastructure [1]. In doing so, the CSP highlighted the following approaches and steps, as shown in table 1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/1*2GKbX_awGwlWjW5fh9gPMw.png" /><figcaption>Table 1: Microsoft Azure approach to scaling RDMA networks</figcaption></figure><p>Based on table 1, my assessment of the level of control is medium. Reason: The RDMA transport is implemented in hardware by a single NIC vendor and therefore rollout of the new features is gated by the RDMA NIC vendor’s ability to fix and release a new version of the hardware. There is no reliance on custom or specialized switch vendor features.</p><p>My assessment of the level of flexibility is medium. Reason: The RDMA NIC is sourced from a single vendor. Azure uses commodity switch solutions and network designs applicable across heterogeneous data centers. Azure utilizes MSCCL [12] to enable use of a common CCL across multiple GPU vendors. While this enhances procurement flexibility for sourcing GPUs, it is not clear if it (yet) enhances Azure’s ability to flexibly procure and deploy RDMA NICs.</p><p>Note: At Azure, the trend seems to be moving toward gaining more control of their RDMA NIC deployments. Azure has programmable NIC assets through its acquisition of Fungible [9]. Azure could apply those assets to gain higher control and flexibility. The MAIA accelerator silicon includes integrated Ethernet NIC functionality that supports a custom RoCE-like protocol [10]; it is not clear if this solution is programmable.</p><h4>Scaling RDMA Networks at Amazon Web Services (AWS)</h4><p>To make RDMA networks suitable for cloud scale, AWS ran into similar challenges as Microsoft, but it took a very different approach to solving them. To enable HPC and AI applications to run at scale, AWS needed to add capabilities into its infrastructure that provides consistently low latency [2]. Instead of making incremental improvements to a solution supplied by a RDMA NIC vendor, AWS took a clean slate approach that enabled it to solve traffic congestion scenarios seen with HPC and AI workloads, as shown in table 2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*pf05nK0y3lxxrdzWiZZpMA.png" /><figcaption>Table 2: Amazon Web Services (AWS) approach to scaling RDMA networks</figcaption></figure><p>Based on table 2, my assessment of the level of control is high. Reason: By utilizing its own programmable RDMA NIC, AWS is able to innovate and introduce new AI networking scale features without relying on RDMA NIC or switch vendors.</p><p>My assessment of the level of flexibility is high. Reason: There are no vendor dependencies in AWS’s approach, and they are able to use commodity switch solutions and network designs applicable across heterogeneous data centers.</p><h4>Scaling RDMA Networks at Google</h4><p>Google contributed its Falcon transport protocol to the Open Compute Project (OCP) in 2023 [5]. Google implemented that transport in a vendor-supplied, RDMA-capable and programmable NIC called Infrastructure Processing Unit or IPU NIC [6]. It took a path that is somewhat in between the approaches taken by Microsoft and Amazon we discussed above. Like Microsoft, Google utilized a vendor RDMA NIC solution. Like AWS, they created and deployed their own version of RDMA transport, as shown in table 3:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*1Vp4ed2AbD_4tJSy4wBoXA.png" /><figcaption>Table 3: Google approach to scaling RDMA networks</figcaption></figure><p>Based on table 3, my assessment of the level of control is medium. Reason: By implementing core transport components in the programmable cores, Google maintained its ability to add new capabilities into the congestion control algorithm and release them rapidly to address new workload requirements. Google has dependency on their RDMA NIC vendor for upgrades to hardware speeds and feeds.</p><p>My assessment of the level of flexibility is high. Reason: Google has full flexibility in the implementation of core RDMA scaling and congestion management features. They are able to use commodity switch solutions and network designs applicable across heterogeneous data centers.</p><h4>Scaling RDMA Networks at Meta</h4><p>Meta owns and controls its own workloads allowing it to design and fine tune the RDMA network and compute infrastructure to suit its specific workload needs. Their approach to scaling RDMA networks is different from any of the CSPs discussed above. Instead of innovating by making changes in the RDMA transport layer or inventing a new one, Meta made many changes and optimizations to other aspects of the infrastructure [7], as shown in table 4:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*eDTr5QU6jtqhUBBDDVlzdQ.png" /><figcaption>Table 4: Meta approach to scaling RDMA networks</figcaption></figure><p>Based on table 4, my assessment of the level of control is low. Reason: The RDMA transport is implemented in hardware by a single NIC vendor and therefore rollout of the new features is gated by the RDMA NIC vendor’s ability to fix and release a new version of the hardware. Meta utilizes unique features in specialized deep buffered, high radix, chassis Ethernet switches to address congestion issues; it therefore has high reliance on the switch vendor for features support. Scaling to larger clusters may require rethinking the switch procurement and network design strategy, causing delayed time-to-market.</p><p>My assessment of the level of flexibility is low. Reason: Their congestion management solutions and telemetry requirements are tied to the RDMA NIC vendor’s RoCE implementation and the GPU vendor’s library (NCCL). Meta uses specialized switches available from a single vendor. Meta uses a custom switch fabric design that is different from their other data center network designs.</p><h4>Scaling RDMA Networks at Alibaba</h4><p>Alibaba presented its HPN (high performance networking) architecture deployed in production in its dedicated data center for LLM training [3]. Their approach is somewhat similar to Meta’s where instead of changing and innovating in the RDMA transport layer, they applied optimizations in the application and ToR, Aggregation and Core switch networking layers. To improve network reliability (to reduce training job failures and related high costs) and load balancing (to reduce congestion), Alibaba made many changes and optimizations to the following aspects of their training data center infrastructure, as shown in table 5:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*5obowWY8xuExn2wzlnmHNQ.png" /><figcaption>Table 5: Alibaba approach to scaling RDMA networks</figcaption></figure><p>Based on table 5, my assessment of the level of control is Medium. Reason: The RDMA transport is implemented in hardware by a single NIC vendor and therefore rollout of the new features is gated by the RDMA NIC vendor’s ability to fix and release a new version of the hardware. There is no reliance on custom or specialized switch vendor features. Scaling to larger clusters may require rethinking the network design strategy, causing delayed time-to-market.</p><p>My assessment of the level of flexibility is low. Reason: Alibaba’s congestion management solutions and telemetry requirements are tied to the RDMA NIC vendor’s RoCE implementation and the GPU vendor’s library (NCCL). Alibaba uses a custom switch fabric design that is different from their other data center network designs.</p><h3>Future Trends and Implications</h3><p>Table 6 summarizes the levels of control and flexibility available to the CSPs with their current GPU cluster designs. AWS and GCP wield the maximum control and flexibility while Meta and Alibaba enjoy the least, with Microsoft Azure in the middle of the continuum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*DrWVRfZfm9hi5q-VlSvXxA.png" /><figcaption>Table 6: Levels of control and flexibility by CSP</figcaption></figure><p>As the five CSPs discussed above and others plan to build AI infrastructures that scale to hundreds of thousands of GPUs or AI accelerators [4], they will need to deal with new network designs and topologies to address the following:</p><ul><li>Data center power constraints that will require that smaller clusters be housed in buildings that are connected over longer distances with significantly higher latency and more prone to packet drops</li><li>Need for significantly higher resiliency to improve model FLOPS utilization (MFU) and return on investment related to significantly higher AI infrastructure spend</li><li>New and more stringent requirements related to higher bandwidth to address the demands of newer GPUs, and</li><li>Need for lower end-to-end latency across larger sets of GPUs in the clusters to address collective operations sharding requirements for new GenAI models</li></ul><p>Microsoft with their MAIA accelerator [10] and Tesla with their Dojo accelerator [13] have created custom transport for data movement across their respective AI accelerators. A custom RoCE transport by Microsoft and TTPoE (Tesla Transport over Ethernet) by Tesla enable scale up networking. More CSPs building their own accelerators may take similar approaches that require custom transport implementations.</p><p>As a result of the above trends, the need for higher control and flexibility will only exacerbate, demanding technology and product innovations for software defined RDMA networking.</p><h3>Innovations in Software Defined RDMA Networking</h3><p>To enable needed control and flexibility in RDMA networks used for AI infrastructure, the solution must enable two vital aspects — decoupling and abstractions — as we have seen with tried and proven SDN in other large scale data center infrastructures. In this section, we present novel decoupling mechanisms and abstractions in the implementation of a multi-GPU RDMA NIC — which Enfabrica calls a SuperNIC. A detailed description of the proposed design of such a SuperNIC with software defined RDMA networking capabilities is beyond the scope of this blog; the reader is encouraged to refer to Enfabrica product-related collateral and other industry publications [11] for such details. Below, we present high level aspects of such a design, focusing on the benefits related to control and flexibility.</p><h4>Decoupling</h4><p>In this multi-GPU SuperNIC, using innovative co-design of hardware and software, the data and control paths in RDMA networking are physically separated, but logically coupled after separation.</p><p>The physical separation enables a high-throughput, zero-copy data path to application buffers (like in GPU HBM) for payloads, and an independent control path for header processing. By doing so, the data path can connect to any endpoint (e.g., GPU, NVMe storage, and CPU memory as seen in typical GPU/CPU servers), and the control path can execute a flexible set of transport protocols (e.g., RoCEv2, AWS SRD, GCP Falcon or Messaging over TCP as shown in [8]) in any execution environment such as in user or kernel space software on a CPU in the GPU/CPU server.</p><p>The logical coupling allows the control path to have full control of protocol semantics, i.e., when data is correctly received or sent, how to handle events like reorderings and retransmissions, and when to notify the application — even if the transport protocol and data processing are decoupled and reside in different devices.</p><h4>Abstractions</h4><p>In the multi-GPU SuperNIC, the separation of the control and data path is abstracted to allow for flexible and diverse implementations of the control path on a common data path. By doing so, the two can be innovated independently. Specifically, the control path being a software implementation on a general purpose CPU can be enhanced by the data center operator at its own pace without requiring updates to the data path that is implemented in the hardware. Updates to the hardware for higher speeds and feeds can be implemented without requiring changes in the control path.</p><p>In addition, the design with separation of control and data path maintains the needed level of abstraction at the API level. Compatibility with popular APIs enable AI application integration without modifications, simply by linking against a supplied provider library. It can be demonstrated using popular frameworks such as xCCL, PyTorch, and Redis.</p><p>Figure 1 shows the hardware and software stack for the multi-GPU SuperNIC implementation. The stack on the left shows a RoCEv2 transport-based implementation. On the right is the same stack but with two changes, one in the hardware layers and one in the networking software layers; these changes enable implementation of a different transport.</p><p>The hardware layers comprise the SuperNIC solution and the GPUs that connect to the SuperNIC using PCIe interfaces within a server design. In the SuperNIC solution shown in the gray box, the RDMA data path is implemented in the SuperNIC silicon while the control path can be flexibility implemented in general purpose CPU cores. In the stack on the right-hand side, the RDMA control path is changed from RoCEv2 to a new transport control path but operating with the same RDMA data path as before, highlighting the benefit of decoupling.</p><p>In the networking software stack components shown above the hardware layers, the driver and RDMA core layers are changed to address the different control path implementations in the two stacks. With the needed level of abstractions, the layers above up to the application software are kept the same across the two stacks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o33kwpLPJR1B8VejAlns2g.png" /><figcaption>Figure 1: Transport implementation flexibility in the software-defined multi-GPU SuperNIC</figcaption></figure><p>Figure 2 shows the physical split between the control and data path where the former is hosted in a separate CPU device and the latter resides in the SuperNIC device. Similar to the GPUs, the CPU that runs the RDMA control path is connected to the SuperNIC device using the PCIe interface. The RDMA datapath can also connect to other endpoints in a server such as NVMe storage or CXL.Mem.</p><p>Next, aspects related to how packets travel throughout the hardware, network software and application layers are discussed at a high level. As shown in figure 2, the SuperNIC splits and merges headers and data to enable zero-copy data transfers directly to the GPUs, handling aspects related to packet reorderings, retransmissions, and drops as typically seen in networks that service AI workloads. The software stack is composed of the control stack and the provider library. The control stack is the coordinator between the SuperNIC, the transport protocol, and the application. The transport protocol acts only on packet headers, while the control stack proxies its actions to data in remote memory (i.e., SuperNIC or application buffers). The provider library implements both message and streaming APIs to allow an easy mapping of popular networking libraries onto the design.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OO7UaPbZlwXvf2Wf6sTzpw.png" /><figcaption>Figure 2: Physical split between the RDMA transport control and data path in a SuperNIC</figcaption></figure><h4><strong>Enabling High Levels of Control and Flexibility in Large AI Clusters</strong></h4><p>The SuperNIC solution that implements a software-defined RDMA control path can bring back high levels of control and flexibility to data center operators building large scale AI clusters. Specifically, it enables the following capabilities and benefits, the needs for which will exacerbate as the scale of AI infrastructures increases to hundreds of thousands of GPUs or AI accelerators:</p><ul><li>The flexible transport control path can assign bandwidth between ports to optimize traffic movement based on workload and topology</li><li>Eliminates the need to deploy complex network switch designs and topologies</li><li>Eliminates the need to modify AI applications and stacks making supportability easier and time to market faster</li><li>Aggregation across multiple GPUs and network ports gives wider visibility for better control such as early congestion detection for fast flow stall and NIC egress pipelines can look ahead to switch egress queue depths</li><li>Gives data center operators the ability to collect and utilize sophisticated network and GPU-related telemetry across a wide surface of GPUs and network ports</li><li>Congestion issues can be fixed in the control path that the data center operator controls, independent of the data path implemented in SuperNIC hardware</li><li>Clean global addressing model enables an invisible transport control path to manage memory movement across all endpoints. The model optimizes over full surface area of PCIe and Ethernet using descriptor fields that make precise port decisions. The model handles low-frequency-per-message operations like protocol state machine, routing policy, send rate and higher-level congestion avoidance. This brings the best of both worlds — full control and flexibility with minimal to no impact on bandwidth and end to end latency</li><li>The software-defined transport is aware of error state and reacts to dynamic failures under the hood, rebalancing with workload awareness. It enables unique ability to develop and collect custom metrics related to RDMA networking and GPU data movement. Such capabilities can be effectively utilized to provide high resilience to cable and port failures</li></ul><h3>Summary</h3><p>SDN has been a cornerstone for delivering cloud-scale efficiencies in large data centers built by CSPs. RDMA networking evolved with HPC and storage applications; it could be implemented in smaller dedicated clusters without requiring the control and flexibility benefits of SDN. For modern AI workloads and with the advent of backend networking for GPUs and AI accelerators, CSPs have built larger clusters using RDMA networking, spanning to about 32,000 GPUs. While some CSPs have adopted SDN practices in scaling their RDMA networks for AI workloads, others have relinquished the control and flexibility-related benefits that SDN brings in their larger data center infrastructures for general purpose computation-based workloads. With the pace of advancements in GenAI and LLM workloads accelerating, CSPs are planning significantly larger GPU clusters; this will exacerbate the need for reinstating high levels of control and flexibility in RDMA networks. Innovations like the multi-GPU SuperNIC with software defined RDMA transport capabilities, as presented in this blog, will usher in cloud-scale efficiencies to future RDMA networks that support hundreds of thousands of GPUs or AI accelerators.</p><h3>References</h3><p>[1] <a href="https://www.microsoft.com/en-us/research/wp-content/uploads/2016/11/rdma_sigcomm2016.pdf">rdma_sigcomm2016.pdf (microsoft.com)</a></p><p>[2] <a href="https://assets.amazon.science/a6/34/41496f64421faafa1cbe301c007c/a-cloud-optimized-transport-protocol-for-elastic-and-scalable-hpc.pdf">A-cloud-optimized-transport-protocol-for-elastic-and-scalable-hpc</a></p><p>[3] <a href="https://dl.acm.org/doi/pdf/10.1145/3651890.3672265">Alibaba HPN: A Data Center Network for Large Language Model Training (acm.org)</a></p><p>[4] <a href="https://blog.enfabrica.net/scaling-to-100k-gpu-ai-clusters-using-flat-2-tier-network-designs-a9464d587f38">Scaling to 100K+ GPU AI Clusters Using Flat 2-tier Network Designs | by Sujal Das | Aug, 2024 | enfabrica</a></p><p>[5] <a href="https://www.youtube.com/watch?v=je1BnXNE670">A Reliable and Low Latency Ethernet Hardware Transport — presented by Google (youtube.com)</a>; <a href="https://cloud.google.com/blog/topics/systems/introducing-falcon-a-reliable-low-latency-hardware-transport">Introducing Falcon: a reliable low-latency hardware transport | Google Cloud Blog</a></p><p>[6] <a href="https://www.youtube.com/watch?v=Y_nlFOzkgYc">Intel Reliable Transport of Lossy Fabrics with Falcon (youtube.com)</a></p><p>[7] <a href="https://engineering.fb.com/2024/08/05/data-center-engineering/roce-network-distributed-ai-training-at-scale/">RoCE networks for distributed AI training at scale — Engineering at Meta (fb.com)</a></p><p>[8] <a href="https://www.cs.cornell.edu/~ragarwal/pubs/host-networking-accelerators.pdf">host-networking-accelerators.pdf (cornell.edu)</a></p><p>[9] <a href="https://blogs.microsoft.com/blog/2023/01/09/microsoft-announces-acquisition-of-fungible-to-accelerate-datacenter-innovation/">Microsoft announces acquisition of Fungible to accelerate datacenter innovation — The Official Microsoft Blog</a></p><p>[10] <a href="https://hc2024.hotchips.org/assets/program/conference/day2/81_HC2024.Microsoft.Xu.Ramakrishnan.final.v2.pdf">Inside MAIA100 (hotchips.org)</a></p><p>[11] <a href="https://hc2024.hotchips.org/assets/program/conference/day2/79_HC2024.Enfabrica.Mukherjee.v5-0826.pdf">ACF-S SuperNIC silicon architecture (hotchips.org)</a></p><p>[12] <a href="https://github.com/Azure/msccl">GitHub — Azure/msccl: Microsoft Collective Communication Library</a></p><p>[13] <a href="https://hotchips.org/advance-program/c6-1-tesla-dojo">TTPoE for Tesla DOJO AI Accelerators</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ad0fe6d3910" width="1" height="1" alt=""><hr><p><a href="https://blog.enfabrica.net/software-defined-rdma-networks-for-large-scale-ai-infrastructure-7ad0fe6d3910">Software Defined RDMA Networks for Large Scale AI Infrastructure</a> was originally published in <a href="https://blog.enfabrica.net/">enfabrica</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling to 100K+ GPU AI Clusters Using Flat 2-tier Network Designs]]></title>
            <link>https://blog.enfabrica.net/scaling-to-100k-gpu-ai-clusters-using-flat-2-tier-network-designs-a9464d587f38?source=rss-e8c4352cbbec------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9464d587f38</guid>
            <dc:creator><![CDATA[Sujal Das]]></dc:creator>
            <pubDate>Wed, 07 Aug 2024 21:02:35 GMT</pubDate>
            <atom:updated>2024-08-08T22:50:32.258Z</atom:updated>
            <content:encoded><![CDATA[<p>By: Sujal Das and Boris Shpolyansky</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vgc2-xrDCV4PZMv9" /><figcaption>Photo by <a href="https://unsplash.com/@jjying?utm_source=medium&amp;utm_medium=referral">JJ Ying</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Need for 100K+ GPU Clusters</h3><p>Today’s AI clusters range in sizes from 24K GPUs deployed at Meta [1] to 32K GPUs deployed at Oracle Cloud Infrastructure [2]. They have grown by an estimated 3 to 5 times in the last 4 years or less. These are just two examples and there are many more. Using meticulous and sometimes painful optimizations, and tweaking aspects related to congestion management and end-to-end latency reduction, these clusters have been made to scale and work reasonably well for current Gen AI training workloads like Llama 3 language model with 405 billion parameters [3] and GPT-3 with 175 billion parameters. This, however, is just the beginning.</p><p>Rumors claim that GPT-4 has 1.76 trillion parameters; that is a tenfold increase in one generation. However, with this tenfold increase in parameter count, GPU cluster sizes have grown far less, implying longer effective training times. For example, training BF16 FLOPS for GPT-4 on a 20K NVIDIA A100 GPU cluster takes 90 to 100 days; on the other hand, a 100K NVIDIA H100 GPU cluster increases peak theoretical AI training FLOPs by 31.5 times where training FP8 FLOPS for GPT-4 would take only 4 days [4]. And just recently, the visionary OpenAI CEO said that GPT-5 will be a significant leap forward over its predecessor in terms of parameter count and expert domains. So, data center operators must take new architectural approaches to plan much larger AI compute clusters, leveraging new AI networking technologies and products that allow them to scale to 100K or more GPUs in a single cluster.</p><h3>GPU Cluster Design Optimization Points</h3><p>Congestion management and latency reduction remain critical priorities because fast and predictable data movement between GPUs in a large cluster is highly sensitive to those network attributes. More traffic congestion and higher end-to-end latency results in longer job completion times and periodic stranding or underutilization of valuable GPU compute resources, leading to lower MFU (model FLOPs utilization).</p><p>Data center operators utilize varying latency and bandwidth tolerance across tensor parallel, pipeline parallel, and data parallel collective operations to optimize the cost of building AI clusters. For example, data parallel operations that are least sensitive to latency are run across rack groups connected with network bandwidth oversubscription that reduces cost by using fewer switches and optical cables.</p><p>Power capacity available affects the sizes of clusters that can be hosted in data center buildings. For example, a 100K GPU cluster may have to be broken down to smaller clusters and connected using optical transceivers across the buildings in a campus [4]. Denser, liquid-cooled racks become attractive as they allow for more scale within buildings, and allocation of larger sets of GPUs for the latency sensitive tensor parallel and pipeline parallel collective operations.</p><p>Effective training time [1, 3] has become another critical metric as operators are facing significantly lower aggregate Mean Time Before Failures (MTBF) of hardware components in the AI infrastructure. Figure 1 shows MTBF in hours for GPU cluster sizes ranging from 10,000 to 60,000, and the impact of poor reliability as an operational challenge. Faulty GPUs, GPU memory, network switches and cables contribute to top hardware-related failures that cause unexpected interruptions. More frequent failures result in restarts of AI jobs from the last checkpoint (in other words, stalls progress of AI jobs) and require more spare GPUs in place to shrink the disruption time. This phenomenon results in diminishing returns with respect to job completion times and GPU utilization with larger AI cluster designs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SJMG3YjpmNscZLTN" /><figcaption><strong>Figure 1: Exponentially Declining Mean Time Before Failure (MTBF) with Larger GPU Clusters</strong> (Source: Presentation from the event Systems@Scale 2024 [1])</figcaption></figure><h3>3-Tier Network Designs</h3><p>Most known current large AI cluster designs are based on three-tier network designs that include three layers of switching:</p><ul><li>Tier 1: Row Switches or Rack Switches</li><li>Tier 2: Leaf Switches</li><li>Tier 3: Spine Switches</li></ul><p>The three layers form the AI scale out network and they exist to enable data center operators to achieve the desired scale of number of GPUs in the cluster with acceptable cross-sectional bandwidth and network hops that affect congestion and latency characteristics related to GPU-to-GPU data movement. The scale out networks are designed with parallelism in mind. They are based on currently available 400GbE RDMA NICs and switches and their maximum radix sizes. The scale out network is complemented by the scale up network built using GPU fabrics like NVLINK used for NVIDIA GPUs. While the scale up network addresses the tensor parallel domain, the multi-tier scale out network is still critically involved in all three types of parallel rank communication (tensor, pipeline, and data) depending on the model, and cluster size and topology.</p><p>Figure 2 shows an example of such an AI cluster as deployed at Meta [1]. The design shown uses Open Compute Project (OCP) Grand Teton servers equipped with eight GPUs and eight 400GbE RDMA NICs each. Each rack includes two such servers and a rack switch with 16x 400GbE downlink ports and 18x 400GbE uplink ports. These rack switches connect to leaf switches which then connect to spine switches. The leaf and spine switches are chassis switches with 288x 400GbE ports. The connectivity at the leaf switch layer is oversubscribed 7:1 to enable higher radix and more racks (252) in each rack group. This also reduces the number of spine switches needed.</p><p>The set of GPUs in each server are connected using NVLINK and form a tensor parallel domain. The set of GPUs within a rack group as shown in figure 2 form a tensor parallel, context parallel and pipeline parallel domain. Finally, data parallel operations are performed across the rack groups where the end-to-end latency is significantly higher [3].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*k1mcgh40vjFdvzkZ" /><figcaption><strong>Figure 2: A 3-Tier 32K GPU Cluster Design from Meta</strong> <strong>(7:1 oversubscription in the leaf to spine layer)</strong>; Based on information available in references [1, 3 and 5]</figcaption></figure><h4>Optimization Points and Approaches</h4><p>The 3-tier design shown in figure 2 makes careful optimizations in the following four areas:</p><ol><li><strong>Maximizes the number of GPUs reachable using 2 network tiers or less:</strong> The number of GPUs reachable in 2 network tiers or less is 4,032 in a rack group (16 GPUs/rack * 252 racks in a rack group). Data movement across these sets of 4,032 GPUs in each rack group enjoys the maximum cross-sectional bandwidth (400 Gbps per GPU) and lowest end-to-end latency (4 network hops or less), making them suitable for context parallel and pipeline parallel operations. This optimization is achieved using the following approaches:<br>- Uses a switch within each server rack — the rack switch — to increase the radix going up to the leaf switch to 18 and service 16 GPUs across two servers.<br>- Uses high radix leaf switches with 288 ports of 400GbE and a 7:1 oversubscription in the leaf switch to spine switch layer. This enables 252 downlink ports and a wider span of 252 racks (and therefore 4,032 GPUs) in a rack group.<br>- Uses high radix spine switches with 288 ports of 400GbE to enable up to 8 rack groups for a total of 32,256 GPUs in the cluster.</li><li><strong>Creates a level of redundancy and resiliency for GPUs in the servers: </strong>The use of rack switches enables cabling the first network tier within the racks using copper cables (e.g., passive direct attached cable or DAC) that have significantly better MTBF metrics (compared to optical cables used for longer distances). The lack of redundancy in the connectivity from GPUs in the servers to the rack switch layer (because the RDMA NICs are single ported) is compensated by the higher MTBF of copper cables. At the same time, upper network tier connections using less reliable optical cables enjoy multiple redundant paths which substantially reduces the impact of link failures at those tiers.</li><li><strong>Reduces the number of switches needed in the spine layer:</strong> The 7:1 oversubscription used in the leaf switch layer significantly reduces the number of switches needed in the spine layer. In the design shown, only 18 spine switches are needed. Additional 2,016 rack switches and 144 leaf switches for a total of 115,200 400GbE switch ports (5,184 rack switch ports + 68,544 leaf switch ports + 41,472 spine switch ports) are needed to provide connectivity to the 32,256 GPUs in the servers. The high ratio of oversubscription can result in data movement congestion for GPUs that need to communicate across the rack groups. By using deep buffer leaf and spine switches, and parallelism for AI model scaling and related optimizations to shard the model across GPUs connected with different latency and bandwidth constraints, the possibility of such congestion occurring can be reduced [3].</li><li><strong>Reduces congestion using traffic spray above the leaf layer:</strong> Utilizing the high radix of 18 ports with multipathing available above the rack switches, traffic spraying can be implemented to reduce congestion. This requires careful optimizations or modifications to the RDMA transport and collective communication library (CCL) software layers in the server and load balancing software in the switches [3].</li></ol><p>Notes on cables used in the cluster design shown in figure 2:<br>- number of copper cables:16*252*8 = 32,256<br>- number of short optical cables: 252*18*8 = 36,288<br>- number of long optical cables: 288*18 = 5,184</p><h3>Flatter is Better: The Drive to 2-Tier Networks</h3><p>This section shows a scenario where the 3-tier design discussed above is modified to apply a 2-tier network design. The following changes are made to the GPU cluster design as shown in figure 3:</p><ul><li>Uses a latest generation 4-GPU server design with denser racks that include 64 GPUs.</li><li>Eliminates the rack switches to enable a 2-tier design with leaf and spine switch layers only.</li><li>Uses 51.2 Tbps switches in 100GbE port configuration to increase the radix size to 512 ports to enable higher GPU cluster scale.</li><li>Uses RDMA NICs with multiple 100GbE ports (shown in the figure as SuperNICs) to enable higher GPU cluster scale.</li></ul><p>By making the above changes, a flatter 106,496 GPU cluster can be built using a 2-tier network design that reduces end-to-end latency and congestion choke points substantially.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mzzrZju2ZyNcP4KR" /><figcaption><strong>Figure 3: A 2-Tier 100K+ GPU Cluster Design (4:1 oversubscription in the leaf to spine layer)</strong></figcaption></figure><h4>Optimization Points and Approaches</h4><p>The 2-tier design shown in figure 3 enables further optimizations in each of the four areas discussed earlier with the 3-tier design:</p><ol><li><strong>100K+ GPUs are reachable using 2 network tiers or less:</strong> The number of GPUs reachable in two network tiers or less is the total number of GPUs, namely 106,496, in the entire cluster. This large set of GPUs with low latency connections can now be more flexibly utilized for pipeline parallel and data parallel operations. 1,792 GPUs are reachable using a single network tier (versus 16 GPUs in the 3-tier design). Data movement across these sets of 1,792 GPUs in each rack group is subject to the maximum cross-sectional bandwidth (400 Gbps per GPU) and lowest end-to-end latency (2 network hops). This optimization is achieved using the following approaches:<br>- Uses a SuperNIC per server with high radix 16 ports of 100GbE. Eliminates the rack switch shown in figure 2.<br>- Uses high radix leaf switches with 512 ports of 100GbE and a 4:1 oversubscription in the leaf switch to spine switch layer. This enables 416 downlink ports and a wider span of 26 racks with 1,792 GPUs in a rack group.<br>- Uses high radix spine switches with 512 ports of 100GbE to enable up to 64 rack groups and 106,496 GPUs in the cluster.</li><li><strong>Creates redundancy and resiliency for GPUs right at the server networking layer: </strong>The use of high radix 100GbE-capable SuperNICs brings redundancy and resiliency for GPU-to-GPU data movement down to the server layer. This eliminates the need for the rack switch as used in the 3-tier design. Data movement from the GPUs in the servers exiting and entering the racks to and from the leaf switches using optical cables with lower MTBF have redundant paths, enhancing reliability of the cluster.</li><li><strong>Reduces the total number of switches needed while enabling commodity 100GbE switch options:</strong> 51.2 Tbps switches built using a single switch chip are available from multiple vendors (unlike the 288-port 400GbE switches used in the 3-tier design that is a chassis design and requires multiple chips). These cheaper 51.2 Tbps switch options are currently available in 800GbE and 400GbE port configurations, with one also available in 100GbE port configuration [7]. It is expected that multiple vendors will soon support the higher radix 100GbE port configuration. The 4:1 oversubscription used in the leaf switch layer and the aggregated (8 to 1) connectivity between the leaf and spine switches significantly reduces the number of switches needed in the spine layer. In the design shown in figure 3, only 192 spine switches are needed to support a 100K+ GPU cluster design. Additional 1,024 leaf switches are needed for a total of 623,104 100GbE switch ports (98,304 spine switch ports + 524,800 leaf switch ports) needed to provide connectivity to the 106,496 GPUs in the servers. While the lower 4:1 oversubscription ratio (versus 7:1) benefits data parallel operations, it can still result in data movement congestion for GPUs that need to communicate across the rack groups. By using advanced congestion-aware load balancing and packet-spraying techniques, and/or parallelism for AI model scaling and related optimizations to shard the model across GPUs connected with different latency and bandwidth constraints, the probability of such congestion occurring can be reduced.</li><li><strong>Reduces complexity of congestion handling using traffic spray right above the server layer:</strong> Utilizing the high radix of 16 ports with multipathing available at the server networking layer using SuperNICs, traffic spraying can be implemented to reduce congestion in the switching fabric. The nuances of multiple ports and multipathing in the SuperNICs can be hidden allowing for compatibility with standard RDMA transport and collective communication library (CCL) software layers for faster time to market and easier supportability. The need to modify or enhance load balancing implementation in the switches can also be eliminated.</li></ol><p>Notes on cables used in the cluster design shown in figure 3:<br>- number of copper cables: 0<br>- number of short optical cables: 416*16*64 = 425,984<br>- number of long optical cables: 512*2*96 = 98,304</p><h4>Recap of the Benefits of 2-Tier Network Designs</h4><p>The following table provides a summary of the key benefits that can be derived by utilizing a 2-tier network design compared to the Meta 3-tier design discussed above (as shown in figures 2 and 3).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*RLPs7saUwbnFn_aeB9cdBg.png" /><figcaption><strong>Table 1: Benefits of 2-tier Network Designs in AI Clusters</strong></figcaption></figure><p>* This lower number can be compensated with more GPUs that are reachable with a lower oversubscription ratio. A design with no oversubscription, discussed in the next section, can completely eliminate this issue.</p><h4>Eliminating Oversubscription-related Complexity</h4><p>The complexity listed in the last row of table 1, is an artifact of the desire to reduce cost by using the fewest number of switches in the cluster. It is a tradeoff that requires use of deep buffer switches in leaf and spine layers and implementing parallelism for AI model scaling to shard the model across GPUs connected with different latency and bandwidth constraints.</p><p>An AI cluster with up to 524,288 GPUs and full cross-sectional bandwidth across all network tiers can be built using a 16x 100GbE SuperNIC that connects to 4x GPUs per server, in a 2-tier design. This is shown in figure 4. Using such a design significantly reduces complexities by allowing AI workloads — including for multiple tenants in a cloud service provider environment — to be freely hosted and distributed across GPUs in the cluster, and eliminating the need for meticulously sharding the AI model across sets of GPUs. Also, more expensive deep buffer switches are no longer needed for oversubscription-related congestion handling. The tradeoff (as compared to the 106,496 GPU cluster design in figure 3) is the higher cost of a larger number for spine switches per GPU (4x) and a larger number of longer-distance 100G optical cables per GPU (4x).</p><p>Notes on cables used in the cluster design shown in figure 4: <br>- number of copper cables: 0<br>- number of short optical cables: 256*16*512 = 2,097,152<br>- number of long optical cables: 512*16*256 = 2,097,152</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WS895PyOIxQTh96l" /><figcaption><strong>Figure 4: A 2-Tier 500K+ GPU Cluster Design (full cross-sectional bandwidth across all network tiers)</strong></figcaption></figure><h4>Requirements in Next Gen AI Networking Products</h4><p>As seen above, when it comes to scaling AI clusters to 100K+ GPUs, 2-tier designs provide many compelling advantages. These benefits can be made available soon provided the following capabilities become available in networking products targeted at AI clusters:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*JcHKRh1heG-ax4MKc-B1Bw.png" /><figcaption><strong>Table 2: Capabilities needed in networking products for large scale AI clusters</strong></figcaption></figure><p>For more information, please visit <a href="http://enfabrica.net/">enfabrica.net</a>.</p><h3>References</h3><p>[1] <a href="https://atscaleconference.com/videos/genai-training-in-production-software-hardware-network-considerations/">GENAI TRAINING IN PRODUCTION: SOFTWARE, HARDWARE &amp; NETWORK CONSIDERATIONS | At Scale Conferences</a></p><p>[2] <a href="https://www.oracle.com/ai-infrastructure/#:~:text=OCI%20Supercluster%20enables%20you%20to,on%20large%2Dscale%20AI%20models.">AI Infrastructure | Oracle</a></p><p>[3] <a href="https://scontent-ord5-2.xx.fbcdn.net/v/t39.2365-6/452387774_1036916434819166_4173978747091533306_n.pdf?_nc_cat=104&amp;ccb=1-7&amp;_nc_sid=3c67a6&amp;_nc_ohc=t6egZJ8QdI4Q7kNvgGvtbhv&amp;_nc_ht=scontent-ord5-2.xx&amp;oh=00_AYCnP53ibPc51bBlXGjTtSDFEEwe0h3wdu2u8O3DdjQiRQ&amp;oe=66A723CD">The Llama 3 Herd of Models</a></p><p>[4] <a href="https://www.semianalysis.com/p/100000-h100-clusters-power-network">100k H100 Clusters: Power, Network Topology, Ethernet vs InfiniBand, Reliability, Failures, Checkpointing (semianalysis.com)</a></p><p>[5] <a href="https://blog.apnic.net/2023/12/08/gpu-fabrics-for-genai-workloads/">GPU fabrics for GenAI workloads | APNIC Blog</a></p><p>[6] <a href="https://atscaleconference.com/videos/scaling-roce-networks-for-ai-training/">Scaling RoCE Networks for AI Training | At Scale Conferences</a></p><p>[7] <a href="https://blogs.cisco.com/sp/cisco-silicon-one-breaks-the-51-2-tbps-barrier">Cisco Silicon One Breaks the 51.2 Tbps Barrier — Cisco Blogs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9464d587f38" width="1" height="1" alt=""><hr><p><a href="https://blog.enfabrica.net/scaling-to-100k-gpu-ai-clusters-using-flat-2-tier-network-designs-a9464d587f38">Scaling to 100K+ GPU AI Clusters Using Flat 2-tier Network Designs</a> was originally published in <a href="https://blog.enfabrica.net/">enfabrica</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>