Configuration Guide User guide

1782 FastIron Configuration Guide
53-1002494-02
ACL statistics and rate limit counting
Brocade(config)#traffic-policy TPDAfour rate-limit adaptive cir 10000 cbs 1600
pir 20000 pbs 4000 exceed-action drop
The command configures an adaptive rate limiting policy that enforces a guaranteed committed
rate of 10000 kbps and allows bursts of up to 1600 bytes. It also enforces a peak rate of 20000
kbps and allows bursts of 4000 bytes above the PIR limit. If the port receives additional bits during
a given one-second interval, the port drops all packets on the port until the next one-second
interval starts.
Syntax: [no] traffic-policy <TPD name> rate-limit adaptive cir <cir value> cbs <cbs value> pir <pir
value> pbs <pbs value> exceed-action drop
Permitting packets that exceed the limit
This section shows some example configurations and provides the CLI syntax for configuring a port
to permit packets that exceed the configured limit for rate limiting.
The following example shows a fixed rate limiting configuration.
Brocade(config)#traffic-policy TPD1 rate-limit fixed 10000 exceed-action
permit-at-low-pri
The command sets the fragment threshold at 10,000 packet fragments per second. If the port
receives more than 10,000 packet fragments in a one-second interval, the device takes the
specified action. The action specified with this command is to permit excess fragments and forward
them at the lowest priority level.
Syntax: [no] traffic-policy <TPD name> rate-limit fixed <cir value> exceed-action permit-at-low-pri
The following example shows an adaptive rate limiting configuration.
Brocade(config)#traffic-policy TPDAfour rate-limit adaptive cir 10000 cbs 1600
pir 20000 pbs 4000 exceed-action permit-at-low-pri
The command configures an adaptive rate limiting policy that enforces a guaranteed committed
rate of 10000 kbps and allows bursts of up to 1600 bytes. It also enforces a peak rate of 20000
kbps and allows bursts of 4000 bytes above the PIR limit. If the port receives additional bits during
a given one-second interval, the port permits all packets on the port and forwards the packets at
the lowest priority level.
Syntax: [no] traffic-policy <TPD name> rate-limit adaptive cir <cir value> cbs <cbs value> pir <pir
value> pbs <pbs value> exceed-action permit-at-low-pri
ACL statistics and rate limit counting
ACL statistics, also called ACL counting, enables the Brocade device to count the number of
packets and the number of bytes per packet to which ACL filters are applied.
Rate limit counting counts the number of bytes and the conformance level per packet to which rate
limiting traffic policies are applied. The device uses the counting method similar to the two-rate
three-color marker (trTCM) mechanism described in RFC 2698 for adaptive rate limiting, and the
single-rate three-color marker (srTCM) mechanism described in RFC 2697 for fixed rate limiting.
Rate limit counting is automatically enabled when a traffic policy is enforced (active). You can view
these counters using the show commands listed in “Viewing traffic policies” on page 1786.