Configuring BFD Parameters on the Ingress Node of the Tunnel
Context
The BFD parameters configured on the ingress node include the local and remote discriminators, local intervals at which BFD packets are sent and received, and BFD detection multiplier, which determine the establishment of a BFD session.
Perform the following configurations on the ingress node of an MPLS TE tunnel.
Procedure
- Run system-view
The system view is displayed.
- Run bfd session-name bind mpls-te interface tunnel interface-number te-lsp [ backup ] [ one-arm-echo ]
BFD is configured to detect the primary or backup CR-LSP bound to a specified tunnel.
By default, no CR-LSP applies BFD.
If one-arm-echo is configured, a one-arm BFD echo session is established to monitor a CR-LSP. A Huawei device at the ingress cannot use BFD for CR-LSP to communicate with a non-Huawei device at the egress. In this situation, no BFD session can be established. To establish a BFD session to monitor a CR-LSP, configure a one-arm BFD echo session.
- Run discriminator local discr-value
The local discriminator is set.
By default, the local discriminator is not set.
- Run discriminator remote discr-value
The remote discriminator is set.
By default, the remote discriminator is not set.
You do not need to configure a remote discriminator for a BFD echo session.
- (Optional) Run min-tx-interval interval
The local interval at which BFD packets are sent is set.
By default, the value is 1000 milliseconds. The default value is recommended.
BFD echo sessions do not support this parameter.
- (Optional) Run min-rx-interval interval
The local interval at which BFD packets are received is set.
By default, the value is 1000 milliseconds. The default value is recommended.
For a BFD echo session, run the min-echo-rx-interval command to set the local interval at which BFD packets are received.
- (Optional) Run detect-multiplier multiplier
The local detection multiplier is adjusted.
By default, the local detection multiplier is 3.
Actual local sending interval = MAX { Configured local sending interval, Configured remote receiving interval }
Actual local receiving interval = MAX { Configured remote sending interval, Configured local receiving interval }
Actual local detection interval = Actual local receiving interval x Configured remote detection multiplier
For example:
The local sending and receiving intervals are set to 200 ms and 300 ms respectively and the detection multiplier is set to 4.
The remote sending and receiving intervals are set to 100 ms and 600 ms respectively and the detection multiplier is set to 5.
Then,
Actual local sending interval = MAX {200 ms, 600 ms} = 600 ms; Actual local receiving interval = MAX {100 ms, 300 ms} = 300 ms; Actual local detection interval is 300 ms x 5 = 1500 ms.
Actual remote sending interval = MAX {100 ms, 300 ms} = 300 ms; Actual remote receiving interval = MAX {200 ms, 600 ms} = 600 ms; Actual remote detection interval is 600 ms x 4 = 2400 ms.
- Run commit
The configuration is committed.