How to calculate / proof that the port is rate limited

From: Loi, Choon Ho (ChoonHo.Loi@getronics.com)
Date: Mon Nov 14 2005 - 05:10:06 GMT-3


I have C1 sending 1024byte udp packet to R1 every 1 second (x5).
When I rate-limit the interface to accept 8000bps, it does have packet
being drop.
But, when I check the interface statistic, the 5minutes input rate is
30-37kbps.
How does the interface statistic works? How is that being calculated...

Consider the following:

R1(f0/0) ----------------- C1

For the following setup:

R1:
interface FastEthernet0/0
 ip address 172.16.11.1 255.255.255.0
 ip access-group 110 in
 rate-limit input 8000 1500 2000 conform-action transmit exceed-action
drop
 duplex auto
 speed auto

access-list 110 permit udp any any eq 5111
access-list 110 permit ip any any

C1:
rtr 1
 type udpEcho dest-ipaddr 172.16.11.1 dest-port 5111
 request-data-size 1024
 timeout 0
 frequency 1
rtr schedule 1 life forever start-time now
rtr 2
 type udpEcho dest-ipaddr 172.16.11.1 dest-port 5111
 request-data-size 1024
 timeout 0
 frequency 1
rtr schedule 2 life forever start-time now
rtr 3
 type udpEcho dest-ipaddr 172.16.11.1 dest-port 5111
 request-data-size 1024
 timeout 0
 frequency 1
rtr schedule 3 life forever start-time now
rtr 4
 type udpEcho dest-ipaddr 172.16.11.1 dest-port 5111
 request-data-size 1024
 timeout 0
 frequency 1
rtr schedule 4 life forever start-time now
rtr 5
 type udpEcho dest-ipaddr 172.16.11.1 dest-port 5111
 request-data-size 1024
 timeout 0
 frequency 1

------------------------------------------------------------------------
---------------
The result:

r1#sh int f0/0
FastEthernet0/0 is up, line protocol is up
  Hardware is i82543 (Livengood), address is 000b.6051.ac08 (bia
000b.6051.ac08)
  Internet address is 172.16.11.1/24
  MTU 1500 bytes, BW 100000 Kbit, DLY 100 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA, loopback not set
  Keepalive set (10 sec)
  Full-duplex, 100Mb/s, 100BaseTX/FX
  ARP type: ARPA, ARP Timeout 04:00:00
  Last input 00:00:00, output 00:00:00, output hang never
  Last clearing of "show interface" counters never
  Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 2
  Queueing strategy: fifo
  Output queue: 0/40 (size/max)
  5 minute input rate 35000 bits/sec, 10 packets/sec
  5 minute output rate 6000 bits/sec, 5 packets/sec
     37002 packets input, 7611943 bytes
     Received 1 broadcasts, 0 runts, 0 giants, 0 throttles
     0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
     0 watchdog
     0 input packets with dribble condition detected
     42870 packets output, 4196920 bytes, 0 underruns
     0 output errors, 0 collisions, 2 interface resets
     0 babbles, 0 late collision, 0 deferred
     0 lost carrier, 0 no carrier
     0 output buffer failures, 0 output buffers swapped out

r1#sh int f0/0 rate

FastEthernet0/0
  Input
    matches: all traffic
      params: 8000 bps, 1500 limit, 2000 extended limit
      conformed 5511 packets, 1172328 bytes; action: transmit
      exceeded 3881 packets, 3868774 bytes; action: drop
      last packet: 540ms ago, current burst: 1709 bytes
      last cleared 00:31:56 ago, conformed 4000 bps, exceeded 16000 bps



This archive was generated by hypermail 2.1.4 : Thu Dec 01 2005 - 09:12:06 GMT-3