< Home

flow-label (VSI-LDP-PW view)

Function

The flow-label command enables flow label-based load balancing for an L2VPN PW.

The undo flow-label command disables flow label-based load balancing of an L2VPN PW.

The flow-label disable command disables flow label-based load balancing of an L2VPN PW.

The undo flow-label disable command restores flow label-based load balancing of an L2VPN PW.

By default, if flow label-based load balancing is enabled for a VSI, the PWs in this VSI also have flow label-based load balancing enabled; if flow label-based load balancing is disabled for a VSI, the PWs in this VSI also have flow label-based load balancing disabled.

Only the S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H support this command.

Format

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

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

flow-label disable

undo flow-label disable

Parameters

Parameter Description Value
both

Enables flow label-based load balancing for outgoing traffic and incoming traffic.

-

send

Enables flow label-based load balancing for outgoing traffic.

-

receive

Enables flow label-based load balancing for incoming traffic.

-

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

VSI-LDP-PW view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple links exist between P devices on a PW, to improve L2VPN traffic forwarding efficiency and ease the forwarding burden on P devices, run the flow-label command to configure flow label-based load balancing. After flow label-based load balancing is enabled on a PE, the PE adds different flow labels for different L2VPN data flows to distinguish the data flows. After a P device receives a data packet carrying a flow label, it 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 VLL PWs or PWE3 PWs, run the flow-label command in the PW template view, and specify the configured PW template when creating VLL PWs or PWE3 PWs.

  • If flow label-based load balancing is configured for both a VSI and a PW in this VSI, the configuration of the PW takes precedence.
  • If the undo flow-label command is run in the VSI-LDP-PW view, only the flow label-based load balancing capability that has been configured using the flow-label command in the VSI-LDP-PW view is disabled.
  • If the flow-label command has been run for a VSI but not for a PW, you can run the flow-label disable command in the VSI-LDP-PW view to disable flow label-based load balancing of the PW. If the PW needs the flow label-based load balancing capability again, you can run the undo flow-label disable command to restore flow label-based load balancing.

Prerequisites

MPLS L2VPN has been enabled.

Precautions

Flow label-based load balancing can be enabled only when any of the following conditions is true:
  • 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.
  • Both the send and receive parameters are configured on the local and remote PEs.

If the static flow label-based load balancing configuration does not match on both ends, the device discards packets carrying a flow label, causing packet loss.

Example

# Enable flow label-based load balancing for a PW.

<HUAWEI> system-view
[HUAWEI] vsi 1 static
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] pw p1
[HUAWEI-vsi-1-ldp-pw-p1] flow-label both

# Disable flow label-based load balancing of a PW.

<HUAWEI> system-view
[HUAWEI] vsi 1 static
[HUAWEI-vsi-1] pwsignal ldp
[HUAWEI-vsi-1-ldp] flow-label send
[HUAWEI-vsi-1-ldp] peer 1.1.1.1
[HUAWEI-vsi-1-ldp] peer 1.1.1.1 pw pw1
[HUAWEI-vsi-1-ldp-pw-pw1] flow-label disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >