Configuring a TCP Test

A TCP test monitors the connectivity, packet loss ratio, and delay time of a TCP connection on an IP network.

Procedure

  • Configure the NQA server for the TCP test.

    1. Run system-view

      The system view is displayed.

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

      The IP address and number of the port used to monitor TCP services are specified on the NQA server.

    3. Run commit

      The configuration is committed.

  • Configure the NQA client for the TCP test.
    1. Run system-view

      The system view is displayed.

    2. Create an NQA test instance and set the test instance type to TCP.

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

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

      2. Run test-type tcp

        The test instance type is set to TCP.

      3. (Optional) Run description description

        The description of the test instance is configured.

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

      The destination address and destination port number specified in this step must be the same as ip-address and port-number specified for the NQA server.

      1. Run destination-address ipv4 destAddress

        The client's destination address that is the NQA server address is specified.

      2. Run destination-port port-number

        The destination port number is specified for the NQA test instance.

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

      1. Run probe-count number

        The number of probes is set for an NQA test instance.

      2. Run interval { milliseconds interval | seconds interval }

        The interval at which NQA test packets are sent is set for the NQA test instance.

      3. Run sendpacket passroute

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

      4. Run source-address ipv4 srcAddress

        The source IP address of NQA test packets is set.

      5. Run source-port portValue

        The source port number is set for the NQA test instance.

      6. Run tos tos-value

        The ToS value in NQA test packets is set.

      7. Run ttl ttlValue

        The TTL value in NQA test packets is set.

    5. (Optional) Configure test failure conditions.

      • Run timeout time

        The response timeout period is set.

        If no response packets are received before the configured period elapses, the probe is considered as a failure.

      • Run fail-percent percent

        The failure percentage is set for the NQA 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 the NQA statistics function.

      Run records { history number | result number }

      The maximum number of historical records and the maximum number of result records that can be saved for the NQA test instance are set.

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

      1. Run probe-failtimes failTimes

        The device 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 NQA test instance.

    9. Schedule the test instance.

      1. (Optional) Run frequency frequencyValue

        The test period is set for the NQA test instance.

      2. Run start

        An NQA test is started.

        The start command has multiple formats. Choose one of the following formats as needed.

        • 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 >