load-balance hash-fields vll

Function

The load-balance hash-fields vll command specifies hash factors that are used for traffic load balancing on the interface board in VLL forwarding.

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

By default, the hash factors are specified as l4 on the interface board in VLL forwarding.

Format

load-balance hash-fields vll { l2 | l3 | l4 | label-ip }

load-balance hash-fields vll label

undo load-balance hash-fields vll

Parameters

Parameter Description Value
l2

Indicates that hash factors are the source MAC address and destination MAC address. This means that the hash calculation is performed based on the source MAC address and destination MAC address for the traffic in the upstream direction of the interface. The parameter is specified if the source MAC address and destination MAC address are hashable.

-

l3

Indicates that hash factors are the source IP address and destination IP address. This means that the hash calculation is performed based on the source IP address and destination IP address for the traffic in the upstream direction of the interface. The parameter is specified if the source IP address and destination IP address are hashable.

-

l4

Indicates that hash factors are the source IP address, destination IP address, source port number, destination port number, and protocol number. This means that the hash calculation is performed based on these hash factors for the traffic in the upstream direction of the interface. The parameter is specified if the source/destination IP addresses and source/destination MAC addresses are not hashable.

-

label-ip

Extends the l4 mode:

  • For IP packets, hash factors are the source and destination IP addresses, source and destination port numbers, and protocol number.
  • For non-IP packets, hash factors are MPLS labels. If the number of labels is less than or equal to five, all labels are used for hash calculation. If the number of labels is greater than five, five outermost labels are used for hash calculation.

-

label

Indicates that hash factors are the private network labels of VLL services. If the traffic of a VLL service needs to be transmitted from a public network interface, the load balancing behavior of the VLL service needs to be disabled. In this case, setting this parameter is recommended.

-

Views

Slot view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

This command is used to specify the hash factors that are used for traffic load balancing at the device in VLL forwarding.

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.

Configuration Impact

The load-balance hash-fields vll command is cyclic in nature, and only the latest configuration takes effect. After the command is configured, the hash calculation is performed based on the new hash factors.

Precautions

  • The load-balance hash-fields vll label configuration is mutually exclusive with the VPN QoS configuration. If they are both configured, the function corresponding to the load-balance hash-fields vll label configuration does not take effect and PW label-based load balancing fails to be implemented.
  • This command is used to adjust the hash factors for AC-side upstream traffic on PEs in VLL networking. If MAC addresses are more hashable, the l2 parameter needs to be specified. If IP addresses are more hashable, the l3 parameter needs to be specified. If non-IP packets are encapsulated with labels, the label-ip parameter needs to be specified. Otherwise, use the default parameter l4 for hashing.
  • In VS mode, this command is supported only by the admin VS.

Example

# Set the hash factors as l3.
<HUAWEI> system-view
[*HUAWEI] load-balance hash-fields vll l3
# Set the load balancing mode on the board in slot 1 to label-based load balancing in VLL mode.
<HUAWEI> system-view
[~HUAWEI] slot 1
[*HUAWEI-slot-1] load-balance hash-fields vll label
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >