Configuring BFD with Specific Parameters on the Egress Node
Context
BFD parameters on the egress node include the local and remote discriminators, intervals for sending and receiving BFD packets, and local BFD detection multiplier. The BFD parameters affect BFD session setup.
You can adjust the local detection time according to the network situation. On an unstable link, if a small detection time is used, a BFD session may flap. You can increase the detection time of the BFD session.
Actual interval for the local device to send BFD packets = MAX {locally configured interval for sending BFD packets, remotely configured interval for receiving BFD packets}
Actual interval for the local device to receive BFD packets = MAX {remotely configured interval for sending BFD packets, locally configured interval for receiving BFD packets}
Local detection time = Actual interval for receiving BFD packets x Remotely configured BFD detection multiplier
Perform the following steps on the egress node of the LSP.
Procedure
- Run system-view
The system view is displayed.
- Run bfd
This node is enabled with global BFD. The global BFD view is displayed.
By default, global BFD is disabled.
- Run quit
Return to the system view.
- Configure a reverse tunnel to inform the ingress node of a fault if the fault occurs. The reverse tunnel can be the IP link, LDP LSP, or CR-LSP. To ensure that BFD packets are received and sent along the same path, an LSP tunnel is preferentially used to inform the egress node of an LSP fault. If the configured reverse tunnel requires BFD detection, configure a pair of BFD sessions for it. Run the following commands as required.
For the IP link, run bfd session-name bind peer-ip ip-address [ vpn-instance vpn-name ] [ source-ip ip-address ]
For the LDP LSP, run bfd session-name bind ldp-lsp peer-ip ip-address nexthop ip-address [ interface interface-type interface-number ]
For the CR-LSP, run bfd session-name bind mpls-te interface tunnel interface-number te-lsp [ backup ]
- Set local and remote discriminators of a BFD session.
Run discriminator local discr-value
The local discriminator is configured.
Run discriminator remote discr-value
The remote discriminator is configured.
The local identifier and remote identifier on both ends of a BFD session must accord with each other. The session cannot be established correctly otherwise. In addition, the local identifier and remote identifier cannot be modified after configuration.
- (Optional) Run min-tx-interval interval
The interval for sending BFD packets is set on the local device.
By default, the interval for sending BFD packets is 1000 ms. The default value is recommended.
- (Optional) Run min-rx-interval interval
The interval for receiving BFD packets is set on the local device.
By default, the interval for receiving BFD packets is 1000 ms. The default value is recommended.
- (Optional) Run detect-multiplier multiplier
The local BFD detection multiplier is set.
The default value is 3.
- Run commit
The configuration is committed.