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.
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:
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. |
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:
<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