Configuring Port-Based Fixed Rate Limiting with Burst Option

Follow these steps to configure a rate limiting policy for a port with a burst size included.

These commands configure a fixed rate limiting policy with a burst option that allows Ethernet port 1/1/1 to receive a maximum of 10000 kbps (i.e. 10 Mbps and therefore forward a maximum of 10 Mb to the egress port. Now if only 9 Mb of traffic is sent, there is 1 Mb of unused bandwidth. This 1 Mb of unused bandwidth can be borrowed in case if a burst of packets comes in. Now, the burst size option can be used to restrict the borrowing of the 1 Mb to only 0.1Mb (i.e. 1000 kbps).

The burst option command is optional and is not part of the required command.

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter interface configuration mode.
    device(config)# interface ethernet 1/1/1 
    
  3. Set the fixed rate limiting policy.
    device(config-if-e1000-1/1/1)# rate-limit input fixed 10000 burst 1000
    device(config-if-e1000-1/1/1)# end
    
  4. Verify the configuration.
    device# show rate-limit input
    Total rate-limited interface count: 5.
    	Port       Configured Input Rate    Actual Input Rate
    	1/1/1      10000                    10000end 
    	1/1/2      195000                   195000
    	1/1/6      1950                     1950
    	1/5/2      230432                   230000
    	1/5/6      234113                   234000
    

Fixed Rate Limiting with Burst Configuration Example

device# configure terminal
device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# rate-limit input fixed 10000 burst 10000
device(config-if-e1000-1/1/1)# end
device# show rate-limit input