The QoS: Packet Matching Statistics feature allows you to define a quality of service (QoS) packet filter, then display the number of packets and bytes matching that filter.
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see 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 document.
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.
Prerequisites for QoS Packet Matching Statistics
You cannot enable or disable the QoS: Packet Matching Statistics feature if a policy map is associated with any interface on the system.
Restrictions for QoS Packet Matching Statistics
Enabling the Qos: Packet Matching Statistics feature may increase CPU utilization on a scaled configuration. Before enabling the Qos: Packet Matching Statistics feature, weigh the benefits of the statistics information against the increased CPU utilization for your system.
The QoS: Packet Matching Statistics feature allows you to define a QoS packet filter, then display the number of packets and bytes matching that filter.
To define a filter, use theclass-map command with the match-any keyword, for example:
class-map match-any my_class
match ip precedence 4 <-------- User-defined filter
match qos-group 10 <-------- User-defined filter
Using this information you can do the following:
Compare the amount of voice traffic to data traffic on a segment of your network
Adjust bandwidth availability
Accurately determine billing
Troubleshoot service problems
The system collects packet matching statistics on a 10-second cycle. If there are many interfaces or sessions then the system collects statistics for about 8000 of them during each cycle. In a scaled configuration several 10-second cycles may be required to gather all statistics.
Before enabling the QoS: Packet Matching Statistics feature, ensure no policy maps are associated with interfaces on the system. If there are, the system returns the following message:
Either a) A system RELOAD or
b) Remove all service-policies, re-apply the change
to the statistics, re-apply all service-policies
is required before this command will be activated.
Before enabling the QoS: Packet Matching Statistics feature, ensure you have defined a filter is using
class-map command with the
match-any keyword.
Note
Enabling the Qos: Packet Matching Statistics feature may increase CPU utilization on a scaled configuration. Before enabling the Qos: Packet Matching Statistics feature, weigh the benefits of the statistics information against the increased CPU utilization for your system.
Enables the QoS: Packet Matching Statistics feature.
Step 4
end
Example:
Router# end
Exits configuration mode.
Step 5
showpolicy-mapinterfaceinterface-name
Example:
[vc [vpi/] vci] [dlcidlci] [input | output]
Example:
Router# show policy-map interface serial4/0/0
Displays the packet statistics of all classes that are configured for all service policies either on the specified interface or subinterface or on a specific permanent virtual circuit (PVC) on the interface.
Step 6
configureterminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 7
no platform qos match-statistics per-filter
Example:
Router(config)# no platform qos match-statistics per-filter
Disables the QoS: Packet Matching Statistics feature.
Step 8
end
Example:
Router# end
Exits configuration mode.
Example
Use the
showpolicy-mapinterface command to display the packet statistics of all classes that are configured for all service policies either on the specified interface or subinterface or on a specific PVC on the interface:
Router# show policy-map interface gig1/1/0
GigabitEthernet1/1/0
Service-policy input: pol1 ! target = gig1/1/0,input
Class-map: class1 (match-any)
1000 packets, 40000 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: ip precedence 1 <-------- User-defined filter
800 packets, 32000 bytes <-------- Filter matching results
Match: ip precedence 2 <-------- User-defined filter
200 packets, 8000 bytes <-------- Filter matching results
QoS Set
ip precedence 7
No packet marking statistics available
Class-map: class-default (match-any)
500 packets, 20000 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: any <-------- User-defined filter
500 packets, 20000 bytes <-------- Filter matching results
Troubleshooting Tips
To confirm that the QoS: Packet Matching Statistics feature is enabled, use the showplatformhardwareqfpactivefeatureqosconfigglobal command. If the feature is disabled, you should see a message similar to the following:
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 QoS Packet Matching Statistics
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.
Table 1 Feature Information for QoS: Packet Matching Statistics
Feature Name
Releases
Feature Information
QoS: Packet Matching Statistics
Cisco IOS XE Release 3.3S
The QoS: Packet Matching Statistics feature allows you to display the number of packets that have:
Modified headers
Been classified into a category for local router processing
The following commands were introduced or modified:
platformqosmatch-statisticsper-filter,
noplatformqosmatch-statisticsper-filter,andshowplatformhardwareqfpactivefeatureqosconfigglobal.