The Multi-Vendor Networking Forum and Resources
QOS Troubleshooting- Cisco

QOS troubleshooting and validation for multiple Cisco platforms in one location!!!

QOS is needed to protect data priority while traveling on the network. QOS is not only for congested circuits, it also prioritizes data through the networking hardware.

 

I have found QOS on Cisco equipment to be different on almost every platform. Within chassis's the QOS functionality varies based on the line card. You really have to research each product to effectively configure and troubleshoot QOS.

Below I have identified configuration and troubleshooting/validation commands for a few different switch platforms. I have found that the troubleshooting and validation abilities vary based on platform. One switch will have some great validation tools, while others have almost none. 

***Not all possible commands are listed, just the ones that I have found the most helpful in my environment****

Cisco Catalyst 3560
Cisco Catalyst 4500
Cisco Catalyst 6500
Viewing Results of a Policy-Map

Click here to find more information or ask questions in the QOS forum

Catalyst 3560

Is QOS enabled?

3560SWITCH#show mls qos
QoS is enabled
QoS ip packet dscp rewrite is enabled

Display Queueing information for a specific port

3560SWITCH#show mls qos interface gig 0/27
GigabitEthernet0/27
trust state: not trusted
trust mode: not trusted
trust enabled flag: ena
COS override: dis
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
Trust device: none
qos mode: port-based


How to show Queue Mappings?

3560SWITCH#show mls qos map
   Policed-dscp map:
     d1 :  d2 0  1  2  3  4  5  6  7  8  9
     ---------------------------------------
      0 :    00 01 02 03 04 05 06 07 08 09
      1 :    10 11 12 13 14 15 16 17 18 19
      2 :    20 21 22 23 24 25 26 27 28 29
      3 :    30 31 32 33 34 35 36 37 38 39
      4 :    40 41 42 43 44 45 46 47 48 49
      5 :    50 51 52 53 54 55 56 57 58 59
      6 :    60 61 62 63

   Dscp-cos map:
     d1 :  d2 0  1  2  3  4  5  6  7  8  9
     ---------------------------------------
      0 :    00 00 00 00 00 00 00 00 01 01
      1 :    01 01 01 01 01 01 02 02 02 02
      2 :    02 02 02 02 03 03 03 03 03 03
      3 :    03 03 04 04 04 04 04 04 04 04
      4 :    05 05 05 05 05 05 05 05 06 06
      5 :    06 06 06 06 06 06 07 07 07 07
      6 :    07 07 07 07

   Cos-dscp map:
        cos:   0  1  2  3  4  5  6  7
     --------------------------------
       dscp:   0  8 16 24 32 46 48 56

   IpPrecedence-dscp map:
     ipprec:   0  1  2  3  4  5  6  7
     --------------------------------
       dscp:   0  8 16 24 32 40 48 56

   Dscp-outputq-threshold map:
     d1 :d2    0     1     2     3     4     5     6     7     8     9
     ------------------------------------------------------------
      0 :    02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01
      1 :    02-01 02-01 02-01 02-01 02-01 02-01 03-01 03-01 03-01 03-01
      2 :    03-01 03-01 03-01 03-01 03-01 03-01 03-01 03-01 03-01 03-01
      3 :    03-01 03-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01
      4 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 04-01 04-01
      5 :    04-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01 04-01
      6 :    04-01 04-01 04-01 04-01

   Dscp-inputq-threshold map:
     d1 :d2    0     1     2     3     4     5     6     7     8     9
     ------------------------------------------------------------
      0 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
      1 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
      2 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
      3 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
      4 :    02-01 02-01 02-01 02-01 02-01 02-01 02-01 02-01 01-01 01-01
      5 :    01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01 01-01
      6 :    01-01 01-01 01-01 01-01

   Cos-outputq-threshold map:
              cos:  0   1   2   3   4   5   6   7 
              ------------------------------------
  queue-threshold: 4-3 4-3 4-1 3-3 2-3 1-3 2-2 2-2

   Cos-inputq-threshold map:
              cos:  0   1   2   3   4   5   6   7 
              ------------------------------------
  queue-threshold: 1-1 1-1 1-1 1-1 1-1 2-1 1-1 1-1


   Dscp-dscp mutation map:
   Default DSCP Mutation Map:
     d1 :  d2 0  1  2  3  4  5  6  7  8  9
     ---------------------------------------
      0 :    00 01 02 03 04 05 06 07 08 09
      1 :    10 11 12 13 14 15 16 17 18 19
      2 :    20 21 22 23 24 25 26 27 28 29
      3 :    30 31 32 33 34 35 36 37 38 39
      4 :    40 41 42 43 44 45 46 47 48 49
      5 :    50 51 52 53 54 55 56 57 58 59
      6 :    60 61 62 63


 

