Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    Configuring Inline Sampling

    On MX Series routers only, you can configure active sampling to be performed on an inline data path without the need for a services Dense Port Concentrator (DPC). To do this, you define a sampling instance with specific properties. One Flexible PIC Concentrator (FPC) can support only one instance; for each instance, either services PIC-based sampling or inline sampling is supported per family. As a result, a particular instance can define PIC-based sampling for one family and inline sampling for a different family. Both IPv4 and IPv6 are supported for inline sampling.

    Inline sampling supports a specified sampling output format designated IP_FIX. It uses UDP as the transport protocol.

    Before you configure inline sampling, you should ensure that you have adequately sized hash tables for IPv4 and IPv6 flow sampling. These tables can use 1 to 15 256k areas, and each is assigned a default value of one such area. When anticipated traffic volume requires larger tables, allocate larger tables.

    To allocate IPv4 and IPv6 flow hash tables:

    1. Go to the flow-table-size hierarchy level for inline services on the FPC that processes the monitored flows.
      [edit]user@host# edit chassis fpc 0 inline-services flow-table-size
    2. Specify the required sizes for the sampling hash tables.
      [edit chassis fpc 0 inline-services flow-table-size]user@host# set ipv4-flow-table-size 5user@host# set ipv6-flow-table-size 5

      Note: When you set the flow hash table sizes, remember:

      • Any change in the configured size of flow hash table sizes initiates an automatic reboot of the FPC.
      • The total number of units used for both IPv4 and IPv6 cannot exceed 15.

    The configuration for inline sampling on MX80 routers is slightly different.

    To configure inline sampling on all other MX Series routers:

    1. Enable inline sampling and specify the source address for the traffic.
      [edit forwarding-options sampling instance instance-name family inet output]user@host# set inline-jflow source address address
    2. Specify the IP_FIX output format.
      [edit forwarding-options sampling instance instance-name family inet output flow-server address]user@host# set version-ipfix template ipv4
    3. Specify the output properties.
      [edit services flow-monitoring]user@host# set version-ipfix

      The output format properties are common to other output formats and are described in “Configuring Flow Aggregation to Use Version 9 Flow Templates”.

    The following is an example of the sampling configuration for an instance that supports inline sampling on family inet and PIC-based sampling on family inet6:

    [edit forwarding-options]sampling {instance {sample-ins1 {input {rate 1;}family inet {output {flow-server 2.2.2.2 {port 2055;version-ipfix {template {ipv4;}}}inline-jflow {source-address 10.11.12.13;}}}family inet6 {output {flow-server 2.2.2.2 {port 2055;version9 {template {ipv6;}}}interface sp-0/1/0 {source-address 10.11.12.13;}}}}}}

    The following example shows the output format configuration:

    services {flow-monitoring {version-ipfix {template ipv4 {flow-active-timeout 60;flow-inactive-timeout 60;ipv4-template;template-refresh-rate {packets 1000;seconds 10;}option-refresh-rate {packets 1000;seconds 10;}}}}}

    The following considerations apply to the inline flow-monitoring instance configuration:

    • Sampling run-length and clip-size are not supported.
    • For inline configurations, each family can support only one collector.
     

    Related Documentation

     

    Published: 2012-06-27