12-High Availability Configuration Guide

HomeSupportSwitchesS6550X-HI SeriesConfigure & DeployConfiguration GuidesH3C S6550X-HI Configuration Guides-R1116Pxx-6W10012-High Availability Configuration Guide
02-Error code detection configuration
Title Size Download
02-Error code detection configuration 82.37 KB

Configuring error code detection

About error code detection

As a high availability mechanism, error code detection triggers the upper-layer service module to automatically take protection actions when error code events occur. This feature reduces the influence of error codes on the service.  

Error code detection fundamentals

Interface error code detection

With this feature configured on an interface, the device periodically samples, calculates, and detects the packets received on the interface.

·     If the bit error ratio exceeds the upper threshold, an error code failure occurs on the interface. Then, an error code event is reported to trigger the upper-layer service module to take the corresponding protection action.

·     If the bit error ratio drops below the lower threshold, the error code failure is cleared on the interface. Then, an error code clearing event is reported to trigger the upper-layer service module to cancel the protection action.

Interface error code detection supports the following protection actions:

·     Trigger LSP—Error code failures on an interface can trigger LSP switchover. An error code failure occurring on an interface is reported to the upper-layer service module to switch traffic from the primary LSP to the secondary LSP. After the error code failure is cleared, traffic is switched back to the primary LSP.

·     Trigger Section—Error code failures on an interface can trigger section layer service protection. An error code failure occurring on an interface is reported to the interface management module to set the link layer protocol status of the interface to DOWN(Bit-error down). Then, the upper-layer service module associated with the interface triggers section layer service protection. After the error code failure is cleared, the link layer protocol status of the interface restores to UP and triggers the upper-layer service module to cancel section layer service protection.

Link quality detection

With this feature configured on an interface, the device periodically samples, calculates, and detects the packets received on the interface.

·     If the bit error ratio exceeds the upper threshold, an error code failure occurs on the interface. Then, the link quality of the interface becomes LOW, and an error code event is reported. In this case, IGP (for example, OSPF and IS-IS) increases the cost for the link and recalculates the routes, so that IGP does not preferentially select the link and keeps off error code failures.

·     If the bit error ratio drops below the lower threshold, the error code failure is cleared on the interface. Then, the link quality of the interface restores to GOOD, and an error code clearing event is reported. In this case, IGP restores the cost value for the interface and recalculates the routes, so that IGP can preferentially select the link again.

When an error code failure occurs on a Layer 3 Ethernet interface that is not assigned to any aggregation group, LSP switchover is also triggered in addition to link cost adjustment and IGP route recalculation.

Error code detection deployment

In the current software version, you can deploy error code detection only on Ethernet interfaces and aggregate interfaces.

·     With this feature configured on an Ethernet interface, this feature samples, calculates, and detects the bit error ratio of the Ethernet interface, and the bit error ratio of the Ethernet interface can trigger an error code event.

·     With this feature configured on an aggregate interface, this feature samples, calculates, and detects the bit error ratios for the member ports of the aggregate interface. Interface error code detection and link quality detection are different in how to trigger error code events.

Interface error code detection deployment on an aggregate interface

An aggregate interface goes down when one of the following conditions exists:

·     Error code failures occur on all member ports of the aggregate interface.

·     The number of Selected member ports without error code failures is smaller than the minimum number of Selected member ports required for bringing up the aggregate interface.

Then, the upper-layer service module of the aggregate interface is triggered to perform the protection action.

When the number of Selected member ports without error code failures reaches the minimum number of Selected member ports required for bringing up the aggregate interface, the aggregate interface comes up, and the upper-layer service module of the aggregate interface cancels the protection action.

For more information about the minimum number of Selected member ports required for bringing up an aggregate interface, see Ethernet link aggregation configuration in Layer 2—LAN Switching Configuration Guide.

Link quality detection deployment on an aggregate interface

An aggregate interface goes down and the upper-layer service module is triggered to perform the protection action when the following conditions exists:

·     Error code failures occur on all member ports of the aggregate interface.

·     The minimum number of Selected member ports required for bringing up the aggregate interface is not configured.

The status of an aggregate interface is still up but the link quality of the aggregate interface will become LOW when the number of Selected member ports without error code failures is smaller than the minimum number of Selected member ports required for bringing up the aggregate interface. In this case, IGP (for example, OSPF and IS-IS) increases the cost for the link and recalculates the routes, so that IGP does not preferentially select the link and keeps off error code failures.

When the number of Selected member ports without error code failures reaches the minimum number of Selected member ports required for bringing up the aggregate interface, the link quality of the aggregate interface restores to GOOD. In this case, IGP restores the cost value for the interface and recalculates the routes, so that IGP can preferentially select the link again.

Restrictions and guidelines: Error code detection configuration

The interface error code detection feature and the link quality detection feature are mutually exclusive. Select a proper detection method according to the scenario.

Configuring interface error code detection

Restrictions and guidelines

