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.

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

• show interfaces statistics command in the Junos Interfaces Command Reference<br />

• show policer command in the Junos Routing Protocols and Policies Command Reference<br />

Single-Rate Three-Color Policers<br />

• Single-Rate Three-Color Policer Overview on page 286<br />

• Configuring a Single-Rate Three-Color Policer on page 287<br />

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

Single-rate three-color policing uses a bandwidth limit (also called a committed<br />

information rate (CIR)), a committed burst size, and an excess burst size. The policer<br />

classifies traffic into three groups: traffic that conforms to the bandwidth limit or the<br />

committed burst size, traffic that exceeds the bandwidth limit and committed burst size<br />

but conforms to the excess burst size, and traffic that exceeds the excess burst size.<br />

Each category is associated with an action. For traffic that conforms to the bandwidth<br />

limit or the committed burst size (also called green traffic), the action is to mark the<br />

packet with an implicit low loss priority and transmit the packet. For traffic that exceeds<br />

the bandwidth limit and committed burst size but conforms to the excess burst size (also<br />

called yellow traffic), the action is to mark the packet with an implicit loss priority of<br />

medium-high and then transmit the packet. For traffic that exceeds the excess burst<br />

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

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

priority 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 srTCM1-ca {<br />

logical-interface-policer;<br />

action {<br />

loss-priority high then discard;<br />

}<br />

single-rate {<br />

color-aware;<br />

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

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

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

}<br />

}<br />

}<br />

286<br />

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

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

Saved successfully!

Ooh no, something went wrong!