Rate Limiting on a switch port

From: Ken.Farrington@barclayscapital.com
Date: Wed Oct 22 2003 - 12:42:55 GMT-3


One more question for the day.

I have just been asked to limit a switch port to a max rate of 2,000,000.
SO I think, right, this is not so bad.

I try the following Police, and unicast supression, cant use CAR or TS on
3550 so it looks) with the following results :- when sending a 5MB stream
from an attached PC.

Any ideas? - Sorry, its my second post today :) QoS day!

POLICING
--------
!

class-map match-all port13
  match any
!
!
policy-map POLICE
  class port13
    police 2000000 8000 exceed-action drop
!
!
interface FastEthernet0/13
 switchport access vlan 21
 no ip address
 load-interval 30
 service-policy input POLICE
 spanning-tree portfast
!

Cat1_3550#sh int fa 0/13
FastEthernet0/13 is up, line protocol is up (connected)
  Hardware is Fast Ethernet, address is 000d.2929.090d (bia 000d.2929.090d)
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 13/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s
  input flow-control is off, output flow-control is off
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue :0/40 (size/max)
  30 second input rate 5131000 bits/sec, 494 packets/sec
  30 second ouxtput rate 0 bits/sec, 0 packets/sec
     264773 packets input, 329039511 bytes, 0 no buffer
     Received 10796 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 2760 multicast, 0 pause input
     0 input packets with dribble condition detected
     84759 packets output, 7794521 bytes, 0 underruns
     0 output errors, 0 collisions, 3 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 PAUSE output
     0 output buffer failures, 0 output buffers swapped out
Cat1_3550#
                               

STORM CONTROL
-------------

!
!
interface FastEthernet0/13
 switchport access vlan 21
 no ip address
 load-interval 30
 storm-control unicast level 2.00
 spanning-tree portfast
!
Cat1_3550#sh int fa0/13
FastEthernet0/13 is up, line protocol is up (connected)
  Hardware is Fast Ethernet, address is 000d.2929.090d (bia 000d.2929.090d)
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 12/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s
  input flow-control is off, output flow-control is off
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input never, output 00:00:01, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
  Queueing strategy: fifo
  Output queue :0/40 (size/max)
  30 second input rate 5019000 bits/sec, 483 packets/sec
  30 second ouxtput rate 0 bits/sec, 0 packets/sec
     375128 packets input, 471259605 bytes, 0 no buffer
     Received 10838 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog, 2770 multicast, 0 pause input
     0 input packets with dribble condition detected
     85778 packets output, 7871879 bytes, 0 underruns
     0 output errors, 0 collisions, 3 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier, 0 PAUSE output
     0 output buffer failures, 0 output buffers swapped out
Cat1_3550#

COMMITEDD ACCESS RATE
---------------------
Can use the rate-limit command on my 3550.

TRAFFIC SHAPING
---------------
Only works for outbound traffic

------------------------------------------------------------------------
For more information about Barclays Capital, please
visit our web site at http://www.barcap.com.

Internet communications are not secure and therefore the Barclays
Group does not accept legal responsibility for the contents of this
message. Although the Barclays Group operates anti-virus programmes,
it does not accept responsibility for any damage whatsoever that is
caused by viruses being passed. Any views or opinions presented are
solely those of the author and do not necessarily represent those of the
Barclays Group. Replies to this email may be monitored by the Barclays
Group for operational or business reasons.

------------------------------------------------------------------------



This archive was generated by hypermail 2.1.4 : Mon Nov 24 2003 - 07:53:06 GMT-3