LDP-IGP synchronization is used to synchronize the status between LDP and an IGP to minimize time of traffic loss if a network fault triggers the LDP and IGP switching.
On a network with primary and backup links, if the primary link fails, both IGP and LSP traffic switches to the backup link. After the primary link recovers, IGP routes are switched back to the primary link before LDP convergence is complete. In this case, the LSP along the primary link takes time to make preparations, such as adjacency restoration, before being established. As a result, LSP traffic is discarded. If an LDP session or adjacency between nodes fails on the primary link, the LSP along the primary link is deleted. However, the IGP still uses the primary link, and as a result, LSP traffic cannot be switched to the backup link, and is continuously discarded.
LDP-IGP synchronization supports OSPFv2 and IS-IS IPv4.
The fundamentals of LDP-IGP synchronization are to set an IGP cost value to delay a route switchback until LDP convergence is complete. That is, before the LSP of the primary link is established, the LSP of the backup link is retained so that the traffic continues to be forwarded through the backup link. The backup LSP is torn down only after the primary LSP is established successfully.
LDP-IGP synchronization involves the following timers:
Hold-max-cost timer
Delay timer
A link recovers from a fault.
An LDP session is set up between LSR2 and LSR3. The IGP advertises the maximum cost of the primary link to delay the IGP route switchback.
Traffic is still forwarded along the backup LSP.
The LDP session is set up. Label messages are exchanged to notify the IGP to start synchronization.
The IGP advertises the normal cost on the primary link, and its routes converge on the original forwarding path. The LSP is reestablished and delivered to the forwarding table (usually in milliseconds).
An LDP session between two nodes on the primary link fails.
LDP notifies the IGP of the primary link failure. The IGP then advertises the maximum cost of the primary link.
The IGP route switches to the backup link.
A backup LSP is set up over the backup link and then forwarding entries are delivered.
LDP-IGP synchronization state transition
LDP-IGP synchronization mainly applies to the following scenario:
Packet loss is reduced during an active/standby link switchover, improving network reliability.