After a PW is configured for a VPLS using LDP as signaling, BFD can be configured to monitor the primary PW so that traffic can be immediately switched to the secondary PW in case of a primary PW fault.
Usage Scenario
On a VPLS LDP network, you can configure BFD to detect PW faults, which quickens link fault detection and enhances application-layer service protection.
Currently, static BFD and dynamic BFD are supported. You can choose one according to the network plan.
Pre-configuration Tasks
Before you configure BFD to monitor a VPLS PW, complete the following tasks:
Procedure
- Configure a static BFD session.
- Run system-view
The system view is displayed.
- Run bfd
BFD is enabled globally, and the global BFD view is displayed.
- Run quit
The system view is displayed.
- Run 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 } ]
BFD configuration items are created.
- Run the following commands to configure BFD session discriminators:
To configure the local discriminator, run the discriminator local discr-value command.
To configure the remote discriminator, run the discriminator remote discr-value command.
The local BFD session discriminator on one end must be the remote BFD session discriminator on the other end.
- Run commit
The configuration is committed.
If the status of a service PW is Down, the BFD session can be established but cannot go Up.
- BFD for PW must be configured or cancelled on both PEs of a PW. If this function is configured or cancelled only on one end, the PW status between both ends will be inconsistent.
To modify the parameters of an existing BFD session, run the min-tx-interval, min-rx-interval, and detect-multiplier commands.
- Configure a dynamic BFD session.
- Run system-view
The system view is displayed.
- Run bfd
BFD is enabled globally, and the global BFD view is displayed.
- Run quit
The system view is displayed.
- Trigger the establishment of a dynamic BFD session.
- Run vsi vsi-name
The VSI view is displayed.
- Run pwsignal ldp
The VSI LDP view is displayed.
- Run vsi-id vsi-id
The VSI ID is configured.
- Run peer peer-address
The VSI peer is configured.
- Run peer peer-address pw pw-name
A VSI LDP PW profile is configured.
- Run control-word enable
The control word function is configured for a VSI.
- Run bfd-detect [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval | option-tlv ] *
A dynamic BFD session is configured for the VPLS PW.
The parameters are described as follows:
detect-multiplier multiplier indicates the BFD detection multiplier.
min-rx-interval rx-interval indicates the Required Min Rx Interval (RMRI), which is the supported minimum interval at which the local device receives BFD control packets.
min-tx-interval tx-interval indicates the Desired Min Tx Interval (DMTI), which is the desired minimum interval at which the local device sends BFD control packets.
The BFD detection parameters actually used may be different from the ones configured:
Actual local detection interval = Actual interval at which the local device receives BFD control packets x Configured remote BFD detection multiplier
Actual interval at which the local device receives BFD control packets = Max { Configured remote DMTI, Configured local RMRI }
Actual interval at which the local device transmits BFD control packets = Max { Configured local DMTI, Configured remote RMRI }
- Run quit
Return to the system view.
- Run commit
The configuration is committed.
Verifying the Configuration
After configuring BFD for VPLS PW, check the configurations.