Are Packets entering/exiting the switch with the COS/DSCP values set and what are they? Are there packets being dropped due to QOS?

 

This is my favorite output from all of the different platforms! Cisco did a really good job with this one. I wish that they were able to add this to the rest of the platforms.

 

3560SWITCH#show mls qos interface gig 0/27 statistics

GigabitEthernet0/27 (All statistics are in packets)

  dscp: incoming 

-------------------------------

  0 -  4 :     1536862         1405         9675            0         1148 

  5 -  9 :           0         3183          325       286042            0 

 10 - 14 :     5744728            0         4216          539          883 

 15 - 19 :          29     10852550            0      2457814            0 

 20 - 24 :        4720            0         6939           37      1880101 

 25 - 29 :           0       142963            0            7            0 

 30 - 34 :         229            0        27777          108     42148765 

 35 - 39 :           0         5979            0          323            0 

 40 - 44 :     5316409            0            6            0            7 

 45 - 49 :           0     59755096            0     40073734            0  

 50 - 54 :           0            0            0            0         1796 

 55 - 59 :           0            0            0            0            0 

 60 - 64 :           0            0            0         1607 

  dscp: outgoing

-------------------------------

  0 -  4 :     9275984            0       697760            0            0 

  5 -  9 :           0            0            0            0            0 

 10 - 14 :        9749            0            0            0            0 

 15 - 19 :           0      3006880            0      1452942            0 

 20 - 24 :           0            0            0            0       136774 

 25 - 29 :           0     18855564            0            0            0 

 30 - 34 :           0            0          287            0        14322 

 35 - 39 :           0            0            0            0            0 

 40 - 44 :           0            0            0            0            0 

 45 - 49 :           0     78334690            0    265675915            0 

 50 - 54 :           0            0            0            0            0 

 55 - 59 :           0            0            0            0            0 

 60 - 64 :           0            0            0            0 

  cos: incoming 

-------------------------------

  0 -  4 :  1325599155      6036409     13053448      2023158     42170658 

  5 -  7 :    72987651     27781401    169934378 

  cos: outgoing

-------------------------------

  0 -  4 :  1599057049         8465      4355308     18749543        10342 

  5 -  7 :    68567289    161121088      2946374 

  output queues enqueued:

queue: threshold1 threshold2 threshold3

-----------------------------------------

 queue 0:     2571297           0           0

 queue 1:    39972216    29058164     3453726

 queue 2:     4549348           0           0

 queue 3:    31198179           0  1747695737

 

  output queues dropped:

queue: threshold1 threshold2 threshold3

-----------------------------------------

 queue 0:            0            0            0

 queue 1:            0            0            0

 queue 2:            0            0            0

 queue 3:            0            0            0

 

Policer: Inprofile:            0 OutofProfile:            0  


How is egress Queueing configured?

3560SWITCH#show mls qos int gig 0/27 queueing

GigabitEthernet0/27

Egress Priority Queue : enabled

Shaped queue weights (absolute) :  10 0 0 0

Shared queue weights  :  10 10 60 20

The port bandwidth limit : 100  (Operational Bandwidth:100.0)

The port is mapped to qset : 1


Display Buffer Size and Thresholds

3560SWITCH#show mls qos queue-set
Queueset: 1
Queue     :       1       2       3       4
----------------------------------------------
buffers   :      25      25      25      25
threshold1:     100     200     100     100
threshold2:     100     200     100     100
reserved  :      50      50      50      50
maximum   :     400     400     400     400
Queueset: 2
Queue     :       1       2       3       4
----------------------------------------------
buffers   :      25      25      25      25
threshold1:     100     200     100     100
threshold2:     100     200     100     100
reserved  :      50      50      50      50
maximum   :     400     400     400     400

What are the capabilities of the interface?

 3560SWITCH#show int gig 0/27 capabilities

