This chapter provides information to configure frame-based accounting using the CLI.
When enabled, frame-based accounting lets QoS policies account for the Ethernet frame overhead. For example, it accounts for the IFG (inter-frame gap) and the preamble. Typically, the IFG and preamble constitute 20 bytes (12 + 8). The QoS meter/policer and shaper use this overhead when allocating bandwidth for Ethernet ports.
A configurable CLI command enables accounting of the frame overhead on ingress or egress. This is a system-wide parameter that affects the behavior of the ingress meter or egress rate. When disabled, the queue rates and egress-rate do not account for the Ethernet frame overhead. By default, frame-based accounting is disabled for both ingress and egress.
Note: Frame-based accounting for SAP-egress aggregate meters is not supported on the 7210 SAS platforms described in this document. |
To enable system-wide consistency in configuring QoS queue and meter rate parameters, the meters used on the system ingress might need to account for Ethernet frame overhead. Access uplink ingress and service ingress meters account for Ethernet frame overhead. A configurable CLI command can enable or disable the frame overhead accounting. This is a system-wide command that affects the behavior of all the meters in the system.
If frame overhead consideration is enabled, the queue scheduler accounts for the Ethernet frame overhead. The maximum egress bandwidth accounts for the Ethernet frame overhead (it accounts for the IFG (inter-frame gap) and the preamble). Typically, the IFG and preamble constitute about 20 bytes (12 + 8). The overhead for Ethernet ports uses this value.
A configurable CLI command enables accounting of the frame overhead. This is a system-wide command that affects the behavior of all egress queues (when frame-based accounting is enabled on egress port, the associated queues also account for frame overhead implicitly). When disabled, the port egress-rate command does not account for the Ethernet frame overhead.
Note: Frame-based accounting does not affect the SAP egress aggregate rate command on 7210 SAS-D and 7210 SAS-Dxp. In other words, the SAP egress aggregate command does not account for the Ethernet frame overhead regardless of whether egress frame-based accounting is enabled or disabled. |
Accounting records and statistics do not account for frame overhead.
To enable frame-based accounting, perform the following:
The following is a sample frame-based accounting configuration output.
To enable the frame-based-accounting command for ingress, use the ingress-enable command. To disable the frame-based-accounting command for ingress, use the no ingress-enable command. To enable the frame-based-accounting command on egress, use the egress-enable command. To disable frame-based-accounting command on egress, use the no egress-enable command.
The following is a sample configuration output that shows the enabling of frame-based-accounting.
The following is a sample configuration output that shows the disabling of frame-based-accounting.