huawei Network Quality Analyzer (NQA)

Download as PDF

What is NQA?

It is a feature that functions above link layer to measure performance of protocols running at the network layer, transport layer and application layer. It is useful to monitor network and locate faults occurring in the network. NQA can accurately test the network and collect statistics as well. You can configure and display NQA statistics through CLI but, as NQA is fully supported by Huawei NMS, you can also do this in GUI.

Most of Huawei devices support NQA but configuration can vary a little bit between NE routers, AR routers and switches. Of course we can perform more advanced test on carrier class devices. In this post we will focus on CLI and use CX600 router as an example.

NQA tests supported by CX600:

  • ICMP test
  • DHCP test
  • FTP test
  • HTTP test
  • DNS test
  • Traceroute test
  • SNMP test
  • TCP test
  • UDP test
  • ICMP Jitter test
  • UDP Jitter test
  • LSP Ping test
  • LSP Traceroute test
  • LSP Jitter test
  • MTrace test
  • MPing test
  • PWE3 Ping test
  • PWE3 Trace test
  • MAC Ping test
  • MACTunnel Ping test
  • VPLS MAC Ping
  • VPLS MAC Trace
  • ICMP Jitter test
  • Path Jitter test
  • Path MTU test
  • ittertest based on the mechanism that the LPU sends packets
  • ICMP Jitter test based on the mechanism that the LPU sends packets
  • VPLS Mping test
  • VPLS Mtrace test

Let’s configure a few examples. Below our testing topology:

huawei NQA topology

To ensure communication between loopback interfaces use static or dynamic routing protocols. In this case static routing has been configured on both routers. We will use CX_1 as NQA client:

ip route-static 172.16.200.2 255.255.255.255 10.100.200.2

NQA ICMP test

nqa test-instance labnario ICMP
 test-type icmp
 destination-address ipv4 172.16.200.2
 source-address ipv4 172.16.200.1

Please use “start” command to start the test.

You can display results of ICMP test by the command:

dis nqa results test-instance labnario ICMP

 NQA entry(labnario, ICMP) :testflag is inactive ,testtype is icmp
  1 . Test 1 result   The test is finished
   Send operation times: 3              Receive response times: 3
   Completion:success                   RTD OverThresholds number: 0
   Attempts number:1                    Drop operation number:0
   Disconnect operation number:0        Operation timeout number:0
   System busy operation number:0       Connection fail number:0
   Operation sequence errors number:0   RTT Stats errors number:0
   Destination ip address:172.16.200.2
   Min/Max/Average Completion Time: 1/7/4
   Sum/Square-Sum  Completion Time: 14/86
   Last Good Probe Time: 2012-01-30 14:59:03.7
   Lost packet ratio: 0 %

By default, the command output shows the results of the latest five tests.

NQA trace test

nqa test-instance labnario trace
 test-type trace
 destination-address ipv4 172.16.200.2
 source-address ipv4 172.16.200.1
 start now

dis nqa results test-instance labnario trace

 NQA entry(labnario, trace) :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
   Operation sequence errors number:0   RTT Stats errors number:0
   Drop operation number:0
   Last good path Time:2012-01-30 15:06:55.3
   1 . Hop 1
    Send operation times: 3              Receive response times: 3
    Min/Max/Average Completion Time: 3/10/6
    Sum/Square-Sum  Completion Time: 18/134
    RTD OverThresholds number: 0
    Last Good Probe Time: 2012-01-30 15:06:55.3
    Destination ip address:10.100.200.2
    Lost packet ratio: 0 %

NQA Jitter test

First configure CX_2 router as NQA server:

nqa-server udpecho 172.16.200.2 9000

Configure NQA test on CX_1:

nqa test-instance labnario jitter
 test-type jitter
 destination-address ipv4 172.16.200.2
 destination-port 9000
 start now

