Key takeaways
- Learn the best practice queue limit on cisco routers for CBWFQ, LLQ, WRED and shaping queues, with sizing rules, platform defaults and check commands.
What's inside
- Introduction
- What a Queue Limit Actually Controls
- Hardware Queues vs Software Queues
- The Defaults Cisco Ships
- Best Practice Queue Limits by Queue Type
- How to Size a Queue Limit
- Commands to Check and Change Queue Limits
- Common Mistakes to Avoid
- When to Tune and When to Leave It Alone
- Frequently Asked Questions
- Conclusion
- Introduction
- What a Queue Limit Actually Controls
- Hardware Queues vs Software Queues
- The Defaults Cisco Ships
- Best Practice Queue Limits by Queue Type
- How to Size a Queue Limit
- Commands to Check and Change Queue Limits
- Common Mistakes to Avoid
- When to Tune and When to Leave It Alone
- Frequently Asked Questions
- Conclusion
As an Amazon Associate I earn from qualifying purchases. This post may contain affiliate links at no extra cost to you.
Home › Product Guides › Best Practice Queue Limit on Cisco Routers: Sizing Queues Without Drops or Delay
As an Amazon Associate we earn from qualifying purchases.
Introduction
Finding the best practice queue limit on cisco routers is one of those small configuration choices that quietly decides whether a network feels fast or feels broken. A queue limit is the maximum number of packets a router will hold in a queue before it starts dropping new arrivals. Set it too small and the router drops packets during normal bursts, forcing retransmissions and choppy voice calls. Set it too large and packets wait hundreds of milliseconds, the delay that makes video calls stutter. This guide explains what queue limits do, what Cisco ships by default, and how to size them for each queue type.
What a Queue Limit Actually Controls
Every interface on a Cisco router has queues. When packets arrive faster than the interface can send them, the router holds the extras in a queue. The queue limit caps how many packets that queue can hold. Once the queue is full, every new packet is dropped until space frees up. That moment is called tail drop, the simplest form of congestion management.
The queue limit therefore controls a trade-off. A short queue drops packets early, which hurts bulk transfers because TCP treats drops as congestion and slows down. A long queue absorbs bursts, but packets can wait hundreds of milliseconds, the delay behind stuttering video calls. Best practice is to size each queue to absorb normal bursts without letting delay grow, and to give different traffic classes different limits.
Hardware Queues vs Software Queues
Cisco routers use two layers of queuing. Hardware queues, sometimes called transmit queues or tx-rings, live on the interface itself. They are small and fast, and you rarely need to touch them, because the software queues in front of them do the real traffic management.
Software queues are created by a QoS policy map using Modular QoS CLI, known as MQC. When you attach a service policy to an interface, the router builds one software queue per traffic class, plus a class-default queue for everything else. The queue-limit command inside a class sets the maximum number of packets that class queue can hold. This is the queue limit most engineers mean by best practice. Note that Catalyst 9000 switches size egress queues in buffers from a shared pool rather than in packets, so confirm your platform’s queuing model before changing values.
The Defaults Cisco Ships
In MQC, the default queue limit for a class is 64 packets. That applies to class-default and to most bandwidth classes unless you change it. For a priority queue in a Low Latency Queuing configuration, the default is also commonly 64 packets on many IOS and IOS XE platforms, although some platforms use different values, so verify on your own device rather than assuming.
Sixty-four packets is a deliberate compromise. At typical packet sizes, it absorbs a short burst without adding much delay on a fast link, yet it is small enough that a queue cannot grow into hundreds of milliseconds of latency. It works well on links of roughly 100 Mbps and above. It struggles on very slow WAN links, where 64 packets of 1500 bytes each can represent a long time on the wire, and on very fast links, where 64 packets can be too small to absorb a microburst.
The default is a starting point, not a rule. Best practice means measuring your own traffic, then adjusting the queues that show drops or delay.
Best Practice Queue Limits by Queue Type
Different traffic classes need different queue limits because they behave differently. The table below summarises the recommended starting points.
| Queue type | Recommended starting point | Reasoning |
|---|---|---|
| class-default (best effort) | 64 to 256 packets | Absorbs normal bursts; larger values only on fast links |
| Priority queue (LLQ voice) | 64 packets or less | Voice packets are small and delay-sensitive; a short queue keeps latency low |
| Priority queue (LLQ video) | 128 to 256 packets | Video bursts are larger than voice, but delay still matters |
| Bandwidth class (CBWFQ data) | 64 to 256 packets | Size by bandwidth-delay product; see the sizing section below |
| Shaping queue (parent shaper) | 64 to 128 packets | The shaper already smooths traffic, so the queue can stay short |
| WRED-enabled class | 64 to 256 packets, with thresholds below the limit | Random early detection needs room to signal congestion before the queue fills |
Class-default
Class-default carries all traffic that does not match another class, which on most networks is the bulk of the traffic. A queue limit of 64 packets is the Cisco default and works well for most branch routers. On a fast link with heavy bulk traffic, raising it to 128 or 256 packets can reduce drops during bursts, but do not go higher without measuring delay. If class-default drops packets while the link has spare capacity, the queue is too small. If latency climbs when the link is busy, it is too large.
Priority queues for voice
Voice traffic is the most delay-sensitive traffic on a network. A voice packet that waits 200 milliseconds in a queue arrives too late to be useful. The priority queue in LLQ makes sure voice packets are sent first, but the queue limit still matters. A small limit, usually 64 packets or fewer, forces the router to drop excess voice packets rather than delay them, and dropping is the right outcome: a dropped voice packet is a brief audio gap, while a delayed one is garbled audio. Keep the priority queue short, and make sure the priority bandwidth matches real call volume, because a constantly full priority queue usually means the priority bandwidth is too small.
Priority queues for video
Video is also delay-sensitive, but it sends much larger bursts than voice. A video conference can send a burst of large packets every time the picture changes. A queue limit of 128 to 256 packets gives video room to absorb those bursts without adding the kind of delay that makes lip sync drift. If you put voice and video in the same priority class, size for video, but the cleaner design is to give video its own priority class with its own limit.
Bandwidth classes for data
Data classes such as file transfers, backups and business applications tolerate delay far better than voice or video, so their queues can be larger. Start at 64 packets and raise to 128 or 256 if you see drops on a fast link. The right size depends on the bandwidth-delay product, explained in the next section. One warning: a very large data queue can hurt other classes, because a long queue of bulk packets takes longer to drain.
Shaping queues
When you shape traffic to a contracted rate, the shaper itself smooths bursts, so the queue in front of the shaper does not need to be large. A limit of 64 to 128 packets is usually enough. A larger shaping queue only adds delay to traffic that is already being deliberately slowed down.
WRED-enabled classes
Weighted Random Early Detection drops packets randomly before the queue fills, which signals TCP senders to slow down early instead of all at once. WRED needs a queue limit with room above the maximum threshold, because if the queue limit equals the maximum threshold, WRED has no room to work and every drop becomes a tail drop. Set the queue limit above the maximum threshold, typically 64 to 256 packets, with the minimum and maximum thresholds inside that range.
How to Size a Queue Limit
The most defensible way to size a queue limit is the bandwidth-delay product. A queue only needs to be large enough to hold the packets in flight during one round-trip time. Any larger, and the queue is just adding delay. Any smaller, and the link goes idle while TCP waits for acknowledgements. Multiply the link speed in bits per second by the round-trip time in seconds, divide by eight for bytes, then divide by a typical packet size of 1500 bytes. On a 100 Mbps link with a 20 millisecond round-trip time, that gives 250,000 bytes, or about 167 packets. A queue limit of 128 to 256 packets would be reasonable there. On a 10 Mbps link the product is only about 17 packets, so the default of 64 is already generous and the queue limit is not your problem: the link speed is.
In practice, start with the defaults, then adjust only the classes that show drops or delay. Measure first, tune second, and change one value at a time.
Commands to Check and Change Queue Limits
You can see the current queue limit and the drop counters for each class with one command:
show policy-map interface GigabitEthernet0/0
Look for the queue limit line under each class, and for the counters showing how many packets were matched, queued and dropped. A class with a steadily rising drop counter is a class whose queue limit, bandwidth allocation or traffic volume needs attention. The show interfaces command also shows total output drops on an interface, a useful first check when you are not sure whether queuing is even involved.
To change a queue limit, use the queue-limit command inside the class of a policy map:
policy-map WAN-EDGE
class VOICE
priority percent 10
queue-limit 64 packets
class VIDEO
priority percent 20
queue-limit 128 packets
class BULK-DATA
bandwidth percent 30
queue-limit 256 packets
random-detect dscp-based
class class-default
queue-limit 128 packets
Apply the policy with service-policy output WAN-EDGE under the interface configuration. The queue-limit command accepts a packet count or, on some platforms, a byte value, so check the syntax your IOS XE version accepts first. After applying a change, watch the drop counters and the delay for a full business cycle before deciding whether the new value is better.
Common Mistakes to Avoid
The most common mistake is setting every queue limit to a very large number, such as 1000 or 2000 packets, in the hope of eliminating drops. That does eliminate drops, but it replaces them with delay, and delay is harder to diagnose than drops. Users report that the network feels slow, monitoring shows no drops and low utilisation, and the real cause is a queue holding packets for hundreds of milliseconds.
The opposite mistake is setting every queue limit to a tiny number, such as 16 packets, in the name of low latency. That causes constant drops on any bursty traffic, and TCP spends its time retransmitting instead of moving data. Low latency comes from prioritisation, not from starving the queues.
Another common error is tuning the queue limit while ignoring the bandwidth allocation. A class with a generous queue limit but a tiny bandwidth share will still drop packets, because the queue fills while the class waits for its turn to send. Queue limits are also per class, not per interface: raising the limit on class-default does nothing for a voice class that is dropping. Finally, do not tune queue limits on a link that is simply too small. If a 10 Mbps circuit is carrying 20 Mbps of traffic all day, no queue limit will fix it. Queuing manages congestion; it does not create capacity.
When to Tune and When to Leave It Alone
Leave the defaults alone when the network is healthy. If drop counters are near zero, voice quality is good, and users are not complaining about delay, the default queue limit of 64 packets is doing its job. Tuning a working network usually creates problems rather than solving them.
Tune when you have evidence: a rising drop counter on one class, a voice quality complaint that correlates with congestion, or a latency spike that appears only when the link is busy. Tune one class at a time, record the before and after counters, and give the change time to show its effect. Revert a change that makes things worse instead of stacking another change on top of it.
Frequently Asked Questions
What is the default queue limit on Cisco routers?
In MQC, the default queue limit for a class is 64 packets on most IOS and IOS XE platforms. Hardware transmit queues have their own defaults that vary by platform, and Catalyst switches size egress queues in buffers rather than packets, so confirm the default on your specific device.
Should the priority queue limit be large or small?
Small. Voice packets are delay-sensitive, so a short queue, usually 64 packets or fewer, is the right choice. A short queue drops excess voice packets instead of delaying them, and a dropped voice packet is less harmful than a delayed one. If the priority queue is constantly full, the problem is usually that the priority bandwidth is too small, not that the queue limit is wrong.
Does a bigger queue limit always reduce packet loss?
It reduces drops, but it is not always a good trade. A bigger queue holds more packets, so fewer are dropped, but every packet in that queue waits longer. On interactive traffic such as voice and video, the added delay can be worse than the drops it prevents. Size the queue to absorb normal bursts and no more.
How do I know if my queue limit is too small?
Check the drop counters with the show policy-map interface command. If a class shows a steadily rising number of dropped packets while the link is busy, and the traffic volume is legitimate, the queue limit or the bandwidth allocation for that class is too small.
Can I set the queue limit in bytes instead of packets?
On some platforms and IOS XE versions, the queue-limit command accepts a byte value, which is useful when packet sizes vary a lot. On other platforms only a packet count is accepted. Check the command reference for your platform and IOS version before using the byte form.
Conclusion
The best practice queue limit on Cisco routers is not a single magic number. It is a short queue for voice, a moderate queue for video, and a queue sized to the bandwidth-delay product for data, all starting from the Cisco default of 64 packets and adjusted only when the counters give you a reason. Measure first, change one class at a time, and watch both drops and delay after each change.
Related guides
Read next
More from Amazon
Programs that pair well with the guide above. Offers and eligibility are set by Amazon and may change.
A free business account with business pricing and bulk-buying tools for work, shop or home office.
Create a business accountFree shipping on eligible items, Prime Video and more. Eligible new members can start with a free trial.
Start a Prime free trialAudiobooks and podcasts to listen to on the go. Eligible new members can start with a free trial.
Try Audible freeAd-free music streaming. Eligible new subscribers can start with a free trial.
Try Music Unlimited freeAs an Amazon Associate we earn from qualifying purchases.
Write Your Review
No reviews yet. Be the first to share your experience!