After configuring a tunnel protection group, you can configure a trigger mechanism of protection switching to force traffic to switch to the primary LSP or the backup LSP. Alternatively, you can perform switchover manually.
Pay attention to the protection switching mechanism before configuring the protection switching trigger mechanism.
The device performs protection switching based on the following rules, see Table 1. ↑ in this table indicates that the priority level in the upper line is higher than that in a lower line.
Switching Request |
Order of Priority |
Description |
---|---|---|
Clear |
Highest |
Clears all switching requests initiated manually, including forcible and manual switching. A signal failure does not trigger traffic switching. |
Lockout of protection |
↑ |
Prevents traffic from switching to a protection tunnel even though a working tunnel fails. |
Forcible switch |
↑ |
Forcibly switches traffic from a working tunnel to a protection tunnel, irrespective of whether the protection tunnel functions properly (unless a higher priority switch request takes effect). |
Signal failure |
↑ |
Automatically triggers protection switching. |
Manual switching |
↑ |
Switches traffic from a working tunnel to a protection tunnel only when the protection tunnel functions properly or switches traffic from the protection tunnel to the working tunnel only when the working tunnel functions properly. |
Wait to restore |
↑ |
Switches traffic from a protection tunnel to a working tunnel after the working tunnel recovers after the wait-to-restore (WTR) timer elapses. |
No request |
Lowest |
There is no switching request. |
Perform the following configurations on the ingress node of the primary MPLS TE tunnel.
The system view is displayed.
The tunnel interface view of the primary tunnel is displayed.
To forcibly switch traffic from the working tunnel to the protection tunnel, run mpls te protect-switch force
To prevent traffic from switching on the working tunnel, run mpls te protect-switch lock
To switch traffic to the protection tunnel, run mpls te protect-switch manual
The current configuration is committed.