OcNOS-SP : Multi-Protocol Label Switching Guide : Label Distribution Protocol Command Reference : LDP Commands : label-retention-mode
label-retention-mode
Use this command to set the retention mode to be used for all labels exchanged.
When an LSR receives a label binding for a particular FEC (Forwarding Equivalence Class) from another LSR that is not its next hop for that FEC, it might keep track of such bindings or discard them. Use the liberal parameter to retain all labels binding to FEC received from label distribution peers, even if the LSR is not the current next-hop. Use the conservative parameter to maintain only the label bindings for valid next-hops in a LSP. Liberal label retention mode allows for quicker adaptation to routing changes, whereas conservative label retention mode requires an LSR to maintain fewer labels.
Note: The retention mode value set on the interface (see ldp label-retention-mode) overrides the value set by this command.
Note: Any changes made to the retention mode for an interface (after a session is already operational) will only apply to labels received after the mode has been changed. All previously received labels will remain as they were.
Use the no parameter to revert to default retention mode.
Note: label-retention-mode "liberal" is supported with advertisement mode "DU" only.
Note: label-retention-mode "liberal" is not supported with advertisement mode "DOD".
Note: When the advertisement mode is set as "DU", label-retention-mode automatically sets to "liberal".
Note: label-retention-mode "conservative" is supported with advertisement mode "DOD" only.
Note: label-retention-mode "conservative" is not supported with advertisement mode "DU".
Note: When the advertisement mode is set as "DOD", label-retention-mode automatically sets to "conservative".
Command Syntax
label-retention-mode (conservative|liberal)
no label-retention-mode (conservative|liberal)
Parameters
conservative
Specify to delete all unused labels and FECs.
liberal
Specify to retain all labels, regardless of use.
Default
By default, label retention mode is liberal
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
This example shows how to set the retention mode for all interfaces of an LSR.
#configure terminal
(config)#router ldp
(config-router)#label-retention-mode liberal
Last modified date: 10/17/2023