< Home

Example for Configuring an HTTP Test Instance

Networking Requirements

In Figure 1, SwitchA is connected to the HTTP server over a WAN to test the speed of SwitchA accessing the HTTP server.

Figure 1 Networking diagram for configuring an HTTP test instance

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure SwitchA as an NQA client.

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

Procedure

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

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] vlan 100
    [SwitchA-vlan100] quit
    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] port link-type hybrid
    [SwitchA-GigabitEthernet0/0/1] port hybrid pvid vlan 100
    [SwitchA-GigabitEthernet0/0/1] port hybrid untagged vlan 100
    [SwitchA-GigabitEthernet0/0/1] quit
    [SwitchA] interface vlanif 100
    [SwitchA-Vlanif100] ip address 10.1.1.1 24
    [SwitchA-Vlanif100] quit

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

    [SwitchA] nqa test-instance admin http
    [SwitchA-nqa-admin-http] test-type http
    [SwitchA-nqa-admin-http] destination-address ipv4 10.2.1.1
    [SwitchA-nqa-admin-http] http-operation get
    [SwitchA-nqa-admin-http] http-url http://www.***.com

    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.***.com.

  3. Start the test instance.

    [SwitchA-nqa-admin-http] start now

  4. Check the configuration.

    [SwitchA-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

SwitchA configuration file

#
sysname SwitchA
#
vlan batch 100
#
interface Vlanif100
 ip address 10.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
 port link-type hybrid
 port hybrid pvid vlan 100
 port hybrid untagged vlan 100
#
nqa test-instance admin http
 test-type http
 destination-address ipv4 10.2.1.1
 http-url http://www.***.com
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >