Before configuring a UDP test instance, configure a UDP
server and ensure reachable routes between the UDP client
and the UDP server.
To test the time for a specified port to
respond to a UDP connection request, create a UDP test instance.
The NQA client also functions as the UDP client.
Procedure
Configure the UDP server.
Run system-view
The system view is displayed.
Run nqa-server udpecho [ vpn-instancevpn-instance-name ]ip-addressport-number
The monitoring IP address
and port number of the UDP server are configured.
Configure the NQA client.
Run system-view
The system view is displayed.
Run nqatest-instanceadmin-nametest-name
An NQA test instance is created, and the NQA view is displayed.
Run test-typeudp
The test type is set to UDP.
Run destination-addressipv4ipv4-address
The destination address is configured.
Run destination-portport-number
The destination port number
is configured.
By default, the destination port number in the
UDP test is 7.
If the configured destination port number
is 7, 13, or 19, run the undo anti-attack
udp-flood enable command on the server to disable
UDP flood attack defense; otherwise, the server discards detection
packets.
(Optional) Run the following commands as required to
configure parameters for the UDP test.
Run descriptionstring
A description is configured
for the test instance.
Run frequencyinterval
The test period is set for the NQA
test instance.
Run timeouttime
The timeout period of a probe is set for the NQA test
instance.
Run source-addressipv4ipv4-address
The source IP address is configured.
Run source-portport-number
The source port number is configured.
Run ttlnumber
The TTL value in the NQA test packet is set.
Run datafillfillstring
The padding field is configured for the NQA test instance.
Run datasizesize
The packet size is set for the NQA test instance.
Run sendpacket passroute
The NQA test instance is configured to send packets
without searching the routing table.
Run probe-countnumber
The number of probes in a test is set.
Run tosvalue
Type of Service (TOS) is set for the test packet.
Run fail-percentpercent
The failure percentage is set for the
NQA test instance.
Run intervalsecondsinterval
The
interval at which test packets are sent is configured.
Run vpn-instancevpn-instance-name
The VPN instance
name is configured.
Run recordshistorynumber
The maximum
number of historical records is set for the NQA test instance.
Run recordsresultnumber
The maximum
number of result records is set for the NQA test instance.