Configuring Auto-QoS

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 http:/​/​www.cisco.com/​go/​cfn. An account on Cisco.com is not required.

Prerequisites for Auto-QoS

The prerequisites for auto-QoS are the same as the prerequisites for standard QoS.

Restrictions for Auto-QoS

The following are restrictions for auto-QoS:

  • Auto-qos is not supported on SVI interfaces.

  • Auto-qos is not supported on interfaces which are bundled in an EtherChannel.

  • The trust device device_type command available in interface configuration mode is a stand-alone command on the switch. When using this command in an AutoQoS configuration, if the connected peer device is not a corresponding device (defined as a device matching your trust policy), both CoS and DSCP values are set to "0" and any input policy will not take effect. If the connected peer device is a corresponding device, input policy will take effect.
  • When upgrading your software release from a pre- 3.2.2 software version to a 3.2.2 or later software version, you must follow the auto-QoS upgrade procedure described in this chapter.

  • Do not configure the auto qos voip cisco-phone option for IP phones that support video. This option causes DSCP markings of video packets to get overwritten, because these packets do not have Expedited Forwarding priority, which results in these packets getting classified in the class-default class.

  • Auto-QoS does not generate configuration when it is pushed from the startup-configuration using the auto qos voip cisco-phone command to the running-configuration. This is expected behavior and this is to prevent overwriting of user-created customized QoS policies by the default configuration, if any, every time the command auto qos voip cisco-phone is pushed from the startup-config.

    You can use any of the following workarounds for this limitation:
    • Configure the auto qos voip cisco-phone command manually on the switch interfaces.

    • For new switches, if you push auto-QoS commands through startup-config, the command should include each of the following as part of the standard template

      1. Interface-level:
        • trust device cisco-phone

        • auto qos voip cisco-phone

        • service-policy input AutoQos-4.0-CiscoPhone-Input-Policy

        • service-policy output AutoQos-4.0-Output-Policy

      2. Global-level:
        • Class-map

        • Policy-map

        • ACL(ACE)

    • If the auto qos voip cisco-phone command is already configured on an interface but policies are not being generated, disable the command from all the interfaces and reconfigure the command on each interface manually.

Information About Configuring Auto-QoS

Auto-QoS Overview

You can use the auto-QoS feature to simplify the deployment of QoS features. Auto-QoS determines the network design and enables QoS configurations so that the switch can prioritize different traffic flows.

The switch employs the MQC model. This means that instead of using certain global configurations, auto-QoS applied to any interface on a switch configures several global class maps and policy maps.

Auto-QoS matches traffic and assigns each matched packet to qos-groups. This allows the output policy map to put specific qos-groups into specific queues, including into the priority queue.

QoS is needed in both directions, both on inbound and outbound. When inbound, the switch port needs to trust the DSCP in the packet (done by default). When outbound, the switch port needs to give voice packets "front of line" priority. If voice is delayed too long by waiting behind other packets in the outbound queue, the end host drops the packet because it arrives outside of the receive window for that packet.

Auto-QoS Global Configuration Templates

In general, an auto-QoS command generates a series of class maps that either match on ACLs or on DSCP and/or CoS values to differentiate traffic into application classes. An input policy is also generated, which matches the generated classes and in some cases, polices the classes to a set bandwidth. Eight egress-queue class maps are generated. The actual egress output policy assigns a queue to each one of these eight egress-queue class maps.

The auto-QoS commands only generate templates as needed. For example, the first time any new auto-QoS command is used, global configurations that define the eight queue egress service-policy are generated. From this point on, auto-QoS commands applied to other interfaces do not generate templates for egress queuing because all auto-QoS commands rely on the same eight queue models, which have already been generated from the first time a new auto-QoS command was used.

Auto-QoS Policy and Class Maps

After entering the appropriate auto-QoS command, the following actions occur:

  • Specific class maps are created.

  • Specific policy maps (input and output) are created.

  • Policy maps are attached to the specified interface.

  • Trust level for the interface is configured.

Related Tasks
Configuring Auto-QoS
Related References
Example: auto qos trust cos
Example: auto qos trust dscp
Example: auto qos video cts
Example: auto qos video ip-camera
Example: auto qos video media-player
Example: auto qos voip trust
Example: auto qos voip cisco-phone
Example: auto qos voip cisco-softphone
Example: auto qos classify police

