Tcp template configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S6300 Series Switches User Manual

Page 175

Advertising
background image

162

[DeviceA-nqatplt-dns-dns] reaction trigger probe-pass 2

# If the number of consecutive probe failures reaches 2, the operation fails. The NQA client notifies the

feature of the operation failure.

[DeviceA-nqatplt-dns-dns] reaction trigger probe-fail 2

TCP template configuration example

Network requirements

As shown in

Figure 53

, configure a TCP template for a feature to perform the TCP operation to test

whether Device A can establish a TCP connection to Device B and process the server's response.

Figure 53 Network diagram

Configuration procedure

1.

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, and configure a listening service to listen to the IP address 10.2.2.2 and
TCP port 9000.

<DeviceB> system-view

[DeviceB] nqa server enable

[DeviceB] nqa server tcp-connect 10.2.2.2 9000

4.

Configure Device A:
# Create TCP template tcp.

<DeviceA> 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 NQA
client 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 client

notifies the feature of the operation failure.

[DeviceA-nqatplt-tcp-tcp] reaction trigger probe-fail 2

Advertising