62TCP template configuration exampleNetwork requirementsAs shown in Figure 23, configure a TCP template for a feature to perform the TCP operation. Theoperation tests whether Device A can establish a TCP connection to Device B.Figure 23 Network diagramConfiguration procedure1. Assign each interface an IP address. (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. system-view[DeviceB] nqa server enable# Configure a listening service to listen to the IP address 10.2.2.2 and TCP port 9000.[DeviceB] nqa server tcp-connect 10.2.2.2 90004. Configure Device A:# Create TCP template tcp. system-view[DeviceA] nqa template tcp tcp# Configure 10.2.2.2 as the destination IP address and port 9000 as the destination port.[DeviceA-nqatplt-tcp-tcp] destination ip 10.2.2.2[DeviceA-nqatplt-tcp-tcp] destination port 9000# If the number of consecutive successful probes reaches 2, the operation succeeds. The NQAclient notifies the feature of the successful operation event.[DeviceA-nqatplt-tcp-tcp] reaction trigger probe-pass 2# If the number of consecutive probe failures reaches 2, the operation fails. The NQA clientnotifies the feature of the operation failure.[DeviceA-nqatplt-tcp-tcp] reaction trigger probe-fail 2HTTP template configuration exampleNetwork requirementsAs shown in Figure 24, configure an HTTP template for a feature to perform the HTTP operation. Theoperation tests whether the NQA client can get data from the HTTP server.