Skip to main content

Dell Enterprise SONiC Quality of Service (QoS)

Dell Enterprise SONiC Quality of Service (QoS) This technical brief describes the basic Dell Enterprise SONiC Quality of Service features and reference configuration using a leaf and spine topology.

Revision history

Revision history

Table 1. Document revision history
Part number Release date Description of changes
H04453 February 2025 Initial release.

Overview

Overview

Quality of Service (QoS) is a critical aspect of modern networking, ensuring that business-critical applications receive the necessary network resources to operate efficiently.

The rapid growth in data traffic and the increasing demand for real-time applications have led to an escalation of network congestion issues. QoS helps to address these challenges by ensuring that network resources are allocated fairly among different types of traffic, thus improving application performance and user experience.

Dell Enterprise SONiC provides a comprehensive set of QoS features, making it an ideal solution for cloud networking environments. Dell Enterprise SONiC is a network operating system (NOS) that is designed for use in enterprise networks. It is based on the open-source Software for Open Networking in the Cloud (SONiC) project and is developed by Dell Technologies. Dell Enterprise SONiC supports a wide range of network protocols, including ECN, and is designed to provide high performance, scalability, and reliability. Additionally, Dell Enterprise SONiC is designed to be easily deployed and managed, making it an ideal choice for enterprise networks of all sizes.

Key business challenges addressed by Dell Enterprise SONiC QoS include:

  • Bandwidth management: Preventing network congestion by controlling the amount of bandwidth allocated to each type of traffic.
  • Priority queuing: Ensuring that time-sensitive or business-critical applications receive the necessary network resources.
  • Congestion avoidance: Preventing network congestion by dynamically adjusting the amount of traffic sent into the network.
  • Traffic shaping: Delaying or discarding low-priority traffic during periods of congestion.
  • Link efficiency: Maximizing the utilization of available network bandwidth resources through techniques such as compression and link fragmentation and interleaving (LFI).

With AI/GenAI applications taking center stage in today’s data center, networking equipment vendors have resumed interest in existing and new QoS networking features such as RDMA over Converged Ethernet (RoCE), Equal Cost Multipath (ECMP), congestion notification, and dynamic load balancing. With this resumed interest, vendors have realized the need to implement feature enhancements to deliver purpose-built solutions around AI/GenAI requirements to their customers.

Disclaimer

The QoS features covered in this whitepaper address different aspects of a QoS configuration where a single QoS feature may be enough to address a specific network performance issue. However, it is not uncommon to implement a combination of QoS features in a typical network deployment.

Audience

The intended audience for this document is a system engineer, system administrator, network architect, or network operator who performs system design or maintains and deploys a converged network infrastructure.

Terminology

The following table provides definitions for some terms used in this document.

Table 2. Terminology
Term Definition
AI Artificial Intelligence
BGP Border Gateway Protocol
CoS Class of Service
CPU Central Processing Unit
DCB Data Center Bridging
DCQCN Data Center Quantized Congestion Notification
Dell Enterprise SONiC Dell Open-Source SONiC implementation
DSCP Differentiated Service Code Point
ECMP Equal Cost Multipath
ECN Explicit Congestion Notification
GbE Gigabit Ethernet
GPU Graphics Processing Unit
LFI Link Fragmentation and Interleaving
PFC Priority Flow Control
RDMA Remote Direct Memory Access
RoCE RDMA over Converged Ethernet
SAI Switch Abstraction Interface
SONiC Software for Open Networking in the Cloud
VLAN Virtual Local Area Network
WFQ Weighted Fair Queuing
WRED Weighted Random Early Detection

Dell Enterprise SONiC QoS Architecture

Dell Enterprise SONiC QoS Architecture

A comprehensive QoS feature set is a basic requirement for any networking operating system.

Dell Enterprise SONiC is a collection of open-source networking software components that enable the deployment and management of networking devices in cloud environments.

SONiC is built on the Switch Abstraction Interface (SAI), a standardized API for network switch devices. This allows SONiC to be deployed on a wide range of networking hardware platforms, providing flexibility and reducing vendor lock-in. SONiC includes a comprehensive set of QoS features from its initial 1.0 and current 4.4.1 release, including:

  1. Classification and marking: Identifying and marking packets based on various parameters such as IP addresses, port numbers, and packet types.
  2. Congestion management: Implementing priority queuing, weighted random early detection (WRED), and other congestion management techniques to prevent network congestion.
  3. Traffic management: Implementing traffic shaping, policing, and queuing techniques to ensure that network resources are allocated fairly among different types of traffic.
  4. Link utilization: Implementing techniques such as compression and Link Fragmentation and Interleaving (LFI) to maximize the utilization of available network resources.

The following figure shows the basic Dell Enterprise SONiC QoS implementation broken into two parts:

  • Ingress
  • Egress
Figure 1. Dell Enterprise SONiC QoS flow
The following diagram shows the basic Dell Enterprise SONiC quality of service architecture showing the ingress and egress building blocks of the implementation.

Ingress QoS flow

The Dell Enterprise SONiC ingress QoS flow consists of five distinct phases.

  1. Ingress packet processing: The ingress packet goes through the regular ingress processing such as Layer 2 or Layer 3 table lookup.
  2. Packet classification: The packet is classified using an access list or Layer 2 through Layer 4 header fields.

    The purpose of this classification is to remark the 802.1p (Layer 2 field) or differentiated service code point (DSCP Layer 3 field) values of the ingress data flow.

  3. Marking the packet: The incoming Layer 2 or Layer 3 Class of Service (CoS) values inside the packet are changed.

    These values are then used during transmission through packet buffering or scheduling at egress.

  4. Rate policing: After the ingress packet has been classified and marked, the packet flow can be policed to a certain bandwidth such as peak and committed information rate.

    Rate policing prevents any packet data flow from consuming the entire switch interlink allowing other data traffic within the same flow to use the same switch interlink.

  5. Buffering and class-based queue: The ingress packet is assigned to a particular priority group, and that group is then assigned to a buffer pool of a specific size.
Note: It is not recommended to change the default shared buffer pool settings. Changing these settings can cause unwanted switching behavior. Customizing the shared buffer pool should be done only with careful planning and understanding of the data traffic characteristics in the network.

Flow-based QoS exemplifies deploying ingress QoS.

Egress QoS flow

Similar to the ingress QoS flow implementation, the egress QoS flow consists of three distinct phases.

  1. Buffering and class-based egress queue: All egress traffic is placed under a particular output queue before it is sent out to the switch port interface.

    Within this phase, two actions take place:

    1. Egress congestion management, also known as weighted fair queuing (WFQ), scheduling.
      Note: Every switch port has 8 transmit queues. Each transmit queue is treated differently. WFQ refers to the treatment implementation of these queues.

    2. Congestion avoidance or weighted random early detection (WRED), which refers to scheduling a packet from an output queue, and detecting congestion based on threshold values respectively.
  2. Egress packet processing: The next hop route and adjacencies route table population. Examples of QoS at this stage could be policy-based routing (PBR).
  3. Egress traffic shaping: Traffic shaping takes place in two different ways:
    1. Using scheduler policy, for example egress queue traffic shaping.
    2. Port shaping.

