DES-7200 Configuration Guide Chapter 1 Protocol-Independent
Configuration
1-16
1.5.2 Selecting the Hash Algorithm
There are two hash algorithms available:
CRC32_Upper Select the upper bits of the crc32 to determine the next hop
CRC32_Lower Select the lower bits of the crc32 to determine the next hop
These two kinds of algorithms have different effects for different types of packets.
For example, the CRC32_Upper has a good effect on the IP addresses that have
the same upper bits but different lower bits. On the other hand, the CRC32_Upper
has a good effect on the IP addresses that have the same lower bits but different
higher bits.
The default hash algorithm is CRC32_Upper.
1.5.3 Configuration Commands
Command Function
DES-7200(config)# ip ref ecmp
load-balance {[crc32_lower |
crc32_upper] [dip] [port] [udf
number]}
Use any combination of DIP, Port and UDF to
generate a key. And select CRC32_Lower or
CRC32_Upper as a Hash algorithm.
DES-7200(config)# no ip ref ecmp
load-balance {[crc32_lower |
crc32 upper] [dip] [port] [udf
number]}
The no command will use the keyword stored by
the system minus the keyword carried by the no
command as part of the Key.
For example, the keyword stored by the system
is SIP & DIP & Port. After the no ip ref ecmp
route dip port command is executed, the
component of the Key is only the SIP. If the
member following the no command is not in the
setting stored by the system, this command
works well.
Note
If the existent IPv6 route is equivalent or inequivalent, which may be configured
statically, or learned by the IPv6 dynamic routing protocol), the above
configurations are valid for the IPv6 packet path selection.
The following configures the hash algorithm as CRC32_Lower, and selects the
key of the packet as SIP & DIP:
DES-7200(config)# ip ref ecmp load-balance crc32_lower dip