Usage guidelines
If the payload length is smaller than the string length, only the first part of the string is filled. For example,
if you configure the string as abcd and the payload size as 3 bytes, abc is filled.
If the payload length is greater than the string length, the system fills the payload with the string cyclically
until the payload is full. For example, if you configure the string as abcd and the payload size as 6 bytes,
abcdab is filled.
How the string is filled varies with operation types:
For the ICMP echo operation, the string fills the whole payload of an ICMP echo request.
•
For the UDP echo operation, the first five bytes of the payload of a UDP packet are for special
•
purpose, so the string fills the remaining part of payload.
For the UDP jitter operation, the first 68 bytes of the payload of a UDP packet are for special
•
purpose, so the string fills the remaining part of the payload.
•
For the voice operation, the first 16 bytes of the payload of a UDP packet are for special purpose,
so the string fills the remaining part of the payload.
For the path jitter operation, the first four bytes of the payload of an ICMP echo request are for
•
special purpose, so the string fills the remaining part of payload.
Examples
# Configure string abcd to be filled in the payload of an ICMP echo request.
<Sysname> system-view
[Sysname] nqa entry admin test
[Sysname-nqa-admin-test] type icmp-echo
[Sysname-nqa-admin-test-icmp-echo] data-fill abcd
# In TCP template view, configure string abcd to be filled in the payload of a request.
<Sysname> system-view
[Sysname] nqa template tcp tcptplt
[Sysname-nqatplt-tcp-tcptplt] data-fill abcd
data-size
Use data-size to configure the size of the payload in each ICMP echo request of the ICMP echo and path
jitter operations, or in each UDP packet of the UDP echo, UDP jitter, and voice operations.
Use undo data-size to restore the default.
Syntax
data-size size
undo data-size
Default
The default payload size of a probe packet for different operations is described in
Table 5 Default payload size of a probe packet
Operation type
ICMP echo
UDP echo
Codec type
N/A
N/A
14
Table
5.
Default size (bytes)
100
100