With a scheduler policy, the egress queues are shaped using a policy. The actual queue scheduling is configured by the user using either strict priority, weighted round robin, or weighted deficit round robin.

Figure 2. Dell Enterprise SONiC – Egress queue shaping
Dell Enterprise SONiC – Egress queue shaping

Once the policy has been configured, it is assigned to an interface.

With port shaping, a scheduler policy is configured and instead of an egress queue being shaped, a physical switch port link speed is shaped using peak information rate (pir) and peak burst size (pbs) parameters.

Figure 3. Dell Enterprise SONiC – Port shaping
Dell Enterprise SONiC – Port shaping

Once the policy has been configured, it is assigned to the respective switch port interface that is being shaped.

Both egress queue and port traffic shaping exemplify egress QoS.

Dell Enterprise SONiC QoS Features

Dell Enterprise SONiC QoS Features

Dell’s Enterprise SONiC QoS features range from simple port shaping to the more complex buffer management, in addition to congestion control.

Note: The QoS features mentioned is not an exhaustive list. Other QoS features such as control plane policing and storm control are not covered as they are not used in the QoS implementation of Figure 20.

Flow-based QoS

Flow-based QoS is an essential tool for managing network traffic in modern networks, ensuring network performance, reliability, and security. By prioritizing and controlling the flow of data packets based on specific criteria, flow-based QoS allows for the efficient allocation of network resources, minimizing the impact of high-bandwidth applications and services on the overall network performance.

These flows are defined by a set of common attributes, such as source and destination IP addresses, source and destination ports, and transport protocol. Each flow is assigned a specific priority level, which determines the amount of network resources allocated to it.

In Dell Enterprise SONiC, flow-based QoS refers to any traffic data flow whether Layer 2 (MAC-based) or Layer 3 (IP-based) that uses classifiers based on modular access list (ACL) and L2 – L4 header fields.

Using these classifiers, different QoS policies are configured and applied on a switch physical interface to perform priority code point (PCP) or DSCP remarking and rate limiting on ingress matching traffic.

Figure 4. Dell Enterprise SONiC – Flow-based QoS
Dell Enterprise SONiC – Flow-based QoS

This approach ensures that high-priority flows receive the necessary resources, while low-priority flows are limited, preventing them from impacting the network's performance.

The two main methods for implementing flow-based QoS are marking and policing. Marking involves adding a priority level mark or tag to data packets. This allows network devices to quickly identify and prioritize high-priority packets. Policing, on the other hand, involves limiting the rate of data packets that can be transmitted, ensuring that low-priority flows do not consume an excessive amount of network resources.

Flow-based QoS workloads

With the increasing demand for high-bandwidth applications and services, such as video streaming and cloud computing, flow-based QoS enables network administrators to maintain network performance and reliability.

Flow-based QoS can be applicable to any workload, especially a critical workload like AI that uses large and bursty file transfers. In a data center, the AI traffic can be configured as a Layer 3 traffic with a specific DSCP value. This value can be used as a classifier, and the AI data traffic rate can be guaranteed through a policy map. See Dell Enterprise SONiC QoS Reference Deployment for further details.

Weighted Random Early Detection

WRED is a member of the Random Early Detection (RED) family, which aims to control network congestion by randomly dropping packets before a queue overflows. This section provides an overview of WRED QoS, its operation, benefits, and applications.

WRED operates by monitoring the average queue length of a router's interface. When the average queue length exceeds a configurable minimum threshold, WRED begins randomly dropping packets. The probability of packet drops increases as the average queue length approaches a configurable maximum threshold.

WRED uses a weighting mechanism to prioritize the dropping of lower-priority packets, ensuring that high-priority packets are less likely to be dropped. This weighting mechanism provides the benefit of a more granular approach to packet dropping than RED. RED randomly drops packets without considering their priority, leading to inefficient use of network resources.

WRED, in contrast, drops lower-priority packets more frequently, allowing higher-priority packets to be transmitted, reducing network congestion, and improving overall network performance. This improved network performance reduces packet loss and minimizes delay.

Dell Enterprise SONiC implements WRED as part of its egress QoS phase. The following figure shows a WRED configuration where a max buffer threshold of 40 KB has been configured. Any incoming traffic below 20KB is not dropped and is guaranteed, anything else above 20KB is randomly dropped, and anything above 40KB is dropped.

Figure 5. Dell Enterprise SONiC WRED
Dell Enterprise SONiC WRED

WRED is particularly useful in networks where there is a mix of traffic types, such as voice, video, and critical workloads (for example, AI). By prioritizing the dropping of lower-priority packets, WRED ensures that high-priority packets are transmitted with minimal delay and packet loss.

