40DescriptionUse the accounting command to configure the traffic accounting action in the traffic behavior. Byreferencing the traffic behavior in a QoS policy, you can achieve class-based accounting, with whichstatistics are collected on a per-traffic class basis. For example, you can define the action to collectstatistics for traffic sourced from a certain IP address. With this command configured, the router countstraffic in packets.Use the undo accounting command to delete the traffic accounting action.You can use the display qos policy interface command and the display qos vlan-policy command to viewrelated statistics.NOTE:This command is available on only SAP interface cards working in bridge mode.Related commands: qos policy, traffic behavior, and classifier behavior.Examples# Configure the accounting action in traffic behavior database. system-view[Sysname] traffic behavior database[Sysname-behavior-database] accountingcarSyntaxcar cir committed-information-rate [ cbs committed-burst-size [ ebs excess-burst-size ] ] [ pirpeak-information-rate ] [ green action ] [ yellow action ] [ red action ]undo carViewTraffic behavior viewDefault level2: System levelParameterscir committed-information-rate: Committed information rate (CIR) in kbps, which specifies an averagetraffic rate.cbs committed-burst-size: Committed burst size (CBS) in bytes. By default, CBS is the amount of traffictransmitted at the rate of CIR over 500 ms.ebs excess-burst-size: Excess burst size (EBS) in bytes. The default is 0.pir peak-information-rate: Peak information rate (PIR) in kbps. This keywork is available on only a SAPinterface card working in bridge mode.green action: Action to take on packets that conform to CIR. The default is pass.yellow action: Action to take on packets that conform to PIR but not to CIR. The default is pass.red action: Specifies the action to take on the packet that conforms to neither CIR nor PIR. The default isdiscard.