Configuring Priority Queueing
This module describes the tasks for configuring priority queueing (PQ) on a router.
Use Cisco Feature Navigator to find information about platform support and Cisco IOS and Catalyst OS software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn . An account on Cisco.com is not required.
Finding Feature Information
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.
Priority Queueing Configuration
A priority list contains the definitions for a set of priority queues. The priority list specifies which queue a packet will be placed in and, optionally, the maximum length of the different queues.
In order to perform queueing using a priority list, you must assign the list to an interface. The same priority list can be applied to multiple interfaces. Alternatively, you can create many different priority policies to apply to different interfaces.
Assign packets to priority queues based on the following qualities:
- Protocol type
- Interface where the packets enter the router
You can specify multiple assignment rules. The priority-list commands are read in order of appearance until a matching protocol or interface type is found. When a match is found, the packet is assigned to the appropriate queue and the search ends. Packets that do not match other assignment rules are assigned to the default queue.
- Defining the Priority List
- Assigning the Priority List to an Interface
- Monitoring Priority Queueing Lists
Defining the Priority List
Assigning Packets to Priority Queues
DETAILED STEPS
Specifying the Maximum Size of the Priority Queues
Command |
Purpose |
---|---|
Router(config)# priority-list list-number queue-limit [high-limit [medium-limit [normal-limit [low-limit]]] |
Specifies the maximum number of packets allowed in each of the priority queues:
|
Assigning the Priority List to an Interface
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
|
|
Specifies the interface, and then enters interface configuration mode. |
|
|
Assigns a priority list number to the interface. |
Monitoring Priority Queueing Lists
Command |
Purpose |
---|---|
Router# show queue interface-type interface-number |
Displays the contents of packets inside a queue for a particular interface or VC. |
Router# show queueing priority |
Displays the status of the priority queueing lists. |
Priority Queueing Configuration Examples
- Example Priority Queueing Based on Protocol Type
- Example Priority Queueing Based on Interface
- Example Maximum Specified Size of the Priority Queue
- Example Priority List Assigned to an Interface
- Example Priority Queueing Using Multiple Rules
Example Priority Queueing Based on Protocol Type
The following example establishes queueing based on protocol type. The example assigns 1 as the arbitrary priority list number, specifies IP as the protocol type, and assigns a high priority level to traffic that matches IP access list 10.
access-list 10 permit 239.1.1.0 0.0.0.255 priority-list 1 protocol ip high list 10
Example Priority Queueing Based on Interface
The following example establishes queueing based on interface. The example sets any packet type entering on Ethernet interface 0 to a medium priority.
priority-list 3 interface ethernet 0 medium
Example Maximum Specified Size of the Priority Queue
The following example changes the maximum number of packets in the high priority queue to 10. The medium-limit, normal, and low-limit queue sizes remain at their default 40-, 60-, and 80-packet limits.
priority-list 4 queue-limit 10 40 60 80
Example Priority List Assigned to an Interface
The following example assigns priority group list 4 to serial interface 0:
interface serial 0 priority-group 4
Note |
The priority-group list-number command is not available on ATM interfaces that do not support fancy queueing. |
Example Priority Queueing Using Multiple Rules
When classifying a packet, the system searches the list of rules specified by priority-list commands for a matching protocol type. The following example specifies four rules:
- DECnet packets with a byte count less than 200 are assigned a medium priority queue level.
- IP packets originating or destined to TCP port 23 are assigned a medium priority queue level.
- IP packets originating or destined to User Datagram Protocol (UDP) port 53 are assigned a medium priority queue level.
- All IP packets are assigned a high priority queue level.
Remember that when using multiple rules for a single protocol, the system reads the priority settings in the order of appearance.
priority-list 4 protocol decnet medium lt 200 priority-list 4 protocol ip medium tcp 23 priority-list 4 protocol ip medium udp 53 priority-list 4 protocol ip high
Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at www.cisco.com/go/trademarks. Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1005R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.