WRED is commonly used in networks where congestion is likely to occur, such as in wide area networks (WANs and the Internet. WRED is also used in virtualized environments, such as software-defined networking (SDN) and network function virtualization (NFV), to ensure that virtual machines (VMs) and network functions (NFs) receive the appropriate QoS. As the digital transformation continues, the data center is a recent addition to the list of networks or fabrics where congestion is likely to occur and will therefore benefit from WRED.

Explicit Congestion Notification

Explicit Congestion Notification (ECN) is a QoS mechanism that is used to manage network congestion and improve the performance of networks. ECN is defined in RFC 3168 and is used in conjunction with the TCP to provide end-to-end congestion control.

ECN works by setting a mark in the packet header to indicate that a link is congested, allowing the sender to reduce its transmission rate before packet loss occurs. This can improve the overall performance of the network by reducing the amount of time that the network is congested and the amount of packet loss that occurs.

One of the main benefits of ECN is that it allows for more efficient use of network resources. By reducing the amount of packet loss that occurs, ECN can help to ensure that the available bandwidth is being used to its fullest extent. This can lead to improved network performance and a better user experience.

ECN is not without limits. One of the main challenges is ensuring that ECN is implemented consistently across all network devices. For ECN to work effectively, it is essential that all devices in the network, including routers, switches, and end hosts, support ECN and implement it correctly.

The following figure shows ECN implemented end-to-end from the end-host to the networking device:

  1. The congestion is taking place on SW-3. SW-3 informs the sender of the congestion while setting the ECN bit on each packet as it is transmitted towards SW-2.
  2. SW-2 sends the data with the ECN bit set to the receiver. The receiver transmits an acknowledgement with the ECN bit set to the sender.
  3. The sender receives the acknowledgement and either slows down or completely stops its transmission rate, depending on how a vendor has implemented their ECN feature.
Figure 6. Dell Enterprise SONiC ECN
Dell Enterprise SONiC ECN

One of the key benefits of Dell Enterprise SONiC is its support for ECN. By implementing ECN in the NOS, Dell Enterprise SONiC can help to improve the performance of the network by reducing packet loss and improving the efficiency of network resource utilization.

Priority Flow Control

Priority Flow Control (PFC) is a key QoS feature that provides lossless forwarding of traffic in data centers, ensuring the timely delivery of critical data packets.

PFC operates at the Data Center Bridging (DCB) layer of the network stack and enables efficient traffic management by classifying and prioritizing packets based on their importance.

In a converged data-center network, PFC can ensure that no frames are lost due to congestion. PFC uses the 802.1p priority in the Ethernet header to pause priority-specific traffic sent from a transmitting device. The 802.1p priority is also known as the CoS or dot1p priority value.

The following figure shows three different traffic classes. Each traffic class has been assigned a particular 802.1p value, and each value has been mapped to a specific egress queue.

Each egress queue is handled differently in terms of priority. In Dell Enterprise SONiC, queues 3 and 4 are considered lossless queues; the data packets in these queues are transmitted out first.

Figure 7. Dell Enterprise SONiC Priority flow control
Dell Enterprise SONiC Priority flow control

When PFC detects congestion in a dot1p or DSCP traffic class, it sends a pause frame for the priority traffic to the transmitting device. In this way, PFC ensures that the switch does not drop specified priority traffic.

PFC handles traffic congestion by pausing prioritized dot1p or DSCP traffic on an ingress interface while transmitting other dot1p or DSCP traffic as best-effort, also known as lossy data transmission.

PFC enhances the existing 802.3x pause capability to enable flow control based on 802.1p priorities. Instead of stopping all traffic on a link, as performed by the 802.3x pause mechanism, PFC pauses traffic for 802.1p traffic types.

For example, when LAN traffic congestion occurs on an interface, PFC ensures lossless flows of storage and server traffic while allowing for lossy best-effort transmission of other traffic.

Dell Enterprise SONiC is an open-source network operating system designed to address these challenges by providing a scalable, flexible, and highly available networking solution for data center environments. Dell Enterprise SONiC supports PFC as part of its DCB feature set, enabling data centers to implement lossless forwarding and manage traffic more effectively.

SONiC's modular architecture allows for the deployment of PFC on a variety of network devices, including switches and routers, ensuring compatibility with existing infrastructure.

Additionally, SONiC simplifies PFC configuration and management through its centralized management system, reducing the complexity and overhead associated with implementing PFC in large-scale data center environments.

SONiC's support for advanced packet scheduling algorithms, such as Weighted Round Robin (WRR) and Deficit Round Robin (DRR), can help mitigate these issues by providing efficient and fair packet scheduling for PFC-enabled traffic.

Dell Enterprise SONiC provides a scalable and flexible solution for implementing PFC, simplifying configuration and management while ensuring compatibility with existing network infrastructure.

However, implementing PFC in SONiC-based networks may still require careful consideration of network topology and traffic patterns to avoid potential performance issues related to misconfiguration of specific traffic class and egress queue maps.

PFC is a powerful QoS feature that offers significant benefits for data center environments, including improved application performance, reduced latency, and enhanced network efficiency.

Buffer management

Buffer management is a crucial aspect of network systems that ensures efficient data transmission between sender and receiver. The primary goal of buffer management is to minimize data loss and reduce delay during data transmission.

Buffer management involves the allocation of memory space for temporary data storage. In network systems, buffers are used to store data packets that are being transmitted between devices. Proper buffer management ensures that these packets are stored and forwarded efficiently, minimizing packet loss and delay.

There are several factors to consider when designing buffer management systems, including buffer size, buffer allocation, and packet scheduling. Buffer size refers to the amount of memory space allocated for packet storage. A larger buffer size can accommodate more packets, reducing the likelihood of packet loss.

However, a larger buffer size also increases delay, as packets must wait longer to be transmitted. Conversely, a smaller buffer size reduces delay but increases the likelihood of packet loss. Buffer allocation refers to the distribution of buffer space among different data flows.

In a network system with multiple data flows, it is essential to allocate buffer space fairly and efficiently. Packet scheduling algorithms are used to determine the order in which packets are transmitted from the buffer. These algorithms consider various factors, such as packet priority, packet size, and packet arrival time.

On a Dell Enterprise SONiC switch, the memory buffer is divided into an ingress pool and an egress buffer pool, each with fixed amounts of allocated memory. An incoming packet must be admitted to both the ingress and egress buffer pools to be transmitted over switch ports.

The following figure shows the entire system memory management breakdown and individual blocks.

Figure 8. Dell Enterprise SONiC buffer memory
Dell Enterprise SONiC buffer memory

Both ingress and egress buffers consist of three separate main blocks:

  1. Minimum guaranteed buffers – This block refers to the minimum buffer size space that can be configured for unicast, multicast, and different priority groups (0-7).
  2. Shared buffers – This block refers to the overall system shared pool buffer. The shared buffer is a fixed size depending on the Dell PowerSwitch model. This shared buffer plays a critical role with pause frames by allocating specific size to pause frames transmission.
  3. Headroom – The final block is the allocated buffer space for lossless priority groups such as PG3 and PG4. When a pause frame generation scenario takes place within the fabric due to congestion, these priority groups can be configured with specific sizes to ensure priority treatment.

RDMA over Converged Ethernet

Prior to RoCE, the default standard or solution for any high-performance computing (HPC) or HPC-like environment was InfiniBand (IB). Ethernet technology has evolved, and the gap that existed between an IB and Ethernet solution to address the requirements of an HPC/HPC-like environment has narrowed to a point where Ethernet can now be considered a viable alternative to what IB offers. With the inception of the RDMA Consortium and the advances in Ethernet, the resulting child is RoCE.

As shown in the following figure, the data interconnect flow is as follows:

  1. The CPU writes and reads data from system memory.
    1. Data starts at the application layer and is buffered.
    2. Data passes to the socket layer and is buffered.
    3. Goes to the transport layer and is buffered.
    4. Data moves onto the NIC driver.
  2. Data is sent to the NIC and out to the wire.
Figure 9. Data path without RDMA feature
Data path without RDMA feature

The steps mentioned above have the disadvantages of throughput, and efficiency (latency) especially when dealing with HPC environments or similar applications such as AI.

Without RDMA, multiple memory copies take place. These copies create a bottleneck in HPC (High Performance Computing) or AI/GenAI environments because the memory speeds have not kept up with the current increased rate of CPUs, GPUs, and interconnects.

Figure 10. Generic RDMA layers representation
Generic RDMA layers representation

To address these issues, the RDMA Consortium was created. With this consortium, RDMA technology enables a more efficient way of data transfer by removing the basic requirements of copies, operating system, and CPU involvement.

The RDMA Consortium reduces latency and increases throughput by allowing one compute node to directly place data in another node’s memory with minimal demands on memory bus bandwidth and CPU processing overhead (see the previous figure).

Figure 11. Data path with RDMA feature
Data path with RDMA feature

As a result, Ethernet evolved from the basic 802.1 to 802.1Qx. RoCE and 802.1Qx work together and are essential to each other.

This evolution provides the necessary tools to address RDMA and other high-performance, low latency data traffic transport requirements, as shown in the following table.

Table 3. Ethernet Evolution
Ethernet 802.1 802.1Qx
Lossless No Yes, 802.1Qbb (PFC)
Traffic Class Types No Yes, 802.1Qaz (ETS)
Congestion Management No Yes, 802.1Qau (QCN)
DCB exchange protocol No No
Cut-Thru Switching N/A N/A
Data Center Quantized Congestion Notification No Yes, 802.1Qau

v1.0, iWARP packets are routable. It is not limited to just Ethernet. It is backed by the IETF standards body, while RoCE has the Infiniband Trade Association’s support. Like RoCE, iWARP is also a creation of the RDMA Consortium.

A quick comparison between iWARP and RoCE is shown in table 2.

Table 4. iWARP and RoCE key comparisons
iWARP RoCE
Networking dependency None DCB
Scalability Layer 2 and Layer 3 support Layer 2 (v1), Layer 3 (v2)
Latency Higher (see link below) Single digits
Lossless Yes, with DCB enabled

For details, see: RoCE vs. iWARP Competitive Analysis.

DCB

802.1Qbb (PFC)

802.1Qbb provides a link level flow control mechanism that can be controlled independently using the 802.1p CoS, with values ranging from 0-7. The goal of this enhancement is to ensure no packet loss due to congestion in the wire in a DCB enabled network. This enhancement delivers QoS over Ethernet

802.1Qaz (ETS)

802.1Qaz continues in the spirit of delivering solid QoS by guaranteeing a percentage of the link bandwidth to a specific traffic class. For example, voice, video, and data can be assigned a different amount of guaranteed bandwidth.

802.1Qau (QCN)

802.1Qau provides an end-to-end congestion mechanism control for upper layer protocols that otherwise do not have a native built-in congestion mechanism. 802.1Qau together with Qbb and Qaz make Ethernet a “lossless” technology.

DCBx – DCB exchange protocol

DCBx is an extension of the traditional LLDP protocol, where LLDP is used to discover neighboring devices and their capabilities. DCBx is an exchange configuration protocol between DCB-compliant networking devices, where a source and client relationship are used to synchronize the DCB parameters, such as PFC, ETS, and QCN.

The traditional configuration has the source device transmitting the DCB parameters to the client device, and the client device in a “willing” mode to listen and accept the parameters.

Note: DCBX deployment is optional and is not currently supported with Dell Enterprise SONiC.

There are two RoCE versions (v1 and v2).

Figure 12. RoCE v1 and v2 packet format
The following figure shows RoCE's v1 and v2 packet format

Dell Enterprise SONiC RoCEv1

The first version of RoCE, version 1, was defined as a link layer protocol allowing two hosts in the same broadcast domain (VLAN) to communicate. RoCEv1 is a Layer 2 deployment model only.

This version of the protocol uses ethertype 0x8915, which means that the frame length is limited by the standard Ethernet protocol definition: 1500 bytes for a standard Ethernet frame and 9000 bytes for an Ethernet jumbo frame.

Dell Enterprise SONiC 4.1.0 introduced support for RoCE v1 and v2.

Figure 13. RoCEv1 – Layer 2 only
RoCEv1 – Layer 2 only

Dell Enterprise SONiC RoCEv2

Version 2 is referred as Routable RoCE (RRoCE). Version 2 overcomes the limitation of version 1 being bounded to a single broadcast domain (VLAN). Version 2 supports IPv4 and IPv6, allowing for the delivery of RoCE across different subnets and thus bringing scalability into the picture.

RoCE continues to be enhanced, and with the ubiquitousness of Ethernet and the constant speed improvements and cost reductions per port, it is poised to be a strong alternative to InfiniBand. Certainly, there will always be cases where IB is more relevant than RoCE or iWARP. However, for the most part, the requirements inherent in HPC or HPC-like environments can be met by the current Ethernet standards enhancements.

The following figure shows an RoCEv2 deployment model across a Layer 3 connection.

Figure 14. RoCEv2 (RRoCE) – RoCE across Layer 3
RoCEv2 (RRoCE) – RoCE across Layer 3

GPU data communication and RoCE

RDMA plays a critical role when GPU to GPU data communication takes place. In fact, without RDMA, GPU communication adds another processing step in the overall end-to-end communication.

The following figure shows the five different steps required in a GPU-to-GPU communication.

  1. The GPU polls from its local memory.
  2. The request travels through the PCIE to the local CPU.
  3. The CPU polls from its memory; the operating system is involved.
  4. Memory is written into the CPU.
  5. Data is sent out via PCIE to the NIC and out of the host.
Figure 15. Node-to-node communication without RDMA
The following figure shows inter-GPU data flow without RDMA feature

GPU-to-GPU communication as it relates to high performance applications such as AI is clearly affected by the increase in data communication latency without RDMA.

On the other hand, if RDMA is enabled end-to-end, there are only two steps required:

  1. The GPU accesses its local memory.
  2. Data is sent out the NIC.
Figure 16. Node-to-node GPU communication with RDMA
The following figure shows inter-GPU data flow with RDMA feature

RoCEv2 ECMP enhanced hashing

RoCE is an efficient data transmission mechanism and has many advantages, as explained in the previous chapter. However, like any networking feature, it has some limitations. For example, when RoCE traffic runs on Equal cost multi-path (ECMP) links, it is not possible to achieve proper load-sharing across all ECMP links without an enhancement.

ECMP provides Layer 3 traffic forwarding across multiple links. All available paths to a destination are load-shared to prevent any one path or link from being over- or under-utilized.

Figure 17. ECMP
The following figure shows a generic network topology with ECMP feature

ECMP per-flow load sharing ensures that packets from the same source-destination pair follow the same next-hop path, preventing packet loss and reordering. Different source-destination pairs will take different paths.

ECMP symmetric hashing ensures that bi-directional flows (both sending and receiving) between a source and destination address, or specified source and destination ports, follow the same path over the same physical port on a switch. This can be configured for both IPv4 and IPv6 flows.

If identical load-share parameters are used, ECMP hash polarization sometimes occurs when traffic to a destination, which is load-shared across multiple paths, is not evenly distributed on successive devices.

If multiple data flows converge on the same switch ports, ECMP hash polarization can lead to suboptimal use of multiple paths and network congestion. Dell Enterprise SONiC mitigates ECMP hash polarization by generating a unique hash seed and offset for each switch from the system MAC address. These hash parameters can be further configured to improve traffic distribution.

With RoCE flows, the default load-share hashing parameters (source and destination IP, IP protocol, and source and destination Layer 4 port) of ECMP can result in a skewed traffic distribution among the available paths.

To avoid this skewed traffic distribution, the ECMP must be enhanced, such as by adding RoCE’s queue pair field in a RoCE flow as part of the additional load-share hashing parameters used to create an equal traffic distribution across all ECMP links.

The “remote” aspect of RDMA is implemented using two queues: a completion queue, and a send and receive queue pair between the sender and receiver host. The send and receive queue pair is responsible for scheduling the work or transmission of the data.

The following diagram shows the queue pair creation between a sender and receiver as data is written remotely directly into the receiver’s host memory system.

Figure 18. RoCE queue pair mechanism
The following figure shows RoCE queue pair mechanism

This RoCE ECMP enhancement allows for better traffic load distribution of RoCE flows because the queue pairs are considered in addition to the regular load-share parameters as they traverse each of the ECMP links in the fabric.

Adaptive routing and switching

The implementation enhancements of QoS is never-ending, primarily because of the constant evolution of the workloads in the fabric.

In the past, time-sensitive and lossless data traffic workloads such as voice and video played a major role in QoS’ s implementation and deployment, but this did not last long. When HPC and machine learning (ML) came into the picture, the QoS feature set for voice and video could not meet these new workloads’ requirements.

The introduction of HPC and ML required a new set of QoS enhancements, and now as AI workloads become the focus inside the data center, the traditional QoS features such as PFC, DCB, RoCE, ECMP and others are not sufficient to ensure AI workload performance within the fabric.

Traditional networks leveraging PFC, DCB, RoCE, ECMP and related features have improved with every new networking operating system; however, there is still room for improvement in hash-based traffic load balancing.

The routing protocols running in today’s networks compute reachability of a given destination using all possible available paths, with differing link costs associated. The decision to use one of the paths out of all available paths is done via a hash algorithm using different values from the data packet fields.

In addition to the path selection, a routing protocol’s control plane reaction is key as it needs to react quickly to make decisions to changing traffic patterns in the network. The slow reaction of the routing protocols in today’s networks have led to the following shortcomings:

  • Size and duration of flows is not considered when performing a path selection.
  • Once a traffic link path has been selected, there is no real time assessment of the traffic link.
  • Traffic polarization due to hashing, where a data traffic takes a particular path even if the path is congested.
  • There is no concept of local link quality in the path selection.

The overall result is a static approach to a dynamic environment resulting in potentially un-even traffic load distribution across the fabric.

The adaptive routing and switching (ARS) feature was created to improve the hash-based load balancing mechanism by redistributing traffic based on traffic link utilization and to address the shortcomings with the following improvements:

  • Accounting for local link quality for path selection.
  • Dynamic path assignment and reassignment without the use of the control plane.
  • Minimize traffic drop when a link flaps.
  • Use a concept of flow-let for dynamic path assignment and reassignment.

The following figure shows the overall ARS data flow implementation.

Figure 19. Dell Enterprise SONiC ARS data flow
The following diagram shows the packet flow when ARS has been enabled on the networking device.

This implementation can be described in four general steps:

  1. At ingress, all microflows are hashed using the default 5 tuple (source and destination IP address, source and destination Layer 4 port number, and protocol type).
  2. The microflows are grouped into a flowlet separated by idle time.
  3. ECMP creates an egress table (macroflow) consisting of all the microflows and their respective egress interfaces or ECMP link members. Within the macroflow table, microflows can be reassigned to an egress interface if the microflow(s) are inactive.
  4. The microflows are assigned to their final egress interface. Assessment of the macroflow table is constant.

ARS implementation is divided into three parts or levels:

  1. Switch level binding: This level is the system-wide enablement of the ARS feature.
  2. Port level binding: This level refers to the enablement of the ARS feature on the respective egress switch interface.
  3. Next hop group (NHG) level binding. This level refers to the enablement of the ARS feature at the route table in the ECMP group to perform the load rebalance.

For detailed ARS and other QoS feature user configuration information, check the Dell Enterprise SONiC user guide.

Note: To access the Dell Enterprise SONiC user, guide a Dell Technologies user account is required.

Dell Enterprise SONiC QoS Reference Deployment

Dell Enterprise SONiC QoS Reference Deployment

The following figure shows a leaf and spine deployment with the following characteristics:

  • Dual homed links from leaf to spine.
  • The fabric is standard Layer 3.
  • ECMP is configured between leaf and spine, with two separate ECMP links.
  • Congestion on Eth1/4 on Leaf_1 due to traffic polarization (all of the host’s traffic is using Eth1/4).
  • Congestion on Eth1/5 on Leaf_3.
  • Host_Blue is an AI workload with priority group 4, belonging to queue 4.
  • Host_Orange is a generic workload with priority group 0, belonging queue 0.
  • Host_Green is a generic workload with priority 1, belonging queue 1.
Figure 20. Leaf and spine fabric with congestion
Leaf and spine fabric with congestion

The following QoS features will be configured to address congestion prevention and priority flow treatment of a critical workload (AI) to ensure lossless performance:

  • Flow-based QoS
  • Congestion management (WRED and ECN)
  • QoS maps
  • PFC
  • ARS

The QoS features being implemented do not necessarily depend on each other. For example, WRED and ECN do not need flow-based QoS.

Note: Although RoCE is part of the Dell Enterprise SONiC QoS feature set, it is not covered in this reference deployment. RoCE deployment is outside the scope of this whitepaper.

Flow-based QoS configuration

Leaf_1 configuration

# Create an IP access list matching orange and green’s IP subnets.

Leaf_1# config

Leaf_1(config)# ip access-list L3_ACL_0

Leaf_1(config-ipv4-acl)# seq 1 permit ip host 3.3.3.1 host 3.3.3.2

Leaf_1(config-ipv4-acl)# seq 2 permit ip host 2.2.2.1 host 2.2.2.2

Leaf_1(config-ipv4-acl)# exit

Leaf_1#

# Create a class map for IPv4 traffic

Leaf_1# config

Leaf_1(config)# class-map class0 match-type acl

Leaf_1(config-class-map)# match access-group ip L3_ACL_0

Leaf_1(config-class-map)# exit

Leaf_1#

# Add the class map matching the subnets and a police action

Leaf_1# config

Leaf_1(config)# policy-map policy0 type qos

Leaf_1(config-policy-map)# class class0 priority 100

Leaf_1(config-policy-map)# police cir 50gbps cbs 5GB pir 50gbps pbs 5GB

Leaf_1(config-policy-map)# exit

Leaf_1#

The committed burst size (cbs), peak information rate (pir) and peak burst size (pbs) configurations are optional.

# Apply the policy map on Eth1/3 and Eth1/2. These links connect to the respective hosts or subnets. Configure the policy map as “ingress”.

Leaf_1# config

Leaf_1(config)# int range eth1/2-1/3

Leaf_1(config-if-range-eth**)# service-policy type qos in policy0

Leaf_1(config-if-range-eth**)# exit

Leaf_1#

Spine_1 configuration

Spine_1 does not require any QoS configuration. The QoS configurations on Leaf_1 have minimized the chances of a congestion taking place on the egress interfaces (Eth1/4-1/5 on Leaf_1).

Leaf_3 configuration

# Create an IP access list matching orange and green’s IP subnets.

Leaf_3# config

Leaf_3(config)# ip access-list L3_ACL_0

Leaf_3(config-ipv4-acl)# seq 1 permit ip host 3.3.3.1 host 3.3.3.2

Leaf_3(config-ipv4-acl)# seq 2 permit ip host 2.2.2.1 host 2.2.2.2

Leaf_3(config-ipv4-acl)# exit

Leaf_3#

# Create a class map for IPv4 traffic

Leaf_3# config

Leaf_3(config)# class-map class0 match-type acl

Leaf_3(config-class-map)# match access-group ip L3_ACL_0

Leaf_3(config-class-map)# exit

Leaf_3#

# Add the class map matching the subnets and a police action

Leaf_3# config

Leaf_3(config)# policy-map policy0 type qos

Leaf_3(config-policy-map)# class class0 priority 100

Leaf_3(config-policy-map)# police cir 50gbps cbs 5GB pir 50gbps pbs 5GB

Leaf_3(config-policy-map)# exit

Leaf_3#

The committed burst size (cbs), pir, and pbs are all optional.

# Apply the policy map on Eth1/3 and Eth1/2. These links connect to the respective hosts or subnets. Configure the policy map as “ingress”.

Leaf_3# config

Leaf_3(config)# int range eth1/2-1/3

Leaf_3(config-if-range-eth**)# service-policy type qos in policy0

Leaf_3(config-if-range-eth**)# exit

Leaf_3#

Troubleshooting show command

Run the following command:
Show policy-map
<policy_map_name>

Congestion management

To prevent network congestion, the QoS features WRED and ECN can be enabled.

Unlike the previous flow-based QoS configuration where only Leaf_1 and Leaf_3 needed the configurations; congestion management deployments require the configurations be applied to all the networking devices involved in the data path.

Referring to image22=GUID-7CF226B8-0032-4876-B5D4-DB65B4178566=1=en-us=Low.html, congestion is taking place on Leaf_1 egress interface. To address this, WRED and ECN can be deployed on all the egress interfaces of Leaf_1, Spine_1, Spine_2, and Leaf_3.

Leaf_1 configuration

# Create the WRED configurations to drop orange and green host traffic on egress to prevent buffering resources from being overly consumed. The WRED policy configuration will set the minimum buffer space threshold to 5MB, and the maximum threshold to 12MB.

If the minimum egress buffer space threshold is consumed, random packets are dropped. If the maximum egress buffer is consumed, all incoming packets are dropped until the specified traffic (orange, green) consumes less than12MB of the buffer space.

Leaf_1# config

Leaf_1(config)# qos wred-policy wred-policy-leaf-1

Leaf_1(config-wred-wred-policy-leaf-1)# green minimum-threshold 5000 maximum-threshold 12480 drop-probability 100

# Enable ECN on the green traffic.

Leaf_1(config-wred-wred-policy-leaf-1)# ecn green

Leaf_1(config-wred-wred-policy-leaf-1)# end

Leaf_1#

# Apply the WRED policy (wed-policy-leaf-1) to Leaf_1 Eth1/4 and Eth1/5 egress interfaces.

Leaf_1# config

Leaf_1(config)# int range eth1/4-1/5

Leaf_1(config-if-range-eth**)# queue 0 wred-policy wred-policy-leaf-1

Leaf_1(config-if-range-eth**)# queue 1 wred-policy wred-policy-leaf-1

Leaf_1(config-if-range-eth**)# end

Leaf_1#

Spine_1 configuration

The same WRED and ECN configurations are implemented on the spines and leaf_3.

Spine_1# config

Spine_1(config)# qos wred-policy wred-policy-leaf-1

Spine_1(config-wred-wred-policy-leaf-1)# green minimum-threshold 5000 maximum-threshold 12480 drop-probability 100

# Enable ECN on the green traffic.

Spine_1(config-wred-wred-policy-leaf-1)# ecn green

Spine_1(config-wred-wred-policy-leaf-1)# end

Spine_1#

# Apply the WRED policy (wed-policy-leaf-1) to Spine_1 Eth1/1 and Eth1/2 egress interfaces.

Spine_1# config

Spine_1(config)# int range eth1/1-1/2

Spine_1(config-if-range-eth**)# queue 0 wred-policy wred-policy-leaf-1

Spine_1(config-if-range-eth**)# queue 1 wred-policy wred-policy-leaf-1

Spine_1(config-if-range-eth**)# end

Spine_1#

Spine_2 configuration

Spine_2# config

Spine_2(config)# qos wred-policy wred-policy-leaf-1

Spine_2(config-wred-wred-policy-leaf-1)# green minimum-threshold 5000 maximum-threshold 12480 drop-probability 100

# Enable ECN on the green traffic.

Spine_2(config-wred-wred-policy-leaf-1)# ecn green

Spine_2(config-wred-wred-policy-leaf-1)# end

Spine_2#

# Apply the WRED policy (wed-policy-leaf-1) to Spine_2 Eth1/1 and Eth1/2 egress interfaces.

Spine_2# config

Spine_2(config)# int range eth1/1-1/2

Spine_2(config-if-range-eth**)# queue 0 wred-policy wred-policy-leaf-1

Spine_2(config-if-range-eth**)# queue 1 wred-policy wred-policy-leaf-1

Spine_2(config-if-range-eth**)# end

Spine_2#

Leaf_3

Leaf_3# config

Leaf_3(config)# qos wred-policy wred-policy-leaf-1

Leaf_3(config-wred-wred-policy-leaf-1)# green minimum-threshold 5000 maximum-threshold 12480 drop-probability 100

# Enable ECN on the green traffic.

Leaf_3(config-wred-wred-policy-leaf-1)# ecn green

Leaf_3(config-wred-wred-policy-leaf-1)# end

Leaf_3#

# Apply the WRED policy to Leaf_1 Eth1/4 and Eth1/5 egress interfaces.

Leaf_3# config

Leaf_3(config)# int range eth1/4-1/5

Leaf_3(config-if-range-eth**)# queue 0 wred-policy wred-policy-leaf-1

Leaf_3(config-if-range-eth**)# queue 1 wred-policy wred-policy-leaf-1

Leaf_3(config-if-range-eth**)# end

Leaf_3#

Show commands

Run the following command:
Show qos
wred-policy

QoS maps

Part of a QoS deployment includes classification of the interested traffic to be either policed or classified as a “priority” data traffic. After this classification, a specific action can be performed.

The following QoS map classifies the data traffic from Host_Blue as a high priority data traffic at ingress on Leaf_1 and Leaf_3.

Leaf_1 configuration

# Create a QoS map to classify all ingress traffic from “Host_Blue” as 4 for both dot1p and traffic class.

Leaf_1# config

Leaf_1(config)# qos map dot1p-tc Host_Blue_Traffic

Leaf_1(config-dot1p-tc-map-Host_Blue_Traffic)# dot1p 4 traffic-class 4

Leaf_1(config-dot1p-tc-map-Host_Blue_Traffic)# end

Leaf_1#

# Apply the qos-map to interface Eth1/1 on Leaf_1.

Leaf_1# config

Leaf_1(config)# int eth1/1

Leaf_1(config-if-Eth1/1)# qos-map dot1p-tc Host_Blue_Traffic

Leaf_1(config-if-Eth1/1)# end

Leaf_1#

Leaf_3 configuration

# Create a QoS map to classify all ingress traffic from “Host_Blue” as 4 for both dot1p and traffic class.

Leaf_3# config

Leaf_3(config)# qos map dot1p-tc Host_Blue_Traffic

Leaf_3(config-dot1p-tc-map-Host_Blue_Traffic)# dot1p 4 traffic-class 4

Leaf_3(config-dot1p-tc-map-Host_Blue_Traffic)# end

Leaf_3#

# Apply the qos-map to interface Eth1/1 on Leaf_3.

Leaf_3# config

Leaf_3(config)# int eth1/1

Leaf_3(config-if-Eth1/1)# qos-map dot1p-tc Host_Blue_Traffic

Leaf_3(config-if-Eth1/1)# end

Leaf_3#

Priority flow control

The QoS map helps to classify the ingress traffic, but it does not tell the networking device how to treat it. With PFC, the Host_Blue traffic will be classified and treated as high priority traffic, and it will be ensured despite congestion in the fabric.

The previously configured QoS map has assigned Host_Blue’s traffic with 802.1p of 4 and placed it in queue 4.

The PFC configuration is applied to all the networking devices.

Leaf_1 configuration

# Enable the pre-configured switch specific QoS buffer settings that PFC uses.

Leaf_1# config

Leaf_1(config)# buffer init lossless

Leaf_1(config)# end

Leaf_1#

# Using the previous QoS map (Host_Blue_Traffic) assign traffic class 4 to queue 4. This directs all incoming traffic from Host_Blue to egress queue 4. Each queue has a specific buffer size.

Leaf_1# config

Leaf_1(config)# qos map tc-queue Host_Blue_Traffic

Leaf_1(config-qos-map)# traffic-class 4 queue 4

Leaf_1(config-qos-map)# end

Leaf_1#

# Assign the traffic class 4 to priority group 4.

Leaf_1# config

Leaf_1(config)# qos map tc-pg Host_Blue_Traffic_PG

Leaf_1(config-qos-map)# traffic-class 4 priority-group 4

Leaf_1(config-qos-map)# end

Leaf_1#

# Create a respective QoS map enabling PFC on queue 4.

Leaf_1# config

Leaf_1(config)# qos map pfc-priority-queue Host_Blue_PFC_queue

Leaf_1(config-qos-map)# pfc-priority 4 queue 4

Leaf_1(config-qos-map)# end

Leaf_1#

# Assign the PFC configuration on Eth1/1 and enable PFC on the respective queue (4).

Leaf_1# config

Leaf_1(config)# int eth1/1

Leaf_1(config-if-Eth1/1)# qos-map dot1p-tc Host_Blue_Traffic

Leaf_1(config-if-Eth1/1)# qos-map pfc-priority-queue Host_Blue_PFC_queue

Leaf_1(config-if-Eth1/1)# qos-map tc-queue Host_Blue_Traffic

Leaf_1(config-if-Eth1/1)# qos-map tc-pg Host_Blue_Traffic_PG

Leaf_1(config-if-Eth1/1)# priority-flow-control priority 4

Leaf_1(config-if-Eth1/1)# end

Leaf_1#

Spine_1 configuration

# Enable the pre-configured switch specific QoS buffer settings that PFC uses.

Spine_1# config

Spine_1(config)# buffer init lossless

Spine_1(config)# end

Spine_1#

# Incoming traffic on Eth1/1 and 1/2 is mapped to traffic class 4 and queue 4.

Spine_1# config

Spine_1(config)# qos map Host_Blue_Traffic

Spine_1(config-qos-map)# traffic-class 4 queue 4

Spine_1(config-qos-map)# end

Spine_1#

# Assign the traffic class 4 to priority group 4.

Spine_1# config

Spine_1(config)# qos tc-pg Host_Blue_Traffic_PG

Spine_1(config-qos-map)# traffic-class 4 priority-group 4

Spine_1(config-qos-map)# end

Spine_1#

# Create a respective QoS map enabling PFC on queue 4.

Spine_1# config

Spine_1(config)# qos map pfc-priority-queue Host_Blue_PFC_queue

Spine_1(config-qos-map)# pfc-priority 4 queue 4

Spine_1(config-qos-map)# end

Spine_1#

# Assign the PFC configuration on Eth1/1 and enable PFC on the respective queue (4).

Spine_1# config

Spine_1(config)# int range eth1/1-1/2

Spine_1(config-if-range-eth**)# qos-map dot1p-tc Host_Blue_Traffic

Spine_1(config-if-range-eth**)# qos-map tc-queue Host_Blue_Traffic

Spine_1(config-if-range-eth**)# qos-map tc-pg Host_Blue_Traffic_PG

Spine_1(config-if-range-eth**)# qos-map pfc-priority-queue Host_Blue_PFC_queue

Spine_1(config-if-range-eth**)# priority-flow-control priority 4

Spine_1(config-if-range-eth**)# end

Spine_1#

Spine_2 configuration

# Enable the pre-configured switch specific QoS buffer settings that PFC uses.

Spine_2# config

Spine_2(config)# buffer init lossless

Spine_2(config)# end

Spine_2#

# Map incoming traffic on Eth1/1 and 1/2 to traffic class 4 and queue 4.

Spine_2# config

Spine_2(config)# qos map Host_Blue_Traffic

Spine_2(config-qos-map)# traffic-class 4 queue 4

Spine_2(config-qos-map)# end

Spine_2#

# Assign the traffic class 4 to priority group 4.

Spine_2# config

Spine_2(config)# qos tc-pg Host_Blue_Traffic_PG

Spine_2(config-qos-map)# traffic-class 4 priority-group 4

Spine_2(config-qos-map)# end

Spine_2#

# Create a respective QoS map enabling PFC on queue 4.

Spine_2# config

Spine_2(config)# qos map pfc-priority-queue Host_Blue_PFC_queue

Spine_2(config-qos-map)# pfc-priority 4 queue 4

Spine_2(config-qos-map)# end

Spine_2#

# Assign the PFC configuration on Eth1/1 and enable PFC on the respective queue (4).

Spine_2# config

Spine_2(config)# int range eth1/1-1/2

Spine_2(config-if-range-eth**)# qos-map dot1p-tc Host_Blue_Traffic

Spine_2(config-if-range-eth**)# qos-map tc-queue Host_Blue_Traffic

Spine_2(config-if-range-eth**)# qos-map tc-pg Host_Blue_Traffic

Spine_2(config-if-range-eth**)# qos-map pfc-priority-queue Host_Blue_PFC_queue

Spine_2(config-if-range-eth**)# priority-flow-control priority 4

Spine_2(config-if-range-eth**)# end

Spine_2#

Leaf_3 configuration

# Enable the pre-configured switch specific QoS buffer settings that PFC uses.

Leaf_3# config

Leaf_3(config)# buffer init lossless

Leaf_3(config)# end

Leaf_3#

# Using the previous QoS map (Host_Blue_Traffic), assign traffic class 4 to queue 4. This directs all incoming traffic from Host_Blue to egress queue 4. Each queue has a specific buffer size.

Leaf_3# config

Leaf_3(config)# qos map Host_Blue_Traffic

Leaf_3(config-qos-map)# traffic-class 4 queue 4

Leaf_3(config-qos-map)# end

Leaf_3#

# Assign the traffic class 4 to priority group 4.

Leaf_3# config

Leaf_3(config)# qos tc-pg Host_Blue_Traffic_PG

Leaf_3(config-qos-map)# traffic-class 4 priority-group 4

Leaf_3(config-qos-map)# end

Leaf_3#

# Create a respective QoS map enabling PFC on queue 4.

Leaf_3# config

Leaf_3(config)# qos map pfc-priority-queue Host_Blue_PFC_queue

Leaf_3(config-qos-map)# pfc-priority 4 queue 4

Leaf_3(config-qos-map)# end

Leaf_3#

# Assign the PFC configuration on Eth1/1 and enable PFC on the respective queue (4).

Leaf_3# config

Leaf_3(config)# int eth1/1

Leaf_3config-if-Eth1/1)# qos-map dot1p-tc Host_Blue_Traffic

