Drops are how QoS works, so judge them by class
When a link is full, something has to wait or be lost. QoS decides what. A drop in the default class during a backup window is the policy doing its job. A drop in the voice class is not. The first question about any drop is therefore which class it is in.
Drops in the default class while the link is full are expected. Drops in a protected class such as voice, or a protected class showing no traffic at all, point to a fault.
Read the counters in the same order every time
A fixed order saves time because each step removes a whole family of causes. Start with where the policy is attached, then find the class, then compare what it was offered with what it lost, and only then ask why.
Check the policy is attached to the right interface in the output direction, find the class that loses packets, compare its offered rate with its drop rate, name the reason, and check that the traffic in the class is the traffic expected.
- 1 AttachedRight interface, output directionthe shaper on the same policy
- 2 ClassWhich class has dropsor has no traffic at all
- 3 RatesOffered rate against drop ratehow big the loss is
- 4 ReasonQueue full, priority exceededor a policer
- 5 ContentPacket size and marksis the right traffic in the class
| Counter | What it tells you | A warning sign |
|---|---|---|
| Offered rate | How much the class was asked to send | Far above or below what the design expected |
| Drop rate | How much of that was lost | Anything above zero in a protected class |
| Queue depth against the limit | Whether the queue is full right now | At the limit for long periods |
| Total drops | Packets lost to a full queue since the counters were cleared | Rising in step with the offered rate |
| Priority exceed drops | Packets over the priority class's limit | Any, because voice should fit inside its limit |
| Packets and bytes | Size of the traffic: bytes divided by packets | An average that does not match the traffic the class should hold |
The packet size is a fingerprint
Bytes divided by packets gives the average packet size in a class. It is not proof, but it is a quick test of whether the right traffic is there. With the 70-byte encapsulation assumed in the earlier lessons, G.711 voice leaves the edge as 270-byte packets and G.729 as 130-byte packets. Video and bulk transfers send packets of about a thousand bytes or more, up to the path limit.
Divide the bytes in the voice class, 842,400,000, by its packets, 3,120,000. The answer is 270 bytes, which matches G.711 voice with 70 bytes of encapsulation.
- Bytes842,400,000
- Packets3,120,000
- Dividebytes bypackets
- 270 bytesmatches G.711voice
| Traffic | Typical size on the wire | If a class averages this |
|---|---|---|
| G.711 voice | 270 bytes | A voice class is full of voice |
| G.729 voice | 130 bytes | A voice class is full of compressed voice |
| Video and bulk data | About 1,000 bytes and up | A voice class holds something else, or a class meant for small packets is carrying video |
The same counters give a rough call count. Once the average size is known to be 270 bytes, the offered rate of the voice class divided by the rate of one call says how many calls are behind it, and the priority limit says how many calls it can hold. The table works this out for the voice class in the worked example below.
| Measure | Value | How it is worked out |
|---|---|---|
| Average packet size | 270 bytes | 842,400,000 bytes divided by 3,120,000 packets |
| One call, one direction | 108 kbps | 270 bytes times 8 bits times 50 packets a second (20 ms packets assumed) |
| Calls behind 8.1 Mbps | 75 | 8,100 kbps divided by 108 kbps |
| Calls the 20 Mbps priority limit holds | 185 | 20,000 kbps divided by 108 kbps, rounded down |
| Share of the priority limit in use | 40.5 percent | 8.1 Mbps divided by 20 Mbps |
Worked example: the video class that stayed empty
Video calls at BR-01 freeze in the afternoon. The design from the earlier lessons gives video its own class with a guaranteed share. The counters on the WAN interface are the first thing to read.
BR-01#show policy-map interface GigabitEthernet1 Service-policy output: WAN-QOS Class-map: VOICE (match-any) 3120000 packets, 842400000 bytes 30 second offered rate 8100000 bps, drop rate 0 bps Priority: 20000 kbps, b/w exceed drops: 0 Class-map: VIDEO (match-any) 0 packets, 0 bytes 30 second offered rate 0 bps, drop rate 0 bps Class-map: class-default (match-any) 4860000 packets, 5832000000 bytes 30 second offered rate 98600000 bps, drop rate 11700000 bps (queue depth/total drops/no-buffer drops) 64/412000/0
The policy is attached correctly and voice is clean. The video class has no packets. The default class averages 1,200 bytes a packet and loses 12 percent. A capture on the LAN side shows the video endpoints' marks arrive as zero, so the class match does not fire.
- AttachedWAN-QOS on the WAN interface, outputvoice drops are zero
- ClassVIDEO has 0 packetsclass-default is losing 11.7 Mbps
- ContentDefault averages 1,200 bytesvideo-sized, not control traffic
- MarksLAN capture shows tos 0x0 on videoa switch reset the AF41 marks
- FixTrust the marks on that switch port,or match the video on the edge
A capture on the edge's LAN side confirmed that the video packets arrive with a mark of zero. The access switch resets the endpoints' marks because its uplink port does not trust them, so the edge's match on AF41 does not fire. The cause is not on the edge at all. The fix is to trust the marks on that switch port or, if the switch cannot be changed, to classify the video on the edge by address or application list.
| Measure | Before | After |
|---|---|---|
| Video class offered rate | 0 Mbps | 18 Mbps |
| Video lost | About 2.1 Mbps (12 percent of 18), in default | 0 Mbps |
| Default class offered rate | 98.6 Mbps | 80.6 Mbps (98.6 minus the video's 18) |
| Available to default | 86.9 Mbps | 68.9 Mbps (86.9 minus the video's 18) |
| Default class dropped | 11.7 Mbps (11.9 percent) | 11.7 Mbps (14.5 percent of what is left in default) |
Where the fault can be, by what the counters show
Drops only in the default class are expected under load. Drops in the priority class mean it was overfilled. A class with no packets means its match does not fire. No drops anywhere with bad quality means the queue is forming at the provider because the shaper is missing or set too high.
- Default dropsexpected whilethe link is full
- Priority dropsclass overfilledor mis-marked
- Empty classmark reset ormatch wrong
- No dropsshaper missingor set too high
Learn more: Classification and SchedulingQoS Concepts: Marking, Queueing and Shaping
Test yourself
During a nightly backup, the default class shows drops and every other class shows none. What is the right reading?
A class holds 842,400,000 bytes in 3,120,000 packets. What is the average packet size, and what does it suggest?
The VIDEO class shows 0 packets, and class-default is averaging 1,200 bytes per packet. What do you check next?
Default is offered 98.6 Mbps. After voice takes 8.1 Mbps of a 95 Mbps shaped link, how much does the default class lose?
There are no drops in any class, but video quality is poor at busy times. Which cause fits?
The voice class offers 8.1 Mbps in 270-byte packets. Assume 20 ms packets, so each call sends 50 packets a second in one direction. About how many calls is that?
After the fix the video class is guaranteed its 18 Mbps. The backup and other traffic offer 80.6 Mbps, and 86.9 Mbps is left after voice. How much does the default class lose?
A class meant for G.711 voice averages 1,200 bytes a packet. What is the most likely reading?