The recovery time is the amount of time a router waits for LDP to restart gracefully. The recovery time period begins when an initialization message is sent or received. This period is also typically the amount of time that a neighboring router maintains its information about the restarting router, allowing it to continue to forward traffic.
To prevent a neighboring router from being adversely affected if it receives a false value for the recovery time from the restarting router, you can configure the maximum recovery time on the neighboring router. A neighboring router maintains its state for the shorter of the two times. For example, router A is performing an LDP graceful restart. It has sent a recovery time of 900 seconds to neighboring router B. However, router B has its maximum recovery time configured at 400 seconds. Router B will only wait for 400 seconds before it purges its LDP information from router A.
To configure recovery time, include the recovery-time statement and the maximum-neighbor-recovery-time statement:
-
graceful-restart {
-
maximum-neighbor-recovery-time seconds;
-
recovery-time seconds;
- }
For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.