Leaf_3config-if-Eth1/1)# qos-map tc-queue Host_Blue_Traffic

Leaf_3config-if-Eth1/1)# qos-map tc-pg Host_Blue_Traffic

Leaf_3(config-if-Eth1/1)# qos-map pfc-priority-queue Host_Blue_PFC_queue

Leaf_3(config-if-Eth1/1)# priority-flow-control priority 4

Leaf_3(config-if-Eth1/1)# end

Leaf_3#

Show commands

Run the following commands:

  • Show buffer
    pool
  • Show qos interface eth1/1 and
    eth1/2
  • Show priority-group
    watermark
  • Show queue watermark
    unicast

Adaptive routing and switching

The final QoS feature to be explored is ARS. Assuming congestion is still taking place on Eth1/4 on Leaf_1 and traffic polarization is taking place; all egress traffic uses only Eth1/4 on Leaf_1 (as shown in Figure 20).

ARS can help in this situation by monitoring the on-going load on one link and redistributing the data traffic across all available ECMP paths.

To enable ARS, the three different levels (switch, port, and next hop group) need to be configured.

Note: ARS needs to be configured on all the switches in the fabric. However, only Leaf_1 and Spine_1 ARS configurations will be shown. Also, the ARS configurations in this section use the “default” profile parameters which in most cases is enough to deliver proper link load balancing.

