Cisco Cisco IOS Software Release 12.0 S
Configuration Examples for QoS—Partial Support for Ingress Hierarchical Policing for the Cisco 12000 4-port Gigabit
4
Cisco IOS Release 12.0(31)S
Configuration Examples for QoS—Partial Support for Ingress
Hierarchical Policing for the Cisco 12000 4-port Gigabit Ethernet
ISE Line Card
Hierarchical Policing for the Cisco 12000 4-port Gigabit Ethernet
ISE Line Card
No changes are introduced in the CLI for the rate-limit and police commands.
Use the show interfaces rate-limit command to display rate limit counters. Use the show policy-map
interface gigabitEthernet slot/port command to display the policy map statistics.
interface gigabitEthernet slot/port command to display the policy map statistics.
Police and Rate Limit:—Example
In this example, a policy map defines four classes of traffic as Class-1, Class-2, Class-3, and Class-4.
The defined classes are policed to 9 Mbps each with a rate-limit on the entire Gigabit Ethernet interface
set to 30 Mbps. When 10 Mbps of traffic is generated for 5 seconds (50,000 packets) for classes 1, 2, 4,
and default class, the police and rate-limit commands filter the 40 Mbps of total traffic to approximately
30 Mbps total throughput, with each class of traffic contributing only the allowed 9 Mbps of traffic each.
No traffic is generated for class-3 in this example.
The defined classes are policed to 9 Mbps each with a rate-limit on the entire Gigabit Ethernet interface
set to 30 Mbps. When 10 Mbps of traffic is generated for 5 seconds (50,000 packets) for classes 1, 2, 4,
and default class, the police and rate-limit commands filter the 40 Mbps of total traffic to approximately
30 Mbps total throughput, with each class of traffic contributing only the allowed 9 Mbps of traffic each.
No traffic is generated for class-3 in this example.
The Policy Map
policy-map Police-1
class Class-1
police cir 9000000 bc 4500 be 4500
class Class-2
police cir 9000000 bc 4500 be 4500
class Class-3
police cir 9000000 bc 4500 be 4500
class Class-4
police cir 9000000 bc 4500 be 4500
Running Configuration File of the Interface
Router# show running-conf interface g2/0
Building configuration...
Current configuration : 284 bytes
!
interface GigabitEthernet2/0
ip address 10.0.0.0 255.255.255.255
no ip directed-broadcast
rate-limit input 30000000 100000 200000 conform-action transmit exceed-action
drop
no ip mroute-cache
load-interval 30
negotiation auto
no cdp enable
service-policy input Police-1
end