< Home

tos

Function

The tos command sets the type of service (ToS) for a test packet.

The undo tos command restores the ToS to the default setting.

Format

tos value

undo tos

Parameters

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.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

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

Before running the tos command, run the test-type command to specify the type of a test instance, which may be one of the following:
  • ICMP
  • FTP
  • HTTP
  • TCP
  • UDP
  • UDP-jitter

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.

Example

# Set the ToS value of test instance admin http to 10.

<sysname> system-view
[sysname] nqa test-instance admin http
[sysname-nqa-admin-http] test-type http
[sysname-nqa-admin-http] tos 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >