< Home

nqa-server tcpconnect

Function

The nqa-server tcpconnect command configures the IP address and port number for the TCP server in an NQA TCP test instance.

The undo nqa-server tcpconnect command deletes the IP address and port number configured for the TCP server in an NQA TCP test instance.

By default, no IP address or port number is configured for the TCP server in an NQA TCP test instance.

Format

nqa-server tcpconnect [ vpn-instance vpn-instance-name ] ip-address port-number

undo nqa-server tcpconnect { all | [ vpn-instance vpn-instance-name ] ip-address port-number }

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Specifies the name of the VPN instance to which the TCP server belongs.
NOTE:

This parameter is invalid when a loopback address is specified as the TCP server address.

The value must be an existing VPN instance name.
all Indicates all TCP listening addresses and port numbers. -
ip-address Specifies the IP address of the TCP server for monitoring TCP services. The value is in dotted decimal notation.
port-number Specifies the port number of the TCP server for monitoring TCP services.

The value is an integer that ranges from 1 to 65535. The configured port cannot be a well-known port or used by other modules.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The NQA TCP test is used to detect the rate at which a TCP connection is set up between an NQA client and a TCP server through the three-way handshake. In a TCP test instance, a TCP server needs to be configured on the server end to respond to probe packets.

Perform the following steps on the client to configure TCP server parameters:
  • Run the destination-address command to configure the destination address of an NQA test instance or the IP address of the TCP server.
  • Run the destination-port command to configure the destination port number of an NQA test instance, or the port number of the TCP server.

If the client and the server are connected through a VPN, you need to specify the VPN instance name.

Configuration Impact

Running the undo nqa-server tcpconnect all command will delete the IP address and port number of the TCP server.

Precautions

A TCP server is configured only in a TCP test instance.

Example

# Create a TCP server for an NQA test instance with the IP address as 10.10.10.1 and the port number as 5000.

<HUAWEI> system-view
[HUAWEI] nqa-server tcpconnect 10.10.10.1 5000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >