In the Catalyst 6500s, it's not easy to get QoS stats from the CLI for each of your DSCP markings. To work around this, I came up with a quick DSCP trust policy to replace the standard command "mls qos trust dscp". It breaks out the traffic stats for each of the commonly used DSCP markings, so you can get load-interval statistics while troubleshooting, without needing to look at NetFlow data.
Here are the class-map and policy-map definitions:
class-map match-all cs6
match dscp cs6
class-map match-all ef
match dscp ef
class-map match-all af41
match dscp af41
class-map match-all cs4
match dscp cs4
class-map match-all af31
match dscp af31
class-map match-all cs3
match dscp cs3
class-map match-all af21
match dscp af21
class-map match-all cs2
match dscp cs2
class-map match-all af11
match dscp af11
class-map match-all cs1
match dscp cs1
policy-map trust_dscp
class cs6
trust dscp
class ef
trust dscp
class af41
trust dscp
class cs4
trust dscp
class af31
trust dscp
class cs3
trust dscp
class af21
trust dscp
class cs2
trust dscp
class af11
trust dscp
class cs1
trust dscp
class class-default
trust dscp
Here is the application:
interface TenGigabitEthernet8/1
service-policy input trust_dscp
Here are the stats available via the CLI:
6509-1>show policy-map interface TenGigabitEthernet8/1
TenGigabitEthernet8/1
Service-policy input: trust_dscp
class-map: cs6 (match-all)
Match: dscp cs6 (48)
trust dscp
Earl in slot 8 :
84886844 bytes
5 minute offered rate 1056 bps
aggregate-forwarded 84886844 bytes
class-map: ef (match-all)
Match: dscp ef (46)
trust dscp
Earl in slot 8 :
0 bytes
5 minute offered rate 0 bps
aggregate-forwarded 0 bytes
class-map: af41 (match-all)
Match: dscp af41 (34)
trust dscp
Earl in slot 8 :
0 bytes
5 minute offered rate 0 bps
aggregate-forwarded 0 bytes
class-map: cs4 (match-all)
Match: dscp cs4 (32)
trust dscp
Earl in slot 8 :
0 bytes
5 minute offered rate 0 bps
aggregate-forwarded 0 bytes
class-map: af31 (match-all)
Match: dscp af31 (26)
trust dscp
Earl in slot 8 :
0 bytes
5 minute offered rate 0 bps
aggregate-forwarded 0 bytes
class-map: cs3 (match-all)
Match: dscp cs3 (24)
trust dscp
Earl in slot 8 :
385685 bytes
5 minute offered rate 0 bps
aggregate-forwarded 385685 bytes
class-map: af21 (match-all)
Match: dscp af21 (18)
trust dscp
Earl in slot 8 :
0 bytes
5 minute offered rate 0 bps
aggregate-forwarded 0 bytes
class-map: cs2 (match-all)
Match: dscp cs2 (16)
trust dscp
Earl in slot 8 :
0 bytes
5 minute offered rate 0 bps
aggregate-forwarded 0 bytes
class-map: af11 (match-all)
Match: dscp af11 (10)
trust dscp
Earl in slot 8 :
3106837771790 bytes
5 minute offered rate 2445091068 bps
aggregate-forwarded 3106837771790 bytes
class-map: cs1 (match-all)
Match: dscp cs1 (8)
trust dscp
Earl in slot 8 :
0 bytes
5 minute offered rate 0 bps
aggregate-forwarded 0 bytes
class-map: class-default (match-any)
Match: any
trust dscp
Earl in slot 8 :
303959794294 bytes
5 minute offered rate 24403696 bps
aggregate-forwarded 303959794294 bytes
No comments:
Post a Comment