GigabitEthernet0/27

  Model:                 WS-C3560E-24PD

  Type:                  1000BaseSX SFP

  Speed:                 1000

  Duplex:                full

  Trunk encap. type:     802.1Q,ISL

  Trunk mode:            on,off,desirable,nonegotiate

  Channel:               yes

  Broadcast suppression: percentage(0-100)

  Flowcontrol:           rx-(off,on,desired),tx-(none)

  Fast Start:            yes

  QoS scheduling:        rx-(not configurable on per port basis),

                         tx-(4q3t) (3t: Two configurable values and one fixed.)

  CoS rewrite:           yes

  ToS rewrite:           yes

  UDLD:                  yes

  Inline power:          no

  SPAN:                  source/destination

  PortSecure:            yes

  Dot1x:                 yes




Catalyst 4500


What are the capabilities of the interface?

CAT4500-SW#show interface gig 1/1 capabilities
GigabitEthernet1/1
  Model:                 WS-X4013+-Gbic
  Type:                  1000BaseSX
  Speed:                 1000
  Duplex:                full
  Auto-MDIX:             no
  Trunk encap. type:     802.1Q,ISL
  Trunk mode:            on,off,desirable,nonegotiate
  Channel:               yes
  Broadcast suppression: percentage(0-100), hw
  Flowcontrol:           rx-(off,on,desired),tx-(off,on,desired)
  VLAN Membership:       static, dynamic
  Fast Start:            yes
  Queuing:               rx-(N/A), tx-(1p3q1t, Sharing/Shaping)
  CoS rewrite:           yes
  ToS rewrite:           yes

  Inline power:          no
  SPAN:                  source/destination
  UDLD:                  yes
  Link Debounce:         no
  Link Debounce Time:    no
  Port Security:         yes
  Dot1x:                 yes
  Maximum MTU:           9198 bytes (Jumbo Frames)
  Multiple Media Types:  no
  Diagnostic Monitoring: N/A

How to tell if QOS is enabled on a 4500

CAT4500-SW#show qos
QoS is enabled globally
IP header DSCP rewrite is enabled

How to show what is trusted and bandwidth allocations on a 4500

CAT4500-SW#show qos interface gig 1/1
QoS is enabled globally
Port QoS is enabled
Administrative Port Trust State: 'dscp'
Operational Port Trust State: 'dscp'
Trust device: none
Default DSCP: 0 Default CoS: 0
Appliance trust: none
Tx-Queue   Bandwidth   ShapeRate   Priority   QueueSize
             (bps)       (bps)                (packets)
  1        250000000   disabled    N/A        1920    
  2        600000000   disabled    N/A        1920    
  3        100000000   100000000   high       1920    
  4        100000000   disabled    N/A        1920    

How to view the QOS mappings on a 4500

CAT4500-SW#show qos maps
DSCP-TxQueue Mapping Table (dscp = d1d2)
d1 : d2  0  1  2  3  4  5  6  7  8  9
-------------------------------------
 0 :    01 01 01 01 01 01 01 01 01 01
 1 :    01 01 01 01 01 01 01 01 01 01
 2 :    01 01 01 01 02 02 02 02 02 02
 3 :    02 02 04 04 04 04 04 04 04 04
 4 :    03 03 03 03 03 03 03 03 04 04
 5 :    04 04 04 04 04 04 04 04 04 04
 6 :    04 04 04 04

Policed DSCP Mapping Table (dscp = d1d2)
d1 : d2  0  1  2  3  4  5  6  7  8  9
-------------------------------------
 0 :    00 01 02 03 04 05 06 07 08 09
 1 :    10 11 12 13 14 15 16 17 18 19
 2 :    20 21 22 23 24 25 26 27 28 29
 3 :    30 31 32 33 34 35 36 37 38 39
 4 :    40 41 42 43 44 45 46 47 48 49
 5 :    50 51 52 53 54 55 56 57 58 59
 6 :    60 61 62 63

DSCP-CoS Mapping Table (dscp = d1d2)
d1 : d2  0  1  2  3  4  5  6  7  8  9
-------------------------------------
 0 :    00 00 00 00 00 00 00 00 01 01
 1 :    01 01 01 01 01 01 02 02 02 02
 2 :    02 02 02 02 03 03 03 03 03 03
 3 :    03 03 04 04 04 04 04 04 04 04
 4 :    05 05 05 05 05 05 05 05 06 06
 5 :    06 06 06 06 06 06 07 07 07 07
 6 :    07 07 07 07

CoS-DSCP Mapping Table
   CoS:   0  1  2  3  4  5  6  7
--------------------------------
  DSCP:   0  8 16 24 32 46 48 56


How to validate packets are leaving in a specific Queue on a 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#


Show interface capabilities on a 6500

CAT6500SW#show int gig 3/18 capabilities
GigabitEthernet3/18
  Model:                 WS-X6748-GE-TX
  Type:                  10/100/1000BaseT
  Speed:                 10,100,1000,auto
  Duplex:                half,full
  Trunk encap. type:     802.1Q,ISL
  Trunk mode:            on,off,desirable,nonegotiate
  Channel:               yes
  Broadcast suppression: percentage(0-100)
  Flowcontrol:           rx-(off,on,desired),tx-(off,on,desired)
  Membership:            static
  Fast Start:            yes
  QOS scheduling:        rx-(2q8t), tx-(1p3q8t)
  QOS queueing mode:     rx-(cos), tx-(cos)
  CoS rewrite:           yes
  ToS rewrite:           yes

  Inline power:          no
  Inline power policing: no
  SPAN:                  source/destination
  UDLD                   yes
  Link Debounce:         yes
  Link Debounce Time:    no
  Ports-in-ASIC (Sub-port ASIC) : 1-24 (13-24)
  Remote switch uplink:  no
  Dot1x:                 yes
  Port-Security:         yes


Is QOS enabled on a 6500

CAT6500SW#show mls qos
  QoS is enabled globally
  Policy marking depends on port_trust
  QoS ip packet dscp rewrite enabled globally
  QoS serial policing mode disabled globally
  Input mode for GRE Tunnel is Pipe mode
  Input mode for MPLS is Pipe mode
 QoS Trust state is DSCP on the following interface:
Gi2/1 Gi2/2 Gi2/3 Gi2/4 Gi2/5 Gi2/6 Gi2/7 Gi2/8 Gi2/40 Gi2/41
Gi2/42 Gi3/1 Gi3/2 Gi3/3 Gi3/12 Gi3/13 Gi3/14 Gi3/15 Gi3/16 Gi3/17
Te5/4 Te5/5 Te6/4 Po1
  Vlan or Portchannel(Multi-Earl) policies supported: Yes
  Egress policies supported: Yes
  QoS 10g-only mode supported: Yes [Current mode: Off]

 ----- Module [1] -----
  QoS global counters:
    Total packets: 41777989179
    IP shortcut packets: 0
    Packets dropped by policing: 0
    IP packets with TOS changed by policing: 180195536
    IP packets with COS changed by policing: 2
    Non-IP packets with COS changed by policing: 0
    MPLS packets with EXP changed by policing: 0
 ----- Module [2] -----
  QoS global counters:
    Total packets: 338294172173
    IP shortcut packets: 0
    Packets dropped by policing: 0
    IP packets with TOS changed by policing: 15309054629
    IP packets with COS changed by policing: 8248909212
    Non-IP packets with COS changed by policing: 0
    MPLS packets with EXP changed by policing: 0
 ----- Module [3] -----
  QoS global counters:
    Total packets: 601790619822
    IP shortcut packets: 0
    Packets dropped by policing: 0
    IP packets with TOS changed by policing: 8124893625
    IP packets with COS changed by policing: 15288737597
    Non-IP packets with COS changed by policing: 0
    MPLS packets with EXP changed by policing: 0
 ----- Module [5] -----
  QoS global counters:
    Total packets: 857866606438
    IP shortcut packets: 0
    Packets dropped by policing: 0
    IP packets with TOS changed by policing: 7816449
    IP packets with COS changed by policing: 132718
    Non-IP packets with COS changed by policing: 0
    MPLS packets with EXP changed by policing: 0
 ----- Module [6] -----
  QoS global counters:
    Total packets: 6636041
    IP shortcut packets: 0
    Packets dropped by policing: 0
    IP packets with TOS changed by policing: 2
    IP packets with COS changed by policing: 2
    Non-IP packets with COS changed by policing: 0
    MPLS packets with EXP changed by policing: 0
CAT6500SW#

What are the COS - DSCP mappings on a 6500

CAT6500SW#show mls qos maps
   Normal Burst Policed-dscp map:                                  (dscp= d1d2)
     d1 :  d2 0  1  2  3  4  5  6  7  8  9
     -------------------------------------
      0 :    00 01 02 03 04 05 06 07 08 09
      1 :    10 11 12 13 14 15 16 17 18 19
      2 :    20 21 22 23 24 25 26 27 28 29
      3 :    30 31 32 33 34 35 36 37 38 39
      4 :    40 41 42 43 44 45 46 47 48 49
      5 :    50 51 52 53 54 55 56 57 58 59
      6 :    60 61 62 63

   Maximum Burst Policed-dscp map:                                  (dscp= d1d2)
     d1 :  d2 0  1  2  3  4  5  6  7  8  9
     -------------------------------------
      0 :    00 01 02 03 04 05 06 07 08 09
      1 :    10 11 12 13 14 15 16 17 18 19
      2 :    20 21 22 23 24 25 26 27 28 29
      3 :    30 31 32 33 34 35 36 37 38 39
      4 :    40 41 42 43 44 45 46 47 48 49
      5 :    50 51 52 53 54 55 56 57 58 59
      6 :    60 61 62 63

   Dscp-cos map:                                  (dscp= d1d2)
     d1 :  d2 0  1  2  3  4  5  6  7  8  9
     -------------------------------------
      0 :    00 00 00 00 00 00 00 00 01 01
      1 :    01 01 01 01 01 01 02 02 02 02
      2 :    02 02 02 02 03 03 03 03 03 03
      3 :    03 03 04 04 04 04 04 04 04 04
      4 :    05 05 05 05 05 05 05 05 06 06
      5 :    06 06 06 06 06 06 07 07 07 07
      6 :    07 07 07 07

   Dscp-exp map:                                  (dscp= d1d2)
     d1 :  d2 0  1  2  3  4  5  6  7  8  9
     -------------------------------------
      0 :    00 00 00 00 00 00 00 00 01 01
      1 :    01 01 01 01 01 01 02 02 02 02
      2 :    02 02 02 02 03 03 03 03 03 03
      3 :    03 03 04 04 04 04 04 04 04 04
      4 :    05 05 05 05 05 05 05 05 06 06
      5 :    06 06 06 06 06 06 07 07 07 07
      6 :    07 07 07 07


   Cos-dscp map:
         cos:   0  1  2  3  4  5  6  7
     ------------------------------------
        dscp:   0  8 16 26 34 46 48 56

   IpPrecedence-dscp map:
      ipprec:   0  1  2  3  4  5  6  7
     ------------------------------------
        dscp:   0  8 16 24 32 40 48 56

   Exp-dscp map:
         exp:   0  1  2  3  4  5  6  7
     ------------------------------------
        dscp:   0  8 16 24 32 40 48 56

Rakuten.com



How to view the queueing information of an interface on a 6500

CAT6500SW#show queueing interface gig 2/1
Interface GigabitEthernet2/1 queueing strategy:  Weighted Round-Robin
  Port QoS is enabled
  Trust state: trust DSCP
  Extend trust state: not trusted [COS = 0]
  Default COS is 0
    Queueing Mode In Tx direction: mode-cos
    Transmit queues [type = 1p3q8t]:
    Queue Id    Scheduling  Num of thresholds
    -----------------------------------------
       01         WRR                 08
       02         WRR                 08
       03         WRR                 08
       04         Priority            01

    WRR bandwidth ratios:    0[queue 1]  60[queue 2]  10[queue 3]
    queue-limit ratios:     50[queue 1]  20[queue 2]  15[queue 3]  10[Pri Queue]

    queue tail-drop-thresholds
    --------------------------
    1     70[1] 100[2] 100[3] 100[4] 100[5] 100[6] 100[7] 100[8]
    2     70[1] 100[2] 100[3] 100[4] 100[5] 100[6] 100[7] 100[8]
    3     100[1] 100[2] 100[3] 100[4] 100[5] 100[6] 100[7] 100[8]

    queue random-detect-min-thresholds
    ----------------------------------
      1    40[1] 70[2] 70[3] 70[4] 70[5] 70[6] 70[7] 70[8]
      2    40[1] 70[2] 70[3] 70[4] 70[5] 70[6] 70[7] 70[8]
      3    70[1] 70[2] 70[3] 70[4] 70[5] 70[6] 70[7] 70[8]

    queue random-detect-max-thresholds
    ----------------------------------
      1    70[1] 100[2] 100[3] 100[4] 100[5] 100[6] 100[7] 100[8]
      2    70[1] 100[2] 100[3] 100[4] 100[5] 100[6] 100[7] 100[8]
      3    100[1] 100[2] 100[3] 100[4] 100[5] 100[6] 100[7] 100[8]

    WRED disabled queues:   

    queue thresh cos-map
    ---------------------------------------
    1     1      2
    1     2     
    1     3     
    1     4     
    1     5      0
    1     6     
    1     7     
    1     8      1
    2     1     
    2     2     
    2     3     
    2     4     
    2     5     
    2     6     
    2     7     
    2     8      3
    3     1      6 7
    3     2     
    3     3     
    3     4     
    3     5     
    3     6     
    3     7      4
    3     8     
    4     1      5

    Queueing Mode In Rx direction: mode-cos
    Receive queues [type = 2q8t]:
    Queue Id    Scheduling  Num of thresholds
    -----------------------------------------
       01         WRR                 08
       02         WRR                 08

    WRR bandwidth ratios:  100[queue 1]   0[queue 2]
    queue-limit ratios:    100[queue 1]   0[queue 2]

    queue tail-drop-thresholds
    --------------------------
    1     100[1] 100[2] 100[3] 100[4] 100[5] 100[6] 100[7] 100[8]
    2     100[1] 100[2] 100[3] 100[4] 100[5] 100[6] 100[7] 100[8]

    queue thresh cos-map
    ---------------------------------------
    1     1      0 1 2 3 4 5 6 7
    1     2     
    1     3     
    1     4     
    1     5     
    1     6     
    1     7     
    1     8     
    2     1     
    2     2     
    2     3     
    2     4     
    2     5     
    2     6     
    2     7     
    2     8     


  Packets dropped on Transmit:
    BPDU packets:  0

    queue              dropped  [cos-map]
    ---------------------------------------------
    1                        0  [2 0 1 ]
    2                        0  [3 ]
    3                        0  [6 7 4 ]
    4                        0  [5 ]

  Packets dropped on Receive:
    BPDU packets:  0

    queue              dropped  [cos-map]
    ---------------------------------------------
    1                        0  [0 1 2 3 4 5 6 7 ]
    2                        0  []