dis nqa results test-instance labnario jitter

 NQA entry(labnario, jitter) :testflag is inactive ,testtype is jitter
  1 . Test 1 result   The test is finished
   SendProbe:60                         ResponseProbe:60
   Completion:success                   RTD OverThresholds number:0
   OWD OverThresholds SD number:0       OWD OverThresholds DS number:0
   Min/Max/Avg/Sum RTT:1/20/2/117       RTT  Square Sum:699
   NumOfRTT:60                          Drop operation number:0
   Operation sequence errors number:0   RTT Stats errors number:0
   System busy operation number:0       Operation timeout number:0
   Min Positive SD:1                    Min Positive DS:1
   Max Positive SD:10                   Max Positive DS:13
   Positive SD Number:9                 Positive DS Number:21
   Positive SD Sum:60                   Positive DS Sum:72
   Positive SD Square Sum:482           Positive DS Square Sum:584
   Min Negative SD:1                    Min Negative DS:1
   Max Negative SD:14                   Max Negative DS:11
   Negative SD Number:9                 Negative DS Number:22
   Negative SD Sum:50                   Negative DS Sum:83
   Negative SD Square Sum:454           Negative DS Square Sum:641
   Min Delay SD:0                       Min Delay DS:0
   Avg Delay SD:0                       Avg Delay DS:0
   Max Delay SD:10                      Max Delay DS:9
   Delay SD Square Sum:161              Delay DS Square Sum:112
   Packet Loss SD:0                     Packet Loss DS:0
   Packet Loss Unknown:0                Average of Jitter:4
   Average of Jitter SD:6               Average of Jitter DS:3
   jitter out value:0.1145833           jitter in value:0.1614583
   NumberOfOWD:60                       Packet Loss Ratio: 0%
   OWD SD Sum:39                        OWD DS Sum:18
   ICPIF value: 0                       MOS-CQ value: 0
   TimeStamp unit: ms

Additional useful commands:

agetime – configures the aging time of an NQA test, by default 0 means test in not aged

clear-records – clears all historical statistics and test results

datasize – sets the size of the test packet, by default 0 and the test packet is then constructed with 100 bytes

fail-percent – sets the percentage of failed probes, if the number of failed probe exceeds this value, the test is considered as failing.

frequency – sets the interval for the automatic test, by default not configured, means the test is performed ones

interval – sets the interval for sending NQA test packets, by default 20 milliseconds for jitter tests, 4 seconds for all other tests

probe-count – sets the probe times in the NQA test, by default 3

restart – restarts an NQA test

send-trap – configures conditions for sending trap messages

stop – stops a test.

Of course you can do all tests you want and check NQA functionality to confirm that it would be useful feature in your network.

Please be invite to ask questions and express your opinions.

Download as PDF

Advertisements

