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

NE40E-M2 V800R010C10SPC500 Configuration Guide - WAN Access 01

This is NE40E-M2 V800R010C10SPC500 Configuration Guide - WAN Access
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 HDLC Functions

Configuring HDLC Functions

This section describes how to configure HDLC encapsulation and optional HDLC parameters.

Usage Scenario

HDLC applies when a bit-oriented link layer protocol is used for synchronous transmission.

Pre-configuration Tasks

Before configuring HDLC functions, configure the physical attributes of each synchronous serial interface on the Router to ensure that the physical layer status of the interface is Up.

Configuration Procedures

Figure 7-1 Flowchart for configuring HDLC functions

Configuring HDLC as the Link Layer Protocol of an Interface

You can configure HDLC as a link layer protocol on an interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

    NOTE:

    Run the command controller e3 controller-number, the E3 interface view is displayed.

  3. Run link-protocol hdlc

    HDLC is configured as a link layer protocol of the interface.

  4. Run commit

    The configuration is committed.

Assigning an IP Address to an Interface

You can assign an IP address to an interface or configure IP address unnumbered.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run either of the following commands.

    • To assign an IP address to the interface, run:

      ip address ip-address { mask | mask-length } [ sub ]
    • To configure IP address unnumbered, run:

      ip address unnumbered  interface interface-type interface-number
      NOTE:

      Before configuring IP address unnumbered on an interface on which HDLC runs as a data link layer protocol, ensure that the interface borrowing an IP address can learn a route to the peer; otherwise, data cannot be transmitted to the peer.

  4. Run commit

    The configuration is committed.

(Optional) Configuring HDLC Link Status Monitoring

The HDLC link status can be effectively monitored by configuring the HDLC link status monitoring function.

Context

The parameters for HDLC link status monitoring are as follows:

  • Keepalive time

    • Polling interval

      The polling interval determines how often an interface sends a Keepalive message. When HDLC is specified as the link layer protocol on the interface, the interface sends a Keepalive message to its peer device at the set polling interval. If the interface fails to receive the Keepalive message from the peer after a specified number of polling intervals, the interface considers the peer device to be faulty and sets the HDLC link to Down. In situations with unfavorable network delay or significant congestion, you can increase the polling interval to reduce network flapping.

    • Keepalive count

      If a device does not receive a Keepalive message from its peer within a specified polling interval, the Keepalive count increases by 1. If the device still fails to receive a Keepalive message from its peer after a specified Keepalive count is reached, the device considers the link connecting to the peer device to be faulty and sets the HDLC link to Down.

    The Keepalive time equals the polling interval multiplied by the Keepalive count. In situations with unfavorable network delay or significant congestion, a short Keepalive time may cause network flapping. Conversely, a long Keepalive time would lead to slow link detection. Therefore, make sure that the Keepalive time is appropriate and fits the network situations.

  • IP-Trunk member link monitoring

    An IP-Trunk link is established between two devices, and multiple transmission devices may be deployed on the link to transparently transmit data. If a link connecting a POS interface of the IP-Trunk is faulty, the POS interface sets its HDLC status to Down. If the loopback detection function is enabled on the transmission devices, loopback messages will cause the HDLC status of the POS interface to become Up. As a result, IP-Trunk traffic will continue to be distributed to the faulty POS interface and gets discarded, causing service interruption. To prevent IP-Trunk traffic from being discarded, you can enable IP-Trunk member link monitoring so that when a POS interface detects a loopback message, the POS interface sets its HDLC status to Down.

Procedure

  • Configure a polling interval.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed

    3. Run timer hold seconds

      A polling interval is configured.

      NOTE:

      The polling intervals on two interconnected devices must be set to the same value (other than 0s). If both polling intervals are set to 0s, the link detection function is disabled.

    4. Run commit

      The configuration is committed.

  • Configure a Keepalive count.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run keepalive count count-number

      A Keepalive count is configured.

      haiyo

    4. Run commit

      The configuration is committed.

  • Configure IP-Trunk member link monitoring.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run down-when-looped

      IP-Trunk member link monitoring is enabled on a specific POS interface. When the POS interface detects a loopback message, the POS interface sets its HDLC status to Down.

    4. Run commit

      The configuration is committed.

(Optional) Configuring HDLC Link Dampening Function

To prevent frequent HDLC flapping from flapping of the link or network layers, configure the HDLC link dampening function.

Context

Optical fiber flapping on a physical interface causes HDLC link to flap between Up and Down frequently. This results in unstable link or network layers. To prevent HDLC flapping from causing flapping of link or network layers, configure the HDLC link dampening function. By default, HDLC link dampening function is enabled.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run hdlc dampening level { light | middle | heavy | manual { half-life-period half-life-period suppress-threshold suppress-threshold reuse-threshold reuse-threshold max-suppress-time max-suppress-time } }

    The HDLC link dampening level is configured.

  3. (Optional) Run the hdlc dampening disable command to disable the HDLC link dampening.

    If you do not want to use the HDLC link dampening function, run the hdlc dampening disable command to disable the function.

  4. Run commit

    The configuration is committed.

Verifying the HDLC Function Configuration

After configuring basic HDLC functions, you can view the interface status and link layer protocol.

Prerequisites

Basic HDLC functions have been configured.

Procedure

  • Run the display interface [ interface-type [ interface-number ] ] command to check the interface status, link layer protocol, and configuration.
  • The display hdlc interface [ interface-type interface-number ] command displays HDLC link information on an interface.

Example

Run the display interface command. The command output shows that the link layer protocol of the interface is HDLC.
<HUAWEI> display interface pos 0/1/0
Pos0/1/0 current state : UP (ifindex: 15)
Line protocol current state : UP
Description: HUAWEI, Pos0/1/0 Interface (ifindex: 124, vs: 0)
Route Port,The Maximum Transmit Unit is 4470, Hold timer is 10(sec)
Internet protocol processing : disabled
Link layer protocol is nonstandard HDLC
Last physical up time   : 2010-08-25 10:12:21
Last physical down time : 2010-08-24 09:20:45
Current system time: 2010-08-26 06:39:03 
Statistics last cleared:2010-08-26 03:28:03
    Last 300 seconds input rate 0 bits/sec, 0 packets/sec
    Last 300 seconds output rate 0 bits/sec, 0 packets/sec
    Input:0 packets, 0 bytes 
    Input error: 0 shortpacket, 0 longpacket, 0 CRC, 0 lostpacket
                Output: 0 packets, 0 bytes
                Output error: 0 lostpackets
    Output error: 0 overrunpacket, 0 underrunpackets
    Last 300 seconds input utility rate:  0.00%
    Last 300 seconds output utility rate: 0.00%
Run the displayhdlc interface command to check HDLC link information on an interface.
<HUAWEI> display hdlc interface pos0/1/0
-----------------------------------------------------------------------------------

Interface Name      HDLC State      Damping Reuse Time(sec)

-----------------------------------------------------------------------------------

Pos0/1/0             DOWN (damping)                                      5

Download
Updated: 2019-01-02

Document ID: EDOC1100058399

Views: 13866

Downloads: 37

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