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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Configuring Two-Rate Three-Color Policers<br />

• Two-Rate Three-Color Policer Overview on page 289<br />

• Configuring a Two-Rate Three-Color Policer on page 290<br />

Two-Rate Three-Color Policer Overview<br />

Two-rate three-color policing uses two bandwidth limits: one for guaranteed traffic and<br />

one for peak traffic [also called a committed information rate (CIR) and a peak<br />

information rate (PIR)]. This policer also has two burst sizes: the committed burst size<br />

and the peak burst size. The main difference between a single-rate and a two-rate policer<br />

is that the two-rate policer allows sustained bursts of traffic. In single-rate three-color<br />

policing, bursts of traffic are allowed for short periods. A period of relatively low activity<br />

has to occur between the bursts to allow the second token bucket to refill. In two-rate<br />

policing, the second bucket does not rely on overflow from the first token bucket; this<br />

enables the second token bucket to maintain a steadier supply of tokens, thus allowing<br />

sustained bursts of traffic.<br />

The policer classifies traffic into three groups: traffic that conforms to the CIR limit and<br />

the committed burst size, traffic that exceeds the CIR or committed burst size but<br />

conforms to the PIR, and traffic that exceeds the PIR. Each category is associated with<br />

an action. For traffic that conforms to the CIR and the committed burst size (also called<br />

green traffic), the action is to mark the packet with an implicit low loss priority and transmit<br />

the packet. For traffic that exceeds the CIR or committed burst size but conforms to the<br />

PIR (also called yellow traffic), the action is to mark the packet with an implicit loss<br />

priority of medium-high and then transmit the packet. For traffic that exceeds the PIR,<br />

the action is to mark the packet with an implicit loss priority of high and, optionally, to<br />

discard the packet. If congestion occurs downstream, the packets with higher loss priority<br />

are more likely to be discarded.<br />

NOTE: The discard action for a tricolor marking policer for a firewall filter is<br />

supported on the M120, M320 with Enhanced-III FPCs, M7i and M10i with the<br />

Enhanced CFEB (CFEB-E), and the MX Series routers, so it is not necessary<br />

to include the logical-interface-policer statement for them.<br />

The following configuration demonstrates how the policer works in a sample scenario.<br />

firewall {<br />

three-color-policer policer2 {<br />

logical-interface-policer;<br />

action {<br />

loss-priority high then discard;<br />

}<br />

two-rate {<br />

color-aware;<br />

committed-information-rate 40m;<br />

committed-burst-size 100k;<br />

peak-information-rate 60m;<br />

peak-burst-size 200k;<br />

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

289

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

Saved successfully!

Ooh no, something went wrong!