The switch typically uses a hash algorithm to learn MAC address entries. However, conflicts may occur if two or more MAC addresses produce the same hash value. In this case, the switch may fail to learn many MAC addresses and then will broadcast traffic destined for these MAC addresses. The heavy broadcast traffic increases the load on the switch. To mitigate this issue, use an appropriate hash algorithm to mitigate the hash conflict.
The switch uses the hash bucket to store MAC addresses. The switch that uses the hash bucket performs hash calculation for VLAN IDs and MAC addresses in MAC address entries to be stored and obtains hash bucket indexes. The MAC addresses with the same hash bucket index are stored in the same hash bucket. If a hash bucket with the maximum storage space cannot accommodate learned MAC addresses of the hash bucket, a hash conflict occurs and MAC addresses cannot be stored. The maximum number of MAC addresses learned by the switch through the hash bucket may be not reached.
MAC addresses are distributed on a network randomly, so the best hash algorithm cannot be determined. Generally, it is recommended the default MAC hash algorithm be used unless you have specific requirements.
An appropriate hash algorithm can reduce hash conflicts, but cannot prevent them.
After the hash algorithm is changed, restart the switch to make the configuration take effect.
The system view is displayed.
By default, the hash algorithm is crc32-lower on the S5720-EI, S6720-EI, and S6720S-EI and crc on other models.
The hash bucket size is configured for the MAC address table.
A larger hash bucket size will lower device forwarding performance.
After you change the hash bucket size to a smaller value, you need to restart the switch.