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 />

Policer Levels<br />

You can configure policers at the queue, logical interface, or Layer 2 (MAC) level. Only a<br />

single policer is applied to a packet at the egress queue, and the search for policers occurs<br />

in this order:<br />

• Queue level<br />

• Logical interface level<br />

• Layer 2 (MAC) level<br />

Rate Limiting<br />

You specify bandwidth limits in bits per second (bps). You can specify the value as a<br />

complete decimal number or as a decimal number followed by the abbreviation k (1000),<br />

m (1,000,000), or g (1,000,000,000). Any value below 61,040 bps results in an effective<br />

rate of 30,520 bps. The minimum bandwidth limit that you can configure on M120, M320,<br />

MX Series, T640, T1600, and TX Matrix routers is 8000 bps. The minimum bandwidth<br />

limit that you can configure for all other platforms is 32,000 bps. The maximum bandwidth<br />

limit is 40 gigabits per second (Gbps).<br />

You can rate-limit traffic based upon port speed. This port speed can be specified by a<br />

bandwidth percentage in a policer. You must specify the percentage as a complete<br />

decimal number between 1 and 100.<br />

NOTE: You cannot rate-limit based on bandwidth percentage for aggregate,<br />

tunnel, and software interfaces. The bandwidth percentage policer cannot<br />

be used for forwarding table filters. Bandwidth percentage policers can only<br />

be used for interface-specific filters.<br />

The maximum burst size controls the amount of traffic bursting allowed. To determine<br />

the value for the burst-size limit, the preferred method is to multiply the bandwidth<br />

(expressed as bytes per second) of the interface on which you are applying the filter by<br />

the amount of time you allow a burst of traffic at that bandwidth to occur. We recommend<br />

that you use a value of 5 ms as the starting point for the allowable amount of time for a<br />

burst of traffic.<br />

If you express the bandwidth as bits per second, use the following formula to calculate<br />

the burst size.<br />

burst size = bandwidth x allowable time for burst traffic / 8<br />

If you do not know the interface bandwidth, you can multiply the maximum transmission<br />

unit (MTU) of the traffic on the interface by 10 to obtain a value. For example, the burst<br />

size for an MTU of 4700 would be 47,000 bytes. At minimum, burst size should be at<br />

least 10 interface MTUs. The maximum value for the burst-size limit is 100 megabits per<br />

second (Mbps), or 12.5 megabytes per second.<br />

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