Effects of Auto-QoS on Running Configuration

When auto-QoS is enabled, the auto qos interface configuration commands and the generated global configuration are added to the running configuration.

The switch applies the auto-QoS-generated commands as if the commands were entered from the CLI. An existing user configuration can cause the application of the generated commands to fail or to be overridden by the generated commands. These actions may occur without warning. If all the generated commands are successfully applied, any user-entered configuration that was not overridden remains in the running configuration. Any user-entered configuration that was overridden can be retrieved by reloading the switch without saving the current configuration to memory. If the generated commands are not applied, the previous running configuration is restored.

How to Configure Auto-QoS

Configuring Auto-QoS

For optimum QoS performance, configure auto-QoS on all the devices in your network.

SUMMARY STEPS

    1.    configure terminal

    2.    interface interface-id

    3.    Depending on your auto-QoS configuration, use one of the following commands:

    • auto qos voip {cisco-phone | cisco-softphone | trust}
    • auto qos video {cts | ip-camera | media-player}
    • auto qos classify [police]
    • auto qos trust {cos | dscp}

    4.    end

    5.    show auto qos interface interface-id


DETAILED STEPS
     Command or ActionPurpose
    Step 1configure terminal


    Example:
    
    Switch# configure terminal
    
    
     

    Enters the global configuration mode.

     
    Step 2interface interface-id


    Example:
    
    Switch(config)# interface 
    gigabitethernet 3/0/1
    
    
     

    Specifies the port that is connected to a VoIP port, video device, or the uplink port that is connected to another trusted switch or router in the network interior, and enters the interface configuration mode.

     
    Step 3Depending on your auto-QoS configuration, use one of the following commands:
    • auto qos voip {cisco-phone | cisco-softphone | trust}
    • auto qos video {cts | ip-camera | media-player}
    • auto qos classify [police]
    • auto qos trust {cos | dscp}


    Example:
    Switch(config-if)# auto qos trust dscp
    
    
     

    The following commands enable auto-QoS for VoIP:

    • auto qos voip cisco-phone—If the port is connected to a Cisco IP Phone, the QoS labels of incoming packets are only trusted (conditional trust through CDP) when the telephone is detected.
      Note   

      Do not configure the auto qos voip cisco-phone option for IP phones that support video. This option causes DSCP markings of video packets to get overwritten, because these packets do not have Expedited Forwarding priority, which results in these packets getting classified in the class-default class.

    • auto qos voip cisco-softphone—The port is connected to device running the Cisco SoftPhone feature. This command generates a QoS configuration for interfaces connected to PCs running the Cisco IP SoftPhone application and mark, as well as police traffic coming from such interfaces. Ports configured with this command are considered untrusted.

    • auto qos voip trust—The uplink port is connected to a trusted switch or router, and the VoIP traffic classification in the ingress packet is trusted.

    The following commands enable auto-QoS for the specified video device (system, camera, or media player):

    • auto qos video cts—A port connected to a Cisco Telepresence system. QoS labels of incoming packets are only trusted (conditional trust through CDP) when a Cisco TelePresence is detected.

    • auto qos video ip-camera—A port connected to a Cisco video surveillance camera. QoS labels of incoming packets are only trusted (conditional trust through CDP) when a Cisco camera is detected.

    • auto qos video media-player—A port connected to a CDP-capable Cisco digital media player. QoS labels of incoming packets are only trusted (conditional trust through CDP) when a digital media player is detected.

    The following command enables auto-QoS for classification:

    • auto qos classify police— This command generates a QoS configuration for untrusted interfaces. The configuration places a service-policy on the interface to classify traffic coming from untrusted desktops/devices and mark them accordingly. The service-policies generated do police.

    The following commands enable auto-QoS for trusted interfaces:

    • auto qos trust cos—Class of service.

    • auto qos trust dscp—Differentiated Services Code Point.

     
    Step 4end


    Example:
    
    Switch(config-if)# end
    
    
     

    Returns to privileged EXEC mode.

     
    Step 5show auto qos interface interface-id


    Example:
    
    Switch# show auto qos interface 
    gigabitethernet 3/0/1
    
    
     

    (Optional) Displays the auto-QoS command on the interface on which auto-QoS was enabled. Use the show running-config command to display the auto-QoS configuration and user modifications.

     
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related References
    Example: auto qos trust cos
    Example: auto qos trust dscp
    Example: auto qos video cts
    Example: auto qos video ip-camera
    Example: auto qos video media-player
    Example: auto qos voip trust
    Example: auto qos voip cisco-phone
    Example: auto qos voip cisco-softphone
    Example: auto qos classify police

    Monitoring Auto-QoS

    Table 1 Commands for Monitoring Auto-QoS

    Command

    Description

    show auto qos [interface [interface-id]]

    Displays the initial auto-QoS configuration.

    You can compare the show auto qos and the show running-config command output to identify the user-defined QoS settings.

    show running-config

    Displays information about the QoS configuration that might be affected by auto-QoS.

    You can compare the show auto qos and the show running-config command output to identify the user-defined QoS settings.

    show derived-config

    Displays the hidden mls qos command which get configured along with the running configs because of auto-qos template.

    Troubleshooting Auto-QoS

    To troubleshoot auto-QoS, use the debug auto qos privileged EXEC command. For more information, see the debug auto qos command in the command reference for this release.

    To disable auto-QoS on a port, use the no form of the auto qos command interface configuration command, such as no auto qos voip. Only the auto-QoS-generated interface configuration commands for this port are removed. If this is the last port on which auto-QoS is enabled and you enter the no auto qos voip command, auto-QoS is considered disabled even though the auto-QoS-generated global configuration commands remain (to avoid disrupting traffic on other ports affected by the global configuration).

    Configuration Examples for Auto-QoS

    Example: auto qos trust cos

    The following is an example of the auto qos trust cos command and the applied policies and class maps.

    Switch(config)# interface gigabitEthernet1/0/30
    Switch(config-if)# auto qos trust cos
    Switch(config-if)# end
    Switch# show policy-map interface GigabitEthernet1/0/30
    
     GigabitEthernet1/0/30
    
      Service-policy input: AutoQos-4.0-Trust-Cos-Input-Policy
    
        Class-map: class-default (match-any)
          Match: any
          QoS Set
            cos cos table AutoQos-4.0-Trust-Cos-Table
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    
    

    Note


    The auto qos policies on interface should be removed using no auto qos command. The command no service-policy for removal of auto qos policy is not recommended.


    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Example: auto qos trust dscp

    The following is an example of the auto qos trust dscp command and the applied policies and class maps.

    Switch(config)# interface GigabitEthernet1/0/32
    Switch(config-if)# auto qos trust dscp
    Switch(config-if)# end
    Switch#show policy-map interface GigabitEthernet1/0/32
    
     GigabitEthernet1/0/32
    
      Service-policy input: AutoQos-4.0-Trust-Dscp-Input-Policy
    
        Class-map: class-default (match-any)
          Match: any
          QoS Set
            dscp dscp table AutoQos-4.0-Trust-Dscp-Table
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Example: auto qos video cts

    The following is an example of the auto qos video cts command and the applied policies and class maps.

    Switch(config)# interface gigabitEthernet1/0/33
    Switch(config-if)# auto qos video cts
    Switch(config-if)# end
    Switch# show policy-map interface gigabitEthernet1/0/33
    
    
    GigabitEthernet1/0/33
    
      Service-policy input: AutoQos-4.0-Trust-Cos-Input-Policy
    
        Class-map: class-default (match-any)
          Match: any
          QoS Set
            cos cos table AutoQos-4.0-Trust-Cos-Table
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    
    
    
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Example: auto qos video ip-camera

    The following is an example of the auto qos video ip-camera command and the applied policies and class maps.

    Switch(config)# interface GigabitEthernet1/0/34
    Switch(config-if)# auto qos video ip-camera
    Switch(config-if)# end
    Switch# show policy-map interface GigabitEthernet1/0/34
    
     GigabitEthernet1/0/34
    
      Service-policy input: AutoQos-4.0-Trust-Dscp-Input-Policy
    
        Class-map: class-default (match-any)
          Match: any
          QoS Set
            dscp dscp table AutoQos-4.0-Trust-Dscp-Table
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    
    
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Example: auto qos video media-player

    The following is an example of the auto qos video media-player command and the applied policies and class maps.

    Switch(config)# interface GigabitEthernet1/0/35
    Switch(config-if)# auto qos video media-player
    Switch(config-if)# end
    Switch# show policy-map interface GigabitEthernet1/0/35
    
    GigabitEthernet1/0/35
    
      Service-policy input: AutoQos-4.0-Trust-Dscp-Input-Policy
    
        Class-map: class-default (match-any)
          Match: any
          QoS Set
            dscp dscp table AutoQos-4.0-Trust-Dscp-Table
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    
    
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Example: auto qos voip trust

    The following is an example of the auto qos voip trust command and the applied policies and class maps.

    Switch(config)# interface gigabitEthernet1/0/36
    Switch(config-if)# auto qos voip trust
    Switch(config-if)# end
    Switch# show policy-map interface GigabitEthernet1/0/36
    
    GigabitEthernet1/0/36
    
      Service-policy input: AutoQos-4.0-Trust-Cos-Input-Policy
    
        Class-map: class-default (match-any)
          Match: any
          QoS Set
            cos cos table AutoQos-4.0-Trust-Cos-Table
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    
    
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Example: auto qos voip cisco-phone

    The following is an example of the auto qos voip cisco-phone command and the applied policies and class maps.

    Switch(config)# interface gigabitEthernet1/0/37
    Switch(config-if)# auto qos voip cisco-phone
    Switch(config-if)# end
    Switch# show policy-map interface gigabitEthernet1/0/37
    
    GigabitEthernet1/0/37
    
      Service-policy input: AutoQos-4.0-CiscoPhone-Input-Policy
    
        Class-map: AutoQos-4.0-Voip-Data-Class (match-any)
          Match: ip dscp ef (46)
          QoS Set
            ip dscp ef
          police:
              cir 128000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Voip-Signal-Class (match-any)
          Match: ip dscp cs3 (24)
          QoS Set
            ip dscp cs3
          police:
              cir 32000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Default-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Default
          QoS Set
            dscp default
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: class-default (match-any)
          Match: any
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    
    
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Example: auto qos voip cisco-softphone

    The following is an example of the auto qos voip cisco-softphone command and the applied policies and class maps.

    Switch(config)# interface gigabitEthernet1/0/38
    Switch(config-if)# auto qos voip cisco-softphone
    Switch(config-if)# end
    Switch# show policy-map interface gigabitEthernet1/0/38
    
    GigabitEthernet1/0/38
    
      Service-policy input: AutoQos-4.0-CiscoSoftPhone-Input-Policy
    
        Class-map: AutoQos-4.0-Voip-Data-Class (match-any)
          Match: ip dscp ef (46)
          QoS Set
            ip dscp ef
          police:
              cir 128000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Voip-Signal-Class (match-any)
          Match: ip dscp cs3 (24)
          QoS Set
            ip dscp cs3
          police:
              cir 32000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Multimedia-Conf-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-MultiEnhanced-Conf
          QoS Set
            dscp af41
          police:
              cir 5000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Bulk-Data-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Bulk-Data
          QoS Set
            dscp af11
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Transaction-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Transactional-Data
          QoS Set
            dscp af21
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Scavanger-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Scavanger
          QoS Set
            dscp cs1
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Signaling-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Signaling
          QoS Set
            dscp cs3
          police:
              cir 32000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Default-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Default
          QoS Set
            dscp default
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: class-default (match-any)
          Match: any
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    
    
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Example: auto qos classify police

    The following is an example of the auto qos classify police command and the applied policies and class maps.

    Switch(config)# interface gigabitEthernet1/0/39
    Switch(config-if)# auto qos classify police
    Switch(config-if)# end
    Switch# show policy-map interface gigabitEthernet1/0/39
    
    GigabitEthernet1/0/39
    
      Service-policy input: AutoQos-4.0-Classify-Police-Input-Policy
    
        Class-map: AutoQos-4.0-Multimedia-Conf-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-MultiEnhanced-Conf
          QoS Set
            dscp af41
          police:
              cir 5000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Bulk-Data-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Bulk-Data
          QoS Set
            dscp af11
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Transaction-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Transactional-Data
          QoS Set
            dscp af21
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Scavanger-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Scavanger
          QoS Set
            dscp cs1
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Signaling-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Signaling
          QoS Set
            dscp cs3
          police:
              cir 32000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: AutoQos-4.0-Default-Class (match-any)
          Match: access-group name AutoQos-4.0-Acl-Default
          QoS Set
            dscp default
          police:
              cir 10000000 bps, bc 8000 bytes, be 8000 bytes
            conformed 0 bytes; actions:
              transmit
            exceeded 0 bytes; actions:
              set-dscp-transmit dscp table policed-dscp
            violated 0 bytes; actions:
              drop
            conformed 0000 bps, exceed 0000 bps, violate 0000 bps
    
        Class-map: class-default (match-any)
          Match: any
    
      Service-policy output: AutoQos-4.0-Output-Policy
    
        queue stats for all priority classes:
          Queueing
          priority level 1
    
          (total drops) 0
          (bytes output) 0
    
        Class-map: AutoQos-4.0-Output-Priority-Queue (match-any)
          Match:  dscp cs4 (32) cs5 (40) ef (46)
          Match: cos  5
          Priority: 30% (300000 kbps), burst bytes 7500000,
    
          Priority Level: 1
    
        Class-map: AutoQos-4.0-Output-Control-Mgmt-Queue (match-any)
          Match:  dscp cs3 (24) cs6 (48) cs7 (56)
          Match: cos  3
          Queueing
          queue-limit dscp 16 percent 80
          queue-limit dscp 24 percent 90
          queue-limit dscp 48 percent 100
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
    
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Conf-Queue (match-any)
          Match:  dscp af41 (34) af42 (36) af43 (38)
          Match: cos  4
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Trans-Data-Queue (match-any)
          Match:  dscp af21 (18) af22 (20) af23 (22)
          Match: cos  2
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Bulk-Data-Queue (match-any)
          Match:  dscp af11 (10) af12 (12) af13 (14)
          Match: cos  1
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 4%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Scavenger-Queue (match-any)
          Match:  dscp cs1 (8)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 1%
          queue-buffers ratio 10
    
        Class-map: AutoQos-4.0-Output-Multimedia-Strm-Queue (match-any)
          Match:  dscp af31 (26) af32 (28) af33 (30)
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 10%
          queue-buffers ratio 10
    
        Class-map: class-default (match-any)
          Match: any
          Queueing
    
          (total drops) 0
          (bytes output) 0
          bandwidth remaining 25%
          queue-buffers ratio 25
    
    
    
    Related Concepts
    Auto-QoS Policy and Class Maps
    Related Tasks
    Configuring Auto-QoS

    Where to Go Next for Auto-QoS

    Review the QoS documentation if you require any specific QoS changes to your auto-QoS configuration.

    Additional References for Auto-QoS

    Related Documents

    Related Topic Document Title

    For complete syntax and usage information for the commands used in this chapter.

    QoS Command Reference (Catalyst 3850 Switches)

    Cisco IOS Quality of Service Solutions Command Reference

    Error Message Decoder

    Description Link

    To help you research and resolve system error messages in this release, use the Error Message Decoder tool.

    https:/​/​www.cisco.com/​cgi-bin/​Support/​Errordecoder/​index.cgi

    Standards and RFCs

    Standard/RFC Title

    MIBs

    MIB MIBs Link

    All supported MIBs for this release.

    To locate and download MIBs for selected platforms, Cisco IOS releases, and feature sets, use Cisco MIB Locator found at the following URL:

    http:/​/​www.cisco.com/​go/​mibs

    Technical Assistance

    Description Link

    The Cisco Support website provides extensive online resources, including documentation and tools for troubleshooting and resolving technical issues with Cisco products and technologies.

    To receive security and technical information about your products, you can subscribe to various services, such as the Product Alert Tool (accessed from Field Notices), the Cisco Technical Services Newsletter, and Really Simple Syndication (RSS) Feeds.

    Access to most tools on the Cisco Support website requires a Cisco.com user ID and password.

    http:/​/​www.cisco.com/​support

    Feature History and Information for Auto-QoS

    Release

    Modification

    Cisco IOS XE 3.2SE

    This feature was introduced.