16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 11: Policer <strong>Configuration</strong><br />

If traffic arriving on the logical interface is within the average rate of 40 Mbps (based on<br />

the token bucket formula) or within the committed burst size limit of 100 KB, the packets<br />

are “green” and are marked with an implicit loss priority of low. If traffic arriving on the<br />

logical interface is above the committed information rate and above the committed burst<br />

size but still within the excess burst size of 200 KB, the packets are “yellow” and are<br />

marked with an implicit loss priority of medium-high. If traffic arriving on the logical<br />

interface is above the excess burst size of 200 KB, the packets are “red,” are marked with<br />

an implicit loss priority of high, and are discarded. In the “red” case, if you omit the action<br />

statement, the packets are still marked with an implicit loss priority of high, but the<br />

packets are transmitted. As the traffic rate slows and the newly arriving traffic conforms<br />

to the configured limits, Junos OS stops marking packets with the medium-high and high<br />

loss priorities and stops dropping red packets.<br />

For single-rate, three-color policing, Junos OS uses two token buckets to manage<br />

bandwidth based on the rate of traffic.<br />

When the policer is color-aware, the local router can assign a higher packet-loss priority,<br />

but cannot assign a lower packet-loss priority. For example, suppose an upstream router<br />

assigned medium-high loss priority to a packet because the packet exceeded the<br />

committed information rate on the upstream router interface. The local router cannot<br />

change the packet-loss priority to low, even if the packet conforms to the configured<br />

committed information route on the local router interface. However, if the stream exceeds<br />

the excess burst size configured on the local router interface, the packets are assigned<br />

high loss priority.<br />

If you configure a policer to be color-blind instead of color-aware, the color-blind node<br />

ignores preexisting markings. A packet with medium-high loss priority can be assigned<br />

low or high loss priority.<br />

Configuring a Single-Rate Three-Color Policer<br />

You can apply a single-rate three-color policer to the input or output interface.<br />

To configure a single-rate three-color policer:<br />

1. Configure the policer.<br />

[edit firewall three-color-policer policer2]<br />

user@host# set single-rate color-aware<br />

user@host# set single-rate committed-information-rate 40m<br />

user@host# set single-rate committed-burst-size 100k<br />

user@host# set single-rate excess-burst-size 200k<br />

For three-color policers, the only configurable action is to discard red packets. Red<br />

packets are packets that have been assigned high loss priority because they exceeded<br />

the excess burst size (EBS).<br />

[edit firewall three-color-policer srTCM1-ca]<br />

user@host# set action loss-priority high then discard<br />

2. Configure the policer type.<br />

[edit firewall policer policer1]<br />

user@host# set logical-interface-policer<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.<br />

287

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!