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

    Configuring Statistics Profiles

    The local policy decision function (L-PDF) enables you to configure properties for statistics output. To do this, you create a statistics profile, which configures the files to which statistics records are exported and the format that is exported. There are two configurations you can use to specify the profile, as described in the following subsections:

    Note: You must use the same configuration stanza for specifying the profile and the file selection. If configurations are committed in both hierarchies, the one at the [edit system services local-policy-decision-function] hierarchy level takes precedence.

    • When a session closes before APPID has identified nested applications, the session is treated as a best-effort session and L-PDF does not get the nested application information. In such cases, nested applications will be reported as unknown applications.
    • During the time that the application identification (APPID) feature has not yet made a final determination of the application associated with a given flow, the flow does not contribute to any per-subscriber or per-application statistics collection. For more information, see Best-Effort Application Identification of DPI-Serviced Flows.

    Note: For rms- interfaces, the statistics received from the active Multiservices PICs in the RMS group are combined with the statistics of the reported ended flows kept on the Routing Engine. The aggregated value is written to the statistics file. In the case of AMS interfaces, all the Multiservices PICs consisting of the AMS group reports statistics independently. These statistics are aggregated on the Routing Engine. The Routing Engine runs an independent timer, which on expiry writes the aggregated entry in the statistics file. This method of collection causes the statistics data in the statistics file to be displayed with a small delay.

    Configuring an L-PDF Statistics Profile

    You can specify an L-PDF statistics profile by including the following configuration at the [edit accounting-options] hierarchy level:

    [edit accounting-options]
    policy-decision-statistics-profile profile-name {application-aware-access-list-fields [ field-name ];file filename;files number;size bytes;}

    Note: This configuration method is not the preferred method for configuring Dynamic Application Awareness statistics. It is only maintained for backwards compatibility and may be deprecated in a future software release and does not support the use of IPv6 address and prefix length. The new, preferred configuration is found at the [edit system services local-policy-decision-function] hierarchy level, as described in Configuring an AACL Statistics Profile. We encourage you to migrate to the new configuration method.

    You specify a profile name to identify the profile and other properties as needed by including the policy-decision-statistics-profile statement. The aacl-fields statement specifies which statistics to collect in an accounting-data log file. This log file is located on the /var/log directory on the router. You specify the log file by including the file filename statement. The filename is prefixed by the aacl_statistics_ prefix; for example, if you specify the filename lpdfd, the log file will be /var/log/aacl_statistics_lpdfd.

    The application-aware-access-list-fields statement supports the following options:

    • address—IP Address
    • application—Application name
    • application-group—Application group name
    • input-bytes—Number of input bytes
    • input-interface—Input interface name
    • input-packets—Number of input packets
    • mask—Netmask
    • output-bytes—Number of output bytes
    • output-packets—Number of output packets
    • subscriber-name—Subscriber name
    • timestamp—Timestamp
    • vrf-name—VPN routing and forwarding (VRF) name

    For more information on configuring profiles, see the Network Management Configuration Guide.

    Configuring an AACL Statistics Profile

    You can specify an AACL statistics profile by including the following configuration at the [edit system services] hierarchy level:

    local-policy-decision-function {statistics {file filename {archive-sites [ url ];files number;size bytes;transfer-interval minutes;}aacl-statistics-profile profile-name {aacl-fields [ field-name ];file filename;report-interval minutes;record-mode (interim-active-only | interim-full);}record-type (delta | interim);}}

    To specify the file properties, include the file statement at the [edit system services local-policy-decision-function statistics hierarchy level with a unique filename:

    • The archive-sites statement specifies one or more URLs for archiving the files. Archiving can be done by using FTP or SCP.
    • The files statement specifies the maximum number of files that are maintained at one time.
    • The size statement specifies the maximum size of each file.
    • The transfer-interval statement specifies the interval between data transfers in minutes.

    You specify a profile name to identify the profile and other properties as needed by including the aacl-statistics-profile statement. The aacl-fields statement specifies which statistics to collect in an accounting-data log file. This log file is located on the /var/stats/aacl directory on the router. You specify the log file by including the file filename statement.

    The aacl-fields statement supports the following options:

    • address—IP Address
    • all-fields—All available fields
    • application—Application name
    • application-group—Application group name
    • input-bytes—Number of input bytes
    • input-interface—Input interface name
    • ipv6-address—IPv6 address
    • ipv6-prefix-length—Prefix length associated with the displayed IPv6 address
    • input-packets—Number of input packets
    • mask—Netmask
    • output-bytes—Number of output bytes
    • output-packets—Number of output packets
    • subscriber-name—Subscriber name
    • timestamp—Timestamp
    • vrf-name—VPN routing and forwarding (VRF) name

    The record-type statement specifies whether a record is delta or interim; delta is the default setting. The report-interval statement specifies the reporting interval in minutes; the default setting is 15 minutes and the range is 5 through 1440 minutes. The record-mode statement specifies how the statistics are reported for each reporting interval; the default setting is interim-full and reports all available statistics. To report only statistics that have changed for the reporting interval, use the interim-active-only setting.

    Note: The IPv6 fields (ipv6-address and ipv6-prefix-length) are not supported for record-type delta. The IPv6 fields are supported for record-type interim only,meaning that the fields are restricted to the S- (Login) record.

    For more information on configuring profiles, see the Network Management Configuration Guide.

    Published: 2013-02-15