Cisco Data Center Networking Blueprint for AI/ML Applications
Cisco
Cisco's design guide for building lossless Ethernet for RoCEv2 AI clusters with ECN and PFC, with non-blocking spine-leaf examples for 128 servers (1024 GPUs at 100G) and a 512-GPU 400G back-end network.
On this page
Overview
The guide opens by stating that AI/ML workloads expect low-latency, lossless networks: learning cycles can take days or weeks, and high latency or packet drops between cluster servers can lengthen a job or make it fail. RoCEv2 is described as the transport. RoCE was introduced in 2010 and works only in the same L2 broadcast domain, while RoCEv2, introduced in 2014, wraps IB transport in Ethernet, IP and UDP headers so it can be routed. It is used for GPUDirect RDMA, memory-to-memory communication between GPUs in the cluster, and needs lossless transport.
In congestion management ECN and PFC complement each other. With ECN the congested node marks the two least significant bits of the IP TOS field; the receiver sends a congestion notification packet (CNP) to the sender, which slows the matching flow. On Nexus 9000, marking uses WRED or AFD; WRED has two per-queue thresholds (minimum and maximum) and a drop-probability percentage. PFC uses per-class pause frames: when the xOFF threshold of the no-drop queue is crossed a PFC frame is sent, and it stops when occupancy falls below xON. In routed networks PFC works with DSCP priorities.
Together ECN and PFC form the cooperation called DCQCN: for minor congestion WRED with ECN suffices, and for microbursts that drive high buffer use PFC acts as a fail-safe. WRED thresholds are therefore kept lower than the PFC threshold. AFD (approximate fair drop) separates elephant flows (high bandwidth) from mice flows (short, low bandwidth) and applies ECN marking only to elephants, in proportion to their bandwidth. For visibility, hardware flow telemetry and Nexus Dashboard Insights are used; for automation, the Fabric Controller.
The design section gives two examples. A shared 100G network for 128 servers (8 GPUs and 2 x 100G each, 256 ports) uses 10 Nexus 93600CD-GX leaves (28 x 100G and 8 x 400G), four 9332D-GX2B spines and 1024 GPUs in total. A 400G back-end network for 512 GPUs uses 16 leaves (32 NICs and 32 uplinks each) and 8 spines, with each leaf connected to each spine by 4 x 400G. In both, switch latency is 1.5 microseconds and the maximum end-to-end latency across leaf and spine is about 4.5 microseconds. The document is based on Cisco products; its choices are not universal fabric requirements.
Key points
- RoCE was introduced in 2010 and works only in one L2 broadcast domain; RoCEv2 (2014) wraps IB transport in Ethernet, IP and UDP headers and is routable.
- RoCEv2 needs lossless transport; ECN and PFC are used together and this cooperation is called DCQCN.
- ECN marks sit in the two least significant bits of the IP TOS field; value 0x11 means congestion experienced and the receiver sends a CNP.
- WRED uses minimum and maximum per-queue thresholds; with drop probability 10, 10% of outgoing packets are marked.
- PFC generates a pause frame at the xOFF threshold of the lossless queue and stops below xON; in routed networks it uses DSCP priorities.
- AFD separates elephant and mice flows and applies ECN marking only to high-bandwidth flows.
- Shared 100G example: 128 servers, 256 x 100G ports, 10 leaves (28 x 100G and 8 x 400G), 4 spines, 1024 GPUs, non-blocking.
- 400G back-end example: 512 GPUs, 16 leaves and 8 spines (4 x 400G leaf to spine); for 1024 GPUs, 32 leaves, 16 spines and 2 x 400G.
- Switch latency is 1.5 microseconds; maximum end-to-end latency across leaf and spine is about 4.5 microseconds.
Using it in design
- Compute the non-blocking two-tier spine-leaf topology first: uplink capacity must equal server-facing port capacity.
- Define a separate lossless class for RoCEv2 traffic; set WRED thresholds below the PFC xOFF threshold so ECN acts first and PFC is the fail-safe.
- Verify ECN and PFC are enabled end to end through QoS on endpoints (NICs) and all switches.
- Dual-home servers to two separate leaves for redundancy and leave free ports for storage and the enterprise network.
- Use telemetry to watch ECN marking and PFC counters and tune thresholds until drops stop; add those counters to acceptance tests.
- When designing a 400G back-end network, recompute leaf and spine counts for your GPU and scale target using the proportions in the table.
Who should read it
Network architects designing Ethernet fabrics for AI and HPC clusters and engineers configuring RoCEv2 congestion management.
Document contents
- Introduction
- RoCEv2 as Transport for AI Clusters
- AI Clusters Require Lossless Networks: ECN, PFC
- How to Manage Congestion Efficiently in AI/ML Cluster Networks: how ECN works, how PFC works, ECN and PFC together, AFD
- How Visibility into Network Behavior Improves Transport and Troubleshooting: Nexus Dashboard Insights
- Network Design to Accommodate the Best Performance of an AI/ML Cluster: shared 100 Gbps network, 400 Gbps back-end network
- Using Nexus Dashboard Fabric Controller to Automate Your AI/ML Network
- Conclusion
Publication details
- Authors
- Cisco
- Publisher
- Cisco
- Year
- 2025
- Document language
- English
- Source type
- Manufacturer
- Access
- Free to read
- Licence
- Copyright retained; citation only: the publisher’s terms apply to the original document
Original licence note
Publisher source opened. No document-specific commercial redistribution permission established; link and original metadata only.
Citation
Cisco (2025). Cisco Data Center Networking Blueprint for AI/ML Applications. Cisco. https://cisco.com/c/en/us/td/docs/dcn/whitepapers/cisco-data-center-networking-blueprint-for-ai-ml-applications.html
All content and rights belong to the respective authors and publishers. SoSo CAD provides only the citation, its own summary and a link to the source, and is not responsible for the sources' content.
