Configuring in/out rate-limiting

Syntax:


[no] int <port-list> rate-limit all <in|out> percent <0-100>|kbps <0-100000000>>

Configures a traffic rate limit (on non-trunked ports) on the link. The no form of the command disables rate-limiting on the specified ports.

The rate-limit all command controls the rate of traffic sent or received on a port by setting a limit on the bandwidth available. It includes options for:
  • Rate-limiting on inbound or outbound traffic.

  • Specifying the traffic rate as either a percentage of bandwidth, or in terms of bits per second.

(Default: Disabled.)

in or out

Specifies a traffic rate limit on inbound traffic passing through that port or on outbound traffic.

percent or kbps

Specifies the rate limit as a percentage of total available bandwidth, or in kilobits per second.

NOTE:

The granularity of actual limits may vary across different switch models.

For more details on configuring rate-limiting, see All traffic rate-limiting.

Notes:

  • The rate-limit icmp command specifies a rate limit on inbound ICMP traffic only (see ICMP rate-limiting).

  • Rate-limiting does not apply to trunked ports (including meshed ports).

  • Kbps rate-limiting is done in segments of 1% of the lowest corresponding media speed. For example, if the media speed is 1 Kbps, the value would be 1 Mbps. A 1-100 Kbps rate-limit is implemented as a limit of 100 Kbps; a limit of 100-199 Kbps is also implemented as a limit of 100 Kbps, a limit of 200-299 Kbps is implemented as a limit of 200 Kbps, and so on.

  • Percentage limits are based on link speed. For example, if a 100 Mbps port negotiates a link at 100 Mbps and the inbound rate-limit is configured at 50%, then the traffic flow through that port is limited to no more than 50 Mbps. Similarly, if the same port negotiates a 10 Mbps link, then it allows no more than 5 Mbps of inbound traffic.Configuring a rate limit of 0 (zero) on a port blocks all traffic on that port. However, if this is the desired behavior on the port, Hewlett Packard Enterprise recommends using the <port-list> disable command instead of configuring a rate limit of 0.

You can configure a rate limit from either the global configuration level or from the port context level. For example, either of the following commands configures an inbound rate limit of 60% on ports 3 – 5:

switch(config)# int 3-5 rate-limit all in percent 60
switch(eth-3-5)# rate-limit all in percent 60