A TCP test monitors the connectivity, packet loss ratio, and delay time of a TCP connection on an IP network.
Run system-view
The system view is displayed.
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.
Run commit
The configuration is committed.
The system view is displayed.
Run nqa test-instance admin-name test-name
An NQA test instance is created, and the view of the test instance is displayed.
Run test-type tcp
The test instance type is set to TCP.
(Optional) Run description description
The description of the test instance is configured.
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.
Run destination-address ipv4 destAddress
The client's destination address that is the NQA server address is specified.
Run destination-port port-number
The destination port number is specified for the NQA test instance.
Run probe-count number
The number of probes is set for an NQA test instance.
Run interval { milliseconds interval | seconds interval }
The interval at which NQA test packets are sent is set for the NQA test instance.
The NQA test instance is configured to send packets without searching the routing table.
Run source-address ipv4 srcAddress
The source IP address of NQA test packets is set.
Run source-port portValue
The source port number is set for the NQA test instance.
Run tos tos-value
The ToS value in NQA test packets is set.
Run ttl ttlValue
The TTL value in NQA test packets is set.
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.
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.
Run probe-failtimes failTimes
The device enabled to send traps to the NMS after the number of consecutive probe failures reaches the specified threshold.
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.
The RTD threshold is set.
The condition for triggering a trap is configured.
The VPN instance name is configured for the NQA test instance.
(Optional) Run frequency frequencyValue
The test period is set for the NQA test instance.
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.
The configuration is committed.