To facilitate operation and maintenance and learn about the running status of the MPLS network, configure the MPLS trap function so that the device can notify the NMS of the LDP session status and usage of LDP LSPs, BGP LSPs and dynamic labels.
If the proportion of used MPLS resources, such as LSPs, dynamic labels, and dynamic BFD sessions to all supported ones reaches a specified upper limit, new MPLS services may fail to be established because of insufficient resources. To facilitate operation and maintenance, an upper alarm threshold of MPLS resource usage can be set. If MPLS resource usage reaches the specified upper alarm threshold, an alarm is generated.
By default, the trap function is disabled for the MPLS LDP module.
By default, the trap function is disabled for the LSPM module.
To configure the alarm function for dynamic label usage, specify hwMplsDynamicLabelThresholdExceed and hwMplsDynamicLabelThresholdExceedClear to enable the threshold exceeding alarm and clear alarm when configuring trap-name. When the usage of dynamic labels exceeds the upper threshold or falls below the lower threshold, the system generates a threshold exceeding alarm or clear alarm.
To configure the LSP usage alarm function, specify hwmplslspthresholdexceed and hwmplslspthresholdexceedclear to enable the threshold exceeding alarm and clear alarm when configuring trap-name. When the LSP usage exceeds the upper threshold or falls below the lower threshold, the system generates a threshold exceeding alarm or clear alarm.
By default, the interval for suppressing the display of excessive LSP traps is 300 seconds, and a maximum of three LSP traps can be sent in the suppression interval.
You can set the following parameters:
By default, the upper limit is 80%, and the lower limit is 70%, which are recommended.
Each command only configures the trigger conditions for an alarm and its clear alarm. Although trigger conditions are met, the alarm and its clear alarm can be generated only after the snmp-agent trap enable feature-name mpls_lspm trap-name { hwMplsDynamicLabelThresholdExceed | hwMplsDynamicLabelThresholdExceedClear } command is run to enable the device to generate a dynamic label insufficiency alarm and its clear alarm.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwMplsDynamicLabelTotalCountExceed | hwMplsDynamicLabelTotalCountExceedClear } command is run to enable the device to generate limit-reaching alarms and their clear alarms, the following situations occur:
If the number of dynamic labels reaches the maximum number of dynamic labels supported by a device, a limit-reaching alarm is generated.
If the number of dynamic labels falls below 95% of the maximum number of dynamic labels supported by the device, a clear alarm is generated.
The parameters in this command are described as follows:
The default upper limit of an alarm for LDP LSP usage is 80%. The default lower limit of a clear alarm for LDP LSP usage is 75%. Using the default upper limit and lower limit is recommended.
This command configures the alarm threshold for LDP LSP usage. The alarm that the number of LSPs reached the upper threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceed is configured, and the actual LDP LSP usage reaches the upper limit of the alarm threshold. The alarm that the number of LSPs fell below the lower threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceedclear is configured, and the actual LDP LSP usage falls below the lower limit of the clear alarm threshold.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplslsptotalcountexceed | hwmplslsptotalcountexceedclear } command is run to enable LSP limit-crossing alarm and LSP limit-crossing clear alarm, an alarm is generated in the following situations:
If the total number of LDP LSPs reaches the upper limit, a limit-crossing alarm is generated.
If the total number of LDP LSPs falls below 95% of the upper limit, a limit-crossing clear alarm is generated.
The parameters in this command are described as follows:
The default upper limit of an alarm for BGP LSP usage is 80%. The default lower limit of a clear alarm for BGP LSP usage is 75%. Using the default upper limit and lower limit is recommended.
This command configures the alarm threshold for BGP LSP usage. The alarm that the number of LSPs reached the upper threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceed is configured, and the actual BGP LSP usage reaches the upper limit of the alarm threshold. The alarm that the number of LSPs fell below the lower threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceedclear is configured, and the actual BGP LSP usage falls below the lower limit of the clear alarm threshold.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplslsptotalcountexceed | hwmplslsptotalcountexceedclear } command is run to enable LSP limit-crossing alarm and LSP limit-crossing clear alarm, an alarm is generated in the following situations:
If the total number of BGP LSPs reaches the upper limit, a limit-crossing alarm is generated.
If the total number of BGP LSPs falls below 95% of the upper limit, a limit-crossing clear alarm is generated.
The parameters in this command are described as follows:
The default upper limit of an alarm for BGP IPv6 LSP usage is 80%. The default lower limit of a clear alarm for BGP IPv6 LSP usage is 75%. Using the default upper limit and lower limit is recommended.
This command configures the alarm threshold for BGP IPv6 LSP usage. The alarm that the number of LSPs reached the upper threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceed is configured, and the actual BGP IPv6 LSP usage reaches the upper limit of the alarm threshold. The alarm that the number of LSPs fell below the lower threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceedclear is configured, and the actual BGP IPv6 LSP usage falls below the lower limit of the clear alarm threshold.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplslsptotalcountexceed | hwmplslsptotalcountexceedclear } command is run to enable LSP limit-crossing alarm and LSP limit-crossing clear alarm, an alarm is generated in the following situations:
If the total number of BGP IPv6 LSPs reaches the upper limit, a limit-crossing alarm is generated.
If the total number of BGP IPv6 LSPs falls below 95% of the upper limit, a limit-crossing clear alarm is generated.
The parameters in this command are described as follows:
The default upper limit of an alarm for total LSP usage is 80%. The default lower limit of a clear alarm for total LSP usage is 75%. Using the default upper limit and lower limit is recommended.
This command configures the alarm threshold for total LSP usage. The alarm that the number of LSPs reached the upper threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceed is configured, and the actual total LSP usage reaches the upper limit of the alarm threshold. The alarm that the number of LSPs fell below the lower threshold is generated only when the command snmp-agent trap enable feature-name mpls_lspm trap-name hwmplslspthresholdexceedclear is configured, and the actual total LSP usage falls below the lower limit of the clear alarm threshold.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplslsptotalcountexceed | hwmplslsptotalcountexceedclear } command is run to enable LSP limit-crossing alarm and LSP limit-crossing clear alarm, an alarm is generated in the following situations:
If the total number of LSPs reaches the upper limit, a limit-crossing alarm is generated.
If the total number of LSPs falls below 95% of the upper limit, a limit-crossing clear alarm is generated.
Note the following issues when configuring trigger conditions:
By default, the upper alarm threshold is 80%, and the lower alarm threshold is 75%, which are recommended.
Each command only configures the trigger conditions for an alarm and its clear alarm. Although trigger conditions are met, the alarm and its clear alarm can be generated only after the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplsresourcethresholdexceed | hwmplsresourcethresholdexceedclear } command is run to enable the device to generate an LDP resource insufficiency alarm and its clear alarm.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplsresourcetotalcountexceed | hwmplsresourcetotalcountexceedclear } command is run to enable the device to generate limit-reaching alarms and their clear alarms, the following situations occur:
If the number of used LDP resources reaches the maximum number of LDP resources supported by a device, a limit-reaching alarm is generated.
If the number of used LDP resources falls below 95% of the maximum number of LDP resources supported by the device, a clear alarm is generated.
Note the following issues when configuring trigger conditions:
By default, the upper alarm threshold is 80%, and the lower alarm threshold is 75%, which are recommended.
Each command only configures the trigger conditions for an alarm and its clear alarm. Although trigger conditions are met, the alarm and its clear alarm can be generated only after the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplsresourcethresholdexceed | hwmplsresourcethresholdexceedclear } command is run to enable the device to generate an LDP resource insufficiency alarm and its clear alarm.
After the snmp-agent trap enable feature-name mpls_lspm trap-name { hwmplsresourcetotalcountexceed | hwmplsresourcetotalcountexceedclear } command is run to enable the device to generate limit-reaching alarms and their clear alarms, the following situations occur:
If the number of used LDP resources reaches the maximum number of LDP resources supported by a device, a limit-reaching alarm is generated.
If the number of used LDP resources falls below 95% of the maximum number of LDP resources supported by the device, a clear alarm is generated.
Run the display snmp-agent trap feature-name ldp all command to check the status of all traps on the MPLS LDP module.
Run the display snmp-agent trap feature-name mpls_lspm all command to check all trap messages on the MPLS LSPM module.
Run the display default-parameter mpls management command to check default configurations of the MPLS management module.