Configuring NQA for IPv4 Static Routes

If an IPv4 static route is associated with a network quality analysis (NQA) test instance, NQA tests the link status periodically. If NQA detects a fault along the associated IPv4 static route, the IPv4 static route is deleted, and traffic is switched to another route.

Usage Scenario

On live networks, the link status of IPv4 static routes must be monitored in real time so that a link switchover can be performed immediately if a link fails. Bidirectional Forwarding Detection (BFD) for IPv4 static routes can implement detection within milliseconds. However, BFD for IPv4 static routes requires that both ends of a link support BFD.

NQA for IPv4 static routes can monitor the link status of static routes as long as one end supports NQA.

If a link fails, an NQA test instance immediately detects the fault and instructs the routing management module to delete the IPv4 static route associated with the NQA test instance from the IP routing table. Traffic is then forwarded over another link.

Currently, NQA test instances of only the ICMP or TCP type can be associated with static routes to implement fast fault detection.

Pre-configuration Tasks

Before configuring NQA for IPv4 static routes, configure parameters of the link layer protocol and IP addresses for interfaces and ensure that the link layer protocol on the interfaces is up.

Procedure

  • Configure an ICMP or TCP NQA test instance.

    1. Run system-view

      The system view is displayed.

    2. Run nqa test-instance admin-name test-name

      An NQA test instance is created, and the test instance view is displayed.

    3. Run test-type { icmp | tcp }

      The test instance type is set to ICMP or TCP.

    4. Run destination-address ipv4 destAddress

      A destination address is configured.

      In an NQA test instance, you can specify an NQA server by running the destination-address command to configure a destination address for the NQA test instance.

    5. Run any of the following commands to start an NQA test instance:
      • start at [ yyyy/mm/dd ] hh:mm:ss [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ]
      • start delay { seconds second | hh:mm:ss } [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ]
      • start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } } ]
      • start daily hh:mm:ss to hh:mm:ss [ begin { yyyy/mm/dd | yyyy-mm-dd } ] [ end { yyyy/mm/dd | yyyy-mm-dd } ]

      For details of optional procedures when configuring an ICMP NQA test instance, see the HUAWEI NetEngine 8000 F Series Router Configuration Guide - System Monitor.

    6. Run commit

      The configuration is committed.

  • Associate an IPv4 static route with an NQA test instance.

    1. Run system-view

      The system view is displayed.

    2. Perform either of the following operations to associate an IPv4 static route with the NQA test instance.

      • Run ip route-static ip-address { mask | mask-length } { nexthop-address | interface-type interface-number [ nexthop-address ] | vpn-instance vpn-instance-name nexthop-address } [ preference preference | tag tag ] * track nqa admin-name test-name [ description text ]

        An IPv4 static route is associated with an NQA test instance on a public network.

      • Run ip route-static vpn-instance vpn-source-name destination-address { mask | mask-length } { nexthop-address | interface-type interface-number [ nexthop-address ] | vpn-instance vpn-instance-name nexthop-address } [ preference preference | tag tag ] * track nqa admin-name test-name [ description text ]

        An IPv4 static route is associated with an NQA test instance on a VPN.

    3. Run commit
      The configuration is committed.
      Precautions for associating a static route with an NQA test instance are as follows:
      • The destination address of an NQA test instance cannot be the destination address of an associated static route.
      • If the static route associated with one NQA test instance is associated with another NQA test instance, the association between the static route and the original NQA test instance is deleted.
      • An NQA test instance must have been created before you associate it with a static route.

Verifying the Configuration

Run the following commands to check the previous configuration.

  • Run the display current-configuration | include nqa command to check the configurations of NQA for static routes.

  • Run the display nqa results [ test-instance admin-name test-name ] command to check the NQA test results.

    The NQA test results cannot be displayed automatically. You need to run the display nqa results command to view the results.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >