Configuring a UDP Test

A UDP test measures the round-trip delay time of UDP packets exchanged between Huawei devices.

Procedure

  • Configure an NQA server.

    1. Run system-view

      The system view is displayed.

    2. Run nqa-server udpecho [ vpn-instance vpn-instance-name ] ip-address port-number

      The IP address and port number of the NQA server for monitoring UDP services are specified.

    3. Run commit

      The configuration is committed.

  • Configure an NQA client.
    1. Run system-view

      The system view is displayed.

    2. Create an NQA test instance, set the test instance type to UDP, and add description information for the test instance.

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

        The NQA test instance is created, and the view of the test instance is displayed.

      2. Run test-type udp

        The test instance type is set to UDP.

      3. (Optional) Run description description

        The description for of test instance is added.

    3. Specify the destination IP address and destination port number for the test instance.

      1. Run the destination-address{ ipv4 destAddress | ipv6 destAddress6 }

        The destination IP address for the test instance (the IP address of the NQA server) is specified.

      2. (Optional) Run destination-port port-number

        The destination port number for the test instance is specified.

    4. (Optional) Set parameters for the test instance and simulate packets.

      1. Run agetime ageTimeValue

        The aging time is set for the NQA test instance.

      2. Run datafill fill-string

        The padding string in probe packets is set.

      3. Run datasize datasizeValue

        The size of the data field in an NQA test packet.

      4. Run probe-count number

        The number of probes to be sent each time is set.

      5. Run interval seconds interval

        The interval at which probe packets are sent is set.

      6. Run sendpacket passroute

        The NQA test instance is configured to send packets without searching the routing table.

      7. Run source-address { ipv4 ip-address | ipv6 ipv6–address }

        The source IP address of probe packets is set.

      8. Run source-port portValue

        The source port number of probe packets is set.

      9. Run tos tos-value

        The ToS value in probe packets is set.

      10. Run ttl ttlValue

        The TTL value in probe packets is set.

    5. (Optional) Configure probe failure conditions.

      • Run timeout time

        Timeout period for response packets is set.

        If no response is received when the timeout period elapses, the probe fails.

      • Run fail-percent percent

        The probe failure percentage is set for the test instance.

        If the percentage of failed probes is greater than or equal to the configured failure percentage, the test is considered as a failure.

    6. (Optional) Configure NQA statistics. Run records { history number | result number }

      The maximum numbers of historical records and result records are set for the test instance.

    7. (Optional) Enable the device to send traps to the NMS.

      1. Run probe-failtimes failTimes

        The device is enabled to send traps to the NMS after the number of consecutive probe failures reaches the specified threshold.

      2. Run test-failtimes failTimes

        The device is enabled to send traps to the NMS after the number of consecutive failures of the test instance reaches the specified threshold.

      3. Run threshold rtd thresholdRtd

        The RTD threshold is set.

      4. Run send-trap { all | [ rtd | testfailure | probefailure | testcomplete ]* }

        The condition for triggering a trap is configured.

    8. (Optional) Run vpn-instance vpn-instance-name

      The VPN instance name is configured for the test instance.

    9. Schedule the test instance.

      1. (Optional) Run frequency interval

        The test period is set for the NQA test instance.

      2. Run start

        An NQA test is started.

        The start command has multiple formats. Select one of the following formats:

        • To start an NQA test instance immediately, 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 at a specified time, 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 after a specified delay, 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 at a specified time every day, run the start daily hh:mm:ss to hh:mm:ss [ begin yyyy/mm/dd ] [ end yyyy/mm/dd ] command.

    10. Run commit

      The configuration is committed.

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