< Home

tos

Function

The tos command sets the ToS value for an NQA test packet.

The undo tos command restores the default ToS value of an NQA test packet.

By default, the ToS value is 0.

Format

tos value

undo tos

Parameters

Parameter Description Value
value Specifies the ToS value of a packet. The value is an integer that ranges from 0 to 255. The default value is 0.

Views

NQA view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The ToS field contains a precedence sub-field and a ToS sub-field. The precedence sub-field indicates the priority of a packet and the ToS sub-field is seldom used. All the bits in the ToS sub-field must be set to 0. You can set the priority of probe packets by setting the ToS value. When a large number of packets are received, packets of high priorities are processed preferentially.

Prerequisites

The type of a test instance has been specified using the test-type command. The following types of test instances are supported:
  • FTP
  • HTTP
  • ICMP
  • ICMP Jitter
  • UDP Jitter
  • SNMP
  • TCP
  • UDP

Configuration Impact

If you run the tos command multiple times, only the latest configuration takes effect.

Precautions

The ToS value of a running test instance cannot be changed.

Example

# Set the ToS value for the test instance named user test to 10.

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