From: Jody Davis \(joddavis\) (joddavis@cisco.com)
Date: Wed Jul 20 2005 - 19:33:40 GMT-3
All,
I'm running into an issue that is stumping me.. It might be
something very simple, but I wanted to check to see if anyone has seen
this or knows how to get it working..
Here's the scenario:
Router1 ---> Ingress Per-Port Policing -->SW1 (Cat 3550) ---> SW2 (Cat
3550)
I'm pinging (extended ping) from Router1 to vlan1 on SW2. Both SW1 and
SW2 are running an EMI image of 12.2(25)SE. There are no Layer3
interface on SW1, there is one L3 interface on SW2, which is Vlan1.
When policing is not applied I see about 4.5 to 5 megabits. When I apply
policing of ANY value, it immediately causes the traffic to be knocked
down to around 40k. I have tried policing at 512000, 128000, 768000, and
1 mb, but no matter what the policing value, I always only get 40k to
switch 2. Below is my config. I have tried both per-port policing and
per-port-per-vlan (nested policing), and both have the exact same
results.
**** from SW2 during policing *****
SW2#sh int fa0/1 | incl 30 sec
30 second input rate 36000 bits/sec, 5 packets/sec
30 second output rate 36000 bits/sec, 3 packets/sec
SW2#
________________________________
SW1
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname SW1
!
!
no aaa new-model
ip subnet-zero
!
vtp domain CEC
vtp mode transparent
mls qos
!
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
!
!
!
vlan internal allocation policy ascending
!
vlan 2,5,10,100,200
!
class-map match-all MATCH_ACL_100
match access-group 100
!
!
policy-map RATE_LIMIT2
class MATCH_ACL_100
police 512000 8000 exceed-action drop
!
!
!
interface FastEthernet0/1
switchport mode dynamic desirable
load-interval 30
!
interface FastEthernet0/2
switchport mode access
service-policy input RATE_LIMIT2
load-interval 30
mls qos monitor dscp 0 8 16 24 32 40 48 56
spanning-tree portfast
!
interface FastEthernet0/3
switchport mode dynamic desirable
load-interval 30
!
! ---- Non-used interfaces omitted
!
interface Vlan1
no ip address
shutdown
!
ip classless
ip http server
!
access-list 100 permit ip any any
!
control-plane
!
!
line con 0
line vty 5 15
!
!
end
SW1#
SW1#sh mls qos
QoS is enabled
SW1#sh mls qos int fa0/2 sw
SW1#sh mls qos int fa0/2 st
SW1#sh mls qos int fa0/2 ?
buffers Show buffer information
policers Show policers information
queueing Show queueing information
statistics Show statistics
| Output modifiers
<cr>
SW1#sh mls qos int fa0/2 p
SW1#sh mls qos int fa0/2 policers
FastEthernet0/2
policymap=RATE_LIMIT2
type=Single, id=0 rate=512000, qlimit=8000, drop=1
SW1#sh mls qos int fa0/2 b
SW1#sh mls qos int fa0/2 buffers
FastEthernet0/2
Minimum reserve buffer size:
100 100 100 100 100 100 100 100
Minimum reserve buffer level select:
1 2 3 4
SW1#sh mls qos int fa0/2 q
SW1#sh mls qos int fa0/2 queueing
FastEthernet0/2
Egress expedite queue: dis
wrr bandwidth weights:
qid-weights
1 - 25
2 - 25
3 - 25
4 - 25
Cos-queue map:
cos-qid
0 - 1
1 - 1
2 - 2
3 - 2
4 - 3
5 - 3
6 - 4
7 - 4
SW1#sh mls qos int fa0/2 statistics
FastEthernet0/2
Ingress
dscp: incoming no_change classified policed dropped (in bytes)
0 : 142510060 142510060 0 0 3165030
8 : 0 0 0 0 0
16: 0 0 0 0 0
24: 0 0 0 0 0
32: 0 0 0 0 0
40: 10626 10626 0 0 0
48: 0 0 0 0 0
56: 0 0 0 0 0
Others: 863777182 814961338 48815844 0 1310034
Egress
dscp: incoming no_change classified policed dropped (in bytes)
0 : 139227924 n/a n/a 0 0
8 : 0 n/a n/a 0 0
16: 0 n/a n/a 0 0
24: 0 n/a n/a 0 0
32: 0 n/a n/a 0 0
40: 9108 n/a n/a 0 0
48: 0 n/a n/a 0 0
56: 316609 n/a n/a 0 0
Others: 862587201 n/a n/a 0 0
SW1#
________________________________
Jody Davis
This archive was generated by hypermail 2.1.4 : Sun Sep 04 2005 - 17:00:30 GMT-3