network-header-length

Function

The network-header-length command sets a network header length for a service profile.

The undo network-header-length command cancels the configuration.

By default, no network header length is set for a service profile.

Format

network-header-length network-header-length { inbound | outbound }

undo network-header-length { inbound | outbound }

network-header-length network-header-length outbound adjust-on-etm

undo network-header-length network-header-length outbound adjust-on-etm

Parameters

Parameter Description Value
network-header-length

Specifies a network header length for a service profile.

The value is an integer that ranges from -63 to 63.

inbound

Specifies a network header length for a service profile in the inbound direction.

-

outbound

Specifies a network header length for a service profile in the outbound direction.

-

adjust-on-etm

The function takes effect in ETM.

-

Views

Service template view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
qos write

Usage Guidelines

Usage Scenario

The lengths of user packets change after the user packets are processed by a module, which affects traffic shaping precision. To resolve this problem, the network-header-length command can be used to set a network header length for compensating processed packets with a certain length.

Prerequisites

The service-template command has been used to create a service profile.

Precautions

The network-header-length outbound adjust-on-etm command configures a precision compensation value for the eTM module. In the same service template, you can specify precision compensation values for both the non-eTM and eTM modules, which is unnecessary to consider the type of application interface. This command is mutually exclusive with adjust-on-card configured in a QoS profile or interface SQ scenario.

Example

# Set a network header length to 10 for a service profile in the inbound direction.
<HUAWEI> system-view
[~HUAWEI] service-template template1
[*HUAWEI-service-template-template1-slot-all] network-header-length 10 inbound
# Set a network header length to 10 on ETM for a service profile in the inbound direction.
<HUAWEI> system-view
[~HUAWEI] service-template template 1
[*HUAWEI-service-template-template1-slot-all] network-header-length 10 outbound adjust-on-etm
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >