Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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

    Configuring Active Flow Monitoring Version 9 Templates

    Active flow monitoring version 9, which is based on RFC 3954, provides a way to organize flow data into templates. It also provides a way to actively monitor IPv4, IPv6, and MPLS flows.

    To activate templates in flow monitoring, you must configure a template and include that template in the version 9 flow monitoring configuration. On PTX5000 or PTX3000 routers with CSE2000, Junos OS supports template configuration for IPv4, IPv6, MPLS, and MPLS-IPv4 traffic.

    To configure active flow monitoring version 9:

    1. To configure a version 9 template, assign each template a unique name by including the template template-name statement at the [edit services flow-monitoring version9] hierarchy level.
      [edit services flow-monitoring version9]user@host# set template template-name
    2. Configure the active timeout and the inactive timeout values for the flows by including the flow-active-timeout and flow-inactive-timeout statements at the [edit services flow-monitoring version9 template template-name] hierarchy level.
      • If the interval between the time the last packet was received and the time the flow was last exported exceeds the configured active timeout value, the flow is exported to the flow server.
      • If the interval between the current time and the time that the last packet for this flow was received exceeds the configured inactive timeout value, the flow is allowed to expire.
      [edit services flow-monitoring version9 template template-name]user@host# set flow-active-timeout secondsuser@host# set flow-inactive-timeout seconds
    3. To export the flow records in a template to the flow server, specify each template for the appropriate type of traffic by including the ipv4-template, ipv6-template, mpls-template, or mpls-ipv4-template statement at the [edit services flow-monitoring version9 template template-name] hierarchy level. If the template is used for MPLS traffic, you can also specify label positions for the MPLS header label data by including the label-position statement.
      [edit services flow-monitoring version9 template template-name]user@host# set ipv4-template user@host# set ipv6-template user@host# set mpls-template label-position [ 1 2 ]user@host# set mpls-ipv4-template label-position [ 1 2 ]
    4. Configure the rate at which the router sends template definitions and options to the flow server for IPv4, IPv6, or MPLS traffic. Because version 9 flow monitoring traffic is unidirectional from the router to the flow server, configure the router to send template definitions and options, such as sampling rate, to the flow server.
      [edit services flow-monitoring version9 template template-name]user@host# set template-refresh-rate (packets packets | seconds seconds)user@host# set option-refresh-rate (packets packets | seconds seconds)

    Modified: 2017-01-18