11 thoughts on “huawei Network Quality Analyzer (NQA)

  1. labnario Post author

    I have never used Cacti but based on MIB reference there is a node like .nqa (111). It means that NMS has to use this MIB to collect NQA stats. As I know Huawei’s NMS U2000 uses this MIB to collect the data. The question is whether Cacti can support such MIB. If yes so it should collect NQA stats. I do not have possibility to check it. If you need MIBs you can contact your Huawei local office for help.

    Reply
  2. Tarranum

    I a really please that you reply back, the problem is that Cacti doesn’t recognize the MIB files, it require 1.2.3.32…. type string , any more help would be highly appreciated.

    thanks alot for helping me out.

    Reply
  3. labnario Post author

    Of course Cacti uses OIDs to monitor data. MIB is a collection of OIDs that’s why I wrote MIB file. I will try to find whether NQA can be monitored by other vendor’s nms. If it can, I will look for OIDs that have to be used.

    Reply
  4. labnario Post author

    For sure NQA is supported by NE40E. In case of S-series switches they should also run NQA. I used it on NE40E but not on switches. Based on switches’ documentation you can use it.

    Reply
  5. Piotrek

    I’ve just tried a few simple nqa tests on s9300 switches (icmp, jitter – in cooperation with server on another s9300). None have brought any results. I mean, dis nqa res and dis nqa hist have returned empty responses.
    Soft : V100R006, V200R002 (no results as well)

    Example comands (icmp) :
    nqa test-instance admin icmp
    test-type icmp
    destination-address ipv4 IP_addr
    source-address ipv4 IP_local_Vlanif /tried also source interface vlanif 100/
    start now
    IP_addr is reachable.

    Hope you might have any idea, what’s wrong. NQA on AR4945 worked well (of course commands are a bit different).

    Reply
    1. labnario Post author

      It looks like configuration is correct. Unortunatelly I am not able to check it on S9300. I only checked it on eNSP and even on this simulator it works properly:
      [Huawei-nqa-admin-ICMP]dis nqa results

      NQA entry(admin, ICMP) :testflag is inactive ,testtype is icmp
      1 . Test 1 result The test is finished
      Send operation times: 3 Receive response times: 3
      Completion:success RTD OverThresholds number: 0
      Attempts number:1 Drop operation number:0
      Disconnect operation number:0 Operation timeout number:0
      System busy operation number:0 Connection fail number:0
      Operation sequence errors number:0 RTT Status errors number:0
      Destination ip address:1.1.1.2
      Min/Max/Average Completion Time: 10/30/20
      Sum/Square-Sum Completion Time: 60/1400
      Last Good Probe Time: 2013-10-18 14:00:30.3
      Lost packet ratio: 0 %
      2 . Test 2 result The test is finished
      Send operation times: 3 Receive response times: 3
      Completion:success RTD OverThresholds number: 0
      Attempts number:1 Drop operation number:0
      Disconnect operation number:0 Operation timeout number:0
      System busy operation number:0 Connection fail number:0
      Operation sequence errors number:0 RTT Status errors number:0
      Destination ip address:1.1.1.2
      Min/Max/Average Completion Time: 10/40/26
      Sum/Square-Sum Completion Time: 80/2600
      Last Good Probe Time: 2013-10-18 14:01:54.9
      Lost packet ratio: 0 %

      [Huawei-nqa-admin-ICMP]dis nqa history
      NQA entry(admin, ICMP) history:
      Index T/H/P Response Status Address Time
      1 1/1/1 10ms success 1.1.1.2 2013-10-18 14:00:22.360
      2 1/1/2 20ms success 1.1.1.2 2013-10-18 14:00:26.280
      3 1/1/3 30ms success 1.1.1.2 2013-10-18 14:00:30.330
      4 2/1/1 30ms success 1.1.1.2 2013-10-18 14:01:46.840
      5 2/1/2 10ms success 1.1.1.2 2013-10-18 14:01:50.830
      6 2/1/3 40ms success 1.1.1.2 2013-10-18 14:01:54.900
      7 3/1/1 30ms success 1.1.1.2 2013-10-18 14:03:30.230
      8 3/1/2 20ms success 1.1.1.2 2013-10-18 14:03:33.390
      9 3/1/3 10ms success 1.1.1.2 2013-10-18 14:03:37.410
      10 4/1/1 10ms success 1.1.1.2 2013-10-18 14:05:01.260
      11 4/1/2 10ms success 1.1.1.2 2013-10-18 14:05:04.910
      12 4/1/3 20ms success 1.1.1.2 2013-10-18 14:05:08.970

      Reply
      1. Piotrek

        I checked again with debug nqa all turned on.
        There was only one response (except for info about config changes) after “start now” :
        Oct 18 2013 14:43:02.770.2+01:00 DST sw-walbrzych-PD1-1 NQA/7/debug:
        FileNo:LineNo 00:15565 , Type: ICMP AdminName: admin TestName: icmp Icmp test start param is ok.

        That’s it. Nothing in logs as well.
        I suppose, the only hope is in V200R003 or R&D :)

  6. Piotrek

    Hi,
    A bit of an update. Debugging on V200R002 gave me a clue (V100R006 didn’t).
    There were lines as follows:
    Oct 29 2013 09:59:50.910.2+01:00 sw_PD NQA/7/debug:
    FileNo:LineNo 35:07641 Schedule The GTL License is not active.

    So I looked it up in the License Usage Guide. There it is :

    “The S9300&S9300E uses licenses for controlling features such as MPLS, NQA, IPv6, CSSing using service interfaces, and traffic distribution. These features take effect only after the device loads the licenses. If the license is unavailable, the commands can be run on the device, but the function does not take effect.”

    To my knowledge, our switches were supposed to have all the licenses for built-in features. I’m going to check it out with our reseller.

    Reply
    1. labnario Post author

      Hi Piotr, thanks for sharing this information with us. I didn’t know that NQA requires license in the new software. Now I know, thanks a lot.

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s