-
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.
This module describes the tasks for configuring QoS custom queueing (CQ) 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.
Note CQ is not supported on any tunnels.
You must follow certain required, basic steps to enable CQ for your network. In addition, you can choose to assign packets to custom queues based on protocol type, interface where the packets enter the router, or other criteria you specify.
CQ allows a fairness not provided with priority queueing (PQ). With CQ, you can control the available bandwidth on an interface when it is unable to accommodate the aggregate traffic enqueued. Associated with each output queue is a configurable byte count, which specifies how many bytes of data should be delivered from the current queue by the system before the system moves on to the next queue. When a particular queue is being processed, packets are sent until the number of bytes sent exceeds the queue byte count defined by the queue-list queue byte-count command (see the following section "Specifying the Maximum Size of the Custom Queues"), or until the queue is empty.
To configure CQ, perform the tasks described in the following sections.
•Specifying the Maximum Size of the Custom Queues (Optional)
•Assigning Packets to Custom Queues (Required)
•Defining the Custom Queue List (Required)
•Monitoring Custom Queue Lists (Optional)
The following sections provide custom queueing examples:
•Example: Custom Queue List Defined
•Examples: Maximum Specified Size of the Custom Queues
•Examples: Packets Assigned to Custom Queues
The following example illustrates how to assign custom queue list number 3 to serial interface 0:
interface serial 0
custom-queue-list 3
The following example specifies the maximum number of packets allowed in each custom queue. The queue length of queue 10 is increased from the default 20 packets to 40 packets.
queue-list 3 queue 10 limit 40
The queue length limit is the maximum number of packets that can be enqueued at any time, with the range being from 0 to 32767 queue entries.
The following example decreases queue list 9 from the default byte count of 1500 to 1400 for queue number 10:
queue-list 9 queue 10 byte-count 1400
The byte count establishes the lowest number of bytes the system allows to be delivered from a given queue during a particular cycle.
The following examples assign packets to custom queues by either protocol type or interface type, and the default assignment for unmatched packets.
The following example assigns traffic that matches IP access list 10 to queue number 1:
queue-list 1 protocol ip 1 list 10
The following example assigns Telnet packets to queue number 2:
queue-list 4 protocol ip 2 tcp 23
The following example assigns User Datagram Protocol (UDP) Domain Name Service (DNS) packets to queue number 3:
queue-list 4 protocol ip 3 udp 53
In this example, queue list 4 establishes queueing priorities for packets entering on serial interface 0. The queue number assigned is 10.
queue-list 4 interface serial 0 10
You can specify a default queue for packets that do not match other assignment rules. In this example, the default queue for list 10 is set to queue number 2:
queue-list 10 default 2