Leaf_1 configuration

# Enable ARS at the system wide level. The profile parameters can be modified; however, this is out of scope in this whitepaper.

Leaf_1# config

Leaf_1(config)# ars profile default

Leaf_1(config-ars-profile)# exit

Leaf_1(config)# ars bind profile default

Leaf_1(config)# end

Leaf_1#

# Enable ARS at the port level by applying ARS on the egress interface. In this case, Eth1/4 and Eth1/5 on Leaf_1.

Leaf_1# config

Leaf_1(config)# ars port-profile default

Leaf_1(config-ars-port-profile)# enable

Leaf_1(config-ars-port-profile)# exit

Leaf_1(config)# int range Eth1/4-1/5

Leaf_1(config-if-range-eth**)# ars bind default

Leaf_1(config-if-range-eth**)# end

Leaf_1#

# Enable ARS on the ECMP group to perform the local link load balancing function.

Leaf_1# config

Leaf_1(config)# ars object default

Leaf_1(config-ars-object)# exit

Leaf_1(config)# route-map ars-map permit 10

Leaf_1(config-route-map)# set ars-object default

Leaf_1(config-route-map)# exit

Leaf_1(config)# ip protocol any route-map ars-map

Leaf_1(config# ipv6 protocol any route-map ars-map

Leaf_1(config)# end

Leaf_1#

Spine_1 configuration

# Enable ARS at the system-wide level. The profile parameters can be modified; however, this is out of scope in this whitepaper.

Spine_1# config

Spine_1(config)# ars profile default

Spine_1(config-ars-profile)# exit

Spine_1(config)# ars bind profile default

Spine_1(config)# end

Spine_1#

# Enable ARS at the port level by applying ARS on the egress interface. In this case, Eth1/1 through Eth1/4 on Spine_1.

Spine_1# config

Spine_1(config)# ars port-profile default

Spine_1(config-ars-port-profile)# enable

Spine_1(config-ars-port-profile)# exit

Spine_1(config)# int range Eth1/1-1/4

Spine_1(config-if-range-eth**)# ars bind default

Spine_1(config-if-range-eth**)# end

Spine_1#

# Enable ARS on the ECMP group to perform the local link load balancing function.

Spine_1# config

Spine_1(config)# ars object default

Spine_1(config-ars-object)# exit

Spine_1(config)# route-map ars-map permit 10

Spine_1(config-route-map)# set ars-object default

Spine_1(config-route-map)# exit

Spine_1(config)# ip protocol any route-map ars-map

Spine_1(config# ipv6 protocol any route-map ars-map

Spine_1(config)# end

Spine_1#

References

References

Dell Technologies documentation

The following Dell Technologies documentation provides additional and relevant information:

Dell Enterprise SONiC User Guide

Note: A user account is required to access the Dell Enterprise SONiC user guide.