Related Documentation
- J, M, MX, PTX, SRX, T Series
- [edit forwarding-options sampling] Hierarchy Level
- M, PTX, T Series
- Traffic Sampling, Forwarding, and Monitoring Overview
- M, MX, T Series
- More Information About Passive and Active Flow Monitoring
- Configuring Active Flow Monitoring
- Example: Sampling Instance Configuration
- M, MX, PTX, T Series
- Configuring Flow Aggregation (cflowd)
- M, T Series
- Configuring Traffic Sampling
- Additional Information
- Flow Monitoring Feature Guide for Routing Devices
Configuring Sampling Instances
You can configure active sampling by defining a sampling instance that specifies a name for the sampling parameters and bind the instance name to an FPC, MPC, or DPC. This configuration enables you to define multiple named sampling parameter sets associated with multiple destinations and protocol families per sampling destination. With the cflowd version 5 and version 8 and flow aggregation version 9, you can use templates to organize the data gathered from sampling.
To implement this feature, you include the instance statement at the [edit forwarding-options sampling] hierarchy level.
The following considerations apply to the sampling instance configuration:
- This configuration is supported on the IP version 4 (inet), IP version 6 (ipv6), and MPLS protocol families.
- You can configure the router to perform sampling in either
of two locations:
- On the Routing Engine, using the sampled process. To select this method, use a filter (input or output) with a matching term that contains the then sample statement.
- On the Monitoring Services, Adaptive Services, or Multiservices PIC. Specify the interface name at the [forwarding-options sampling instance instance-name family inet output interface] hierarchy level. You can configure the same or different services PICs in a set of sampling instances.
- You can configure the rate and run-length options at the [edit forwarding-options sampling input] hierarchy level to apply common values for all families on a global basis. Alternatively, you can configure these options at the [edit forwarding-options sampling instance instance-name input] hierarchy level to apply specific values for each instance or at the [edit forwarding-options sampling instance instance-name family family input] hierarchy level to apply specific values for each protocol family you configure.
- For MX-Series devices with Modular Port Concentrators (MPCs), port-mirrored or sampled packets can be truncated (or clipped) to any length in the range of 1 to 255 bytes. Only 1 to 255 are valid values for packet truncation on these devices. For other devices, the range is from 0 to 9216. A maximum-packet-length value of zero represents that truncation is disabled, and the entire packet is mirrored or sampled.
![]() | Note: The run-length and maximum-packet-length configuration statements are not supported on MX80 routers. |
To associate the defined instance with a particular FPC, MPC, or DPC, you include the sampling-instance statement at the [edit chassis fpc number] hierarchy level, as in the following example:
Related Documentation
- J, M, MX, PTX, SRX, T Series
- [edit forwarding-options sampling] Hierarchy Level
- M, PTX, T Series
- Traffic Sampling, Forwarding, and Monitoring Overview
- M, MX, T Series
- More Information About Passive and Active Flow Monitoring
- Configuring Active Flow Monitoring
- Example: Sampling Instance Configuration
- M, MX, PTX, T Series
- Configuring Flow Aggregation (cflowd)
- M, T Series
- Configuring Traffic Sampling
- Additional Information
- Flow Monitoring Feature Guide for Routing Devices
Published: 2013-08-29
Related Documentation
- J, M, MX, PTX, SRX, T Series
- [edit forwarding-options sampling] Hierarchy Level
- M, PTX, T Series
- Traffic Sampling, Forwarding, and Monitoring Overview
- M, MX, T Series
- More Information About Passive and Active Flow Monitoring
- Configuring Active Flow Monitoring
- Example: Sampling Instance Configuration
- M, MX, PTX, T Series
- Configuring Flow Aggregation (cflowd)
- M, T Series
- Configuring Traffic Sampling
- Additional Information
- Flow Monitoring Feature Guide for Routing Devices