fail-ratio (Generalflow test instance)

Function

The fail-ratio command configures the test failure ratio for NQA generalflow tests.

The undo fail-ratio command restores the default test failure ratio for NQA generalflow tests.

By default, the test failure ratio for NQA generalflow tests is 0.

Format

fail-ratio percent

undo fail-ratio

Parameters

Parameter Description Value
percent

Specifies the one in ten thousands ratio of test failure for NQA generalflow tests.

The value is an integer ranging from 0 to 100 with one in ten thousands ratio.

Views

NQA view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
sla write

Usage Guidelines

Usage Scenario

When an NQA test instance starts, it will send multiple probe packets in each test. Network quality is checked by the data collected through multiple probe packets.

In actual situations, interference in the network can cause a probe failure. However, a single probe failure does not indicate the failure of the whole. A probe failure can be judged by setting one in ten thousands ratio for NQA test failures. A probe failure will be defined if failed probe packets of the total reach a certain ratio.

Prerequisites

The type of NQA test instance has been configured as generalflow.

Precautions

You cannot change the test failure ratio of a running test instance.

Example

# Set the test failure ratio to ten in ten thousands for the test instance user 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] fail-ratio 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >