Configuring an ICMP Test Instance
Context
Before configuring an ICMP test instance, configure reachable routes between the NQA client and the tested device.
An ICMP test has the same function as the ping command but displays more detailed information.
Perform the following steps on the NQA client.
- The system CPU usage exceeds 90% and the configured timeout period is less than 6s.
- frequency configured ≤ (probe-count - 1) × interval + 6.
Procedure
- Run system-view
The system view is displayed.
- Run nqa test-instance admin-name test-name
An NQA test instance is created, and the NQA view is displayed.
- Run test-type icmp
The test type is set to ICMP.
- Run destination-address { ipv4 ipv4-address | ipv6 ipv6-address }
The destination address is configured.
- (Optional) Run the following commands as required to configure parameters for the ICMP test.
Run description string
A description is configured for the test instance.
Run frequency interval
The interval at which the NQA test instance is automatically executed is set.
Run timeout time
The timeout period of a probe is set for the NQA test instance.
By default, the timeout period of an ICMP probe is 3 seconds.
Run source-interface interface-type interface-number
The source interface that sends test packets is configured.
Run ttl number
The TTL value is set.
number is similar to -h in the ping command.
Run datasize size
The size of Echo Request packets excluding the IP header is configured.
size is similar to -s in the ping command.
Run datafill fillstring
The padding field is configured.
fillstring is similar to -p in the ping command.
Run sendpacket passroute
The NQA test instance is configured to send packets without searching the routing table.
Run probe-count number
The number of probes in a test is set.
Run tos value
The type of service (ToS) field value in an IP header is configured.
value is similar to -tos in the ping command.
Run fail-percent percent
The failure percentage is set for the NQA test instance.
Run interval seconds interval
The interval at which test packets are sent is configured.
interval is similar to -m in the ping command.
Run vpn-instance vpn-instance-name
The VPN instance name is configured.
Run records history number
The maximum number of historical records is set for the NQA test instance.
Run records result number
The maximum number of result records is set for the NQA test instance.
Run agetime hh:mm:ss
The aging time is set for the NQA test instance.
Run ip-forwarding
Packets are forcibly forwarded using IP on the first node.
Run nexthop ipv4 ip-address
The next hop address of the test instance is configured.