QoS: Different police format, different output

Unanswered Question
May 15th, 2009

I've noticed drastically different output with the "show policy-map" command

depending on which format of the "police" command I use. The main difference

appears to be whether I use the "cir" keyword or not. Here is the class-map

and policy-map config that I used:

class-map match-all test_map

match vlan 100

policy-map test1

class test_map

police cir 100000 bc 8000

policy-map test2

class test_map

police 100000 8000 exceed-action drop

Output of "show policy-map"

Policy Map test2

Class test_map

police 96000 8000 exceed-action drop

Policy Map test1

Class test_map

Police cir 96000 bc 8000

conform-action transmit

exceed-action drop

violate-action drop

Output of "show policy-map interface" with test 1 active:

GigabitEthernet1/1/2

Service-policy output: test1

Class-map: test_map (match-all)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: vlan 100

police:

cir 96000 bps, bc 8000 bytes

pir 96000 bps, be 8000 bytes

conformed 0 packets, 0 bytes;

conform-action transmit

exceeded 0 packets, 0 bytes;

exceed-action drop

violated 0 packets, 0 bytes;

violate-action drop

conformed 0 bps, exceed 0 bps violate 0 bps

Class-map: class-default (match-any)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: any

Output of "show policy-map interface" with test 2 active:

GigabitEthernet1/1/2

Service-policy output: test2

Class-map: test_map (match-all)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: vlan 100

Class-map: class-default (match-any)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: any

Notice how the output when test1 is invovled is much more detailed

and explicitly lists the policing information. Is this just aesthetic,

or is test2 actually not performing any policing? The swtich is a 3750

running IOS Version 12.2(25)SEG1.

I'm thinking it may have something to do with whether a single rate policer

is being used or a dual rate policer, though I don't know why test1

would use a fual rate policer because I don't list a pir or violate action.

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.

Actions

This Discussion