Hi, everybody
I’m studying QoS, such as Policing. And I have one question: Why packets drop (violated), if interface rate not exceeded 128 000 bps, I don’t understand that moment ?
I build lab on EVE-NG. Topology is very simple. R1 and R2 routers directly connected (ethernet 0/0) (subnet 10.1.12.0/24). Policing (single rate and three color) configured on R2:
interface Ethernet0/0
ip address 10.1.12.2 255.255.255.0
load-interval 30
service-policy input PM-SINGLE-RATE-THREE-COLOR
end
!
class-map match-all CM-ICMP
match protocol icmp
policy-map PM-SINGLE-RATE-THREE-COLOR
class CM-ICMP
police cir 128000
conform-action transmit
exceed-action set-dscp-transmit default
violate-action drop
and R1 config:
interface Ethernet0/0
ip address 10.1.12.1 255.255.255.0
end
I started ping from R1 to R2:
R1#ping 10.1.12.2 repeat 9999999
Type escape sequence to abort.
Sending 9999999, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
!!!.!!!.!!!.!!!.!!!.!!! and etc.
Success rate is 99 percent (1038/1052), round-trip min/avg/max = 1/1/23 ms
R1#
P.S. I interrupted ping when was 1052
R2#show policy-map interface ethernet 0/0
Ethernet0/0
Service-policy input: PM-SINGLE-RATE-THREE-COLOR
Class-map: CM-ICMP (match-all)
1052 packets, 119928 bytes
30 second offered rate 20000 bps, drop rate 0000 bps
Match: protocol icmp
police:
cir 128000 bps, bc 4000 bytes, be 4000 bytes
conformed 548 packets, 62472 bytes; actions:
transmit
exceeded 490 packets, 55860 bytes; actions:
set-dscp-transmit default
violated 14 packets, 1596 bytes; actions:
drop
conformed 10000 bps, exceeded 9000 bps, violated 0000 bps
Class-map: class-default (match-any)
0 packets, 0 bytes
30 second offered rate 0000 bps, drop rate 0000 bps
Match: any
R2#
R2#
R2#
Why packets drop (violated), if interface rate not exceeded 128 000 bps, I don’t understand that moment ?