Huawei AR150/200 Series Configuration Manual

Huawei AR150/200 Series Configuration Manual

Enterprise routers
Table of Contents

Advertisement

Quick Links

Huawei AR150&200 Series Enterprise Routers
V200R002C00
Configuration Guide - Network
Management
Issue
02
Date
2012-03-30
HUAWEI TECHNOLOGIES CO., LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei AR150/200 Series

  • Page 1 Huawei AR150&200 Series Enterprise Routers V200R002C00 Configuration Guide - Network Management Issue Date 2012-03-30 HUAWEI TECHNOLOGIES CO., LTD.
  • Page 2 All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope.
  • Page 3: About This Document

    Indicates a tip that may help you solve a problem or save time. Provides additional information to emphasize or supplement NOTE important points of the main text. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 4: Command Conventions

    Based on issue 01 (2011-12-30), the document is updated as follows: The following information is modified: 1.1.1 SNMP Overview Changes in Issue 01 (2011-12-30) Initial commercial release. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 5: Table Of Contents

    1.5.2 Example for Configuring a Device to Communicate with an NM Station by Using SNMPv2c....34 1.5.3 Example for Configuring a Device to Communicate with an NM Station by Using SNMPv3....37 2 RMON Configuration.........................42 2.1 Overview of RMON ............................43 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 6 4.3.1 Establishing the Configuration Task.......................97 4.3.2 Enabling the CWMP Function........................98 4.3.3 Configuring CWMP Auto-Connection....................98 4.3.4 Setting CWMP Connection Parameters....................101 4.3.5 Configuring CWMP SSL........................102 4.3.6 Checking the Configuration........................103 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 7 6.2.1 Establishing the Configuration Task.....................142 6.2.2 Configuring ICMP Test Parameters......................142 6.2.3 Checking the Configuration........................144 6.3 Configuring the DHCP Test...........................145 6.3.1 Establishing the Configuration Task.....................145 6.3.2 Configuring DHCP Test Parameters.....................146 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 8 6.12.1 Establishing the Configuration Task....................172 6.12.2 Configuring the Jitter Server.......................173 6.12.3 Configuring the Jitter Client........................174 6.12.4 Checking the Configuration.........................175 6.13 Configuring Universal NQA Test Parameters....................176 6.13.1 Establishing the Configuration Task....................177 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 9 6.20.3 Example for Configuring the FTP Download Test................204 6.20.4 Example for Configuring the FTP Upload Test..................206 6.20.5 Example for Configuring the HTTP Test....................209 6.20.6 Example for Configuring the DNS Test....................210 Issue 02 (2012-03-30) Huawei Proprietary and Confidential viii Copyright © Huawei Technologies Co., Ltd.
  • Page 10 7.6.3 Configuring the Version of Exported Packets..................243 7.6.4 Setting the Destination Address of the Statistics...................244 7.6.5 (Optional) Configuring the Inactive Aging Time .................244 7.6.6 (Optional) Configuring the Active Aging Time..................245 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 11 8.2 Configuring Ping and Tracert.........................261 8.2.1 Establishing the Configuration Task.....................261 8.2.2 Applying Ping to Test the Network Connection...................262 8.2.3 Applying Tracert to Locate Faults in the Network................263 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 12: Snmp Configuration

    This section provides several configuration examples of SNMP. The configuration roadmap in the examples will help you understand the configuration procedures. Each configuration example provides information about the networking requirements, configuration notes, and configuration roadmap. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 13: Introduction To Snmp

    Managed device: is managed by an NM station and generates and reports alarms to the NM station. Figure 1-1 shows the relationship between the NM station and agent. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 14 MIB can reduce the costs on proxy deployment and therefore reduce the costs on the entire network management system. SNMP Operations SNMP uses Get and Set operations to replace a complex command set. The operations described Figure 1-3 can implement all functions. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 15: Snmp Features Supported By The Ar150/200

    This section compares SNMP versions in terms of their support for features and usage scenarios. Use it as a reference when you select the SNMP version during network deployment. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 16 Table 1-3 Different SNMP versions' support for the features Feature SNMPv1 SNMPv2c SNMPv3 Access control Community-name- Community-name- User or user-group- based access control based access control based access control supported supported supported Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 17 SNMP version to match the SNMP version running on the NM station to ensure the normal communication between managed devices and the NM station. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 18: Configuring A Device To Communicate With An Nm Station By Running Snmpv1

    Before configuring a device to communicate with an NM station by running SNMPv1, you need the following data. Data SNMP version, SNMP community name, destination address of alarm messages, and administrator's contact information and location Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 19: Configuring Basic Snmpv1 Functions

    NM station administrator requires the read and write permissions in a specified view in some cases. For example, a high-level administrator must read and write certain data. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 20 To allow a specified module on the managed device to report alarms to the NM station, follow the procedure described in Configuring the Trap Function. If the NM station and managed device are both Huawei products, follow the procedure described in Enabling the SNMP Extended Error Code Function to allow the device to send more types of error codes.
  • Page 21: Optional) Controlling The Nm Station's Access To The Device

    If a few MIB objects on the device or some objects in the current MIB view need to be managed by the NM station, include needs to be specified in the related command to include these MIB objects. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 22: Optional) Enabling The Snmp Extended Error Code Function

    This section describes how to enable the extended SNMP error code function when both the NM station and managed device are Huawei products. After this function is enabled, more types of error codes are provided to help you locate and rectify faults more quickly and accurately.
  • Page 23: Checking The Configuration

    Prerequisites The configurations of basic SNMPv1 functions are complete. Procedure Run the display snmp-agent community { read | write } command to check the configured community name. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 24 View name:ViewDefault MIB Subtree:snmpUsmMIB Subtree mask: Storage type: nonVolatile View Type:excluded View status:active View name:ViewDefault MIB Subtree:snmpVacmMIB Subtree mask: Storage type: nonVolatile View Type:excluded View status:active View name:ViewDefault Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 25: Configuring A Device To Communicate With An Nm Station By Running Snmpv2C

    Beijing China Run the display current-configuration | include trap command. You can view trap configurations. <Huawei> display current-configuration | include trap snmp-agent trap enable Run the display snmp-agent extend error-code status command. You can view whether the SNMP extended error code feature is enabled.
  • Page 26: Configuring Basic Snmpv2C Functions

    SNMP communication can be conducted between the NM station and managed device. Procedure Step 1 Run: system-view The system view is displayed. Step 2 (Optional) Run: snmp-agent The SNMP agent function is enabled. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 27 NM station manages many devices. This allows the NM station administrator to contact the equipment administrators quickly for fault location and rectification. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 28: Optional) Controlling The Nm Station's Access To The Device

    To allow a specified module on the managed device to report alarms to the NM station, follow the procedure described in Configuring the Trap Function. If the NM station and managed device are both Huawei products, follow the procedure described in Enabling the SNMP Extended Error Code Function to allow the device to send more types of error codes.
  • Page 29: Optional) Enabling The Snmp Extended Error Code Function

    This section describes how to enable the extended SNMP error code function when both the NM station and managed device are Huawei products. After this function is enabled, more types of error codes are provided to help you locate and rectify faults more quickly and accurately.
  • Page 30: Optional) Configuring The Trap Function

    The queue length depends on the number of generated trap messages. If the router frequently generates trap messages, a longer queue length can be set to prevent trap messages from being lost. Step 5 Run: snmp-agent trap life seconds Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 31: Checking The Configuration

    Run the display snmp-agent sys-info version command. You can view the SNMP version running on the agent. <Huawei> display snmp-agent sys-info version SNMP version running in the system: SNMPv2c Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 32 Beijing China Run the display current-configuration | include trap command. You can view trap configurations. <Huawei> display current-configuration | include trap snmp-agent trap enable Run the display snmp-agent extend error-code status command. You can view whether the SNMP extended error code feature is enabled.
  • Page 33: Configuring A Device To Communicate With An Nm Station By Running Snmpv3

    Before configuring a device to communicate with an NM station by running SNMPv3, complete the following task: Configuring a routing protocol to ensure that the router and NM station are routable Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 34: Configuring Basic Snmpv3 Functions

    By default, SNMPv1, SNMPv2c, and SNMPv3 is enabled. Step 4 Run: snmp-agent group v3 group-name { authentication | noauth | privacy } An SNMPv3 user group is configured. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 35 The parameters of the trap messages sent from device are configured. Step 7 Run: snmp-agent target-host trap-hostname hostname address ipv4-addr [ udp-port udp- portid ] [ public-net | vpn-instance vpn-instance-name ] trap-paramsname paramsname Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 36: Optional) Controlling The Nm Station's Access To The Device

    To allow a specified module on the managed device to report alarms to the NM station, follow the procedure described in Configuring the Trap Function. If the NM station and managed device are both Huawei products, follow the procedure described in Enabling the SNMP Extended Error Code Function to allow the device to send more types of error codes.
  • Page 37 For example, a low-level administrator needs to read certain data. write-view needs to be configured in the command if the NM Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 38: Optional) Enabling The Snmp Extended Error Code Function

    This section describes how to enable the extended SNMP error code function when both the NM station and managed device are Huawei products. After this function is enabled, more types of error codes are provided to help you locate and rectify faults more quickly and accurately.
  • Page 39: Optional) Configuring The Trap Function

    ----End 1.4.6 Checking the Configuration After SNMPv3 functions are configured, you can view the SNMPv3 configurations. Prerequisites The configurations of basic SNMPv3 functions are complete. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 40 Storage type: nonVolatile View Type:included View status:active View name:ViewDefault MIB Subtree:snmpUsmMIB Subtree mask: Storage type: nonVolatile View Type:excluded View status:active View name:ViewDefault MIB Subtree:snmpVacmMIB Subtree mask: Storage type: nonVolatile Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 41: Snmp Configuration Examples

    Beijing China Run the display current-configuration | include trap command. You can view trap configurations. <Huawei> display current-configuration | include trap snmp-agent trap enable Run the display snmp-agent extend error-code status command. You can view whether the SNMP extended error code feature is enabled.
  • Page 42 Step 1 Configure available routes between the router and the NM stations. Details for the configuration procedure are not provided here. Step 2 Enable the SNMP agent. <Huawei> system-view [Huawei] snmp-agent Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 43 [Huawei] snmp-agent mib-view dnsmib include 1.3.6.1.4.1.2011.5.25.194 # Configure a community name to allow NMS2 to manage the objects in the MIB view. [Huawei] snmp-agent community write adminnms2 mib-view dnsmib acl 2001 Step 5 Configure the trap function. [Huawei] snmp-agent target-host trap-paramsname trapnms2 v1 securityname adminnms2 [Huawei] snmp-agent target-host trap-hostname nms2 address 1.1.1.2 trap-paramsname...
  • Page 44 Overwritten messages : 0 Current messages : 98 #Oct 11 2010 18:57:59+00:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011 .5.25.191.3.1 configurations have been changed. The current change number is 95, the change loop count is 0, and the maximum number of records is 4095.
  • Page 45: Example For Configuring A Device To Communicate With An Nm Station By Using Snmpv2C

    Configure the router to run SNMPv2c. Configure an ACL to allow NMS2 to manage DNS MIB object on the router. Configure the equipment administrator's contact information on the router. Configure NMS2. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 46 [Huawei] snmp-agent mib-view dnsmib include 1.3.6.1.4.1.2011.5.25.194 # Configure a community name to allow NMS2 to manage the objects in the MIB view. [Huawei] snmp-agent community write adminnms2 mib-view dnsmib acl 2001 Step 5 Configure the trap function. [Huawei] snmp-agent target-host trap-paramsname trapnms2 v2c securityname adminnms2 [Huawei] snmp-agent target-host trap-hostname nms2 address 1.1.1.2 trap-paramsname...
  • Page 47 Overwritten messages : 0 Current messages : 98 #Oct 11 2010 18:57:59+00:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011 .5.25.191.3.1 configurations have been changed. The current change number is 95, the change loop count is 0, and the maximum number of records is 4095.
  • Page 48: Example For Configuring A Device To Communicate With An Nm Station By Using Snmpv3

    Equipment administrator's contact information needs to be configured on the router. This allows the NMS administrator to contact the equipment administrator quickly if a fault occurs. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 49 Step 1 Configure available routes between the router and the NM stations. Details for the configuration procedure are not provided here. Step 2 Enable the SNMP agent. <Huawei> system-view [Huawei] snmp-agent Step 3 Configure the router to run SNMPv3. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 50 NMS administrator and encryption for the data transmitted between the router and NMS2. [Huawei] snmp-agent usm-user v3 testuser testgroup authentication-mode md5 87654321 privacy-mode des56 87654321 [Huawei] snmp-agent group v3 testgroup privacy write-view dnsmib notify-view dnsmib acl 2001 Step 5 Configure the trap function.
  • Page 51 Overwritten messages : 0 Current messages : 98 #Oct 11 2010 18:57:59+00:00 Huawei DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011 .5.25.191.3.1 configurations have been changed. The current change number is 95, the change loop count is 0, and the maximum number of records is 4095.
  • Page 52 B4B3D731A5006953EDFC9BB83F983497 privacy-mode des56 B4B3D731A5006953EDFC9BB83F983497 snmp-agent trap enable snmp-agent trap queue-size 200 snmp-agent trap life 60 snmp-agent return Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 53: Rmon Configuration

    This section provides examples for configuring RMON, and illustrates the networking requirements, configuration roadmap, and configuration notes. You can better understand the configuration procedures with the help of the configuration flowchart. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 54: Overview Of Rmon

    SNMP NM Station; so, the administrator can handle it properly without additional training. RMON in the AR150/200 supports four groups, namely, statistics, history, alarm, and event, as defined in RFC 2819, and a Performance-MIB defined by Huawei. The following describes each group.
  • Page 55 In the AR150/200, to save system resources, each entry is given a specific time span. The time span indicates the period for an entry to keep the invalid state. The entry is deleted when the time span goes down to 0. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 56: Configuring Rmon

    Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 57: Enabling The Rmon Statistics Function On The Interface

    The system view is displayed. Step 2 Run: interface ethernet interface-number The interface view is displayed. Step 3 Run: rmon-statistics enable The RMON statistics function is enabled on the interface. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 58: Configuring The Ethernetstatstable

    Currently, the AR150/200 reserves up to 10 pieces of the latest records for each history control entry. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 59: Configuring The Eventtable

    [ description string ] { log | trap object | log-trap object | none } [ owner owner-name ] The eventTable is configured. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 60: Configuring The Alarmtable

    Expression of alarm variables. It can be an arithmetic expression composed of the OIDs of alarm variables(+, -, *, / or brackets). Description of the prialarm entry in a character string. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 61: Checking The Configuration

    Run the display rmon prialarm [ entry-number ] command to view the information of the RMON prialarmTable. Run the display rmon statistics ethernet interface-number command to view the RMON statistics. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 62 Statistics entry 1 owned by Test300 is VALID. Interface : Ethernet1/0/0<ifEntry.402653698> Received octets :142915224 , packets :1749151 broadcast packets :11603 , multicast packets:756252 undersize packets , oversize packets :0 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 63: Rmon Configuration Examples

    Execute the SNMP configuration command in advance to enable sending Trap messages and configure the community name. Enable collecting statistics and configure the etherStatsTable. Configure the historyControlTable. Configure the eventTable. Configuring the alarmTable. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 64: Configuration Procedure

    # Sample the traffic on the subnet every 30 seconds and save the latest 10 history entries. [Router-Ethernet0/0/1] rmon history 1 buckets 10 interval 30 owner User01 # Verify the configuration. [Router-Ethernet0/0/1] quit Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 65: Configuration File

    : 30(sec) Rising threshold : 10000(linked with event 1) Falling threshold : 100(linked with event 2) When startup enables : risingOrFallingAlarm Latest value ----End Configuration File sysname Router Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 66 1 description logevent log owner User01 rmon event 2 description prialarmevent trap public owner User01 rmon alarm 1 1.3.6.1.2.1.2.2.1.11.4 30 absolute rising-threshold 10000 1 falling- threshold 100 2 owner User01 return Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 67: Lldp Configuration

    This section describes how to configure LLDP. 3.4 Maintaining LLDP This section describes how to clear LLDP statistics and monitor LLDP status. 3.5 Configuration Examples This section provides LLDP configuration examples. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 68: Introduction To Lldp

    Entity MIB (Optional) LLDP local system MIB LLDP remote system MIB Interface MIB (Optional) Other MIBs (Optional) LLDP frames LLDP agent LLDP/LSAP Remote device information Local device information Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 69 It makes the network topology clear and facilitates network management. The management address is carried in the Management Address Type-Length-Value (TLV) field of an LLDP packet to be transmitted to neighbor devices. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 70 Figure 3-3 LLDPDU structure End of Chassis ID Port ID Time to Optional Optional LLDPDU Live TLV The basic unit in the LLDPDU is TLV. T: information type Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 71: Lldp Feature Supported By The Ar150/200

    The devices on the unknown network may not have the LLDP function or not be managed by the network management system (NMS); however, they must Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 72 Figure 3-6 Link aggregation is configured on the network Network Eth-Trunk Enterprise Enterprise RouterA RouterB User User Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 73 Whether a port supports link aggregation and is enabled with link aggregation MAC/PHY Configuration/Status TLV Rate and duplex status of a port, whether auto-negotiation is supported, and whether auto-negotiation is enabled Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 74: Configuring Lldp

    Before configuring LLDP, complete the following tasks: Configuring a reachable route between the router and the NMS and setting the SNMP parameters Configuring an LLDP management address Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 75: Enabling Global Lldp

    After global LLDP is enabled, all the interfaces on the device are enabled with LLDP. To disable LLDP on some interfaces, run the undo lldp enable command on the interface. Prerequisites LLDP has been enabled globally. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 76: Optional) Configuring An Lldp Management Address

    IP address in the following priority order: loopback interface address, and then VLANIF interface address. Among the IP addresses of the same type, the system selects the smallest one. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 77: Optional) Configuring The Tlv In The Lldpdu

    Based on 802.1ab, 802.3at extends three fields: type/source/priority, PD requested power value, and PSE allocated power value. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 78: Optional) Configuring Lldp Timers

    NMS. Prerequisites LLDP has been enabled globally. Context Interval for sending LLDP packets and delay to send LLDP packets Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 79 The storage time calculation formula is: TTL = Min (65535, (interval x hold)). TTL is the device information storage time. It is the smaller value between 65535 and (interval x hold). Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 80 (LLDP_1.0.8802.1.1.2.0.0.1 lldpRemTablesChange). Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: lldp message-transmission interval interval The interval for sending LLDP packets is set. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 81: Optional) Enabling The Lldp Trap Function

    The local management address changes. The trap is LLDP_1.3.6.1.4.1.2011.5.25.134.2.5 hwLldpLocManIPAddrChange. Neighbor information changes. The trap is LLDP_1.0.8802.1.1.2.0.0.1 lldpRemTablesChange. A trap is not generated if the management address of a neighbor changes. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 82: Checking The Configuration

    :macAddress Chassis ID :00e0-11fc-1710 System name :Huawei System description :Huawei AR200 Huawei Versatile Routing Platform Software RP (R) software,Version 5.100 (AR200 V200R002C00) Copyright (C) 2000-2011 Huawei Technologies Co., Ltd System capabilities supported :bridge System capabilities enabled :bridge LLDP Up time...
  • Page 83 PSE pairs control ability:No Power pairs :Unknown Port power classification:Unknown Link aggregation supported:Yes Link aggregation enabled :No Aggregation port ID Maximum frame Size :1628 MED port information Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 84 Port description :HUAWEI, AR Series, Interface System name :Huawei System description :Huawei AR200 Huawei Versatile Routing Platform Software RP (R) software,Version 5.100 (AR200 V200R002C00) Copyright (C) 2000-2011 Huawei Technologies Co., Ltd System capabilities supported :bridge System capabilities enabled :bridge Management address type...
  • Page 85: Maintaining Lldp

    Run the display lldp neighbor [ interface interface-type interface-number ] command to view neighbor information of an interface. ----End 3.5 Configuration Examples This section provides LLDP configuration examples. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 86: Example For Configuring Lldp On The Device That Has A Single Neighbor

    Configure management addresses for RouterA and RouterB. Enable the LLDP trap function on RouterA and RouterB. Data Preparation To complete the configuration, you need the following data: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 87 Chassis type :macAddress Chassis ID 00e0-11fc-1710 System name :RouterA System description :Huawei AR200 Huawei Versatile Routing Platform Software RP (R) software,Version 5.100 (AR200 V200R002C00) Copyright (C) 2000-2011 Huawei Technologies Co., Ltd System capabilities supported :bridge System capabilities enabled :bridge...
  • Page 88 Port VLAN ID(PVID) VLAN name of VLAN 1: VLAN1 Protocol identity :STP RSTP/MSTP LACP EthOAM Auto-negotiation supported :Yes Auto-negotiation enabled :Yes OperMau :speed(100)/duplex(Full) Power port class Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 89 Port ID :Ethernet0/0/0 Port description :HUAWEI, AR Series, Ethernet0/0/0 Interface System name :RouterB System description :Huawei AR200 Huawei Versatile Routing Platform Software RP (R) software,Version 5.100 (AR200 V200R002C00) Copyright (C) 2000-2011 Huawei Technologies Co., Ltd System capabilities supported :bridge System capabilities...
  • Page 90 Manufacturer name :HUAWEI TECH CO., Model name Asset tracking identifier :NA Media policy type :Voice Unknown Policy :Defined VLAN tagged :Yes Media policy VlanID Media policy L2 priority : Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 91: Example For Configuring Lldp On The Device That Has Multiple Neighbors

    LLDP packets. The NMS needs to obtain Layer 2 information about RouterA, RouterB, and RouterC. By using the Layer 2 information, a network administrator can know the detailed Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 92 To complete the configuration, you need the following data: Management addresses for RouterA, RouterB, and RouterC Procedure Step 1 Enable global LLDP on RouterA, RouterB, and RouterC. # Configure RouterA. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 93 Chassis type :macAddress Chassis ID 00e0-11fc-1710 System name :RouterA System description :Huawei AR200 Huawei Versatile Routing Platform Software RP (R) software,Version 5.100 (AR200 V200R002C00) Copyright (C) 2000-2011 Huawei Technologies Co., Ltd System capabilities supported :bridge System capabilities enabled :bridge...
  • Page 94 Auto-negotiation enabled :Yes OperMau :speed(100)/duplex(Full) Power port class PSE power supported PSE power enabled PSE pairs control ability:No Power pairs :Unknown Port power classification:Unknown Link aggregation supported:Yes Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 95 Port ID :Ethernet0/0/0 Port description :HUAWEI, AR Series, Ethernet0/0/0 Interface System name :RouterB System description :Huawei AR200 Huawei Versatile Routing Platform Software RP (R) software,Version 5.100 (AR200 V200R002C00) Copyright (C) 2000-2011 Huawei Technologies Co., Ltd System capabilities supported :bridge System capabilities...
  • Page 96 Media policy L2 priority : Media policy Dscp Power Type :Unknown PoE PSE power source :Unknown Port PSE Priority :Unknown Port Available power value: l View the configurations on RouterB. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 97: Example For Configuring Lldp On The Network Where Link Aggregation Is Configured

    These requirements can be met by configuring LLDP on RouterA and RouterB. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 98 [Huawei] sysname RouterA [RouterA] vlan batch 100 [RouterA] interface eth-trunk 1 [RouterA-Eth-Trunk1] trunkport ethernet 0/0/0 to 0/0/2 [RouterA-Eth-Trunk1] port link-type trunk [RouterA-Eth-Trunk1] port trunk allow-pass vlan 100 [RouterA-Eth-Trunk1] quit Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 99 Chassis type :macAddress Chassis ID 00e0-11fc-1710 System name :RouterA System description :Huawei AR200 Huawei Versatile Routing Platform Software RP (R) software,Version 5.100 (AR200 V200R002C00) Copyright (C) 2000-2011 Huawei Technologies Co., Ltd System capabilities supported :bridge System capabilities enabled :bridge...
  • Page 100 Port VLAN ID(PVID) VLAN name of VLAN 1 : VLAN1 Protocol identity :STP RSTP/MSTP LACP EthOAM Auto-negotiation supported :Yes Auto-negotiation enabled :Yes OperMau :speed(100)/duplex(Full) Power port Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 101 :HUAWEI, AR Series, Ethernet0/0/1 Interface Port And Protocol VLAN ID(PPVID) don't supported Port VLAN ID(PVID) VLAN name of VLAN 1: VLAN1 Protocol identity :STP RSTP/MSTP LACP EthOAM Auto-negotiation supported :Yes Auto-negotiation Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 102 :HUAWEI, AR Series, Ethernet0/0/2 Interface Port And Protocol VLAN ID(PPVID) don't supported Port VLAN ID(PVID) VLAN name of VLAN 1: VLAN1 Protocol identity :STP RSTP/MSTP LACP EthOAM Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 103 Local Intf Neighbor Dev Neighbor Intf Exptime Eth0/0/0 RouterB Eth0/0/0 Eth0/0/1 RouterB Eth0/0/1 Eth0/0/2 RouterB Eth0/0/2 l View the configurations on RouterB. Same as information about RouterA. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 104 10.10.10.2 interface Eth-Trunk1 port link-type trunk port trunk allow-pass vlan 100 interface Ethernet0/0/0 eth-trunk 1 interface Ethernet0/0/1 eth-trunk 1 interface Ethernet0/0/2 eth-trunk 1 return Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 105: Cwmp Configuration

    Remote Procedure Call (RPC) methods to manage and maintain the CPE. 4.3 Configuring CWMP This section describes how to configure CWMP. 4.4 Configuration Examples This chapter provides CWMP configuration examples. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 106: Cwmp Overview

    The AR150/200 functions as a CPE. The ACS requires a connection to the CPE in order to manage it. During connection setup, the CPE or ACS needs to be authenticated. The connection Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 107 RPC methods defined by the CWMP protocol. The ACS provides the following functions: CPE auto-configuration When a CPE has set up a connection with an ACS, the ACS automatically delivers configurations to the CPE. Auto-configuration parameters include: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 108: Configuring Cwmp

    Ensuring that there is a reachable route between the router and the ACS Assigning an IP address to the interface connected to the ACS Data Preparation To configure CWMP, you need the following data. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 109: Enabling The Cwmp Function

    How a CPE obtains the URL of ACS To set up a connection with an ACS, the CPE must obtain the URL of the ACS. The AR150/200 supports three methods to obtain the URL. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 110 Inform messages, maintained each CPE and an which occupy many periodically, and ACS. network resources. routine maintenance needs to be performed on the ACS and CPE. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 111 The time when a CPE sends an Inform message is set. By default, no time is specified for the CPE to send an Inform message. NOTE You can configure either one or both methods. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 112: Setting Cwmp Connection Parameters

    CPE considers that the connection is invalid and tears down the connection. Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: cwmp Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 113: Configuring Cwmp Ssl

    The CPE must validate the ACS when using the ACS URL in the HTTPS format. After validating the certificate, the CPE sets up an SSL connection with the ACS. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 114: Checking The Configuration

    Procedure Run the display cwmp configuration command to check CWMP configurations on the AR150/200. Run the display cwmp status to check CWMP status on the AR150/200. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 115: Configuration Examples

    The CWMP function needs to be configured on the Router to provide these functions. Figure 4-2 The ACS manages the Router by using CWMP Router 10.2.1.1/24 Eth1/0/0 10.1.1.1/24 Internet Enterprise A Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 116 [Router-cwmp] cwmp acs username newacsname [Router-cwmp] cwmp acs password newacspsw # Set parameters for authenticating the ACS. [Router-cwmp] cwmp cpe username newcpename [Router-cwmp] cwmp cpe password newcpepsw Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 117 1000 cwmp cpe connect retry 5 cwmp cpe wait timeout 100 cwmp cpe connect interface Ethernet 1/0/0 return Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 118: Ntp Configuration

    This section provides examples for configuring NTP, and illustrates the networking requirements, configuration roadmap, and configuration notes. You can better understand the configuration procedures with the help of the configuration flowchart. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 119: Overview Of Ntp

    Defines clock accuracy by means of stratum to synchronize the time of network devices in a short time Supports access control and MD5 authentication Transmits packets in unicast, manycast, or broadcast mode Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 120 11: 00:01 am (T2). When the NTP packet leaves Router B, Router B adds its transmitting timestamp to the NTP packet, which is 11:00:02 am (T3). Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 121: Ntp Supported By The Ar150/200

    Note that the clock with a lower stratum is synchronized to the one with a higher stratum. After the configurations, the following actions occur: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 122: Configuring Basic Ntp Functions

    This can help you complete the configuration task quickly and accurately. Applicable Environment NTP has the following operation modes: Client/Server mode Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 123: Configuring The Ntp Primary Clock

    The stratum configured for the master clock on the server must be lower than the stratum configured for the clock on the client. Otherwise, the clock on the client cannot synchronize with the master clock on the server. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 124: Configuring The Unicast Client/Server Mode

    [ vpn- instance vpn-instance-name ] ntp-service [ ipv6 ] source-interface interface-type interface-number [ vpn-instance vpn-instance-name ] The local source interface that receives the NTP packet is configured. Run: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 125: Configuring The Peer Mode

    [ version number | authentication- keyid key-id | source-interface interface-type interface-number | vpn- instance vpn-instance-name | preference ] * The NTP peer is configured. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 126: Configuring The Broadcast Mode

    The interface to send NTP broadcast packets is specified. Run: quit The system view is displayed. Run: ntp-service broadcast-server [ authentication-keyid key-id | version number ]* Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 127: Configuring The Multicast Mode

    Configuring an NTP Multicast Server Do as follows on the router functioning as an NTP multicast server: Run: system-view The system view is displayed. Run: interface interface-type interface-number Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 128: Disabling The Interface From Receiving Ntp Packets

    NTP packets. Context Do as follows on the router that needs to be disabled from receiving NTP packets. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 129: Checking The Configuration

    10.00 ms reference time: 15:51:36.259 UTC Apr 25 2010(C6179088.426490A3) Run the display ntp-service sessions [ verbose ] command to view the status of NTP sessions. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 130: Configuring Ntp Security Mechanisms

    NTP authentication is required in some networks with high security demands. The configuration of NTP authentication involves configuring NTP authentication on both the client and the server. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 131: Setting Ntp Access Authorities

    (from peer, server, synchronization to query). The first matched authority takes effect. Context Do as follows on the router. Procedure Step 1 Run: system-view The system view is displayed. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 132: Enabling Ntp Authentication

    Configure the same authentication key on the server and client and affirm that the key is reliable; otherwise, NTP authentication fails. l Enable NTP authentication before performing actual authentication. Run: system-view Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 133: Configuring Ntp Authentication In Unicast Client/Server Mode

    By configuring the authentication key ID used in the synchronization with the peer on the local end, you can apply NTP authentication in peer mode. Context Do as follows on the router that functions as the symmetric active end. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 134: Configuring Ntp Authentication In Broadcast Mode

    NTP authentication in multicast mode. Context Do as follows on the router that functions as an NTP multicast server. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 135: Checking The Configuration

    Run the display ntp-service sessions [ verbose ] command to view the status of NTP sessions. <Huawei> display ntp-service sessions source reference stra reach poll now offset delay disper ******************************************************************************** [12345]127.127.1.0 LOCAL(0) 15.6 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 136: Ntp Configuration Examples

    Router B Router A Router D Configuration Roadmap The configuration roadmap is as follows: Configure RouterA to be an NTP server and configure a primary clock on it. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 137 Step 4 On RouterC, specify RouterB to be the NTP server of RouterC. <RouterC> system-view [RouterC] ntp-service authentication enable [RouterC] ntp-service authentication-keyid 42 authentication-mode md5 Hello [RouterC] ntp-service reliable authentication-keyid 42 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 138 74.20 ms peer dispersion: 34.30 ms reference time: 11:55:56.833 UTC Mar 2 2006(C7B15BCC.D5604189) View NTP status on RouterA. [RouterA] display ntp-service status clock status: synchronized clock stratum: 2 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 139 RouterC interface Ethernet1/0/0 ip address 10.0.0.2 255.255.255.0 ntp-service authentication enable ntp-service authentication-keyid 42 authentication-mode md5 %@ENC;8HX \#Q=^Q`MAF4<1!! ntp-service reliable authentication-keyid 42 ntp-service unicast-server 10.0.0.1 authentication-keyid 42 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 140: Example For Configuring Ntp Peer Mode

    Configure RouterE and RouterD to be NTP peer so that RouterE should send clock synchronization requests to RouterD Finally, the clocks on RouterC, RouterD and RouterE can be synchronized. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 141 "synchronized". That is, clock synchronization completes. You can also find that the stratum of the clock on RouterE is 4, one stratum lower than that on RouterD. [RouterE] display ntp-service status Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 142: Example For Configuring Ntp Authentication In Broadcast Mode

    RouterA functions as the NTP broadcast server and its local clock is the NTP primary clock with the stratum being 3. Broadcast packets are sent from Eth 1/0/0. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 143 # Configure RouterA to be an NTP broadcast server. Broadcast packets are encrypted by using the authentication key ID 16 and then sent from Eth 1/0/0. [RouterA] interface ethernet 1/0/0 [RouterA-Ethernet1/0/0] ntp-service broadcast-server authentication-keyid 16 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 144 0.00 ms root dispersion: 0.42 ms peer dispersion: 0.00 ms reference time: 12:17:21.773 UTC Mar 7 2006(C7B7F851.C5EAF25B) ----End Configuration Files Configuration file of RouterA sysname RouterA interface Ethernet1/0/0 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 145: Example For Configuring Multicast Mode

    RouterA functions as an NTP multicast server and its local clock is a primary clock with the stratum 2. Multicast packets are sent out from Eth 1/0/0. RouterB and RouterC sense the multicast packets respectively on Eth 1/0/0 of them. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 146 # Configure RouterB to be an NTP multicast client. RouterB senses the NTP multicast packets on Eth 1/0/0. <RouterB> system-view [RouterB] interface ethernet 1/0/0 [RouterB-Ethernet1/0/0] ntp-service multicast-client Step 4 Configure RouterC. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 147 Configuration file of RouterB sysname RouterB interface Ethernet1/0/0 ip address 10.1.1.2 255.255.255.0 ntp-service multicast-client return Configuration file of RouterC sysname RouterC interface Ethernet1/0/0 ip address 10.1.1.3 255.255.255.0 ntp-service multicast-client return Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 148: Nqa Configuration

    6.9 Configuring the SNMP Query Test This section describes how to configure a Simple Network Management Protocol (SNMP) query test to check the communications between the host and SNMP agent. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 149 6.12 Configuring the Jitter Test This section describes how to configure a jitter test to check jitter on the network. You can perform a jitter test only when both the client and the server are Huawei devices. 6.13 Configuring Universal NQA Test Parameters This section describes how to set and use universal parameters for NQA test instances.
  • Page 150: Overview Of Nqa

    TCP, UDP, FTP, HTTP and the Simple Network Management Protocol (SNMP), are enabled and test the response time of each service. Figure 6-1 Diagram of the NQA test Server IP/MPLS Network NQA Client Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 151: Nqa Server And Nqa Clients

    After creating a test group and configuring the related parameters, you must enable the NQA test by using the start command and the display nqa results command to view test results. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 152: Nqa Supported By The Ar150/200

    Supports the collection of statistics on packet loss in one direction. Supports dynamic reduction of test cases. Supports the sending of the test results to the FTP server through FTP. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 153: Configuring The Icmp Test

    Start mode and end mode 6.2.2 Configuring ICMP Test Parameters This part describes how to set ICMP test parameters. Context Do as follows on the NQA client: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 154 To configure the NQA test packets to be sent without searching the routing table, run the sendpacket passroute command. Step 6 Run: start The NQA test is started. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 155: Checking The Configuration

    <Huawei> display nqa results NQA entry(admin, test) :testflag is inactive ,testtype is icmp 1 . Test 1 result The test is finished Send operation times: 3 Receive response times: 3 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 156: Configuring The Dhcp Test

    Outbound interface connected with the DHCP server (Optional) Timeout period of the test packets and percentage of the failed NQA tests Start mode and end mode of the test Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 157: Configuring Dhcp Test Parameters

    NOTE The AR150/200 supports a router to function as a DHCP server. For detailed configurations, refer to the chapter "DHCP Configuration" in the Huawei AR150&200 Series Enterprise Routers Configuration Guide - IP Services. Do as follows on the NQA client:...
  • Page 158: Checking The Configuration

    Number of connections failed to be set up Numbers of operations with wrong sequences Number of the discarding operations Number of times of wrong statistics collection operations <Huawei> display nqa results Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 159: Configuring The Ftp Download Test

    (Optional) Source IP address of the FTP operation and VPN instance name and source and destination port numbers of the FTP operation FTP user name and password Name of the file to be downloaded Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 160: Configuring The Ftp Download Test Parameters

    Step 6 Run: ftp-operation get The FTP operation type is set to Get. By default, the FTP operation type is Get. Step 7 Run: ftp-username name Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 161: Checking The Configuration

    NQA test results cannot be displayed automatically on a terminal. You must run the display nqa results command to view test results. By the default, the command output contains the records about only the last five tests. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 162: Configuring The Ftp Upload Test

    FTP client then automatically generates the test files for uploading. Pre-configuration Tasks Before configuring the FTP upload test, complete the following tasks: Configuring the FTP user name and password and the login directory Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 163: Configuring The Ftp Upload Test Parameters

    ( For detailed parameter configurations, see the chapter Configuring Universal NQA Test Parameters l To configure the source IP address, run the source-address ipv4 ip-address command. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 164 [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command. The test instance is started at a specified time. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 165: Checking The Configuration

    6.6 Configuring the HTTP Test This section describes how to configure a Hypertext Transfer Protocol (HTTP) test to check the responding speed of the HTTP service in each phase. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 166: Establishing The Configuration Task

    Start mode and end mode of the test 6.6.2 Configuring HTTP Test Parameters This part describes how to set HTTP test parameters. Context Do as follows on the NQA client (HTTP client): Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 167 To perform the NQA test immediately, run the start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 168: Checking The Configuration

    HTTPError number: 0 TcpConnError number : 0 System busy operation number:0 DNSRTT Sum/Min/Max:0/0/0 TCPConnectRTT Sum/Min/Max: 6/1/4 TransactionRTT Sum/Min/Max: 3/1/1 RTT Sum/Min/Max/Avg: 7/1/5/2 DNSServerTimeout:0 TCPConnectTimeout:0 TransactionTimeout: 0 Lost packet ratio:0% Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 169: Configuring The Dns Test

    6.7.2 Configuring the DNS Test Parameters This part describes how to set DNS test parameters. Context Do as follows on the NQA client (DNS client): Procedure Step 1 Run system-view Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 170: Checking The Configuration

    The test instance is started after a certain delay. ----End 6.7.3 Checking the Configuration After configuring the DNS test, you can view the test result. Prerequisites The configurations of the DNS Test function are complete. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 171: Configuring The Traceroute Test

    Before configuring a traceroute test, configure reachable routes between the NQA client and the device to be tested. Data Preparation To configure a traceroute test, you need the following data. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 172: Configuring Parameters For A Traceroute Test

    To configure the destination port number, run: destination-port port-number l To configure a NQA test packets to be sent without searching the routing table, run: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 173: Checking The Configuration

    NQA entry(t, t) :testflag is inactive ,testtype is trace 1 . Test 1 result The test is finished Completion:success Attempts number:1 Disconnect operation number:0 Operation timeout number:0 System busy operation number:0 Connection fail number:0 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 174: Configuring The Snmp Query Test

    NQA tests Start mode and end mode of the test 6.9.2 Configuring the SNMP Query Test Parameters This part describes how to set SNMP query test parameters. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 175 To configure the NQA test packets to be sent without searching the routing table, run the sendpacket passroute command. Step 7 Run: start The NQA test is started. Select the start mode as required because the start command has several forms. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 176: Checking The Configuration

    Operation sequence errors number:0 RTT Stats errors number:0 Destination ip address:10.2.1.2 Min/Max/Average Completion Time: 63/172/109 Sum/Square-Sum Completion Time: 329/42389 Last Good Probe Time: 2006-8-5 15:33:49.1 Lost packet ratio: 0 % Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 177: Configuring The Tcp Test

    The IP address and number of the port monitored by the server must be identical with those configured on the client. Context Do as follows on the NQA server (TCP server): Procedure Step 1 Run: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 178: Configuring The Tcp Client

    To configure the interval for sending test packets, run the interval seconds interval command. l To configure the percentage of the failed NQA tests, run the fail-percent percentcommand. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 179: Checking The Configuration

    Run the display nqa results [ test-instance admin-name test-name ] command to view the test results on the NQA client. Run the display nqa-server command to view the information about the NQA server. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 180: Configuring The Udp Test

    (Optional) Source IP addresses and source port numbers of test packets, interval for sending test packets, and percentage of the failed NQA tests Start mode and end mode of the test Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 181: Configuring The Udp Server

    An NQA test instance is created and the test instance view is displayed. Step 3 Run: test-type udp The test type is set to UDP. Step 4 Run: destination-address ipv4 ip-address Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 182: Checking The Configuration

    NQA test results cannot be displayed automatically on a terminal. You must run the display nqa results command to view test results. By the default, the command output contains the records about only the last five tests. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 183: Configuring The Jitter Test

    6.12 Configuring the Jitter Test This section describes how to configure a jitter test to check jitter on the network. You can perform a jitter test only when both the client and the server are Huawei devices. 6.12.1 Establishing the Configuration Task Before configuring a jitter test, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data.
  • Page 184: Configuring The Jitter Server

    Do as follows on the NQA server (Jitter server): Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: nqa-server udpecho ip-address port-number The UDP monitoring service is configured. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 185: Configuring The Jitter Client

    To configure the source IP address, run the source-address ipv4 ip-address command. l To configure the source port number, run the source-port port-numbercommand. l To configure the probe times in the NQA test, run the probe-count number command. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 186: Checking The Configuration

    The test instance is started after a certain delay. ----End 6.12.4 Checking the Configuration After configuring the jitter test, you can view the test result. Prerequisites The configurations of the Jitter Test function are complete. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 187: Configuring Universal Nqa Test Parameters

    ----End Example Run the display nqa results command. If the test is successful, the following is displayed. <Huawei> display nqa results test-instance admin jitter NQA entry(admin, jitter) :testflag is inactive ,testtype is jitter 1 . Test 2 result The test is finished...
  • Page 188: Establishing The Configuration Task

    Run: datafill fillstring The fill string is set for the NQA test instance. NOTE You can configure padding characters for only UDP, ICMP, Jitter and Trace tests. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 189 The file name and file path are configured for the FTP test instance. NOTE The file name and file path can be configured only for the FTP test instance. l Run: ftp-filesize size Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 190 The number of test packets can be configured only for Jitter type test instances. l Run: probe-count number The number of probes for one time is set. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 191 The source port number is set for the NQA test instance. NOTE This parameter is not applicable to the DNS test, ICMP test, DHCP test, and Trace test. l Run: test-failtimes times Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 192: Checking The Configuration

    Procedure Step 1 Run the display nqa-agent [admin-name test-name ] [ verbose ] to view the status of the test instance configured on the NQA client. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 193: Configuring Round-Trip Delay Thresholds

    Creating NQA test instances and configuring related parameters correctly Data Preparation To configure the round-trip transmission delay threshold, you need the following data. Data Administrator name and test name Round-trip transmission delay threshold Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 194: Configuring Round-Trip Delay Thresholds

    6.14.3 Checking the Configuration After setting the round-trip transmission delay threshold, you can view the configuration. Prerequisites The configurations of the Round-Trip Delay Thresholds Test function are complete. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 195: Configuring Uni-Directional Transmission Delay Thresholds

    Pre-configuration Tasks Before configuring the uni-directional transmission delay threshold, complete the following tasks: Running the device normally Creating NQA tests and configuring related parameters correctly Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 196: Configuring Uni-Directional Transmission Delay Thresholds

    The destination port number is configured. Step 6 Run: threshold owd-sd owd-sd-value The uni-directional transmission (from the source to the destination) delay threshold is configured. Step 7 Run: threshold owd-sd owd-sd-value Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 197: Checking The Configuration

    Before configuring the trap function, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and accurately. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 198 Creating an NQA test and configuring related parameters correctly Data Preparation To configure the trap function, you need the following data. Data Administrator name and test name NQA events that trigger the trap function Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 199: Sending Trap Messages When Test Failed

    By default, a trap message is sent for each test failure. ----End 6.16.3 Sending Trap Messages When Probes Failed A trap message is sent to the NMS when the NQA test fails. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 200: Sending Trap Messages When Probes Are Complete Successfully

    A trap message is sent to the NMS when the NQA test is complete successfully. Context Do as follows on the NQA client: Procedure Step 1 Run: system-view The system view is displayed. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 201: Sending Trap Messages When The Transmission Delay Exceeds Thresholds

    An NQA test instance is created and the test instance view is displayed. Step 3 Run: test-type tcp The test type is configured. Step 4 Run: destination-address ipv4 ip-address The destination IP address is configured. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 202: Checking The Configuration

    This section describes how to configure the system to send test results to the FTP server to avoid loss of test results in the event that the NMS does not poll the test result in time. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 203: Establishing The Configuration Task

    FTP server and user name and password for accessing the FTP server. Context Do as follows on the NQA client: Procedure Step 1 Run: system-view Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 204: Enabling The Function Of Saving Nqa Test Results Through Ftp

    6.17.4 (Optional) Configuring the Number of Test Results Saved Through FTP This part describes how to configure the number of test results that an FTP server can save. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 205: Optional) Configuring The Duration Of Saving Test Results Through Ftp

    After test results are successfully saved on the FTP server, a trap message is sent to the NMS for notification. Context Do as follows on the NQA client: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 206: Starting The Test Instance

    To perform the NQA test immediately, run the start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ] command. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 207: Checking The Configuration

    Before setting an alarm threshold for test results, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. This can help you complete the configuration task quickly and accurately. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 208: Configuring The Event Corresponding To The Alarm Threshold

    { linkage admin-name test-name | log | trap | log-trap | none } [ description ] The event number and the corresponding event are configured. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 209: Configuring The Alarm Threshold

    6.18.4 Starting the Test Instance You can start a test instance. When the number of test results exceeds the threshold, corresponding action is taken. Procedure Step 1 Run: system-view Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 210: Checking The Configuration

    Run the display nqa-event command to check the maximum number of events that can be configured and the number of events that are configured. <Huawei> display nqa-event NQA event information: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 211: Maintaining Nqa

    Step 2 Run the nqa test-instance admin-name test-name command, enter the NQA test instance view. Step 3 Run the restart command in the NQA instance view to restart an NQA test instance. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 212: Clearing Nqa Statistics

    6-3, Router A functions as an NQA client. It is required to test whether Router B is routable. Figure 6-3 Networking diagram of the ICMP test Router A Router B Eth1/0/0 Eth1/0/0 10.1.1.1/24 10.1.1.2/24 NQA agent Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 213 Configuration file of Router A sysname RouterA interface Ethernet1/0/0 ip address 10.1.1.1 255.255.255.0 nqa test-instance admin icmp test-type icmp destination-address ipv4 10.1.1.2 return Configuration file of Router B sysname RouterB Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 214: Example For Configuring The Dhcp Test

    Step 2 Enable the NQA client and create an NQA DHCP test. <RouterA> system-view [RouterA] nqa test-instance admin dhcp [RouterA-nqa-admin-dhcp] test-type dhcp [RouterA-nqa-admin-dhcp] source-interface ethernet 1/0/0 [RouterA-nqa-admin-dhcp] timeout 20 Step 3 Start the test. [RouterA-nqa-admin-dhcp] start now Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 215: Example For Configuring The Ftp Download Test

    6-5, Router B functions as an FTP server. A user named user1 intends to log in to the FTP server by entering the password hello to download the file named test.txt. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 216 [RouterA-nqa-admin-ftp] destination-address ipv4 10.1.1.2 [RouterA-nqa-admin-ftp] source-address ipv4 10.1.1.1 [RouterA-nqa-admin-ftp] ftp-operation get [RouterA-nqa-admin-ftp] ftp-username user1 [RouterA-nqa-admin-ftp] ftp-password hello [RouterA-nqa-admin-ftp] ftp-filename test.txt Step 4 Start the test. [RouterA-nqa-admin-ftp] start now Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 217: Example For Configuring The Ftp Upload Test

    As shown in Figure 6-6, it is required to test the speed of uploading a file from Router A to an FTP server. NOTE AR150/200 is RouterA. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 218 [RouterA-nqa-admin-ftp] test-type ftp [RouterA-nqa-admin-ftp] destination-address ipv4 10.2.1.2 [RouterA-nqa-admin-ftp] source-address ipv4 10.1.1.1 [RouterA-nqa-admin-ftp] ftp-operation put [RouterA-nqa-admin-ftp] ftp-username user1 [RouterA-nqa-admin-ftp] ftp-password hello [RouterA-nqa-admin-ftp] ftp-filesize 10 Step 4 Start the test. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 219 Configuration file of Router B sysname RouterB interface Ethernet1/0/0 ip address 10.1.1.2 255.255.255.0 interface Ethernet2/0/0 ip address 10.2.1.1 255.255.255.0 return Configuration file of Router C sysname RouterC Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 220: Example For Configuring The Http Test

    HTTP server and to obtain the time of file transferring between Router A and the HTTP server. Data Preparation To complete the configuration, you need the following data: IP address of the HTTP server HTTP operation type Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 221: Example For Configuring The Dns Test

    This part provides examples for configuring a DNS test to check the DNS resolution speed. Networking Requirements As shown in Figure 6-8, Router A functions as a DNS client to access the host 10.2.1.1/24, using a domain name server.com. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 222: Dns Server

    NQA entry(admin, dns) :testflag is inactive ,testtype is dns 1 . Test 1 result The test is finished Send operation times: 1 Receive response times: 1 Completion:success RTD OverThresholds number: 0 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 223: Example For Configuring The Traceroute Test

    Eth 1/0/0 on Router C. NOTE AR150/200 is RouterA. Figure 6-9 Networking diagram of the Traceroute test Router A Router B Router C Eth1/0/0 Eth1/0/0 Eth2/0/0 Eth1/0/0 10.1.1.1/24 10.1.1.2/24 10.2.1.1/24 10.2.1.2/24 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 224 Completion Time: 3/3 RTD OverThresholds number: 0 Last Good Probe Time: 2009-3-28 10:52:39.9 Destination ip address:10.2.1.2 Lost packet ratio: 0 % ----End Configuration Files Configuration file of Router A Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 225: Example For Configuring The Snmp Query Test

    AR150/200 is RouterA. Figure 6-10 Networking diagram of the SNMP Query test Router A Router B Router C Eth1/0/0 Eth1/0/0 Eth2/0/0 Eth1/0/0 10.1.1.1/24 10.1.1.2/24 10.2.1.1/24 10.2.1.2/24 SNMP Agent Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 226 Min/Max/Average Completion Time: 63/172/109 Sum/Square-Sum Completion Time: 329/42389 Last Good Probe Time: 2006-8-5 15:33:49.1 Lost packet ratio: 0 % ----End Configuration Files Configuration file of Router A sysname RouterA Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 227: Example For Configuring The Tcp Test

    AR150/200 is RouterA. Figure 6-11 Networking diagram of the TCP test Router A Router B Router C Eth1/0/0 Eth1/0/0 Eth2/0/0 Eth1/0/0 10.1.1.1/24 10.1.1.2/24 10.2.1.1/24 10.2.1.2/24 NQA Server Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 228 Min/Max/Average Completion Time: 46/63/52 Sum/Square-Sum Completion Time: 156/8294 Last Good Probe Time: 2006-8-5 15:53:17.8 Lost packet ratio: 0 % ----End Configuration Files Configuration file of Router A Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 229: Example For Configuring The Udp Test

    AR150/200 is RouterA. Figure 6-12 Networking diagram of the UDP test Router A Router B Router C Eth2/0/0 Eth1/0/0 Eth1/0/0 Eth1/0/0 10.1.1.1/24 10.1.1.2/24 10.2.1.1/24 10.2.1.2/24 NQA Server Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 230 Min/Max/Average Completion Time: 32/109/67 Sum/Square-Sum Completion Time: 203/16749 Last Good Probe Time: 2006-8-5 16:9:21.6 Lost packet ratio: 0 % ----End Configuration Files Configuration file of Router A Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 231: Example For Configuring The Jitter Test

    AR150/200 is RouterA. Figure 6-13 Networking diagram of the Jitter test Router A Router C Router B Eth1/0/0 Eth1/0/0 Eth2/0/0 Eth1/0/0 10.2.1.1/24 10.2.1.2/24 10.1.1.1/24 10.1.1.2/24 NQA Server Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 232 Min Negative DS:1 Max Negative SD:1 Max Negative DS:4 Negative SD Number:16 Negative DS Number:12 Negative SD Sum:16 Negative DS Sum:15 Negative SD Square Sum:16 Negative DS Square Sum:27 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 233: Example For Configuring Nqa To Check Voip Service Jitter

    6.20.12 Example for Configuring NQA to Check VoIP Service Jitter This example shows how to use a UDP jitter test to check the jitter for VoIP services. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 234 Create a UDP jitter test instance, and set the destination IP address to the IP address of Router A. [RouterD] nqa test-instance admin udpjitter [RouterD-nqa-admin-udpjitter] test-type jitter Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 235 Configuration file of Router A sysname RouterA interface GigabitEthernet1/0/0 ip address 10.1.1.1 255.255.255.0 nqa-server udpecho 10.1.1.1 180 return Configuration file of Router D sysname RouterD interface GigabitEthernet1/0/0 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 236 Configuration Guide - Network Management 6 NQA Configuration ip address 11.1.1.1 255.255.255.0 nqa-jitter tag-version 2 nqa test-instance admin udpjitter test-type jitter destination-address ipv4 10.1.1.1 destination-port 180 jitter-codec g711a return Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 237: Netstream Configuration

    RPF check. 7.8 Maintaining NetStream This section describes how to clear the NetStream traffic statistics. 7.9 Example for Configuring NetStream This section provides several configuration examples of NetStream. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 238: Overview Of Netstream

    As shown Figure 7-1. Figure 7-1 Diagram of NetStream data collection and analysis Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 239: Netstream Supported By The Ar150/200

    This indicates that one sampling is randomly performed on packets in the specified period. Versions of Original Traffic and Aggregated Traffic The Huawei AR150&200 Series supports three types of output modes: original traffic, aggregated traffic and Flexible traffic. The original traffic is output in the V5/V9 version, the aggregated traffic is output in the v8/v9 version, and the Flexible traffic is output in the v9 version.
  • Page 240: Collecting The Statistics Of Ipv4 Unicast Original Traffic

    To collect the statistics of the IPv4 unicast original traffic, you need the following data. Data Name and number of the interface on which traffic statistics need to be collected Version of the exported packets of the NetStream traffic statistics Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 241: Configuring The Version Of Exported Packets

    Step 3 Run: ip netstream export host ip-address port-number The destination IP address of the exported statistics, that is, the IP address of the NSC, is configured. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 242: Optional) Aging The Tcp Traffic According To Its Fin Or Rst Flag

    The inactive aging time of the original traffic is set. By default, the inactive aging time of the original traffic is 30s. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 243: Optional) Configuring The Active Aging Time

    By default, NetStream is disabled for the IPv4 traffic. ----End 7.3.8 Checking the Configuration After configuring the IPv4 unicast traffic statistics collection, you can view the configuration. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 244: Collecting The Statistics Of Ipv4 Multicast Original Traffic

    Handle DstPreTos aggre entries Handle PreTos aggre entries 7.4 Collecting the Statistics of IPv4 Multicast Original Traffic This section describes how to configure the IPv4 multicast original traffic statistics collection. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 245: Establishing The Configuration Task

    The system view is displayed. Step 2 Run: ip netstream export version version [ origin-as | peer-as ] [ bgp-nexthop ] The format of the output statistics is configured. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 246: Outputting The Statistics

    The inactive aging time of the original traffic is set. By default, the inactive aging time of the original traffic is 30s. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 247: Optional) Configuring The Active Aging Time

    NetStream can collect the statistics of incoming and outgoing packets simultaneously and separately without any interference. ----End 7.4.7 Checking the Configuration After configuring the IPv4 multicast traffic statistics collection, you can view the configuration. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 248: Configuring The Aggregation Statistics About Ipv4 Traffic

    Handle PreTos aggre entries : 118 7.5 Configuring the Aggregation Statistics About IPv4 Traffic This section describes how to configure the statistics about IPv4 aggregation traffic passing an interface. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 249: Establishing The Configuration Task

    { as | as-tos | destination-prefix | destination-prefix- tos | prefix | prefix-tos | protocol-port | protocol-port-tos | source-prefix | source-prefix-tos } The NetStream aggregation view is displayed. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 250: Configuring The Version Of Exported Packets

    } The NetStream aggregation view is displayed. Step 3 Run: ip netstream export source ip-address The source address for exporting statistics is configured. Step 4 Run: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 251: Optional) Configuring The Inactive Aging Time

    Step 1 Run: system-view The system view is displayed. Step 2 Run: ip netstream aggregation timeout active active-interval The active aging time of the aggregation traffic is set. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 252: Enabling Netstream On An Interface

    Procedure Run the display ip netstream all command to view the NetStream configuration. Run the display ip netstream statistic command to view the NetStream traffic statistics. ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 253: Configuring The Flexible Netstream Feature

    To collect statistics on packets based on the protocol type, TOS, source IP address, destination IP address, source port number, destination port number, you can configure Flexible NetStream. Pre-configuration Tasks Before configuring IPV4 Flexible NetStream, complete the following task: Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 254: Creating A Record And Entering The Record View

    ----End 7.6.3 Configuring the Version of Exported Packets To export statistics packets of flexible traffic, set the version of exported packets to V9. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 255: Setting The Destination Address Of The Statistics

    The inactive time indicates the interval between the time the last packet arrives and the current time. When the inactive time expires, the system ages the traffic immediately. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 256: Optional) Configuring The Active Aging Time

    The system view is displayed. Step 2 Run: interface interface-type interface-number The interface view is displayed. Step 3 Run: port ip netstream record record-name The record is applied to the interface. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 257 NetStream traffic statistics. <Huawei> display ip netstream statistic Origin ingress entries : 30000 Origin ingress packets : 30000 Origin ingress octets : 1380000 Origin egress entries Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 258 To collect the statistics of RPF traffic, you need the following data. Data Name and number of the interface on which the traffic statistics need to be collected Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 259 Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: ip netstream export source ip-address The source address of the output statistics is configured. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 260 By default, the active aging time is 30 minutes. ----End 7.7.6 Enabling the Traffic Statistics Function of RPF This part describes how to enable the RPF check over abnormal multicast traffic. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 261 # After successful configurations, run the display ip netstream statistic command in the user view to view the NetStream traffic statistics. <Huawei> display ip netstream statistic Origin ingress entries : 30000 Origin ingress packets : 30000 Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 262: Maintaining Netstream

    NetStream and the output statistics, and run the reset ip netstream cache command to age all traffic in the cache. ----End 7.9 Example for Configuring NetStream This section provides several configuration examples of NetStream. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 263: Example For Collecting The Statistics Of Ipv4 Unicast Traffic

    # Enable NetStream for outgoing traffic on Router B. <Huawei> system-view [Huawei] sysname RouterB [RouterB] interface ethernet 1/0/0 [RouterB-Ethernet1/0/0] ip netstream outbound # Enable NetStream for incoming traffic on Router B. [RouterB-Ethernet1/0/0] ip netstream inbound Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 264: Example For Configuring Netstream Of Ipv4 Aggregation Traffic

    Ethernet2/0/0 ip address 10.2.1.1 255.255.255.0 return 7.9.2 Example for Configuring NetStream of IPv4 Aggregation Traffic This section provides examples for configuring the IPv4 aggregation traffic statistics collection. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 265 Enable NetStream statistics for incoming and outgoing packets and NetStream sampling on Eth 2/0/1 of Router B. Enable NetStream aggregation on Router B to reduce traffic sent to the NMS. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 266 9 ip netstream export source 10.4.1.1 ip netstream export host 10.4.1.2 6000 Ethernet2/0/1 ip netstream inbound ip netstream outbound ----End Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 267: Example For Configuring Flexible Netstream Traffic Statistics

    7-4, the enterprise network is connected to Router B of the carrier through Router A. The Flexible NetStream feature is enabled on Eth1/0/0 of Router B. Then you can Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 268 # Set the destination address and destination port number for exporting packets. [RouterB] ip netstream export host 10.2.1.2 6000 # Configure the source address for exporting packets. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 269 Ethernet1/0/0 port ip netstream record test ip netstream inbound ip netstream outbound ----End Configuration Files Configuration file of Router A. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 270 Ethernet1/0/0 ip address 10.1.1.2 255.255.255.0 ip netstream inbound ip netstream outbound interface Ethernet2/0/0 ip address 10.2.1.1 255.255.255.0 return Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 271: Ping And Tracert

    This section describes the basic concepts of ping and tracert, and the support for ping and tracert on the AR150/200. 8.2 Configuring Ping and Tracert This part describes how to check the network connectivity through ping and tracert operations. Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 272: Ping And Tracert Overview

    Pre-configuration Task Before configuring Ping or Tracert, complete the following tasks: Connecting the user and the network correctly Assigning an IP address to the user correctly Issue 02 (2012-03-30) Huawei Proprietary and Confidential Copyright © Huawei Technologies Co., Ltd.
  • Page 273: Applying Ping To Test The Network Connection

    | -v | -vpn-instance vpn-instance-name ] host [ ip-forwarding ] The preceding command contains only a part of the parameters. For descriptions of the parameters of this command, refer to the Huawei AR150&200 Series Enterprise Routers Command Reference. The output of the ping command includes: l Status of the responses to the Ping.
  • Page 274: Applying Tracert To Locate Faults In The Network

    The preceding command contains only a part of the parameters. For the description of the options and parameters of this command, refer to the Huawei AR150&200 Series Enterprise Routers Command Reference. An example of applying Tracert program to analyze the network is as follows.

Table of Contents