udp source-port

Function

The udp source-port command sets the source UDP port number or a port range carried in NQA test flows.

The undo udp source-port command restores the default source UDP port number or a port range carried in NQA test flows.

By default, the source UDP port number is 49184.

Format

udp source-port source-port [ end-source-port ]

undo udp source-port

Parameters

Parameter Description Value
source-port

Specifies the source UDP port number or the start source UDP port number in a range.

The value is an integer ranging from 1025 to 65535.

end-source-port

Specifies the end source UDP port number.

The value is an integer ranging from 1025 to 65535.

Views

NQA test flow view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

To set the source UDP port number carried in Ethernet service activation test packets, run the udp source-port command. The reflector can loop packets carrying the specified source UDP port numbers.

Precautions

For the same test flow, a range can be specified only in one of the traffic-type, vlan, pe-vid, udp destination-port, and udp source-port commands. In addition, the difference between the start and end values cannot be more than 127, and the end value must be greater than the start value.

Example

# Set the source UDP port number carried in Ethernet service activation test packets.
<HUAWEI> system-view
[~HUAWEI] nqa test-flow 1
[*HUAWEI-nqa-testflow-1] udp source-port 1234
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >