Mar 14

How to tell if your policy-map is dropping packets?

Run the following command on the interface that you have the policy. The below example is applied outbound and has given classes of traffic a set amount of bandwidth, other classes simply match the DCSP markings to validate packets with those markings are leaving the router

show policy-map interface serial 0/0/0

Service-policy output: WAN-Outbound

queue stats for all priority classes:
Queueing
queue limit 64 packets
     (queue depth/total drops/no-buffer drops) 0/141160/0
(pkts output/bytes output) 178961385/27251094493

Class-map: Seven (match-all)
0 packets, 0 bytes
30 second offered rate 0 bps
Match:  precedence 7

Class-map: Six (match-all)
2049895 packets, 365732733 bytes
30 second offered rate 3000 bps
Match:  precedence 6

Class-map: Five (match-all)
179102552 packets, 27386337382 bytes
30 second offered rate 130000 bps, drop rate 0 bps
Match:  precedence 5
Priority: 12% (184 kbps), burst bytes 4600, b/w exceed drops: 141160

Class-map: Four (match-all)
8258473 packets, 503922161 bytes
30 second offered rate 3000 bps, drop rate 0 bps
Match:  precedence 4
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops/flowdrops) 0/153/0/153
(pkts output/bytes output) 8258320/503701910
bandwidth 9% (138 kbps)
Fair-queue: per-flow queue limit 16

Class-map: Three (match-all)
12140601 packets, 2266058800 bytes
30 second offered rate 10000 bps, drop rate 0 bps
Match:  precedence 3
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops/flowdrops) 0/2869/0/2869
(pkts output/bytes output) 12137732/2229606633
bandwidth 55% (844 kbps)
Fair-queue: per-flow queue limit 16

Class-map: class-default (match-any)
78037660 packets, 16987734544 bytes
30 second offered rate 143000 bps, drop rate 0 bps
Match: any
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops/flowdrops) 0/89674/0/89674
(pkts output/bytes output) 183823669/37946247183
Fair-queue: per-flow queue limit 16

To see more QOS troubleshooting go to my website.

Mar 13

How to validate packets are leaving in a specific Queue on a Cisco Catalyst 4500

CAT4500-SW#show interfaces gigabitEthernet 1/1 counters all

Port                InBytes       InUcastPkts      InMcastPkts       InBcastPkts
Gi1/1        10348352163499       15376980571        691266118         525274945

Port               OutBytes      OutUcastPkts     OutMcastPkts      OutBcastPkts
Gi1/1         9050250973530       13888585162         31104686          58818140

Port              InPkts 64        OutPkts 64    InPkts 65-127    OutPkts 65-127
Gi1/1              19566098           1210635       5768506805        4581601113

Port         InPkts 128-255   OutPkts 128-255   InPkts 256-511   OutPkts 256-511
Gi1/1            3491349331        2957182335        884237405         947840824

Port        InPkts 512-1023  OutPkts 512-1023
Gi1/1             691717237         450855165

Port       InPkts 1024-1518 OutPkts 1024-1518 InPkts 1519-1548 OutPkts 1519-1548
Gi1/1            2405711483         976043383       3332433275        4063774533

Port       InPkts 1549-9216 OutPkts 1549-9216
Gi1/1                     0                 0

Port       Tx-Bytes-Queue-1  Tx-Bytes-Queue-2 Tx-Bytes-Queue-3  Tx-Bytes-Queue-4

Port       Tx-Bytes-Queue-1  Tx-Bytes-Queue-2 Tx-Bytes-Queue-3  Tx-Bytes-Queue-4
Gi1/1         8313588649616      297392712670     110535772827      328733838417

Port       Tx-Drops-Queue-1  Tx-Drops-Queue-2 Tx-Drops-Queue-3  Tx-Drops-Queue-4
Gi1/1                     0                 0                0                 0

Port       Dbl-Drops-Queue-1 Dbl-Drops-Queue-2 Dbl-Drops-Queue-3 Dbl-Drops-Queue-4
Gi1/1                      0                 0                 0                 0

Port         Rx-No-Pkt-Buff     RxPauseFrames    TxPauseFrames   PauseFramesDrop
Gi1/1                     0                 0                0                 0

Port       UnsupOpcodePause
Gi1/1                     0

Port           CrcAlign-Err  Dropped-Bad-Pkts       Collisions        Symbol-Err
Gi1/1                     0                 0                0                 0

Port              Undersize          Oversize        Fragments           Jabbers
Gi1/1                     0                22                0                 0

Port             Single-Col         Multi-Col         Late-Col        Excess-Col

Port             Single-Col         Multi-Col         Late-Col        Excess-Col
Gi1/1                     0                 0                0                 0

Port           Deferred-Col         False-Car        Carri-Sen      Sequence-Err
Gi1/1                     0                 0                0                 0

Port         RxIslTagFrames    TxIslTagFrames RxDot1qTagFrames  TxDot1qTagFrames
Gi1/1                     0                 0      16310123653       13767165428
CAT4500-SW#