Configuring the TCP half open template

A feature that uses the TCP half open template performs the TCP half open operation to test whether the TCP service is available on the server. The TCP half open operation is used when the feature cannot get a response from the TCP server through an existing TCP connection.

In the TCP half open operation, the NQA client sends a TCP ACK packet to the server. If the client receives an RST packet, it considers that the TCP service is available on the server.

To configure the TCP half open template:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a TCP half open template and enter its view.

nqa template tcphalfopen name

By default, no TCP half open templates exist.

3. (Optional.) Specify the destination IP address of the operation.

  • IPv4 address:destination ip ip-address

  • IPv6 address:destination ipv6 ipv6-address

By default, no destination address is specified.

4. (Optional.) Specify the source IP address for the probe packets.

  • IPv4 address:
    source ip
    ip-address

  • IPv6 address:
    source ipv6
    ipv6-address

By default, the packets take the primary IP address of the output interface as their source IP address.

The source IP address must be the IP address of a local interface, and the interface must be up. Otherwise, no probe packets can be sent out.

5. (Optional.) Specify the next hop IP address for the probe packets.

  • IPv4 address:next-hop ip ip-address

  • IPv6 address:next-hop ipv6 ipv6-address

By default, the IP address of the next hop is configured.

6. (Optional.) Configure the probe result sending on a per-probe basis.

reaction trigger per-probe

By default, the probe result is sent to the feature that uses the template after three consecutive failed or successful probes.

If you execute the reaction trigger per-probe and reaction trigger probe-pass commands multiple times, the most recent configuration takes effect.

If you execute the reaction trigger per-probe and reaction trigger probe-fail commands multiple times, the most recent configuration takes effect.