accounting exclude-type vlan access-user

Function

The accounting exclude-type vlan access-user command configures the device to exclude VLAN header length from packet length when collecting statistics about user packet bytes. This command applies to both IPv4 and IPv6 packet statistics.

The undo accounting exclude-type vlan access-user command restores the default configuration.

By default, VLAN header length is also counted into packet length in the statistics about user packet bytes.

This command is supported only on the NetEngine 8000 F1A.

Format

accounting exclude-type vlan access-user layer2 { ipoe | pppoe }

undo accounting exclude-type vlan access-user [ layer2 [ ipoe | pppoe ] ]

Parameters

Parameter Description Value
ipoe

Indicates IPoE user.

-

pppoe

Indicates PPPoE user.

-

layer2

Indicates Layer 2 access user.

-

Views

AAA domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
aaa-access write

Usage Guidelines

Usage Scenario

One or two layers of VLAN tags are added to each user packet transmitted over a MAN. The device counts VLAN header length into packet length when collecting statistics about user packet bytes. As a result, the number of bytes sent by a user terminal greatly deviates from the number of bytes in the statistics collected by the device. To improve accounting accuracy, you can run the accounting exclude-type vlan command to configure the device to exclude VLAN header length from packet length when collecting statistics about user packet bytes.

NOTE:

This function is applicable only to Layer 2 IPoEoVLAN, IPoEoQ, PPPoEoVLAN, PPPoEoQusers.

Configuration Impact

After the accounting exclude-type vlan command is configured, the number of bytes sent by the user terminal deviates little from the number of bytes in the statistics collected by the device. If no packet is lost, the two numbers are the same.

Precautions

The accounting exclude-type vlan command applies only if the qos link-adjustment link-layer-exclude command is not configured. After the qos link-adjustment link-layer-exclude command is configured, only statistics about Layer 3 packets will be collected.

Example

# Configure the NetEngine 8000 F to exclude VLAN header length from packet length when collecting statistics about packet bytes of Layer 2 IPoE users.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] domain huawei
[*HUAWEI-aaa-domain-huawei] commit
[~HUAWEI-aaa-domain-huawei] accounting exclude-type vlan access-user layer2 ipoe
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >