load-balance hash-arithmetic

Function

The load-balance hash-arithmetic command specifies a hash algorithm to be used for traffic load balancing on the interface board.

The undo load-balance hash-arithmetic command restores the default configuration.

By default, random is used on the interface board and second-hash is disabled.

Format

load-balance hash-arithmetic { arithmetic1 | arithmetic2 | arithmetic3 | arithmetic4 | arithmetic5 } [ second-hash ]

undo load-balance hash-arithmetic

Parameters

Parameter Description Value
arithmetic1

Specifies the hash algorithm as CRC21b.

-

arithmetic2

Specifies the hash algorithm as CRC253.

-

arithmetic3

Specifies the hash algorithm as 16 Bit XOR.

-

arithmetic4

Specifies the hash algorithm as 8 Bit XOR.

-

arithmetic5

Specifies the hash algorithm as CRC32-3.

-

second-hash

Enables the second hash.

-

Views

Slot view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

There are three types of hash algorithms to implement traffic load balancing.

In two-level load balancing, hash algorithms cannot be configured the same for the first- and second-level load balancing on the router. If they are configured the same, the second-level load balancing does not take effect.

Configuration Impact

The load-balance hash-arithmetic command is cyclic in nature, and only the latest configuration takes effect. After the command is configured, the new hash algorithm takes effect on the interface board to perform traffic load balancing.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Specify the hash algorithm to be arithmetic2 on the interface board.
<HUAWEI> system-view
[~HUAWEI] slot 1
[*HUAWEI-slot-1] load-balance hash-arithmetic arithmetic2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >