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

NOTE: This statement is not valid for port mirroring.<br />

Specify the maximum length of the sampled packet by using the maximum-packet-length<br />

bytes statement. For bytes, specify a value from 0 through 9192.<br />

Specify the sampling rate by setting the values for rate and run-length (see Figure 14 on<br />

page 348).<br />

Figure 14: Configure Sampling Rate<br />

g017485<br />

The forwarding plane provides support for random sampling that can be configured<br />

through the rate or run-length statement. The rate statement sets the ratio of the number<br />

of packets to be sampled on an average. For example, if you configure a rate of 10, on<br />

average every tenth packet (1 packet out of 10) is sampled.<br />

The run-length statement specifies the number of matching packets to sample following<br />

the initial one-packet trigger event. Configuring a run length greater than 0 allows you<br />

to sample packets following those already being sampled.<br />

NOTE: The run-length and maximum-packet-length configuration statements<br />

are not supported on MX80 routers.<br />

You can also send the sampled packets to a specified host using the cflowd version 5<br />

and 8 formats or the version 9 format as defined in RFC 3954. For more information, see<br />

“Configuring Flow Aggregation (cflowd)” on page 351 and “Configuring Active Flow<br />

Monitoring Using Version 9” on page 354.<br />

The Junos OS does not sample packets originating from the router. If you configure a<br />

sampling filter and apply it to the output side of an interface, then only the transit packets<br />

going through that interface are sampled. Packets that are sent from the Routing Engine<br />

to the Packet Forwarding Engine are not sampled.<br />

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