LDP GR

LDP GR overview

LDP Graceful Restart (GR) enables an LSR to retain MPLS forwarding entries during an LDP restart, ensuring continuous MPLS forwarding.

Figure 12: LDP GR

As shown in Figure 12, GR defines the following roles:

The device can act as a GR restarter or a GR helper.

Figure 13: LDP GR operation

As shown in Figure 13, LDP GR works in the following steps:

  1. LSRs establish an LDP session. The L flag of the Fault Tolerance TLV in their Initialization messages is set to 1 to indicate that they support LDP GR.

  2. When LDP restarts, the GR restarter starts the MPLS Forwarding State Holding timer, and marks the MPLS forwarding entries as stale. When the GR helper detects that the LDP session with the GR restarter goes down, it marks the FEC-label mappings learned from the session as stale and starts the Reconnect timer received from the GR restarter.

  3. After LDP completes restart, the GR restarter re-establishes an LDP session with the GR helper. If the LDP session is not set up before the Reconnect timer expires, the GR helper deletes the stale FEC-label mappings and the corresponding MPLS forwarding entries. If the LDP session is successfully set up before the Reconnect timer expires, the GR restarter sends the remaining time of the MPLS Forwarding State Holding timer as the LDP Recovery time to the GR helper.

  4. After the LDP session is re-established, the GR helper starts the LDP Recovery timer.

  5. The GR restarter and the GR helper exchange label mappings and update their MPLS forwarding tables.

    The GR restarter compares each received label mapping against stale MPLS forwarding entries. If a match is found, the restarter deletes the stale mark for the matching entry. Otherwise, it adds a new entry for the label mapping.

    The GR helper compares each received label mapping against stale FEC-label mappings. If a match is found, the helper deletes the stale mark for the matching mapping. Otherwise, it adds the received FEC-label mapping and a new MPLS forwarding entry for the mapping.

  6. When the MPLS Forwarding State Holding timer expires, the GR restarter deletes all stale MPLS forwarding entries.

  7. When the LDP Recovery timer expires, the GR helper deletes all stale FEC-label mappings.