-
null
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
Feature History
|
|
---|---|
Cisco IOS |
For information about feature support in Cisco IOS software, use Cisco Feature Navigator. |
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.
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.
|
|
|
---|---|---|
Step 1 |
Router(config)# priority-list list-number protocol protocol-name {high | medium | normal | low} queue-keyword keyword-value |
Establishes queueing priorities based on the protocol type. Note All protocols supported by Cisco are allowed. The queue-keyword argument provides additional options including byte count, TCP service and port number assignments, and AppleTalk, IP, IPX, VINES, or XNS access list assignments. Refer to the priority-list protocol command syntax description in the Cisco IOS Quality of Service Solutions Command Reference. |
Step 2 |
Router(config)# priority-list list-number interface interface-type interface-number {high | medium | normal | low} |
Establishes queueing priorities for packets entering from a given interface. |
Step 3 |
Router(config)# priority-list list-number default {high | medium | normal | low} |
Assigns a priority queue for those packets that do not match any other rule in the priority list. |
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
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
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
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.
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