By configuring the tunnel re-optimization function, you can periodically recompute routes for a CR-LSP. If the recomputed routes are better than the routes in use, a new CR-LSP is then established according to the recomputed routes. In addition, services are switched to the new CR-LSP, and the previous CR-LSP is deleted.
If an upstream node on an MPLS network is busy but its downstream node is idle or an upstream node is idle but its downstream node is busy, a CR-LSP may be torn down before the new CR-LSP is established, causing a temporary traffic interruption. In this case, you can configure the switching and deletion delays.
If the re-optimization is enabled, the route pinning cannot be used at the same time.
The CR-LSP re-optimization cannot be configured when the resource reservation style is FF.
Perform the following configurations on the ingress node of an MPLS TE tunnel.
The system view is displayed.
The tunnel interface view of the MPLS TE tunnel is displayed.
Periodic re-optimization is enabled.
By default, re-optimization is disabled. The default periodic re-optimization interval is 3600 seconds.
The current tunnel configuration is committed.
The system view is displayed.
Run mpls
The MPLS view is displayed.
Run mpls te switch-delay switch-time delete-delay delete-time
The switching and deletion delays are set.
By default, the switching delay is 5000 ms and the deletion delay is 7000 ms.
Back to the user view.
Manual re-optimization is enabled.
After you configure the automatic re-optimization in the tunnel interface view, you can return to the user view and run the mpls te reoptimization command to immediately re-optimize all tunnels or the specified tunnel on which the automatic re-optimization is enabled. After you perform the manual re-optimization, the timer of the automatic re-optimization is reset and counts again.