The datasize command sets the size of the NQA test packet.
The undo datasize command restores the size of the NQA test packet.
The default size is 0, which indicates that the test packet does not carry data information.
Parameter |
Description |
Value |
---|---|---|
size |
Specifies the size of the NQA test packet. |
The value is an integer that ranges from 0 to 8100, in bytes. If the configured size of a packet is smaller than the default size of a packet, the configured size is invalid and the packet is forwarded based on its default size. NOTE:
Only for MAC ping test instance, the value ranges from 95 to 9000, in bytes. |
Usage Scenario
You can run the datasize command to set the size of the data field of a test packet. This ensures that the size of the test packet is closer to the size of the actual data packet and the obtained statistics are more accurate.
For example, if a UDP jitter test instance is used to detect voice over IP (VoIP) services, you can run the datasize command to set the size of the NQA test packet to the same size as the actual voice packet. This enables a simulation of the actual traffic that occurs in a period of time.
To simulate a voice data flow with the transmission rate of 64 kbit/s, you can set the size of the voice packet to 172 bytes (160-byte payload + 12-byte RTP header + 28-byte IP header and UDP header) and set the interval for sending the voice packet to 20 ms. In this manner, 3000 packets can be sent in one minute.
Prerequisites
The test type has been specified using the test-type command.
The datasize command is applicable only to the LSP Ping, LSP Jitter, PWE3 Ping, ICMP, MAC Ping, Path Jitter, Trace, UDP, and UDP Jitter test instances.
Precautions
You cannot change the size of the running test packets.