Configuring PIM BFD
Pre-configuration Tasks
Before configuring PIM BFD, complete the following tasks:
- Configuring a unicast routing protocol to ensure normal unicast routing on the network
- Enabling BFD globally using the bfd command
- Enabling PIM-SM
Context
On a PIM network, changes of link status between PIM neighbors will restart some PIM mechanisms, such as DR election or Assert winner election. For example, when the designated router (DR) on a shared network segment fails, PIM neighbors on the network segment trigger DR re-election only when the PIM neighbor relationships time out. Multicast data transmission is interrupted before a new DR is elected. The multicast service interruption time is longer than or equal to the neighbor relationship timeout interval, and is usually several seconds.
PIM Bidirectional Forwarding Detection (BFD) can detect link status changes on a shared network segment in milliseconds, enabling PIM devices to rapidly respond to failures of PIM neighbors. If a PIM BFD-capable interface does not receive any BFD packets from the DR within the detection interval, it considers that the DR has failed. Then BFD rapidly reports the session status to the route management (RM) module, which then reports the link status change to the PIM module. After receiving the notification, the PIM module triggers DR re-election immediately, without waiting for timeout of the neighbor relationship. This mechanism reduces the multicast service interruption time and improves reliability of multicast data transmission.
PIM BFD is applicable to the assert election on the shared network segment. In addition, it quickly responds to faults on the assert winner interface.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run pim bfd enable
PIM BFD is enabled.
- (Optional) Run pim bfd { min-tx-interval tx-value | min-rx-interval rx-value | detect-multiplier multiplier-value } *
The parameters of PIM BFD are set.
This operation is performed to set the minimum interval for sending the PIM BFD messages, the minimum interval for receiving the PIM BFD messages, and the local detection multiplier.
Verifying the Configuration
After PIM BFD is configured, you can run the following commands to check information about the PIM BFD session.
display pim [ vpn-instance vpn-instance-name | all-instance ] bfd session statistics
display pim [ vpn-instance vpn-instance-name | all-instance ] bfd session [ interface interface-type interface-number | neighbor neighbor-address ] *