Traffic Behavior Configuration Commands; Accounting - HP A8800 Series Command Reference Manual

Acl and qos
Hide thumbs Also See for A8800 Series:
Table of Contents

Advertisement

[Sysname-classifier-class1]

Traffic behavior configuration commands

accounting

Syntax
accounting [ byte | packet ]
undo accounting
View
Traffic behavior view
Default level
2: System level
Parameters
byte: Counts traffic in bytes.
packets: Counts traffic in packets. With this keyword specified, the CAR also counts traffic in packets.
Description
Use accounting to enable traffic accounting for the traffic behavior.
Use undo accounting to disable traffic accounting.
If you specify neither byte nor packets, traffic is counted in bytes.
View the related statistics with the display qos policy interface command. the display qos vlan-policy
command, or the display qos policy global command.
1.
On an SPE-1010, SPE-1020, SPE-1010-E, or SPE-1020-E card:
For packets forwarded at Layer 3, such as IPv4/IPv6 unicast packets, multicast packets, tunnel
packets, and L3VPN incoming tunnel packets, the accounting command only takes the IP header
and payload into account. Take 128-byte Layer-3 packets for example. The traffic size is
calculated following these formulae:
When the incoming port and the outgoing port are Ethernet interfaces and the packets are
untagged:
Traffic size = Number of packets × (128 bytes of packet length – 4 bytes of CRC – 14 bytes of
Layer-2 header)
When the incoming port and the outgoing port are POS interfaces:
Traffic size = Number of packets × (128 bytes of packet length– 4 bytes of CRC – 4 bytes of
Layer-2 header)
2.
On an SPC, SPE-1010-II, SPE-1020-II, SPE-1010-E-II, or SPE-1020-E-II card:
The accounting command takes the total packet length into account.
Related commands: qos policy, traffic behavior, and classifier behavior.
Examples
# Enable traffic accounting for traffic behavior database.
<Sysname> system-view
47

Advertisement

Table of Contents
loading

Table of Contents