load-balance hash-seed

Function

The load-balance hash-seed command configures a hash seed for traffic load balancing on an interface board.

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

By default, a hash seed is randomly assigned by the Router.

Format

load-balance hash-seed { hash-seed-number | random }

undo load-balance hash-seed

Parameters

Parameter Description Value
hash-seed-number

Specifies the hash seed value.

The value is a hexadecimal integer ranging from 0 to 0xFFFFFFFF.

random

Specifies that the hash seed is randomly assigned by the Router.

-

Views

Slot view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

The load balancing function is implemented using the hash algorithm on the upstream interface board. Traffic is hashed based on traffic characteristics, which are called hash factors. If hash factors are more hashable, traffic will be more evenly load-balanced. The device has default values of the hash factors used for load balancing of different service types of packets. Traffic is load balanced based on the default hash factors depending on the service types of packets on the upstream interface board. To implement load balancing better, configure hash factors based on traffic types.

If proper hash factors are selected but traffic load balancing still cannot be performed well, you can run this command to set a hash seed. The hash seed makes hash factors more hashable so that traffic load balancing can be better performed.

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

Example

# Configure the hash seed for traffic load balancing on the interface board to be automatically generated by the system.
<HUAWEI> system-view
[~HUAWEI] slot 1
[*HUAWEI-slot-1] load-balance hash-seed random
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >