The ttl command sets the TTL value for the test packets of an NQA test instance.
The undo ttl command restores the default setting.
The default TTL value is 30.
Parameter | Description | Value |
---|---|---|
number |
Specifies the TTL value. |
The value is an integer that ranges from 1 to 255. The default TTL value is 30. |
Usage Scenario
To prevent test packets from being transmitted endlessly, the test instance must be performed within certain hops.
When a test packet is created, you can run the ttl command to set the TTL value. When the test packet is transmitted along Layer 3 routing devices, each Layer 3 routing device decrements the TTL value by one when the packet arrives. When the TTL value is 0, the Layer 3 routing device discards the test packet and sends an error message to the sending end. This prevents test packets from being transmitted endlessly.
Prerequisites
Configuration Impact
If you run the ttl command multiple times, only the latest configuration takes effect.
Precautions
The type of a running test instance cannot be changed.