test start

Function

The test start command enables on-demand measurement based on a specific period or specific number of packets.

By default, the on-demand measurement is disabled.

Format

test start test-session session-id packet-count packet-count [ period period ] [ time-out time-out ]

test start test-session session-id duration duration [ period period ] [ time-out time-out ]

Parameters

Parameter Description Value
packet-count packet-count

Indicates the number of packets sent over a test session.

The value is an integer ranging from 100 to 30000. The default value is 100.

period period

Indicates the interval at which packets are sent over a test session.

The value is an enumerated type:

  • 10: Specifies a sending packets interval of 10 ms.
  • 100: Specifies a sending packets interval of 100 ms.
  • 1000: Specifies a sending packets interval of 1000 ms.
  • 30000: Specifies a sending packets interval of 30000 ms.

The value is 100 ms by default.

time-out time-out

Indicates the timeout period for response packets.

The value is an integer ranging from 1 to 10, in seconds. The default value is 5.

test-session session-id

Indicates the ID of a test session.

The value is an integer ranging from 1 to 2048.

duration duration

Indicates the period during which packets are sent over a test session.

The value is an integer ranging from 60 to 300, in seconds.

Views

TWAMP-light-sender view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
twampclient execute

Usage Guidelines

Usage Scenario

On-demand measurement works in a specified period after being triggered. It can be performed once in the specified period. To implement performance measurement once, run the test start command to enable on-demand measurement. On-demand measurement automatically stops after the specified period elapses or the number of sent packets reaches the specified threshold.

Precautions

On-demand measurement fails in any of the following situations:

  • On-demand measurement is started when proactive measurement is running.
  • On-demand measurement is started when board resources are insufficient. If the display twamp-light test-session command output shows inactive in the State option, on-demand measurement fails.

Example

# Set the number of packets sent over a test session to 30000 for on-demand measurement.
<HUAWEI> system-view
[~HUAWEI] nqa twamp-light
[*HUAWEI-twamp-light] client
[*HUAWEI-twamp-light-client] test-session 1 sender-ip 1.1.1.1 reflector-ip 2.2.2.2 sender-port 3000 reflector-port 3000
[*HUAWEI-twamp-light-client] quit
[*HUAWEI-twamp-light] commit
[~HUAWEI-twamp-light] sender
[*HUAWEI-twamp-light-sender] commit
[~HUAWEI-twamp-light-sender] test start test-session 1 packet-count 30000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >