load-balance hash-fields gtp-inner-ip enable

Function

The load-balance hash-fields gtp-inner-ip enable command enable load balancing based on the inner IP header of GTP packets.

The undo load-balance hash-fields gtp-inner-ip enable restores the default configuration.

By default, load balancing based on the inner IP header of GTP packets is disabled.

Format

load-balance hash-fields gtp-inner-ip enable

undo load-balance hash-fields gtp-inner-ip enable

Parameters

None

Views

Slot view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

On a P node in an L3VPN, a GTP packet carries double MPLS labels and the inner IP header. Load balancing is typically performed based on the outer IP header's source and destination IP addresses and the tunnel endpoint identifier (TEID). However, because the source and destination IP addresses of the inner IP header change frequently but those of the outer IP header do not, load balancing is uneven. To address this problem, run the command to enable load balancing for GTP packets carrying the inner IP header based on the inner IP header's source and destination IP addresses and the TEID. If the inner IP header is completely present in the packet window, this header and the TEID are obtained for hash calculation. If the inner IP header is not completely present in the packet window and deep hash is not configured, the outer IP header and TEID are obtained according to the original process for hash calculation. If the inner IP header is not completely present in the packet window and deep hash is configured, the packet window is moved to obtain the inner IP header and TEID for hash calculation.

Precautions

After the load-balance hash-fields tunnel-info disable or load-balance hash-fields tunnel-info gtp disable command is configured, the load-balance hash-fields gtp-inner-ip enable command cannot be configured.

After the load-balance hash-fields gtp-inner-ip enable command is run, running the load-balance hash-fields tunnel-info disable or load-balance hash-fields gtp-info gtp disable command will cause the load-balance hash-fields gtp-inner-ip enable command configuration to be deleted from the device.

Example

# Enable load balancing based on the inner IP header of GTP packets in the view of slot 1.
<HUAWEI> system-view
[~HUAWEI] slot 1
[*HUAWEI-slot-1] load-balance hash-fields gtp-inner-ip enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >