No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 12

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring DLDP

Configuring DLDP

This section describes how to configure DLDP.

Configure DLDP Functions

This section describes how to configure DLDP for detecting unidirectional links.

Pre-configuration Tasks

Before configuring DLDP, complete the following task:

  • Ensure that the interfaces on both ends work in non-auto-negotiation mode.

Enabling DLDP

Context

Unidirectional links can be detected only when the devices on both ends of optical fibers or copper twisted pairs support DLDP functions.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dldp enable

    DLDP is enabled globally.

    By default, DLDP is disabled globally and on each interface.

  3. Run:

    interface interface-type interface-number

    The interface view is displayed.

    NOTE:

    DLDP cannot be configured on Layer 3 interfaces or logical interfaces.

  4. Run:

    dldp enable

    DLDP is enabled on the interfaces.

  5. Run:

    commit

    The configuration is committed.

(Optional) Configuring the Working Mode of DLDP

Context

If DLDP works in normal mode, the system can identify only unidirectional links caused by intersected fibers.

If DLDP works in enhanced mode, the system can identify unidirectional links caused by intersected fibers or fiber disconnection. To detect unidirectional links caused by disconnection of one optical fiber, manually set the rate and full duplex mode of the connected interfaces. If you do not set the rate and full duplex mode of the connected interfaces, DLDP does not take effect even if it is enabled.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dldp work-mode { enhance | normal }

    The working mode of DLDP is configured.

    By default, the working mode of DLDP is enhance.

  3. Run:

    commit

    The configuration is committed.

(Optional) Configuring the DLDP-Compatible Mode

Context

This configuration is required if the device works with the following Huawei switches to provide the DLDP function:

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    dldp compatible-mode enable

    The DLDP compatible mode is enabled.

    The DLDP compatible mode must be enabled or disabled on both the two interfaces.

  4. Run:

    dldp compatible-mode local-mac mac-address

    The DLDP packets sent in the DLDP compatible mode contain MAC addresses.

    After the DLDP compatible mode is enabled on the device, the peer device may discover multiple neighbors, which leads to DLDP flapping. The dldp compatible-mode local-mac command can prevent this problem.

    NOTE:

    At least one bit in the MAC address must be 0, and the MAC address cannot be a multicast MAC address.

  5. Run:

    commit

    The configuration is committed.

(Optional) Setting the Interval for Sending Advertisement Packets

Context

An interface in Advertisement state sends Advertisement packets. DLDP creates a neighbor entry, starts the entry timer, and transits to the Probe state if the neighbor entry does not exist on the peer interface. DLDP updates the entry timer if the neighbor entry exists.

The interval for sending Advertisement packets must be smaller than one third of the STP convergence time. If the interval is too long, STP loops occur when a unidirectional link is still enabled on a DLDP interface. If the interval is too short, the traffic volume on the network increases.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dldp interval interval

    The interval for sending Advertisement packets is set.

    By default, the interval for sending the Advertisement packets is 5 seconds.

    NOTE:

    The same interval for sending Advertisement packets must be set on the local and remote devices that are connected through optical fibers or copper twisted pairs; otherwise, DLDP cannot work properly.

  3. Run:

    commit

    The configuration is committed.

(Optional) Setting the Timeout Period of the DelayDown Timer

Context

If a DLDP interface in Active, Advertisement, or Probe state receives a Port-Down event, the interface enters Inactive state and clears the neighbor information. In some cases, the interface is Down for a short time. For example, failure of the Tx fiber on an interface may cause jitter of optical signals on the Rx fiber, which makes the interface Down and then Up again. To prevent the neighbor information from being deleted immediately in this case, the DLDP interface first enters the DelayDown state and starts the DelayDown timer. Before the DelayDown timer times out, the interface retains the neighbor information and responds to only Port-Up events.

  • If the DLDP interface does not receive any Port-Up event when the DelayDown timer times out, the interface enters the Inactive state and deletes the neighbor entry.

  • If the DLDP interface receives the Port-Up event before the DelayDown timer times out, the interface returns to the previous state.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dldp delaydown-timer time

    The timeout period of the DelayDown timer is set.

    The default timeout value of the DelayDown timer is 1 second.

  3. Run:

    commit

    The configuration is committed.

