bfd bind pw vsi peer

Function

The bfd bind pw vsi peer command binds a BFD session to a PW, so that BFD can detect the connectivity of the PW.

By default, BFD is not configured to detect PW connectivity.

Format

bfd session-name bind pw vsi vsi-name peer peer-address [ vc-id vc-id ] [ remote-peer remote-peer-address pw-ttl { auto-calculate | ttl-number } ]

Parameters

Parameter Description Value
session-name

Specifies the name of a BFD session.

The value is a string of 1 to 64 characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string.

  • When the name of a BFD session is configured, the uppercase and lowercase letters in the name must be the same as what you enter.
  • BFD session names are case-insensitive. For example, ABC and abc are regarded as the same BFD session. If you have configured ABC as the name of a BFD session, the ABC BFD session view is directly displayed when you configure abc.
vsi vsi-name

Specifies the name of a virtual switching instance (VSI).

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

peer peer-address

Specifies the destination IP address of the virtual private LAN service (VPLS) PW, which is usually the LSR ID.

The value is in dotted decimal notation.

vc-id vc-id

Specifies the ID of a Layer 2 VC.

The value is an integer ranging from 1 to 4294967295.

remote-peer remote-peer-address

Specifies the IP address used as the destination address of the PW to be detected by the BFD session, which is usually an LSR ID.

The value is in dotted decimal notation. It cannot be in the format of 127.X.X.X.

pw-ttl

Indicates that the BFD session detects a PW in TTL mode. In this mode, the TTL value can be manually set or automatically calculated.

-

auto-calculate

Indicates that the number of hops along a PW is counted automatically.

-

ttl-number

Specifies the number of hops along the PW to be detected.

The value is an integer ranging from 1 to 255.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bfd write

Usage Guidelines

Usage Scenario

If PEs on a Multiprotocol Label Switching (MPLS) Layer 2 virtual private network (L2VPN) communicate over PWs, you can enhance service protection by configuring BFD to speed up link fault detection and rapidly trigger upper-layer application switching.

The

bfd bind pw command is used to detect the connectivity of SS-PWs and MS-PWs.

  • If you do not specify remote-peer remoteip-value pw-ttl in the bfd bind pw command, you must run the control-word command to enable the control word for the detected PW.
  • If you specify remote-peer remoteip-value pw-ttl:
  • If you choose to specify auto-calculate, the system automatically calculates the number of segments of the detected PW based on remote-peer remoteip-value.
  • If you choose to specify ttl-value, the number of segments in the detected PW is configured.
  • If BFD detects changes in the VC encapsulation type of a VPWS PW, indicating the deletion of the Virtual Leased Line (VLL) PW, BFD module deletes the session detecting the VLL PW.
  • When a large number of service PWs originated from the same source and destined for the same device are available, a large number of BFD sessions are required, which consumes lots of resources. To reduce the consumption of public network link bandwidths and system resources, configure an mPW that has the same source and destination as the service PWs and bind the service PWs to the mPW. This configuration allows the service PWs to track the mPW status. Therefore, a BFD session can be configured only for the mPW to detect faults. The mPW then notifies all service PWs bound to it of the status. This allows the BFD session to also monitor the service PWs.

    If a PW is a VPLS SS-PW, you can run the

    bfd bind pw vsi command to detect PW connectivity. In the bfd bind pw vsi command, the peer peerip-value parameter specifies a PW on a VPLS network. The bfd bind pw vsi command applies only to BFD for PW in TTL mode:
  • If BFD detects an E2E VPLS SS-PW, the values of peer peerip-value and remote-peer remoteip-value are the same. In this case, you only need to use the bfd sessname-value bind pw vsi vsi-name peer peerip-value command. The TTL is fixed at 255.
  • If BFD detects an MS-PW in a VPWS accessing VPLS scenario, you must specify both peer peerip-value and remote-peer remoteip-value in the bfd bind pw command.
  • If you choose to specify auto-calculate, the system automatically calculates the number of segments of the detected PW based on remote-peer remoteip-value.
  • If you choose to specify ttl, the number of segments in the detected PW is configured.

Prerequisites

  • The bfd command has been run to enable BFD globally.
  • The mpls l2vc command has been run to configure a PW between AC interfaces.

Configuration Impact

After you configure BFD for PW, PW connectivity faults can be quickly detected. If primary and secondary PWs exist, frequent PW flapping may cause frequent traffic switchovers between the primary and secondary PWs.

Precautions

  • To run the bfd bind pw command to detect the connectivity of a VPWS MS-PW, ensure that the first segment of the PW is a VPWS PW with one end on a non-SPE device.
  • To run the bfd bind pw command to detect the connectivity of a VPWS SS-PW, ensure that the end nodes of the PW are not SPEs.
  • If you specify remote-peer incorrectly after choosing auto-calculate, the calculated TTL is 0 and the BFD session cannot go Up.
  • To run the bfd bind pw vsi command to detect the connectivity of a VPLS SS-PW, ensure that the end nodes of the PW are not SPEs.
  • In BGP VPWS scenarios, when BFD has been bound to a PW and the remote-peer parameter is configured, the system displays an error message, indicating that the PW's remote address cannot be specified. In LDP VPWS and LDP VPLS scenarios, the remote-peer parameter can be configured.
  • Static BFD for VLL PW does not support a CV type of 0x10 or 0x20 in control word mode. If the CV type in the PW negotiation result is 0x10 or 0x20, the BFD session cannot go Up.

Example

# Create a BFD session to detect the connectivity of a VSI PW.
<HUAWEI> system-view
[~HUAWEI] bfd
[*HUAWEI-bfd] quit
[*HUAWEI] bfd b bind pw vsi vsi1 peer 1.1.1.1
[*HUAWEI-bfd-lsp-session-b] discriminator local 1
[*HUAWEI-bfd-lsp-session-b] discriminator remote 2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >