You configure marking policers by defining the policer and multiple levels of PLP for classifiers, rewrite rules, random early detection (RED) drop profiles, and firewall filters. To configure marking policers, you can include the following statements at the [edit class-of-service] hierarchy level of the configuration:
- [edit class-of-service]
-
tri-color;
-
classifiers {
-
- (dscp | dscp-ipv6 | exp | ieee-802.1 | inet-precedence) classifier-name {
-
import classifier-name | default);
-
-
forwarding-class class-name {
-
-
loss-priority (low | medium-low | medium-high
| high) {
-
code-points [ aliases ] [ 6-bit-patterns ];
- }
- }
- }
- }
-
rewrite-rules {
-
- (dscp | dscp-ipv6 | exp | ieee-802.1 | inet-precedence) rewrite-name {
-
import (rewrite-name | default);
-
-
forwarding-class class-name {
-
loss-priority (low | medium-low | medium-high
| high) code-point (alias | bits;
- }
- }
- }
-
schedulers {
-
-
scheduler-name {
-
drop-profile-map loss-priority (any | low | medium-low | medium-high | high) protocol any drop-profile profile-name;
- }
- }
-
- [edit firewall]
- policer name {
- then loss-priority (low | medium-low | medium-high | high);
- }
-
three-color-policer 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;
- }
- }
-
filter filter-name {
-
- <family family> {
-
-
term rule-name {
-
-
then {
-
three-color-policer (single-rate | two-rate) policer-name;
- }
- }
- }
- }