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