- Read Me First
- Policing and Shaping Overview
- IPv6 QoS: MQC Traffic Shaping
- Distribution of Remaining Bandwidth Using Ratio
- QoS Percentage-Based Shaping
- Ethernet Overhead Accounting
- MQC Traffic Shaping Overhead Accounting for ATM
- QoS Policy Accounting
- PPP Session Queueing on ATM VCs
- VP/VC Shaping for PPPoEoA/PPPoA
- Hierarchical Color-Aware Policing
- IPv6 QoS: MQC Traffic Policing
- Traffic Policing
- Policer Enhancement Multiple Actions
- Control Plane Policing
- Management Plane Protection
- Class-Based Policing
- QoS Percentage-Based Policing
- Two-Rate Policer
- Punt Policing and Monitoring
- Port-Shaper and LLQ in the Presence of EFPs
- Adaptive QoS over DMVPN
Ethernet Overhead Accounting
The Ethernet Overhead Accounting feature enables the router to account for downstream Ethernet frame headers when applying shaping to packets.
- Finding Feature Information
- Restrictions for Ethernet Overhead Accounting
- Information About Ethernet Overhead Accounting
- How to Configure Ethernet Overhead Accounting
- Configuration Examples for Ethernet Overhead Accounting
- Additional References
- Feature Information for Ethernet Overhead Accounting
Finding Feature Information
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the feature information table at the end of this module.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Restrictions for Ethernet Overhead Accounting
-
Ethernet overhead accounting allows the automatic inclusion of downstream Ethernet frame headers in the shaped rate.
-
If you enable overhead accounting on a child policy, you must enable overhead accounting on the parent policy.
-
In a policy map, you must either enable overhead accounting for all classes in the policy or disable overhead accounting for all classes in the policy. You cannot enable overhead accounting for some classes and disable overhead accounting for other classes in the same policy.
-
Overhead accounting is not reflected in any QoS counters (classification, policing, or queuing).
-
Implicit ATM overhead accounting for policers are not supported.
-
Implicit L2 overhead (ATM or otherwise) for policers are not supported for certain logical targets (tunnels) when the policy is applied to the logical target. The same limitation exists for queuing and scheduling overhead accounting.
-
Police overhead cannot be configured on conditional policers (priority and rate), however, the priority queue it used will inherit the queueing overhead from parent shaper if configured.
-
Police overhead is not added to the counters and are not reflected in statistics reported by the control plane.
-
The overhead accounting type or value used by policing within a policy map and between the parent policy map and the child policy map (in a hierarchical policy map structure) must be consistent.
-
The overhead accounting type or value used by queuing features within a policy map and between the parent policy map and the child policy map (in a hierarchical policy map structure) must be consistent.
-
In releases preceding to Cisco IOS XE Release 3.9S, the router does not support overhead accounting updates on attached policies and the policy must be detached from the interface before the overhead can be modified, then the policy can be reattached to the interface.
-
The router does not support overhead accounting for classes with fair-queue, which includes the following scenarios:
Information About Ethernet Overhead Accounting
- Benefits of Ethernet Overhead Accounting
- Subscriber Line Encapsulation Types
- Overhead Calculation on the Router
- Overhead Accounting and Hierarchical Policies
- Overhead Accounting and Priority Queues
Benefits of Ethernet Overhead Accounting
The Ethernet Overhead Accounting feature enables the router to account for downstream Ethernet frame headers when applying shaping to packets. A user-defined offset specifies the number of overhead bytes that the router is to use when calculating the overhead per packet. Valid offset values are from +63 bytes to -63 bytes of overhead. Before applying shaping, the router calculates the overhead.
Any interface that supports QoS policies will support overhead accounting. Using the policy-map, shape or bandwidth command, you can configure accounting on the interfaces.
Subscriber Line Encapsulation Types
The subscriber-encapsulation argument of the shape and bandwidth commands specifies the encapsulation type at the subscriber line. The router supports the following subscriber line encapsulation types:
Overhead Calculation on the Router
When calculating overhead for traffic shaping, the router considers the encapsulation type used between the broadband aggregation system (BRAS) and the digital subscriber line access multiplexer (DSLAM) and between the DSLAM and the customer premises equipment (CPE).
The table below describes the fields that the router uses for the various encapsulation types when calculating ATM overhead.
Encapsulation Type |
Number of Bytes |
Description |
---|---|---|
802.1Q |
18 |
6-byte destination MAC address + 6-byte source MAC address + 2-byte protocol ID (0x8100) + 2-byte VID/CFI/PRIORITY + 2-byte length/type |
802.3 |
14 |
6-byte destination MAC address + 6-byte source MAC address + 2-byte protocol ID (0x8000) |
AAL5 MUX plus 1483 |
8 |
8-byte AAL5 trailer |
AAL5 MUX plus PPPoA |
10 |
8-byte AAL5 trailer + 2-byte protocol ID (0x002 |
AAL5 SNAP plus 1483 |
18 |
8-byte AAL5 trailer + 3-byte LLC header (0xAAAA03) + 3-byte OUI (0x0080c2) + 2-byte protocol ID (0x0007) + 2-byte PAD (0x0000) |
AAL5 SNAP plus PPPoA |
12 |
8-byte AAL5 trailer + 3-byte LLC header (0xFEFE03) + 1-byte protocol ID (0xCF) |
PPPoE |
6 |
1-byte version/type (0x11) + 1-byte code (0x00) + 2-byte session ID + 2-byte lengt |
qinq |
22 |
6-byte destination MAC address + 6-byte source MAC address + 2-byte protocol ID (0x8100) + 2-byte VID/CFI/PRIORITY + 2-byte protocol ID + 2-byte inner tag + 2-byte length or type |
Overhead Accounting and Hierarchical Policies
In hierarchical policies, you can configure overhead accounting for policing, shaping, and bandwidth on top-level parent policies, middle-level child policies, and bottom-level child policies. Overhead accounting policies configured at the parent or grandparent level are inherited by the child queueing features. Overhead accounting configured on a child policy must also be configured on the parent policy; therefore configuring on the parent or grandparent level is easier.
The parent and child classes must specify the same encapsulation type when enabling overhead accounting and configuring an offset using the user-defined offset [atm] arguments of the bandwidth (policy-map class) command.
The table below summarizes the configuration requirements for overhead accounting.
Policy Map or Class |
Current Configuration |
Configuration Requirement |
---|---|---|
Parent |
Enabled |
Enabled on child policy |
Child |
Enabled |
Enabled on parent policy |
Child class |
Enabled |
Enabled on all classes in the child policy map, except priority classes with policing |
Child class (nonpriority without policing) |
Disabled |
Disabled on all classes in the child policy map |
Child class (priority with policing) |
Disabled |
Disabled or enabled on all nonpriority classes in the child policy map |
Overhead Accounting and Priority Queues
Overhead accounting configuration is supported for queuing features (shape, bandwidth and priority) and non-queuing feature (police) separately. However, priority queue can be integrated with policer. When overhead accounting is configured on a priority queue, through inheritance, it operates in the following fashion:
-
Overhead accounting is added to (or subtracted from) the priority packet for queuing features in the hierarchy (for example, shape in the parent class).
-
Overhead accounting is not added to the packet for priority rate enforcement (priority {bandwidth-kbps | percent percentage} [burst]). Although policing overhead accounting is supported, it does not apply to the conditional policer (rate enforcement is implemented through this conditional policer).
How to Configure Ethernet Overhead Accounting
Configuring Ethernet Overhead Accounting in a Hierarchical Policy
1.
enable
2.
configure terminal
3.
policy-map
policy-map-name
4.
class
class-map-name
5.
bandwidth {bandwidth-kbps |
[remaining] percent
percentage} account {qinq |
dot1q} {aal5 | aal3}
subscriber-encapsulation user-defined
offset [atm]
6.
exit
7.
policy-map
policy-map-name
8.
class
class-default
9.
shape
[average]
rate account {{qinq |
dot1q} {aal5 | aal3} subscriber-encapsulation | user-defined
offset [atm]}
10.
service-policy
policy-map-name
11.
end
DETAILED STEPS
Configuration Examples for Ethernet Overhead Accounting
- Example: Enabling Ethernet Overhead Accounting
- Example: Verifying Ethernet Overhead Accounting with User-Defined Option
Example: Enabling Ethernet Overhead Accounting
The following configuration example shows how to enable Ethernet overhead accounting. In the example, the configuration of the policy map named ethernet_ovrh shapes class-default traffic at a rate of 200,000 kbps and enables overhead accounting with a user-defined value of 18. The ethernet_ovrh policy is attached to Gigabit Ethernet subinterface 1/0/0.100, thereby enabling overhead accounting on the subinterface.
Router# configure-terminal Router(config)# policy-map ethernet_ovrh Router(config-pmap)# class class-default Router(config-pmap-c)# shape average 200000 account user-defined 18 ! Router(config)# interface GigabitEthernet1/0/0.100 Router(config-subif)# service-policy output ethernet_ovrh ! Router# show running-config | begin 1/0/0.100 interface GigabitEthernet1/0/0.100 encapsulation dot1Q 101 pppoe enable group group_pta service-policy output ethernet_ovrh
Example: Verifying Ethernet Overhead Accounting with User-Defined Option
The following sample output for the policy map named ethernet_ovrh indicates that Ethernet overhead accounting is enabled for shaping and that the user-defined offset is 18 bytes. The sample output from the show policy-map command indicates that the ethernet_ovrh policy map is attached to the Gigabit Ethernet subinterface 1/0/0.100, enabling overhead accounting on the subinterface.
Router# show policy-map ethernet_ovrh Policy Map ethernet_ovrh Class class-default Average Rate Traffic Shaping cir 200000 (bps) account user-defined 18 Router# show policy-map interface GigabitEthernet1/0/0.100 GigabitEthernet1/0/0.100 Service-policy output: ethernet_ovrh Class-map: class-default (match-any) 0 packets, 0 bytes 30 second offered rate 0 bps, drop rate 0 bps Match: any 0 packets, 0 bytes 30 second rate 0 bps Queueing queue limit 8 packets (queue depth/total drops/no-buffer drops) 0/0/0 (pkts output/bytes output) 0/0 shape (average) cir 200000, bc 800, be 800 target shape rate 200000 Overhead Accounting Enabled
Additional References
Related Documents
Related Topic |
Document Title |
---|---|
Cisco IOS commands |
|
QoS commands: complete command syntax, command modes, command history, defaults, usage guidelines, and examples |
|
Policing and shaping |
“Policing and Shaping Overview” module |
Class maps |
“Applying QoS Features Using the MQC” module |
Policy maps |
“Applying QoS Features Using the MQC” module |
Standards
Standard |
Title |
---|---|
No new or modified standards are supported, and support for existing standards has not been modified. |
— |
MIBs
MIB |
MIBs Link |
---|---|
No new or modified MIBs are supported, and support for existing MIBs has not been modified. |
To locate and download MIBs for selected platforms, Cisco IOS XE software releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFCs
RFC |
Title |
---|---|
No new or modified RFCs are supported, and support for existing RFCs has not been modified. |
— |
Technical Assistance
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
Feature Information for Ethernet Overhead Accounting
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Feature Name |
Releases |
Feature Information |
---|---|---|
Ethernet Overhead Accounting |
Cisco IOS XE Release 2.4 |
The Ethernet Overhead Accounting feature was introduced on the Cisco ASR 1000 Series Aggregation Services Routers. It enables the router to account for downstream Ethernet frame headers when applying shaping to packets. |
Parent Level Overhead Accounting |
Cisco IOS XE Release 3.9S |
The Parent Level Overhead Accounting feature was introduced on the Cisco ASR 1000 Series Aggregation Services Routers. It enables child policies to inherit overhead accounting policies that you configure at the parent or grandparent level. |
Ethernet Overhead Accounting (Policing) for MEF 2.0 Certification |
Cisco IOS XE Release 3.17S |
This feature adds support for user-defined overhead accounting to QoS MQC policers on the Cisco ASR 1000 Series Aggregation Services Routers. |