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.
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. |
- |
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.
<HUAWEI> system-view [~HUAWEI] service-template template1 [*HUAWEI-service-template-template1-slot-all] network-header-length 10 inbound
<HUAWEI> system-view [~HUAWEI] service-template template 1 [*HUAWEI-service-template-template1-slot-all] network-header-length 10 outbound adjust-on-etm