| Description | This article describes the SD-WAN load balance hash mode algorithms.
Selecting the right hash mode ensures optimal use of available links, improves throughput, and maintains session consistency for critical applications. |
| Scope | FortiGate, FortiGate VMx. |
| Solution |
Hash mode is configured under the SD-WAN rule or policy where load balancing is used. When multiple interfaces are selected as priority members, the FortiGate uses the configured hash algorithm to decide which link each session should use.
set load-balance enable
If three WAN links (WAN1, WAN2, WAN3) are configured, the first session goes through WAN1, the second through WAN2, the third through WAN3, and the fourth returns to WAN1.
All traffic from a branch office with IP 192.168.x.x will always use a specific WAN until the session reset, ensuring stable connectivity for specific services that require sticky sessions from a specific source, like VPN or VoIP sessions.
For example, traffic from 192.168.10.50 to 8.8.8.8 always uses WAN1, while the same source IP connecting to 1.1.1.1 may use WAN2. The session will be persistent with this load-balancing algorithm.
If WAN1 is congested with high inbound usage, new sessions are sent through WAN2, which has more free inbound bandwidth.
Large file transfers from local servers to the cloud will be directed to the link with the highest available outbound capacity.
When both WAN links have varying traffic loads, FortiGate dynamically selects the link with the best total available bandwidth for optimal performance. The Load Balance hash mode in FortiGate plays a role in optimizing traffic flow across multiple WAN interfaces. Choosing the right mode ensures efficient use of bandwidth, consistent user experience, and stable network performance. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.