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 policer command in the Junos Routing Protocols and Policies Command Reference<br />

Hierarchical Policers<br />

Hierarchical Policer Overview<br />

Configuring a Hierarchical Policer<br />

• Hierarchical Policer Overview on page 292<br />

• Configuring a Hierarchical Policer on page 292<br />

The Enhanced IQ (IQE) PIC can police traffic at Layer 2 in a hierarchical manner.<br />

Hierarchical policing maintains two rates: an aggregate rate and a high-priority, premium<br />

rate. The traffic is marked differently depending on service class (currently, the classes<br />

are expedited forwarding and nonexpedited forwarding). The expedited traffic has an<br />

additional rate configured, the committed information rate (CIR), which is only marked<br />

above that limit. If there is no expedited traffic present, then the nonexpedited traffic is<br />

able to use the aggregate bandwidth rate before being marked with a packet loss priority.<br />

When expedited traffic is present, it is marked when it exceeds the guaranteed rate, but<br />

also uses bandwidth from the nonexpedited range.<br />

For example, consider an aggregate rate of 10 Mbps and a premium rate of 2 Mbps for a<br />

Fast Ethernet interface. The guaranteed rate is also set at 2 Mbps for expedited forwarding<br />

traffic. If there is no expedited traffic present, then nonexpedited traffic can use up to 10<br />

Mbps before being marked. When expedited forwarding traffic is present, the expedited<br />

traffic is guaranteed 2 Mbps (of the 10 Mbps) without being marked, but is marked above<br />

the 2-Mbps limit. In this case, the nonexpedited forwarding traffic can use the remaining<br />

8 Mbps before being marked.<br />

The Enhanced IQ (IQE) PIC can police traffic at Layer 2 in a hierarchical manner.<br />

Hierarchical policing maintains two rates: an aggregate rate and a high-priority rate. The<br />

traffic is marked differently depending on class of service, currently expedited forwarding<br />

and nonexpedited forwarding. You can apply a hierarchical policer to incoming packets,<br />

outgoing packets, or both.<br />

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

1. Configure the forwarding classes.<br />

[edit class-of-service forwarding-classes]<br />

user@host# set class fc0 queue-num 0 priority high policing-priority premium<br />

user@host# set class fc1 queue-num 1 priority low policing-priority normal<br />

user@host# set class fc2 queue-num 2 priority low policing-priority normal<br />

user@host# set class fc3 queue-num 3 priority low policing-priority normal<br />

For the premium policer, the only configurable action is to discard the packet.<br />

2. Configure the aggregate policer.<br />

[edit firewall policer policer1]<br />

user@host# set aggregate if-exceeding bandwidth-limit 100m burst-size-limit 20k<br />

user@host# set aggregate then forwarding-class fc1<br />

292<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!