No relevant resource is found in the selected language.

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

Reminder

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

upgrade

CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Configuring an HTTP Test Instance

Example for Configuring an HTTP Test Instance

Networking Requirements

In Figure 7-21, RouterA is connected to the HTTP server over a WAN to test the speed of RouterA accessing the HTTP server.

Figure 7-21  Networking diagram for configuring an HTTP test instance

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure RouterA as an NQA client.

  2. Create and start an HTTP test instance on the RouterA to check whether RouterA can set up a connection with the HTTP server and to check the duration for transferring files between RouterA and the HTTP server.

Procedure

  1. Configure IP addresses for the interfaces on the RouterA and ensure reachable routes between RouterA and the HTTP server.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ip address 10.1.1.1 24
    [RouterA-GigabitEthernet1/0/0] quit
    [RouterA] ospf
    [RouterA-ospf-1] area 0
    [RouterA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 
    [RouterA-ospf-1-area-0.0.0.0] quit
    [RouterA-ospf-1] quit

  2. Enable the NQA client and create an NQA HTTP test instance.

    [RouterA] nqa test-instance admin http
    [RouterA-nqa-admin-http] test-type http
    [RouterA-nqa-admin-http] destination-address ipv4 10.2.1.1
    [RouterA-nqa-admin-http] http-operation get
    [RouterA-nqa-admin-http] http-url http://www.example.com
    NOTE:
    The URL used to test HTTP must be a valid URL that can be displayed on the browser. In this example, the URL is http://www.example.com.

  3. Start the test instance.

    [RouterA-nqa-admin-http] start now

  4. Verify the configuration.

    [RouterA-nqa-admin-http] display nqa results test-instance admin http
     NQA entry(admin, http) :testflag is inactive ,testtype is http
      1 . Test 1 result   The test is finished
        SendProbe:3                          ResponseProbe:3
        Completion:success                   RTD OverThresholdsnumber: 0
        MessageBodyOctetsSum: 411            TargetAddress: 10.2.1.1
        DNSQueryError number: 0              HTTPError number: 0
        TcpConnError number : 0              System busy operation number:0
        DNSRTT Sum/Min/Max:0/0/0             TCPConnectRTT Sum/Min/Max: 4/1/2
        TransactionRTT Sum/Min/Max: 3/1/1
        RTT Sum/Min/Max/Avg: 7/2/3/2
        DNSServerTimeout:0  TCPConnectTimeout:0  TransactionTimeout: 0
        Lost packet ratio:0%  

Configuration Files

RouterA configuration file

#
 sysname RouterA
#
interface GigabitEthernet1/0/0
 ip address 10.1.1.1 255.255.255.0
#
ospf 1
 area 0.0.0.0
  network 10.1.1.0 0.0.0.255
#
nqa test-instance admin http
 test-type http
 destination-address ipv4 10.2.1.1
 http-url http://www.example.com
#
return
Translation
Download
Updated: 2019-05-17

Document ID: EDOC1000174072

Views: 100809

Downloads: 333

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