A tricolor marking policer polices traffic on the basis of metering rates, including the CIR, the PIR, their associated burst sizes, and any policing actions configured for the traffic. To configure a tricolor marking policer, include the following statements at the [edit firewall] hierarchy level:
- [edit firewall]
- three-color-policer name {
-
-
action {
- loss-priority high then discard;
- }
-
logical-interface-policer;
-
- single-rate {
- (color-aware | color-blind);
- committed-information-rate bps;
- committed-burst-size bytes;
- excess-burst-size bytes;
- }
-
- two-rate {
- (color-aware | color-blind);
- committed-information-rate bps;
- committed-burst-size bytes;
- peak-information-rate bps;
- peak-burst-size bytes;
- }
- }
You can configure a tricolor policer to discard high loss priority traffic on a logical interface in the ingress or egress direction. To configure a policer on a logical interface using tricolor marking policing to discard high loss priority traffic, include the logical-interface-policer statement and action statement.
In all cases, the range of allowable bits-per-second or byte values is 1500 to 100,000,000,000. You can specify the values for bps and bytes either as complete decimal numbers or as decimal numbers followed by the abbreviation k (1000), m (1,000,000), or g (1,000,000,000).
The color-aware policer implicitly marks packets into four loss priority categories:
The color-blind policer implicitly marks packets into three loss priority categories:
Table 46 describes all the configurable TCM statements.
Table 46: Tricolor Marking Policer Statements