IP: Second-best load distribution method, since the IP addresses of both sender(LIF) and client are used to deterministically select the particular physical link that apacket traverses. Although deterministic in the selection of a port, the balancing isperformed using an advanced hash function. This has been found to work under awide variety of circumstances, but particular selections of IP addresses might stilllead to unequal load distribution.
As of Data ONTAP 7.3.2, a multimode or LACP ifgrp/vif uses an implementation of a "SuperFastHash", utilizing the last 16 bits of the source and destination IP addresses (-b ip), the last 16 bits of the source and destination MAC addresses (-b mac), or the last 16 bits of the source and destination IP addresses in combination with the source and destination TCP port (-b port).
The output of the algorithm results in a far more dynamic, more balanced distribution than the algorithm used in versions of Data ONTAP prior to 7.3.2. The result is still the same, however, in that each TCP stream will associate with only one interface, allowing for only one port's worth of bandwidth per TCP stream.
Data ONTAP releases prior to 7.3.2:
Documentation prior to 7.3.2 states this as the formula:
((source_address XOR destination_address) % number_of_links)
Neoria - Public
Hello Stephen,
This document, although already 12y old, is still a good reference.https://www.netapp.com/media/19900-tr-4847.pdf
Check pp7 and the following page(s) regarding load balancing.
“Port” distri function is generally known to be the preferred one when configuring an ifgrp, but it may also depend on the brand/type of switch stack to which you connected the nics of the controllers.
Good luck & best regards,
Peter Tas.