The trigger-lsp keyword is not supported on a Layer 2 Ethernet or aggregate interface.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

¡     Enter Layer 2 Ethernet interface view.

interface interface-type interface-number

¡     Enter Layer 3 Ethernet interface view.

interface interface-type interface-number

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Configure error code detection parameters for the interface.

port ifmonitor crc-error bit-error-ratio high-threshold high-value-coefficient high-value-power low-threshold low-value-coefficient low-value-power { trigger-lsp | trigger-section }

By default, no error code detection parameters are configured for an interface.

Configuring link quality detection

1.     Enter system view.

system-view

2.     Enter interface view.

¡     Enter Layer 3 Ethernet interface view.

interface interface-type interface-number

¡     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Configure link quality detection parameters.

link-quality crc-error bit-error-ratio high-threshold high-value-coefficient high-value-power low-threshold low-value-coefficient low-value-power

By default, no link quality detection parameters are configured.

Configuring the bit error ratio calculation factors for an interface

About this task

With error code detection enabled, the device periodically samples and checks the packets sent and received by an interface and performs the following operations:

·     When the interface is in lower bit error ratio status, the device uses the upper bit error ratio calculation factor to calculate a result. Then, the device compares the calculation result with the upper bit error ratio threshold to determine whether the interface is in upper bit error ratio status.

·     When the interface is in upper bit error ratio status, the device uses the lower bit error ratio calculation factor to calculate a result. Then, the device compares the calculation result with the lower bit error ratio threshold to determine whether the interface is in lower bit error ratio status.

You can use this feature to adjust the bit error ratio calculation factors to adjust the timeliness and reliability of the calculation results. A smaller calculation factor means a higher timeliness and lower reliability.

Restrictions and guidelines

This command takes effect only when the link-quality crc-error bit-error-ratio or port ifmonitor crc-error bit-error-ratio command is executed.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

¡     Enter Layer 2 Ethernet interface view.

interface interface-type interface-number

¡     Enter Layer 3 Ethernet interface view.

interface interface-type interface-number

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Configure the bit error ratio calculation factors for the interface.

crc-error bit-error-ratio algorithm-parameter high-factor high-factor-value low-factor low-factor-value

By default, the calculation factor is 50 for both the upper bit error ratio and lower bit error ratio.

Specifying the protocol for transferring error code detection information

About this task

When an error code failure occurs on an interface, the error code status of the interface must be sent to the peer device. The device supports using BFD or LLDP for transferring the error code status of interfaces. When the device is connected to a third-party device, you can select a protocol for transferring error code information, so that the peer device can recognize the error code information.

Restrictions and guidelines

To use LLDP for transferring error code detection information, make sure LLDP is enabled and LLDP operates in nearest bridge agent mode. For more information about LLDP, see LLDP configuration in Layer 2—LAN Switching Configuration Guide.

Procedure

1.     Enter system view.

system-view

2.     Enter interface view.

¡     Enter Layer 2 Ethernet interface.

interface interface-type interface-number

¡     Enter Layer 3 Ethernet interface view.

interface interface-type interface-number

¡     Enter Layer 2 aggregate interface view.

interface bridge-aggregation interface-number

¡     Enter Layer 3 aggregate interface view.

interface route-aggregation interface-number

3.     Specify the protocol for transferring error code detection information.

crc-error bit-error-ratio transfer-protocol { bfd | lldp }

By default, BFD is used for transferring error code detection information.

Configuring interface alarm functions

About this task

With the interface alarm functions enabled, when the number of sent or received error packets or the input or output bandwidth usage on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of sent or received error packets or the input or output bandwidth usage on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

Restrictions and guidelines

You can configure the error packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

An interface that is shut down because of error packet alarms cannot automatically recover. To bring up the interface, execute the undo shutdown command on the interface.

Enabling interface alarm functions

1.     Enter system view.

system-view

2.     Enable alarm functions for the interface monitoring module.

snmp-agent trap enable ifmonitor [ crc-error | input-error] *

By default, all alarm functions are enabled for interfaces.

Configuring CRC error packet alarm parameters

1.     Enter system view.

system-view

2.     Configure global CRC error packet alarm parameters.

ifmonitor crc-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for CRC error packets.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure CRC error packet alarm parameters for the interface.

port ifmonitor crc-error [ ratio ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global CRC error packet alarm parameters.

Configuring input error packet alarm parameters

1.     Enter system view.

system-view

2.     Configure global input error packet alarm parameters.

ifmonitor input-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for input error packets.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure input error packet alarm parameters for the interface.

port ifmonitor input-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global input error packet alarm parameters.

Verifying and maintaining error code detection

Displaying interface monitor information

To display alarm information of an interface, execute the following command in any view:

display ifmonitor interface interface-type interface-number

Clearing the bit error ratio status for interfaces

To clear the bit error ratio status for interfaces, execute the following command in user view:

reset crc-error bit-error-ratio status interface [ interface-type [ interface-number ] ]

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网