set cos port-resource flood-ctrl

Use this command to configure a Class of Service flood-ctrl resource entry.

Syntax

set cos port-resource flood-ctrl group-type-index traffic-type {[unit pps{percentage | pps | kbps | mbps | gbps}] [rate rate]] [syslog {disable | enable}] [trap {disable | enable}] [disable-port {disable | enable}]}

Parameters

group-type-index Specifies an outbound rate limiting port group-type index for this entry. Valid entries are in the form of group.type. Group can be 0 - 11, with 0 designating the default group, and 1 - 11 reserved for user-defined groups. Port type can be 0 - 1 for the S- and K-Series and 0 for the 7100-Series.
traffic-type Specifies the traffic type to be limited:
  • unknown-unicast - Specifies that unknown-unicast traffic will be limited
  • multicast - Specifies that multicast traffic will be limited
  • broadcast - Specifies that broadcast traffic will be limited
unit percentage | pps | kbps | mbps | gbps Specifies the unit of measure as percentage of total bandwidth for the S- and K-Series or packets per second for the S- K- and 7100-Series in kilobits, megabits, or gigabits per second.
rate rate (Optional) Data rate in units for this outbound rate limiter.
syslog disable | enable (Optional) Enables or disables the generation of a Syslog message when this limiter is exceeded (S-, K-Series).
trap disable | enable (Optional) Enables or disables the sending of an SNMP trap message when this limiter is exceeded (S-, K-Series).
disable-port disable | enable (Optional) Enables or disables the disabling of the violating port when this limiter is exceeded (S-, K-Series).

Defaults

  • If a rate is not specified, port defaults will be applied.
  • If not specified, Syslog, trap, and port disabling are set to disabled (S-, K-Series).

Mode

All command modes.

Usage

CoS?based flood control prevents configured ports from being disrupted by a traffic storm by rate limiting specific types of packets through those ports. When flood control is enabled on a port, incoming traffic is monitored over one second intervals. During an interval, the incoming traffic rate for each configured traffic type (unicast, broadcast, multicast) is compared with the configured traffic flood control rate, specified in packets per second. If, during a one second interval, the incoming traffic of a configured type reaches the traffic flood control rate configured on the port, CoS?based flood control drops the traffic until the interval ends. Packets are then allowed to flow again until the limit is again reached.

Examples

This S- and K-Series example shows how to configure Class of Service port resource flood control of multicast traffic for port group 0.1 assigning an outbound rate limit of 512 kilobits per second. This entry will trigger a Syslog and an SNMP trap message if this rate is exceeded:

System(rw)->set cos port-resource flood-ctrl 0.1 multicast unit kbps 512 syslog enable trap enable

This 7100-Series example shows how to configure Class of Service port resource flood control of multicast traffic for port group 0.0 assigning an outbound rate limit of 512 kilobits per second:

System(rw)->set cos port-resource flood-ctrl 0.0 multicast unit kbps 512