Configuring Port-Based Fixed Rate Limiting

Follow these steps to configure a rate limiting policy for a port.

These commands configure a fixed rate limiting policy that allows Ethernet port 1/1/1 to receive a maximum of 500 kbps. If the port receives additional bytes during a given one-second interval, all inbound packets on the port are dropped until the next one-second interval starts.

When traffic reaches the rate limiting threshold, Traffic Domain 2 (TD2) sends traditional pause or Priority Flow Control (PFC) frames, depending on the flow-control configuration.

When PFC is enabled, TD2 transmits PFC for all priorities mapped to the lossless priority group that reaches the XOFF limit (TD2 chip limitation).

When rate-limit input fixed is configured, it limits the traffic coming into the port. The rate-limited traffic is seen on the egress port’s statistics.

  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 500
    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      65000                    65000 
    	1/1/2      195000                   195000
    	1/1/6      1950                     1950
    	1/5/2      230432                   230000
    	1/5/6      234113                   234000
    

Fixed Rate Limiting Configuration Example

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