Configuring an ICMP Test

An Internet Control Message Protocol (ICMP) test monitors the end-to-end connectivity, packet loss ratio, and delay time on an IP network.

Procedure

  1. Run system-view
  2. Create an NQA test instance and set the test instance type to ICMP.
    1. Run nqa test-instance admin-name test-name
    2. Run the test-type icmp command to set the test type to ICMP.
    3. (Optional) Run description description
  3. Run the destination-address{ ipv4 destAddress | ipv6 destAddress6 } command to specify the destination address (that is, the NQA server address) of the client.
  4. Set parameters for the test instance to simulate a specific type of packet.
    1. Run the agetime ageTimeValue command to configure the aging time of an NQA test instance.
    2. Run the datafill fill-string command to configure padding characters in NQA test packets.
    3. Run the datasize datasizeValue command to set the size of the data field in an NQA test packet.
    4. Run the probe-count number command to configure the number of probes in an NQA test instance.
    5. Run the interval seconds interval command to configure the interval for sending NQA test packets.
    6. Run the sendpacket passroute command to configure the NQA test instance to send packets without searching the routing table.
    7. Run the source-address { ipv4 srcAddress | ipv6 srcAddr6 } command to set the source IP address of NQA test packets.
    8. Run the source-interface ifType ifNum command to configure the source interface of NQA test packets.
    9. Run the tos tos-value [ dscp ] command to set the ToS value of NQA test packets.
    10. Run the ttl ttlValue command to configure the TTL value of NQA test packets.
    11. Run the nexthop { ipv4 ipv4Address | ipv6 ipv6Address } command to configure the next-hop address for the test instance.
  5. Run the path-type bypass command to configure the Echo Request packets to be sent through an IP FRR bypass LSP.
  6. (Optional) Configure test failure conditions.
    1. Run the timeout time command to configure the timeout period of response packets.
    2. Run the fail-percent percent command to configure the failure percentage for the NQA test instance.
  7. (Optional) Configure the NQA statistics function. Run the records { history number | result number } command to configure the maximum number of history records and the maximum number of result records for the NQA test instance.
  8. (Optional) Enable the device to send traps to the NMS.
    1. Run the test-failtimes failTimes command to configure the Trap message to be sent to the NMS when the number of continuous probe failures reaches the specified value in NQA tests.
    2. Run the threshold rtd thresholdRtd command to configure an RTD threshold.
    3. Run the send-trap { all | [ rtd | testfailure | probefailure | testcomplete ]* } command to configure the conditions for sending trap messages.
  9. (Optional) Run the vpn-instance vpn-instance-name command to configure the VPN instance name for the NQA test instance.
  10. Schedule the test instance.
    1. (Optional) Run the frequencyinterval command to set the test period for the NQA test instance.

      If the following conditions are met, the Completion field in the test results will be displayed as no result:

    2. Run the start command to start an NQA test.

      An NQA test instance can be started immediately, at a specified time, or after a specified delay.

      • 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 to start an NQA test instance immediately.

      • Run the 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 } } ] command to start an NQA test instance at a specified time.

      • Run the 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 } } ] command to start an NQA test instance after a specified delay.

      • Run the start daily hh:mm:ss to hh:mm:ss [ begin yyyy/mm/dd ] [ end yyyy/mm/dd ] command to start the test instance at the specified time every day.

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