The ttl command sets the time to live (TTL) value for the test packets of an NQA test instance.
The undo ttl command restores the default setting.
| Parameter | Description | Value |
|---|---|---|
| number | Specifies the TTL value. | The value is an integer ranging from 1 to 255. The default value is 30. |
Usage Scenario
To prevent test packets from being transmitted endlessly, ensure that the test instance is complete within a specified number of hops.
After test packets are created, the ttl command can be used to set TTL to a specified value. The TTL value is deducted by 1 each time a test packet passes through a router. After the TTL value reduces to 0 on a router, the router discards the test packet and sends an error message to the transmit end. This prevents endless transmission of test packets.
Prerequisites
Configuration Impact
If the TTL value has been configured, running the ttl command will override the previous configuration.
Precautions
The TTL value of test packets for a running test instance cannot be changed.