(Optional) Setting the Mode of Shutting Down an Interface When a Unidirectional Link Is Detected

Context

When a unidirectional link is detected, DLDP shuts down the corresponding interface in either of the following ways:

  • Manual mode: When the network performance is poor, this mode can prevent DLDP from affecting packet forwarding by shutting down the interface immediately when a unidirectional link is detected. It is a compromise mode used to prevent interface shutdown due to incorrect judgment of the system. In this mode, DLDP detects unidirectional links, and the network administrator manually shuts down the interface. Upon detecting a unidirectional link, DLDP records only log and trap messages and prompts the network administrator to shut down the interface.

  • Automatic mode: It is the default mode. When a unidirectional link is detected, DLDP changes to the Disable state, records the log and trap messages, and sets the interface status to Shutdown.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dldp unidirectional-shutdown { auto | manual }

    The interface shutdown mode when a unidirectional link is detected is set.

    By default, DLDP automatically shuts down the interface when a unidirectional link is detected.

    An interface in DLDP Down state still sends RecoverProbe packets periodically. If the interface receives correct RecoverEcho packets, the unidirectional link changes to the bidirectional link and the DLDP status of the interface becomes Up.

    NOTE:

    When the network performance is good, the automatic mode is recommended. When the network performance is low, the manual mode is recommended because the automatic mode may lead to a delay in receiving DLDP packets and a unidirectional link may be detected mistakenly. The network administrator manually shuts down the interface, preventing packet forwarding from being affected by automatic interface shutdown.

  3. Run:

    commit

    The configuration is committed.

(Optional) Configuring the Authentication Mode for DLDP Packets

Context

To ensure packet validity on an insecure network, users can configure one of the following authentication modes for DLDP packets.

Table 11-24 Authentication modes of DLDP packets

Authentication Mode

Description

Simple authentication mode

The receiver compares the authentication key and authentication type of the packet with those configured on the local end. If they are different, the receiver discards the packet.

MD5 authentication mode

The receiver compares the authentication key and authentication type of the packet with the MD5-encrypted password and authentication type that are configured on the local end. If they are different, the receiver discards the packet.

SHA authentication mode

The receiver compares the authentication key and authentication type of the packet with the SHA-encrypted password and authentication type that are configured on the local end. If they are different, the receiver discards the packet.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    dldp authentication-mode { md5 md5–password | simple simple-password | sha sha-password }

    The authentication mode is configured for DLDP packets.

    By default, the DLDP packets between the interfaces on the local device and the remote device are not authenticated.

    NOTE:

    The local and remote devices must use the same authentication mode and the authentication password; otherwise, the authentication fails. DLDP works properly only after the authentication succeeds.

  3. Run:

    commit

    The configuration is committed.

Checking the Configuration

Procedure

  • Run the display dldp [ interface interface-type interface-number | brief ] command to check the DLDP configuration and neighbor information entries.

Resetting the DLDP Status

After the DLDP status of a disabled interface is reset, the interface re-detects unidirectional links.

Context

When a unidirectional link is detected, the interface enters the Disable state. The system prompts you to shut down the interface or automatically sets the interface state to DLDP Down according to the configuration. To enable the interface to detect unidirectional links again, you can reset the DLDP status of the interface as follows:

  • If the interface is shut down using the shutdown command, run the undo shutdown command to enable the interface to detect unidirectional links again.

  • If the system automatically sets the interface state to DLDP Down, wait the interface to recover using the auto recovery mechanism after the link state becomes bidirectional. You can also run the dldp reset command to reset the DLDP status of the interface.

When you reset the DLDP status globally on a device, the DLDP status is reset for all the disabled ports on the device. When you reset the DLDP status on a disabled interface, the DLDP status is reset only for this interface.

Procedure

  • Reset the DLDP status globally.

    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      dldp reset

      The DLDP status is reset globally.

    3. Run:

      commit

      The configuration is committed.

  • Reset the DLDP status on an interface.

    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      interface interface-type interface-number

      The interface view is displayed.

    3. Run:

      dldp reset

      The DLDP status is reset for the interface.

    4. Run:

      commit

      The configuration is committed.

Translation
Download
Updated: 2019-08-09

Document ID: EDOC1000041694

Views: 58607

Downloads: 3621

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next