If you found this helpful, help me by checking out the advertisement below. Thank you!



Viewing Results of a Policy-Map

How to tell if packets are using the policy map applied to the interface?

This policy doesn't do anything other then match the IP Presendense value. It's a great example of showing the packets that are hitting the rules in the policy inbound on an interface. Routers will preserve the DSCP value, so a matching only policy is nice to have on the inbound of an interface to see the markings on packets as they pass through.

show policy-map int s0/0/0
 Serial0/0/0
  Service-policy input: WAN-INbound

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

    Class-map: Six (match-all)
      639961 packets, 43856695 bytes
      5 minute offered rate 0 bps
      Match:  precedence 6

    Class-map: Five (match-all)
      1829510 packets, 136226109 bytes
      5 minute offered rate 0 bps
      Match:  precedence 5

    Class-map: Four (match-all)
      20197246 packets, 1787123133 bytes
      5 minute offered rate 9000 bps
      Match:  precedence 4
        
    Class-map: Three (match-all)
      63135 packets, 11050468 bytes
      5 minute offered rate 0 bps
      Match:  precedence 3

    Class-map: Two (match-all)
      2616465 packets, 1345984898 bytes
      5 minute offered rate 0 bps
      Match:  precedence 2

    Class-map: One (match-all)
      2277646 packets, 1676821923 bytes
      5 minute offered rate 0 bps
      Match:  precedence 1

    Class-map: class-default (match-any)
      96976751 packets, 44588176239 bytes
      5 minute offered rate 151000 bps, drop rate 0 bps
      Match: any

How to know if my policy is dropping packets?

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


How to tell if my marking policy is working?


Here is a policy that was applied to mark voice and voice control packets, then mark everything else to Zero. I have found that "show policy-map interface <interface> does not work on a Cisco 3560. It will show you the command and the output, but the numbers do not reflect the data passing. TAC told me that the feature is not supported in the 3560.

show policy-map int gig 2/10
 GigabitEthernet2/10

  Service-policy input: MARKING-Policy

    Class-map: PRIORITY-CM (match-any)
      352100660 packets
      Match: access-group name RTP-ACL
        352100660 packets
      QoS Set
        ip precedence 5

    Class-map: NETMGMT-CM (match-any)
      77847739 packets
      Match: access-group name VOICE-CONTROL-ACL
        77847739 packets
      QoS Set
        ip precedence 4


    Class-map: class-default (match-any)
      1541529015 packets
      Match: any
        1541529015 packets
      QoS Set
        ip precedence 0

MR.BEERĀ® Home Brewing Kits. America's #1 Home Brewing System. Makes a great gift!


 
Back To The Top