< Home

destination-port

Function

The destination-port command configures the destination port number for an NQA test.

The undo destination-port command restores the default setting.

The default port numbers for test instances of different types are as follows:
  • TCP and UDP: 7
  • HTTP: 80
  • FTP: 21
  • Trace: 33434
  • Jitter: No default value is available, and the destination port number must be configured.

A port number larger than 10000 is recommended for a jitter test instance. A small port number may be conflict with the default port number of a protocol, causing a test failure.

Format

destination-port port-number

undo destination-port

Parameters

Parameter Description Value
port-number Specifies the destination port number.

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

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

NQA detects service features by creating test instances. In NQA, two test ends are called an NQA client and an NQA server. An NQA test is initiated by the NQA client. After test instances are configured with commands on the client, NQA places different types of test instances into various test queues. After the test starts, a response packet is returned. Carriers can then know the operating status about protocols by analyzing the received response packet.

For a test instance, the port for accessing the server is specified using the destination port number configured with the destination-port command on the client.

For example, to detect whether the TCP service runs normally on the peer device using a TCP test instance, perform the following configurations:

  • On the server: Configure the TCP server used for NQA tests, including the supported client IP address and the TCP port number opened to the client.

  • On the client:
    • Create an NQA test instance and set its type to TCP.
    • Configure the IP address of the server as the destination IP address and configure the opened TCP port number on the server as the destination port number.
    • Start the test instance.

Precautions

In the case of a TCP test instance and a UDP test instance, the configured destination port number must be the same as the opened port number on the server.

This command applies to only the FTP, HTTP, TCP, Trace, UDP, and UDP Jitter test instances.

You cannot change the destination port number of the test that is being performed.

Example

# Set the destination port number to 2020 for the test instance named user test.

<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type jitter
[HUAWEI-nqa-user-test] destination-port 2020
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >