Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Traffic Load Balancing

This topic briefly describes the traffic load balancing feature and its configuration on the QFX5220, QFX5230, QFX5240, and QFX5241 Switches.

Traffic load balancing distributes network traffic across multiple servers or virtual machines to prevent any single server from experiencing downtime. Load balancing ensures high availability, reliability, and scalability of network resources. The different types of traffic load balancing are discussed in the following sections.

Hash-Based (or Flow-Based) Load Balancing

The QFX Series Switches use hash-based load balancing algorithms to distribute and monitor data traffic across links to avoid any congestion. If a packet arrives out of order, it is dropped and retransmission is requested. You can configure hash-based load balancing through equal-cost multipath (ECMP) for BGP.

To configure hash-based load balancing:

Note: Multiple equal-cost static routes enable ECMP for load balancing.

For more information about how to configure hash-based load balancing through ECMP, see Configure IPv4 Static Routing.

Dynamic Load Balancing

In addition to static load balancing, QFX Series Switches also support dynamic load balancing (DLB). DLB is similar to static load balancing, but it also monitors the local ports to know how much buffer each port has. It then redirects the data traffic to the port that has maximum buffer.

To configure DLB on your QFX Series Switches, run the following commands in your CLI at the [edit] hierarchy level:

Run this code block on each device. For more information about how to configure DLB, see Dynamic Load Balancing.

To verify DLB configuration on your switch:

Selective Dynamic Load Balancing (Not Supported on QFX5220)

Based on dynamic load balancing, selective when combined with Flexible Match Firewall Filter enables you to apply filters on some of the data flows selected by you.

To configure selective DLB with flexible match firewall filter, run the following commands in your CLI at the [edit] hierarchy level:

For more information about selective DLB and its configuration, see Selective Dynamic Load Balancing (DLB).

Global Load Balancing

Note: Global load balancing is not supported on QFX5220 and QFX5230 switches.

In addition to dynamic load balancing, the QFX5240 and QFX5241 switches also support global load balancing. In case of global load balancing, the spine platform monitors the local port buffers and also sends a signal to the leaf platform with the port buffer status of the platform. The leaf decides the travel path on the basis of its buffer ports but also considers the buffer ports on the next hop, which is the spine platform. So, the global load balancing feature helps the leaf device decide on an end-to-end data travel path within the network fabric only.

To configure global load balancing on QFX5240 and QFX5241 switches:

  • On spine devices, run the following commands in helper-only mode.

  • On leaf devices, run the following commands in load-balancer-only mode.

For more information about global load balancing and its configuration, see Global Load Balancing.

RDMA-Aware Load Balancing

Even though remote direct memory access (RDMA)-aware load balancing is supported on the QFX5220, QFX5230, QFX5240, and QFX5241 switches, we recommend that you enable this feature on the QFX5240 and QFX5241 switches only. The QFX5240 and QFX5241 switches monitor data traffic from one NIC to another, where the switches assign buffer for each data flow from end to end all the way to the NIC. This feature is known as queue-pair hashing, pinning, or binding. For information about how to configure RDMA-aware load balancing on QFX Series Switches, see Fabric Spine and Leaf Nodes Configuration.

For more information about queue-pair hashing configuration, see Queue-Pair Hashing for RDMA Flows.