< Home

fail-percent

Function

The fail-percent command sets the failure percentage for the NQA test instance.

The undo fail-percent command deletes the configured failure percentage for the NQA test instance.

By default, the failure percentage is 100%. That is, the test is regarded as a failure only when all the probes fail.

Format

fail-percent percent

undo fail-percent

Parameters

Parameter Description Value

percent

Specifies the percentage of failed probes.

The value is an integer that ranges from 1 to 100.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In an NQA test instance, multiple probes are sent to test probe packets. Statistics obtained from multiple probe tests show the network quality.

In actual scenarios, however, a probe test may fail because of interference in the network. In addition, a failure in a probe test does not mean that the NQA test fails. The fail-percent command can be used to set failure percentage to check whether an NQA test fails or not. If the number of failure probe packets to the total number of probe packets reaches a specified percentage, the NQA test is considered as a failure.

For example, the number of sent packets set in the probe-count command is 10, but seven of them are lost during the probe test, the following situations occur:
  • If the failure percentage is set to 80, the probe test is considered a success.
  • If the failure percentage is set to 60, the probe test is considered a failure.

Prerequisites

The type of a test instance has been specified using the test-type command. The type of test instances that are not supported is as follows:
  • FTP
  • Trace
  • LSP Trace
  • PWE3 Trace
  • DNS
  • Path Jitter

Precautions

The failure percentage of a running test instance cannot be changed.

Example

# Set the percentage of the failed probes to 10% in the test named user test.

<HUAWEI> system-view
[HUAWEI] nqa test-instance user test
[HUAWEI-nqa-user-test] test-type icmp
[HUAWEI-nqa-user-test] fail-percent 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >