< Home

datafill

Function

The datafill command configures pad characters in an NQA test instance.

The undo datafill command deletes the pad characters in an NQA test instance.

By default, there are no padding characters in an NQA test instance.

Format

datafill fillstring

undo datafill

Parameters

Parameter Description Value

fillstring

Specifies the pad characters for NQA test packets.

The value is a string of 1 to 230 case-sensitive characters with spaces supported. The question mark (?) is not supported. The default value is 0 (an empty pad character).

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In an NQA test, you need to simulate actual datagrams to obtain more accurate statistics. The datasize command can be used to set the size of the Data field. To differentiate packets sent from different test instances, add the specified characters to identify the test packets.

Prerequisites

The type of a test instance has been specified using the test-type command. The type can be one of the following:

  • UDP
  • UDP Jitter
  • ICMP
  • Trace
  • Path Jitter

Configuration Impact

After the datafill command is run, the following situations may occur:

  • If the length of the data packet sent from the test instance is shorter than the configured pad character, only the forepart of the pad character can be used.

  • If the length of the data packet sent from the test instance is larger than the configured pad character, the pad character is repeated in sequence until the data packet is successfully padded.

For example, the pad character is set to abcd. If the length of the test packet is 3, only abc is used to pad the test packet. If the length of the test packet is 6, abcdab is used to pad the test packet.

Precautions

The pad character of a running test instance cannot be changed.

Example

# Set the pad characters of the test named user test to abcd.

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