70
TCP half open template configuration example
Network requirements
, configure a TCP half open template for a feature to test whether Device B can
provide the TCP service for Device A.
Figure 25 Network diagram
Configuration procedure
1.
Assign IP addresses to interfaces, as shown in
. (Details not shown.)
2.
Configure static routes or a routing protocol to make sure the devices can reach each other.
(Details not shown.)
3.
Configure Device A:
# Create TCP half open template
test
.
<DeviceA> system-view
[DeviceA] nqa template tcphalfopen test
# Specify 10.2.2.2 as the destination IP address.
[DeviceA-nqatplt-tcphalfopen-test] destination ip 10.2.2.2
# Configure the NQA client to notify the feature of the successful operation event if the number
of consecutive successful probes reaches 2.
[DeviceA-nqatplt-tcphalfopen-test] reaction trigger probe-pass 2
# Configure the NQA client to notify the feature of the operation failure if the number of
consecutive failed probes reaches 2.
[DeviceA-nqatplt-tcphalfopen-test] reaction trigger probe-fail 2
UDP template configuration example
Network requirements
, configure a UDP template for a feature to perform the UDP operation. The
operation tests whether Device A can receive a response from Device B.
Figure 26 Network diagram
Configuration procedure
1.
Assign IP addresses to interfaces, as shown in
. (Details not shown.)
2.
Configure static routes or a routing protocol to make sure the devices can reach each other.
(Details not shown.)
3.
Configure Device B:
# Enable the NQA server.
<DeviceB> system-view
NQA client
Device A
IP network
Device B
10.1.1.1/16
10.2.2.2/16
NQA server
IP network
Device A
Device B
NQA client
NQA server
10.1.1.1/16
10.2.2.2/16