Configuring LDP-IGP Synchronization
LDP is often used to establish MPLS LSPs throughout a complete network domain using an IGP such as OSPFv2 or IS-IS. In such a network, all links in the domain have IGP adjacencies as well as LDP adjacencies. LDP establishes the LSPs on the shortest path to a destination as determined by IP forwarding.
MPLS data packets can be discarded in these networks when the network IGP is operational on a link for which LDP is not fully operational, because there is no coupling between the LDP operational state and the IGP. When LDP is not fully operational, LDP is considered to not be synchronized with the IGP.
This issue is especially significant for applications such as a core network that does not employ BGP. Another example is an MPLS VPN where each given PE router depends on the availability of a complete MPLS forwarding path to the other PE routers for each VPN that it serves. This means that along the shortest path between the PE routers, each link must have an operational hello adjacency and an operational LDP session, and MPLS label bindings must have been exchanged over each session.
When LDP has not completed exchanging label bindings with an IGP next hop, traffic is discarded if the head end of the LSP forwards traffic because the LSP is assumed to be in place. The following are some examples of when this can happen.
- When an LDP hello adjacency or an LDP session with a peer is lost due to some error while the IGP still points to that peer. IP forwarding of traffic continues on the IGP link associated with the LDP peer rather than being shifted to another IGP link with which LDP is synchronized.
- When a new IGP link comes up, causing the next hop to a certain destination to change in the IGP's SPF calculations. Although the IGP might be up on the new link, LDP might not have completed label exchange for all the routes. This condition might be transient or due to a misconfiguration.
The LDP protocol is unable to indicate to a dependent service the availability of an uninterrupted LSP to the desired destination. LDP-IGP synchronization minimizes this disruption due to LDP not being operational on a link for which the IGP is operational. When synchronization is in effect, the IGP advertises the maximum possible cost or metric for that link. If an alternative next hop exists for traffic, the IGP can choose that next hop for forwarding. If LDP is operational for that next hop, then no traffic is discarded.
The IGP does not advertise the original cost or metric for the link until either LDP label exchange has been completed with the peer on the link or a configured amount of time has passed (the holddown period).
With synchronization configured, LDP notifies the IGP to advertise the maximum cost for the link when one of the following triggering events takes place:
If the holddown timer has been configured, the timer starts when the triggering event takes place. When the timer expires, LDP notifies the IGP to resume advertising the original cost.
If the holddown timer has not been configured, the IGP waits (endlessly) until bindings have been received from downstream routers for all the FECs that have a next hop on that interface. Only after that takes place does LDP notify the IGP to bring down the cost on the interface.
LDP-IGP synchronization is supported only for directly connected peers and links with the platform label space.
mpls ldp igp sync holddown
- Use to configure a holddown timer, in milliseconds, for LDP-IGP synchronization. This timer limits how long the IGP waits to synchronize with LDP.
- By default, the IGP waits indefinitely for LDP to be operational on the interface.
- Example
host1(config)#mpls ldp igp sync holddown 15Use to configure a holddown timer for LDP-IGP synchronization. Use the no version to restore the default condition. mpls ldp sync
- Use to synchronize LDP with the IGP on the current interface when you issue the command from Interface Configuration mode.
- From Router Configuration mode, use to synchronize LDP with the IGP on all interfaces in the current protocol router instance, on all interfaces in the specified level (IS-IS), or on all interfaces in the specified area (OSPFv2).
- By default, LDP synchronization is not configured.
- LDP-IGP synchronization must be configured on both sides of a link to be effective and avoid asymmetric link costs. In addition, LDP-IGP synchronization is effective only when alternate links with adequate bandwidth are available in the network.
- Example 1
host1(config)#router ospf 1host1(config-router)#mpls ldp ospf syncExample 2 host1(config)#interface atm 2/0host1(config-if)#mpls ldp isis syncUse the no version from Interface Configuration mode to stop LDP synchronization on the interface. Use the no version from Router Configuration mode to stop LDP synchronization on the interfaces on which it was configured in that router instance. Synchronization Behavior During Graceful Restart
LDP-IGP synchronization does not take place while the IGP is in the process of a graceful restart. When the graceful restart completes, links for which synchronization has been configured are advertised with maximum metrics in either of the following cases:
- LDP is not yet operational on the link and no holddown timer has been configured.
- The configured holddown timer has not expired.
During LDP graceful restart, no synchronization operations are done. If the LDP graceful restart is terminated, LDP notifies the IGPs to advertise the links with the maximum metric.
Synchronization Behavior on LAN Interfaces
LDP-IGP synchronization does not take place on LAN interfaces unless the IGP has a point-to-point connection over the LAN configured on the interface. The reason for this is that multiple LDP peers might be connected on such an interface unless a point-to-point connection to a single peer has been configured. Because synchronization raises the cost on the interface high enough to prevent traffic being forwarded to that link, if multiple peers are connected, the cost is raised on all the peers even though LDP might be unsynchronized with only one of the peers. Consequently, traffic is diverted away from all the peers, an undesirable situation.
Synchronization Behavior on IGP Passive Interfaces
On IGP passive interfaces, the link cost is not raised when LDP-IGP synchronization is configured and a triggering event occurs.
Synchronization and TE Metrics
When traffic engineering is configured for an IGP, LDP-IGP synchronization does not affect the traffic engineering metric advertised for the link, regardless of whether the TE metric is explicitly configured or the default value.