traffic-policy rate-limit fixed

Configures an ACL-based fixed-rate traffic policy to define rate limits on packets. The policy either drops all traffic that exceeds the limit or forwards the traffic at the lowest priority level.
Syntax
traffic-policy traffic-policy-name rate-limit { byte-based | packet-based } fixed cir cir-value count
traffic-policy traffic-policy-name rate-limit { byte-based | packet-based } fixed cir cir-value exceed-action drop [ count ]
traffic-policy traffic-policy-name rate-limit { byte-based | packet-based } fixed cir cir-value exceed-action permit-at-low-pri [ count | remark-cos [ count ] ]
no traffic-policy traffic-policy-name rate-limit { byte-based | packet-based } fixed cir cir-value count
no traffic-policy traffic-policy-name rate-limit { byte-based | packet-based } fixed cir cir-value exceed-action drop [ count ]
no traffic-policy traffic-policy-name rate-limit { byte-based | packet-based } fixed cir cir-value exceed-action permit-at-low-pri [ count | remark-cos [ count ] ]
Command Default

No traffic policy is applied.

Parameters
traffic-policy-name

Specifies the name of the traffic policy in no more than eight alphanumeric characters.

cir cir-value
Specifies the committed information rate (CIR), that is, the guaranteed rate of inbound traffic that is allowed on a port. For a byte-based CIR, the range is 64 through 40,000,000 Kbps. For a packet-based CIR, the range is 30 through 100,000.
byte-based
Specifies the CIR rate is byte-based.
packet-based
Specifies the CIR rate is packet-based.
count

Enables counting the number of bytes and the conformance level per packet. The single-rate three-color marker (srTCM) mechanism described in RFC 2697 is used.

exceed-action
Specifies the action for traffic that exceeds the configured cir-value. If you do not configure this keyword, traffic that exceeds the cir-value is dropped
drop
Specifies dropping traffic that exceeds the rate limit.
count

Enables counting the number of bytes and the conformance level per packet. The single-rate three-color marker (srTCM) mechanism described in RFC 2697 is used.

permit-at-low-pri

Specifies permitting packets that exceed the cir-value and forwarding them at the lowest priority.

remark-cos

Sets the 802.1p priority of dropped packets to 0, that is, sets the COS/PCP field value to 0 for low priority traffic for any packet that exceeds the rate limit defined by the traffic policy.

Modes

Global configuration mode

Usage Guidelines

The no form of this command deletes a traffic policy definition.

Traffic policies must be referenced by one or more ACLs to be put in effect. The policies are applied on ports to which the ACLs that reference them are bound.

Note: You cannot delete a traffic policy definition that is currently in use on a port. To delete a traffic policy, you must first unbind the associated ACL.
Examples

This example configures a traffic policy named TPD1 with a CIR of 100 Kbps that drops any traffic beyond that limit.

device# configure terminal
device(config)# traffic-policy TPD1 rate-limit byte-based fixed  cir 100 exceed-action drop
History
Release version Command history
08.0.95 This command was modified to support a committed information rate (CIR) in either bytes or packets.