The tos command sets the type of service (ToS) for a test packet.
The undo tos command restores the ToS to the default setting.
| Parameter | Description | Value |
|---|---|---|
| value | Specifies the ToS of a test packet. | The value is an integer ranging from 0 to 255. The default value is 0. |
Usage Scenario
The ToS value consists of the priority sub-field and the ToS sub-field. The priority sub-field is used to set the priority for a packet. The ToS sub-field is not used (all bits are set to 0s). Configuring the ToS value helps set priorities for probe packets and the packets with higher priorities are transmitted first in heavy traffic.
Prerequisites
Configuration Impact
If the ToS value has been configured, running the tos command will override the previous configuration.
Precautions
The ToS value of a running test instance cannot be changed.