mpls l2vpn flow-label

Function

The mpls l2vpn flow-label command enables flow-label-based load balancing for PWs on an interface.

The undo mpls l2vpn flow-label command disables flow-label-based load balancing of PWs on an interface.

By default, flow-label-based load balancing of PWs is disabled on an interface.

Format

mpls l2vpn flow-label { both | send | receive } [ secondary ] [ static ]

undo mpls l2vpn flow-label { both | send | receive } [ secondary ] [ static ]

undo mpls l2vpn flow-label [ secondary ]

Parameters

Parameter Description Value
both

Indicates both the send and receive capabilities of flow-label-based load balancing for the local device.

-

send

Indicates the send capability of flow-label-based load balancing for the local device.

-

receive

Indicates the receive capability of flow-label-based load balancing for the local device.

-

secondary

Indicates flow-label-based load balancing of a secondary PW. flow-label-based load balancing can be configured for a secondary PW only if the secondary PW exists.

If secondary is not configured, flow-label-based load balancing is configured for the primary PW.

-

static

Statically configures flow-label-based load balancing.

  • For dynamic PWs, if static is not configured, the flow-label-based load balancing capability of the local end is negotiated by the remote end.
  • For static PWs, the flow-label-based load balancing capability is statically configured, irrespective of whether static is configured.

-

Views

100ge sub-interface view, 100GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE sub-interface view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE sub-interface view, 400GE interface view, 40GE sub-interface view, 40GE interface view, 50GE Layer 2 sub-interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, GE Layer 2 sub-interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, VE sub-interface view, XGE sub-interface view, XGE interface view, Layer 2 sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

When multiple links exist between P devices, configure flow-label-based load balancing to improve L2VPN traffic forwarding efficiency. After flow-label-based load balancing is enabled on a PE, the PE adds different labels for different L2VPN data flows to distinguish them one from the other. After a P device receives a data packet carrying a flow label, it performs the Hash calculation and selects a forwarding path based on the flow label in the data packet. This processing implements load balancing. To enable flow-label-based load balancing for PWs on an interface, run the mpls l2vpn flow-label command.

Prerequisites

MPLS L2VPN has been enabled, and PWs have been created.

Precautions

When configuring flow label-based load balancing for an L2VPN, note the following:

  • Flow label-based load balancing can be successfully configured only when the send and receive parameters configured on both ends of the PW match.
  • The receive parameter is configured on the local PE, and the send parameter is configured on the remote PE.
  • The send parameter is configured on the local PE, and the receive parameter is configured on the remote PE.
  • Flow label-based load balancing is enabled in the send and receive directions on both the local and remote ends.
  • If the static flow label-based load balancing configuration does not match on both ends, the device discards packets carrying flow labels, causing packet loss.
  • The configuration of flow label-based load balancing triggers PW renegotiation. As a result, the service transiently goes down and then up again.

Example

# Enable flow-label-based load balancing for PWs on a specified interface.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] interface GigabitEthernet 0/1/0
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 2.2.2.2 100
[*HUAWEI-GigabitEthernet0/1/0] mpls l2vpn flow-label both
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >