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

    Configuring Sampling Instances

    You can configure active sampling by defining a sampling instance that specifies a name for the sampling parameters and binding the instance name to a particular engine. This configuration enables you to define multiple named sampling parameter sets associated with multiple destinations and protocol families per sampling destination. With 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:

    instance instance-name { # named instances of sampling parametersdisable;input { # input parameters common to all protocol familiesrate number;run-length number;max-packets-per-second number;maximum-packet-length bytes;}family (inet | inet6 | mpls) {disable;output {aggregate-export-interval seconds;flow-active-timeout seconds;flow-inactive-timeout seconds;extension-service service-name;flow-server hostname {aggregation {autonomous-system;destination-prefix;protocol-port;source-destination-prefix {caida-compliant;}source-prefix;}autonomous-system-type (origin | peer);(local-dump | no-local-dump);port port-number;source-address address;version format;version9 {template template-name;}}interface interface-name {engine-id number;engine-type number;source-address address;}inline-jflow {source-address address;flow-export-rate rate;}}}}

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

    Note: The run-length and maximum-packet-length configuration statements are not supported on MX80 routers.

    To associate the defined instance with a particular Packet Forwarding Engine, you include the sampling-instances statement at the [edit chassis fpc number] hierarchy level, as in the following example:

    chassis {fpc 2 {sampling-instances samp1;}}

    For more information about chassis configuration, see the Junos OS System Configuration Guide

    Published: 2014-02-03