14-30
Ethernet Card Software Feature and Configuration Guide, R7.2
January 2009
Chapter 14 Configuring Quality of Service
Configuring CoS-Based Packet Statistics
Note For IEEE 802.1Q (QinQ) enabled interfaces, CoS accounting is based only on the CoS value of the outer
metro tag imposed by the service provider. The CoS value inside the packet sent by the customer network
is not considered for CoS accounting.
For information on the enhanced microcode image, see the “Multiple Microcode Images” section on
page 3-11.
To enable CoS-based packet statistics on an interface, use the interface configuration level command
defined in Table 14-7.
After configuring CoS-based packet statistics on the ML-Series card, the statistics can be viewed
through a variety of show commands. To display this information, use one of the commands in
Table 14-8 in EXEC mode.
Example 14-19 shows examples of these commands.
Example 14-19Commands for CoS-Based Packet Statistics Examples
Router# show interface gigabitethernet 0.5 cos
GigabitEthernet0.5
Stats by Internal-Cos
Input: Packets Bytes
Cos 0: 31 2000
Cos 1:
Cos 2: 5 400
Cos 3:
Cos 4:
Cos 5:
Cos 6:
Cos 7:
Output: Packets Bytes
Cos 0: 1234567890 1234567890
Cos 1: 31 2000
Cos 2:
Table 14-7 CoS-Based Packet Statistics Command
Command Purpose
Router(config-if)# cos accounting Enables CoS-based packet statistics to be recorded at the specific
interface and for all the subinterfaces of that interface. This
command is supported only in interface configuration mode and n ot
in subinterface configuration mode.
The no form of the command disables the statistics .
Table 14-8 Commands for CoS-Based Packet Statistics
Command Purpose
Router# show interface
type number cos
Displays the CoS-based packet statistics available for
an interface.
Router# show interface
type
number.subinterface-number
cos
Displays the CoS-based packet statistics available for
a FastEthernet or Gigabit Ethernet subinterface. POS
subinterfaces are not eligible.