rate (NQA view)

Function

The rate command sets the rate (kbit/s) at which packets are sent in the packet loss ratio, delay, and throughput tests.

The undo rate command deletes the configured rate at which packets are sent in the packet loss ratio, delay, and throughput tests.

By default, the rate (kbit/s) at which packets are sent in the packet loss ratio, delay and throughput tests for a generalflow test is not set.

Format

rate rateL [ rateH ]

undo rate

Parameters

Parameter Description Value
rateL

Specifies the lower thresholds in a throughput test for a generalflow test.

The value is an integer ranging from 1 to 100,000,000, in kbit/s. The rateL value must be less than the rateH value.

rateH

Specifies the upper thresholds in a throughput test for a generalflow test.

The value is an integer ranging from 1 to 100,000,000, in kbit/s. The rateL value must be less than the rateH value.

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

To set the packet rate in a generalflow test instance, run the rate command. The rate rateL command applies to the packet loss ratio and delay tests. The rate rateL rateH command applies to throughput tests.

Prerequisites

The rate command can only be used for generalflow test instances.

Precautions

You cannot change this configuration of a running test instance.

Example

# Set the lower threshold to 100 kbit/s and the upper threshold to 200 kbit/s in a throughput test.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type generalflow
[*HUAWEI-nqa-user-test] measure throughput
[*HUAWEI-nqa-user-test] rate 100 200
# Set the packet rate in a packet loss ratio test to 200 kbit/s.
<HUAWEI> system-view
[~HUAWEI] nqa test-instance user test
[*HUAWEI-nqa-user-test] test-type generalflow
[*HUAWEI-nqa-user-test] measure loss
[*HUAWEI-nqa-user-test] rate 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >