Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Network Management and Monitoring Guide
Table of Contents Expand all
list Table of Contents

Network Analytics

date_range 15-Dec-23

This section describes the network analytics feature that provides visibility into the performance and behavior of the data center infrastructure. It collects data from the switch, analyzes the data by using sophisticated algorithms, and captures the results in reports. Network administrators can use the reports to troubleshoot problems, make decisions, and adjust resources as needed.

Network Analytics Overview

The analytics manager (analyticsm) in the Packet Forwarding Engine collects traffic and queue statistics, and the analytics daemon (analyticsd) in the Routing Engine analyzes the data and generates reports.

Note:

In Junos OS Release 13.2X51-D15, the network analytics feature was enhanced, and extensive changes were made to the CLI statements and hierarchies. If you upgrade to Junos OS Release 13.2X51-D15 or later from a release prior to 13.2X51-D15, network analytics configurations committed in previous releases will appear on your device, but the feature is disabled. To enable this feature, you must reconfigure it by using the new CLI statements and hierarchies.

Analytics Feature Overview

You enable network analytics by configuring queue (microburst) monitoring and high-frequency traffic statistics monitoring.

Queue (microburst) monitoring:

You use microburst monitoring to look at traffic queue conditions on the network. A microburst occurrence indicates to the Packet Forwarding Engine that a user-specified queue depth or latency threshold is reached. The queue depth is the buffer (in bytes) containing the data, and latency is the time (in nanoseconds or microseconds) the data stays in the queue.

You can configure queue monitoring based on either queue depth or latency (but not both), and configure the frequency (polling interval) at which the Packet Forwarding Engine checks for microbursts and sends the data to the Routing Engine for processing. You may configure queue monitoring globally for all physical interfaces on the system, or for a specific interface on the switch. However, the specified queue monitoring interval applies either to all interfaces, or none; you cannot configure the interval for each interface.

High-frequency traffic statistics monitoring:

You use high-frequency traffic statistics monitoring to collect traffic statistics at specified polling intervals. Similar to the queue monitoring interval, the traffic monitoring interval applies either to all interfaces, or none; you cannot configure the interval for each interface.

Both traffic and queue monitoring are disabled by default. You must configure each type of monitoring using the CLI. In each case, the configuration for an interface always takes precedence over the global configuration.

Note:

You can configure traffic and queue monitoring for physical interfaces only; logical interfaces and Virtual Chassis port (VCP) interfaces are not supported.

The analyticsd daemon in the Routing Engine generates local log files containing queue and traffic statistics records. You can specify the log filename and size, and the number of log files. If you do not configure a filename, the data is not saved.

You can display the local log file or specify a server to receive the streaming data containing the queue and traffic statistics.

For each port, information for the last 10 records of traffic statistics and 100 records of queue statistics is cached. You may view this information by using the show analytics commands.

To store traceoptions data, you configure the traceoptions statement at the [edit services analytics] hierarchy level.

Network Analytics Enhancements Overview

Beginning in Junos OS Release 13.2X51-D15, the network analytics feature provides the following enhancements:

  • Resources—Consist of interfaces and system. The interfaces resource allows you to configure an interface name and an associated resource profile name for each interface. With the system resource, you can configure the polling intervals for queue monitoring and traffic monitoring, and an associated resource profile for the system.

  • Resource profile—A template that contains the configurations for queue and traffic monitoring, such as depth threshold and latency threshold values, and whether each type of monitoring is enabled or disabled. Once a resource profile is configured, you apply it to a system or interfaces resource.

  • Collector—A server for collecting queue and traffic monitoring statistics, and can be a local or remote server. You can configure a local server to store monitoring statistics in a log file, or a remote server to receive streamed statistics data.

  • Export profile—You must configure an export profile if you wish to send streaming data to a remote collector. In the export profile, you define the category of streamed data (system-wide or interface-specific) to determine stream type the collector will receive. You can specify both system and interface stream categories. System data includes system information and status of queue and traffic monitoring. Interface-specific data includes interface information, queue and traffic statistics, and link, queue, and traffic status.

  • Google Protocol Buffer (GBP) stream format—A new streaming format for monitoring statistics data that is sent to a remote collector in a single AnRecord message. The format of this stream which provides nine types of information is shown in Table 1.

    Table 1: Google Protocol Buffer (GBP) stream format

    Message

    Description

    System information

    General system information, including boot time, model information, serial number, number of ports, and so on

    System queue status

    Queue status for the system in general

    System traffic status

    Traffic status for the system in general

    Interface information

    Includes SNMP index, slot, port, and other information

    Queue statistics for interfaces

    Queue statistics for specific interfaces

    Traffic statistics for interfaces

    Traffic statistics for specific interfaces

    Link status for interfaces

    Includes link speed, state, and so on

    Queue status for interfaces

    Queue status for specific interfaces

    Traffic status for interfaces

    Traffic status for specific interfaces

  • The analytics.proto file—Provides a template for the GBP stream format. This file can be used for writing your analytics server application. To download the file, go to: /documentation/en_US/junos13.2/topics/reference/proto-files/analytics-proto.txt

  • Use of threshold values—The Analytics Manager (analyticsm) will generate a queue statistics record when the lower queue depth or latency threshold value is exceeded.

  • User Datagram Protocol (UDP)—Additional transport protocol you can configure, in addition to Transmission Control Protocol (TCP), for the remote streaming server port.

  • Single file for local logging—Replaces the separate log files for queue and traffic statistics.

  • Change in latency measurement—Configuration and reporting of latency values have changed from microseconds to nanoseconds.

  • Change in reporting of the collection time in UTC format—Statistics collection time is reported in microseconds instead of milliseconds.

  • New operational mode command show analytics collector—Replaces the show analytics streaming-server command.

  • Changes in command output format—Include the following changes:

    • Addition of unicast, multicast, and broadcast packet counters in queue and traffic statistics.

    • Reversal of the sequence of statistics information in the output. The most recent record is displayed at the beginning, and the oldest record at the end of the output.

    • Removal of traffic or queue monitoring status information from the global portion of the show analytics configuration and show analytics status command output if there is no global configuration.

    • Addition of n/a to the interface-specific portion of the show analytics configuration and show analytics status command output if a parameter is not configured (for example, depth threshold or latency threshold).

Summary of CLI Changes

Starting in Junos OS Release 13.2X51-D15, enhancements to the network analytics feature result in changes in the CLI when you configure the feature. See Table 2 for a summary of CLI changes.

Table 2: Network Analytics CLI Changes

Task

CLI for Junos OS Release 13.2X50-D15 and 13.2X51-D10

CLI for Junos OS Release 13.2X51-D15 and later

Configuring global queue and traffic monitoring polling interval

[edit services analytics]

traffic-statistics {
    interval interval;
}
queue-statistics {
    interval interval;
}

[edit services analytics]

resource {
    system {
        polling-interval {
            queue-monitoring interval;
            traffic-monitoring interval;
        }
    }
}

Configuring local files for traffic and queue statistics reporting

[edit services analytics]

traffic-statistics {
    file filename;
    size size;
    files number;
}
queue-statistics {
    file filename;
    size size;
    files number;
}

[edit services analytics]

collector {
    local {
        file filename {
            files number;
            size size;
        }
    }
}

Enabling queue statistics and traffic monitoring, and specifying the depth threshold for all interfaces (globally)

[edit services analytics]

interfaces {
    all {
        queue-statistics;
        traffic-statistics;
        depth-threshold {
            high number;
            low number;
        }
    }
}

Requires defining a resource profile and applying it to the system:

  1. To define a resource profile:

    [edit services analytics]

    resource-profiles {
        profile-name{
            queue-monitoring;
            traffic-monitoring;
            depth-threshold {
                high number;
                low number;
            }
        }
    }
    
  2. To apply a profile to the system:

    [edit services analytics]

    resource {
        system {
            resource-profile profile-name;
        }
    }
    

Enabling queue statistics and traffic monitoring, and specifying the latency threshold for one interface

[edit services analytics]

interfaces {
    interface{
        queue-statistics;
        traffic-statistics;
        latency-threshold
        high number;
        low number;
    }
}

Requires defining a resource profile and applying it to the interface:

  1. To define a resource profile:

    [edit services analytics]

    resource-profiles {
        profile-name{
            queue-monitoring;
            traffic-monitoring;
            latency-threshold {
                high number;
                low number;
            }
        }
    }
    
  2. To apply a profile to the interface:

    [edit services analytics]

    resource {
        interfaces {
            interface-name {
                resource-profile profile-name;
            }
        }
    }
    

Configuring the streaming data format (JSON, CSV, or TSV) to send to a remote server

Note:

Junos OS Release 13.2X51-D15 added support for the GPB stream format and configuration of the transport protocols (TCP or UDP).

[edit services analytics]

streaming-servers {
    address ip-address {
        port number {
            stream-format format;
        }
    }
}

Requires defining the stream format in an export profile and applying the profile to the collector.

  1. To configure the stream format:

    [edit services analytics]

    export-profiles {
        profile-name {
            stream-format format;
        }
    }
    
  2. To apply an export profile to the collector:

    [edit services analytics]

    collector {
        address ip-address {
            port number {
                transport protocol {
                    export-profile profile-name;
                }
            }
        }
    }
    

Configuring the streaming message types (queue or traffic statistics) to send to a remote server

[edit services analytics]

streaming-servers {
    address ip-address {
        port number {
            stream-type type;
            stream-type type;
        }
    }
}

Requires defining an export profile and applying it to the collector:

  1. To define an export profile:

    [edit services analytics]

    export-profiles {
        profile-name {
            interface {
                information;
                statistics {
                    queue;
                    traffic;
                }
                status {
                    link;
                    queue;
                    traffic;
                }
            }
            system {
                information;
                status {
                    queue;
                    traffic;
                }
            }
        }
    }
    
  2. To apply an export profile to the collector:

    [edit services analytics]

    collector {
        address ip-address {
            port number {
                export-profile profile-name;
            }
        }
    }
    

Configuring the transport protocol for sending streaming data to an external server

No configuration is available. Only the TCP protocol is supported.

Configuration is available. Both TCP and UDP protocols are supported, and can be configured for the same port.

[edit services analytics]

collector {
    address ip-address {
        port number1 {
            transport tcp;
            transport udp;
        }
        port number2 {
            transport udp;
        }
    }
}

Show information about remote streaming server or collector

Issue the show analytics streaming-sever command.

Issue the show analytics collector command.

Understand Network Analytics Streaming Data

Network analytics monitoring data can be streamed to remote servers called collectors. You can configure one or more collectors to receive streamed data containing queue and traffic statistics. This topic describes the streamed data output.

In Junos OS Release 13.2X51-D10, network analytics provide support for the following streaming data formats and output:

  • JavaScript Object Notation (JSON)

  • Comma-separated Values (CSV)

  • Tab-separated Values (TSV)

Note:

For the output shown in this topic for JSON, CSV, and TSV formats, the time is displayed in the Unix epoch format (also known as Unix time or POSIX time).

Starting in Junos OS Release 13.2X51-D15, support for the below streaming format and output has been added along with JSON, CSV, and TSV formats.

  • Google Protocol Buffer (GPB)

JavaScript Object Notation (JSON)

The JavaScript Object Notation (JSON) streaming format supports the following data:

  • Queue statistics data. For example:

    content_copy zoom_out_map
    {"record-type":"queue-stats","time":1383453988263,"router-id":"qfx5100-switch",
    "port":"xe-0/0/18","latency":0,"queue-depth":208}

    See Table 3 for more information about queue statistics output fields.

  • Traffic statistics. For example:

    content_copy zoom_out_map
    {"record-type":"traffic-stats","time":1383453986763,"router-id":"qfx5100-switch",
    "port":"xe-0/0/16","rxpkt":26524223621,"rxpps":8399588,"rxbyte":3395100629632,
    "rxbps":423997832,"rxdrop":0,"rxerr":0,"txpkt":795746503,"txpps":0,"txbyte":101855533467,
    "txbps":0,"txdrop":0,"txerr":0}

    See Table 4 for more information about traffic statistics output fields.

Comma-separated Values (CSV)

The Comma-separated Values (CSV) streaming format supports the following data:

  • Queue statistics. For example:

    content_copy zoom_out_map
    q,1383454067604,qfx5100-switch,xe-0/0/18,0,208

    See Table 3 for more information about queue statistics output fields.

  • Traffic statistics. For example:

    content_copy zoom_out_map
    t,1383454072924,qfx5100-switch,xe-0/0/19,1274299748,82950,163110341556,85603312,0,0,
    27254178291,8300088,3488534810679,600002408,27268587050,3490379142400

    See Table 4 for more information about traffic statistics output fields.

Tab-separated Values (TSV)

The Tab-separated Values (TSV) streaming format supports the following data:

  • Queue statistics. For example:

    content_copy zoom_out_map
    q       585870192561703872      qfx5100-switch       xe-0/0/18       (null)  
    208     2

    See Table 3 for more information about queue statistics output fields.

  • Traffic statistics. For example:

    content_copy zoom_out_map
    t       1383454139025   qfx5100-switch  xe-0/0/19       1279874033      82022 
    163823850036    84801488        0       0       27811618258     8199630 
    3559887126455   919998736       27827356915     3561901685120

    See Table 4 for more information about traffic statistics output fields.

Queue Statistics Output for JSON, CSV, and TSV

Table 3 describes the output fields for streamed queue statistics data in the order they appear.

Table 3: Streamed Queue Statistics Data Output Fields

Field

Description

record-type

Type of statistics. Displayed as:

  • queue-stats (JSON format)

  • q (CSV or TSV format)

time

Time (in Unix epoch format) at which the statistics were captured.

router-id

ID of the network analytics host device.

port

Name of the physical port configured for network analytics.

latency

Traffic queue latency in milliseconds.

queue depth

Depth of the traffic queue in bytes.

Traffic Statistics Output for JSON, CSV, and TSV

Table 4 describes the output fields for streamed traffic statistics data in the order they appear.

Table 4: Streamed Traffic Statistics Data Output Fields

Field

Description

record-type

Type of statistics. Displayed as:

  • traffic-stats (JSON format)

  • t (CSV or TSV format)

time

Time (in Unix epoch format) at which the statistics were captured.

router-id

ID of the network analytics host device.

port

Name of the physical port configured for network analytics.

rxpkt

Total packets received.

rxpps

Total packets received per second.

rxbyte

Total bytes received.

rxbps

Total bytes received per second.

rxdrop

Total incoming packets dropped.

rxerr

Total packets with errors.

txpkt

Total packets transmitted.

txpps

Total packets transmitted per second.

txbyte

Total bytes transmitted.

txbps

Total bytes transmitted per second.

txdrop

Total transmitted bytes dropped.

txerr

Total transmitted packets with errors (dropped).

Google Protocol Buffer (GPB)

This streaming format provides:

  • Support for nine types of messages, based on resource type (system-wide or interface-specific).

  • Sends messages in a hierarchical format.

  • You can generate other stream format messages (JSON, CSV, TSV) from GPB formatted messages.

  • Includes a 8-byte message header. See Table 5 for more information.

Table 5 describes the GPB stream format message header.

Table 5: GPB Stream Format Message Header Information

Byte Position

Field

0 to 3

Length of message

4

Message version

5 to 7

Reserved for future use

The following GPB prototype file (analytics.proto) provides details about the streamed data:

content_copy zoom_out_map
package analytics;

// Traffic statistics related info
message TrafficStatus {
    optional uint32             status          = 1;
    optional uint32             poll_interval   = 2;
}

// Queue statistics related info
message QueueStatus {
    optional uint32             status          = 1;
    optional uint32             poll_interval   = 2;
    optional uint64             lt_high         = 3;
    optional uint64             lt_low          = 4;
    optional uint64             dt_high         = 5;
    optional uint64             dt_low          = 6;
}

message LinkStatus {
    optional uint64             speed           = 1;
    optional uint32             duplex          = 2;
    optional uint32             mtu             = 3;
    optional bool               state           = 4;
    optional bool               auto_negotiation= 5;
}

message InterfaceInfo {
    optional uint32             snmp_index      = 1;
    optional uint32             index           = 2;
    optional uint32             slot            = 3;
    optional uint32             port            = 4;
    optional uint32             media_type      = 5;
    optional uint32             capability      = 6;
    optional uint32             porttype        = 7;
}

message InterfaceStatus {
    optional LinkStatus         link            = 1;
    optional QueueStatus        queue_status    = 2;
    optional TrafficStatus      traffic_status  = 3;
}

message QueueStats {
    optional uint64             timestamp       = 1;
    optional uint64             queue_depth     = 2;
    optional uint64             latency         = 3;
}

message TrafficStats {
    optional uint64             timestamp       = 1;
    optional uint64             rxpkt           = 2;
    optional uint64             rxucpkt         = 3;
    optional uint64             rxmcpkt         = 4;
    optional uint64             rxbcpkt         = 5;
    optional uint64             rxpps           = 6;
    optional uint64             rxbyte          = 7;
    optional uint64             rxbps           = 8;
    optional uint64             rxcrcerr        = 9;
    optional uint64             rxdroppkt       = 10;
    optional uint64             txpkt           = 11;
    optional uint64             txucpkt         = 12;
    optional uint64             txmcpkt         = 13;
    optional uint64             txbcpkt         = 14;
    optional uint64             txpps           = 15;
    optional uint64             txbyte          = 16;
    optional uint64             txbps           = 17;
    optional uint64             txcrcerr        = 18;
    optional uint64             txdroppkt       = 19;
}

message InterfaceStats {
    optional TrafficStats       traffic_stats   = 1;
    optional QueueStats         queue_stats     = 2;
}

//Interface message
message Interface {
    required string             name            = 1;                
    optional bool               deleted         = 2;
    optional InterfaceInfo      information     = 3;
    optional InterfaceStats     stats           = 4;
    optional InterfaceStatus    status          = 5;
}

message SystemInfo {
    optional uint64             boot_time       = 1;
    optional string             model_info      = 2;
    optional string             serial_no       = 3; 
    optional uint32             max_ports       = 4;
    optional string             collector       = 5;
    repeated string             interface_list  = 6;
}

message SystemStatus {
    optional QueueStatus        queue_status    = 1;
    optional TrafficStatus      traffic_status  = 2;
}

//System message
message System {
    required string             name            = 1;
    optional bool               deleted         = 2;
    optional SystemInfo         information     = 3;
    optional SystemStatus       status          = 4;
}

message AnRecord {
    optional uint64             timestamp       = 1;
    optional System             system          = 2;
    repeated Interface          interface       = 3;
}

Understand Enhanced Analytics Local File Output

The network analytics feature provides visibility into the performance and behavior of the data center infrastructure. You enable network analytics by configuring queue or traffic statistics monitoring, or both. In addition, you can configure a local file for storing the traffic and queue statistics records.

Note:

This topic describes the local file output in Junos OS Release 13.2X51-D15 and later.

Starting in Junos OS Release 13.2X51-D15, the traffic and queue monitoring statistics can be stored locally in a single file. The following example shows the output from the monitor start command.

content_copy zoom_out_map
root@qfx5100-33> monitor start an

root@qfx5100-33> 
*** an ***
q,1393947567698432,qfx5100-33,xe-0/0/19,1098572,1373216
q,1393947568702418,qfx5100-33,xe-0/0/19,1094912,1368640
q,1393947569703415,qfx5100-33,xe-0/0/19,1103065,1378832
t,1393947569874528,qfx5100-33,xe-0/0/16,12603371884,12603371884,0,0,
8426023,1613231610488,8628248712,0,3,5916761,5916761,0,0,0,757345408,0,0,0
t,1393947569874528,qfx5100-33,xe-0/0/18,12601953614,12601953614,0,0,
8446737,1613050071660,8649421552,0,5,131761619,131761619,0,0,84468,
16865487232,86495888,0,0
t,1393947569874528,qfx5100-33,xe-0/0/19,126009250,126009250,0,0,84469,
16129184128,86496392,0,0,12584980342,12584980342,0,0,8446866,1610877487744,
8649588432,12593703960,0
q,1393947575698402,qfx5100-33,xe-0/0/19,1102233,1377792
q,1393947576701398,qfx5100-33,xe-0/0/19,1107724,1384656

See Table 6 for queue statistics output, and Table 7 for traffic statistics output. The fields in the tables are listed in the order they appear in the output example.

Table 6: Output Fields for Queue Statistics in Local Analytics File

Field

Description

Example in Output

Record type

Type of statistics (queue or traffic monitoring)

q

Time (microseconds)

Unix epoch (or Unix time) in microseconds at which the statistics were captured.

1393947567698432

Router ID

ID of the network analytics host device.

qfx5100-33

Port

Name of the physical port configured for network analytics.

xe-0/0/19

Latency (nanoseconds)

Traffic queue latency in nanoseconds.

1098572

Queue depth (bytes)

Depth of the traffic queue in bytes.

1373216

Table 7: Output Fields for Traffic Statistics in Local Analytics File

Field

Description

Example in Output

Record type

Type of statistics (queue or traffic monitoring)

t

Time (microseconds)

Unix epoch (or Unix time) in microseconds at which the statistics were captured.

1393947569874528

Router ID

ID of the network analytics host device.

qfx5100-33

Port

Name of the physical port configured for network analytics.

xe-0/0/16

rxpkt

Total packets received.

12603371884

rxucpkt

Total unicast packets received.

12603371884

rxmcpkt

Total multicast packets received.

0

rxbcpkt

Total broadcast packets received.

0

rxpps

Total packets received per second.

8426023

rxbyte

Total octets received.

1613231610488

rxbps

Total bytes received per second.

8628248712

rxdroppkt

Total incoming packets dropped.

0

rxcrcerr

CRC/Align errors received.

3

txpkt

Total packets transmitted.

5916761

txucpkt

Total unicast packets transmitted.

5916761

txmcpkt

Total multicast packets transmitted.

0

txbcpkt

Total broadcast packets transmitted.

0

txpps

Total packets transmitted per second.

0

txbyte

Total octets transmitted.

757345408

txbps

Bytes per second transmitted.

0

txdroppkt

Total transmitted packets dropped.

0

txcrcerr

CRC/Align errors transmitted.

0

Understand Network Analytics Configuration and Status

The network analytics feature provides visibility into the performance and behavior of the data center infrastructure. You can enable network analytics by configuring traffic and queue statistics monitoring.

Note:

This topic describes the configuration and status output from Junos OS Release 13.2X50-D15 and 13.2X51-D10 only.

If you had enabled traffic or queue monitoring, you can issue the show analytics configuration and show analytics status commands to view the global interface configuration and status and that of specific interfaces. The output that is displayed depends on your configuration at the global interface and specific interface levels. For example:

  • A global interface configuration (for all interfaces) to disable monitoring supersedes the configuration to enable it on an interface.

  • The interface configuration to enable or disable monitoring supersedes the global interface configuration, unless monitoring had been disabled globally for all interfaces.

  • If there is no configuration, whether for all interfaces or a specific interface, monitoring is disabled by default (see Table 8).

Table 8 describes the correlation between the user configuration and the settings that are displayed.

Table 8: Configuration and Status Output in Junos OS Release 13.2X51-D10 and 13.2X50-D15

User Configuration

Global or System Settings

Specific Interface Settings

Configuration

Status

Configuration

Status

No global or specific interface configuration. This is the default setting.

Auto

Auto

Auto

Disabled

No global interface configuration but the specific interface monitoring is disabled.

Auto

Auto

Disabled

Disabled

No global interface configuration but the specific interface monitoring is enabled.

Auto

Auto

Enabled

Enabled

Monitoring is disabled globally and there is no interface configuration.

Disabled

Disabled

Auto

Disabled

Monitoring is disabled at both the global and specific interface levels.

Disabled

Disabled

Disabled

Disabled

Monitoring is disabled at the global interface level but is enabled at the specific interface level. The global interface Disabled setting supersedes the Enabled setting for a specific interface.

Disabled

Disabled

Enabled

Disabled

Monitoring is enabled for all interfaces but there is no configuration for the specific interface .

Enabled

Enabled

Auto

Enabled

Monitoring is enabled at both the global and specific interface levels.

Enabled

Enabled

Enabled

Enabled

Monitoring is enabled for all interfaces but is disabled for the specific interface.

Enabled

Enabled

Disabled

Disabled

Configure Queue and Traffic Monitoring

Network analytics queue and traffic monitoring provides visibility into the performance and behavior of the data center infrastructure. This feature collects data from the switch, analyzes the data using sophisticated algorithms, and captures the results in reports. You can use the reports to help troubleshoot problems, make decisions, and adjust resources as needed.

You enable queue and traffic monitoring by first defining a resource profile template, and then applying the profile to the system (for a global configuration) or to individual interfaces.

Note:

You can configure queue and traffic monitoring on physical network interfaces only; logical interfaces and Virtual Chassis physical (VCP) interfaces are not supported.

Note:

The procedure to configure queue and traffic monitoring on a QFX Series standalone switch requires Junos OS Release 13.2X51-D15 or later to be installed on your device.

To configure queue monitoring on a QFX Series standalone switch:

  1. Configure the queue monitoring polling interval (in milliseconds) globally (for the system):

    content_copy zoom_out_map
    [edit]
    set services analytics resource system polling-interval queue-monitoring interval
    
  2. Configure a resource profile for the system, and enable queue monitoring:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles profile-name queue-monitoring
    
  3. Configure high and low values of the depth-threshold (in bytes) for queue monitoring in the system profile:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles profile-name depth-threshold high number low number
    

    For both high and low values, the range is from 1 to 1,250,000,000 bytes, and the default value is 0 bytes.

    Note:

    You can configure either the depth-threshold or latency threshold for the system, but not both.

  4. Apply the resource profile template to the system for a global configuration:

    content_copy zoom_out_map
    [edit]
    set services analytics resource system resource-profile profile-name
    
  5. Configure an interface-specific resource profile and enable queue monitoring for the interface:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles profile-name queue-monitoring
    
  6. Configure the latency-threshold (high and low values) for queue monitoring in the interface-specific profile:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles profile-name latency-threshold high number low number
    

    For both high and low values, the range is from 1 to 100,000,000 nanoseconds, and the default value is 1,000,000 nanoseconds.

    Note:

    You can configure either the depth-threshold or latency threshold for interfaces, but not both.

  7. Apply the resource profile template for interfaces to one or more interfaces:

    content_copy zoom_out_map
    [edit]
    set services analytics resource interfaces interface-name resource-profile profile-name
    
    Note:

    If a conflict arises between the system and interface configurations, the interface-specific configuration supersedes the global (system) configuration.

To configure traffic monitoring on a QFX Series standalone switch:

  1. Configure the traffic monitoring polling interval (in seconds) for the system:

    content_copy zoom_out_map
    [edit]
    set services analytics resource system polling-interval traffic-monitoring interval
    
  2. Configure a resource profile for the system, and enable traffic monitoring in the profile:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles profile-name traffic-monitoring
    
  3. Apply the resource profile to the system for a global configuration:

    content_copy zoom_out_map
    [edit]
    set services analytics resource system resource-profile profile-name
    
  4. Configure a resource profile for interfaces, and enable traffic monitoring in the profile:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles profile-name traffic-monitoring
    
    Note:

    If a conflict arises between the system and interface configurations, the interface-specific configuration supersedes the global (system) configuration.

  5. Apply the resource profile template to one or more interfaces:

    content_copy zoom_out_map
    [edit]
    set services analytics resource interfaces interface-name resource-profile profile-name
    

Configure a Local File for Network Analytics Data

The network analytics feature provides visibility into the performance and behavior of the data center infrastructure. This feature collects data from the switch, analyzes the data using sophisticated algorithms, and captures the results in reports. Network administrators can use the reports to help troubleshoot problems, make decisions, and adjust resources as needed.

To save the queue and traffic statistics data in a local file, you must configure a filename to store it.

Note:

The procedure to configure a local file for storing queue and traffic monitoring statistics requires Junos OS Release 13.2X51-D15 or later to be installed on your device.

To configure a local file for storing queue and traffic monitoring statistics:

  1. Configure a filename:
    content_copy zoom_out_map
    [edit]
    set services analytics collector local file filename
    

    There is no default filename. If you do not configure a filename, network analytics statistics are not saved locally.

  2. Configure the number of files (from 2 to 1000 files):
    content_copy zoom_out_map
    [edit]
    set services analytics collector local file filename files number
    
  3. Configure the file size (from 10 to 4095 MB) in the format of xm:
    content_copy zoom_out_map
    [edit]
    set services analytics collector local file an size size
    

Configure a Remote Collector for Streaming Analytics Data

The network analytics feature provides visibility into the performance and behavior of the data center infrastructure. This feature collects data from the switch, analyzes the data using sophisticated algorithms, and captures the results in reports. Network administrators can use the reports to help troubleshoot problems, make decisions, and adjust resources as needed.

You can configure an export profile to define the stream format and type of data, and one or more remote servers (collectors) to receive streaming network analytics data.

Note:

The procedure to configure a collector for receiving streamed analytics data requires Junos OS Release 13.2X51-D15 or later to be installed on your device.

To configure a collector for receiving streamed analytics data:

  1. Create an export profile and specify the stream format:
    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles profile-name stream-format format
    
  2. Configure the export profile to include interface information:
    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles profile-name interface information
    
  3. Configure the export profile to include interface queue statistics:
    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles profile-name interface statistics queue
    
  4. Configure the export profile to include interface traffic statistics:
    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles profile-name interface statistics traffic
    
  5. Configure the export profile to include interface status link information:
    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles profile-name interface status link
    
  6. Configure the export profile to include system information:
    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles profile-name system information
    
  7. Configure the export profile to include system queue status:
    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles profile-name system status queue
    
  8. Configure the export profile to include system traffic status:
    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles profile-name system status traffic
    
  9. Configure the transport protocol for the collector addresses and apply the export profile:
    content_copy zoom_out_map
    [edit]
    set services analytics collector address ip-address port port transport protocol export-profile profile-name
    set services analytics collector address ip-address port port transport protocol export-profile profile-name
    
    Note:

    If you configure the tcp or udp option for the JSON, CSV, and TSV formats, you must also set up the TCP or UDP client software on the remote collector to process records that are separated by the newline character (\n) on the remote server.

    If you configure the tcp or udp option for the GPB format, you must also set up the TCP or UDP build streaming server using the analytics.proto file.

Example: Configure Queue and traffic statsistics

This example shows how to configure network analytics which includes queue and traffic monitoring on a QFX3500 standalone switch.

Note:

The configuration shown in this example is supported only on Junos OS Release 13.2X50-D15 and 13.2X51-D10.

Requirements

This example uses the following hardware and software components:

  • A QFX3500 standalone switch

  • A external streaming server to collect data

  • Junos OS Release 13.2X50-D15 software

  • TCP server software (for remote streaming servers)

Before you configure network analytics, be sure you have:

  • Junos OS Release 13.2X50-D15 or later software installed and running on the QFX3500 switch

  • (Optional for streaming servers) TCP server software set up for processing records separated by a newline character (\n) on the remote streaming server

  • All other devices running

Overview

The network analytics feature provides visibility into the performance and behavior of the data center infrastructure. This feature collects data from the switch, analyzes the data using sophisticated algorithms, and captures the results in reports. Network administrators can use the reports to help troubleshoot problems, make decisions, and adjust resources as needed. You can enable network analytics by configuring queue and traffic statistics monitoring.

Topology

In this example, the QFX3500 switch is connected to an external server used for streaming statistics data.

Configuration

To configure network analytics, perform these tasks:

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them in a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

content_copy zoom_out_map
[edit]
set services analytics interfaces all queue-statistics
set services analytics interfaces all latency-threshold high 900 low 300
set services analytics interfaces xe-0/0/1 traffic-statistics
set services analytics queue-statistics file qstats1.qs files 3 size 10
set services analytics queue-statistics interval 10
set services analytics traffic-statistics file tstats1.ts files 3 size 10
set services analytics traffic-statistics interval 2 
set services analytics streaming-servers address 10.94.198.11 port 50001 stream-format json stream-type queue-statistics
set services analytics streaming-servers address 10.94.198.11 port 50005 stream-format csv stream-type traffic-statistics

Configure Queue and Traffic Statistics Monitoring

Step-by-Step Procedure

To configure queue and traffic monitoring on physical interfaces:

Note:

Disabling of the queue or traffic monitoring supersedes the configuration (enabling) of this feature. You disable monitoring by issuing the no-queue-statistics or no-traffic-statistics at the [edit services analytics interfaces] hierarchy level.

  1. Configure all interfaces for queue monitoring and set the latency thresholds (in microseconds):

    content_copy zoom_out_map
    [edit]
    set services analytics interfaces all queue-statistics
    set services analytics interfaces all latency-threshold high 900 low 300
    
  2. Configure one interface for traffic monitoring:

    content_copy zoom_out_map
    [edit]
    set services analytics interfaces xe-0/0/1 traffic-statistics
    

Configure Local Statistics Files

Step-by-Step Procedure

To configure local statistics files:

  1. Configure the number of queue statistics files, and each file size in MB:

    content_copy zoom_out_map
    [edit]
    set services analytics queue-statistics file qstats1.qs files 3 size 10m
    
  2. Configure the queue statistics collection interval in milliseconds

    content_copy zoom_out_map
    [edit]
    set services analytics queue-statistics interval 10
    
  3. Configure the number of traffic statistics files, and each file size in MB:

    content_copy zoom_out_map
    [edit]
    set services analytics traffic-statistics file tstats1.ts files 3 size 10m
    
  4. Configure the traffic statistics collection interval in seconds:

    content_copy zoom_out_map
    [edit]
    set services analytics traffic-statistics interval 2 
    

Configure Streaming Servers

Step-by-Step Procedure

To configure streaming servers for receiving monitoring data:

Note:

In addition to configuring streaming servers, you must also set up the TCP client software to process records that are separated by the newline character (\n) on the remote server.

  1. Configure a server IP address and port for queue statistics monitoring:

    content_copy zoom_out_map
    [edit]
    set services analytics streaming-servers address 10.94.198.11 port 50001 stream-format json stream-type queue-statistics
    
  2. Configure a server IP address and port for traffic statistics monitoring:

    content_copy zoom_out_map
    [edit]
    set services analytics streaming-servers address 10.94.198.11 port 50005 stream-format csv stream-type traffic-statistics
    

Results

Display the results of the configuration:

content_copy zoom_out_map
[edit services analytics]
user@switch> show configuration
    queue-statistics {
        file qstats1.qs size 10m files 3;
        interval 10;
    }
    traffic-statistics {
        file tstats1.ts size 10m files 3;
        interval 2;
    }
    interfaces {
        xe-0/0/1 {
            traffic-statistics;
        }
        all {
            queue-statistics;
            latency-threshold high 900 low 300;
        }
    }

Verification

Confirm that the configuration is correct and works as expected by performing these tasks:

Verify the Network Analytics Configuration

Purpose

Verify the configuration for network analytics.

Action

From operational mode, enter the show analytics configuration command to display the traffic and queue monitoring configuration.

content_copy zoom_out_map
user@host> show analytics configuration

Global configurations:
   Traffic statistics: Auto, Poll interval: 2 seconds
   Queue statistics: Enabled, Poll interval: 10 milliseconds
   Depth threshold high: 0 bytes, low: 0 bytes
   Latency threshold high: 900 microseconds, low: 300 microseconds
Interface     Traffic       Queue        Depth-threshold      Latency-threshold
            Statistics    Statistics      High      Low         High      Low
                                             (bytes)            (microseconds)
xe-0/0/1     Enabled      Auto            0         0           900       300 
Meaning

The output displays information about traffic and queue monitoring on the switch.

Verify the Network Analytics Status

Purpose

Verify the network analytics operational status of the switch.

Action

From operational mode, enter the show analytics status command to display the traffic and queue monitoring status.

content_copy zoom_out_map
user@host> show analytics status

Global configurations:
   Traffic statistics: Auto, Poll interval: 2 seconds
   Queue statistics: Auto, Poll interval: 10 milliseconds
   Depth threshold high: 1228800 bytes, low: 1024 bytes
   Latency threshold high: 900 microseconds, low: 300 microseconds
Interface     Traffic       Queue        Depth-threshold      Latency-threshold
            Statistics    Statistics      High      Low         High      Low
                                             (bytes)            (microseconds)
xe-0/0/1     Enabled       Auto          1228800   1024         900       300
xe-0/0/7     Auto          Auto          1228800   1024         900       300
xe-0/0/8     Auto          Auto          1228800   1024         900       300

Verify Streaming Servers Configuration

Purpose

Verify the configuration for streaming data to remote servers is working.

Action

From operational mode, enter the show analytics streaming-servers command to display the streaming servers configuration.

content_copy zoom_out_map
user@host> show analytics streaming-servers

Address        Port     Stream-Format    Stream-Type   State         Sent
10.94.198.11   50001    json             QS            Established   1100
10.94.198.11   50005    csv              TS/QS         In Progress      0
Meaning

The output displays information about the remote streaming server.

Verify Queue Statistics

Purpose

Verify that queue statistics collection is working.

Action

From operational mode, enter the show analytics queue-statistics command to display the queue statistics.

content_copy zoom_out_map
user@host> show analytics queue-statistics

Time               Interface   Queue-length (bytes)   Latency (us)
Apr 6 0:17:18.224  xe-0/0/1            1043952            835
Apr 6 0:17:18.234  xe-0/0/1            1053520            842
Apr 6 0:17:18.244  xe-0/0/1            1055184            844
Meaning

The output displays queue-statistics information as expected.

Verify Traffic Statistics

Purpose

Verify that traffic statistics collection is working.

Action

From operational mode, enter the show analytics traffic-statistics command to display the traffic statistics.

content_copy zoom_out_map
user@host> show analytics traffic-statistics

Time: Apr 5 19:52:48.549, Physical interface: xe-0/0/1
  Traffic Statistics:                Receive            Transmit
  Total octets:                4797548752936        408886273632
  Total packet:                   5658257464          3190613435
  Octets per second:                       0                   0
  Packet per second:                       0                   0
  Octets dropped:                          0           252901000
  Packet dropped:                          0              252901
  Utilization:                          0.0%                0.0%
Time: Apr 5 19:52:48.549, Physical interface: xe-0/0/7
  Traffic Statistics:                Receive            Transmit
  Total octets:                4790866253100           477139024
  Total packet:                   5624473639              477944
  Octets per second:                       0                   0
  Packet per second:                       0                   0
  Octets dropped:                          0           166582000
  Packet dropped:                          0              166582
  Utilization:                          0.0%                0.0%
Time: Apr 5 19:52:48.549, Physical interface: xe-0/0/8
  Traffic Statistics:                Receive            Transmit
  Total octets:                4789797668456           764910024
  Total packet:                   5623280870              765715
  Octets per second:                       0                   0
  Packet per second:                       0                   0
  Octets dropped:                          0           156099000
  Packet dropped:                          0              156099
  Utilization:                          0.0%                0.0%
Meaning

The output displays traffic-statistics information as expected.

Example: Configure Queue and Traffic Monitoring

This example shows how to configure the enhanced network analytics feature, including queue and traffic monitoring.

Requirements

This example uses the following hardware and software components:

  • A QFX5100 standalone switch

  • A external streaming server to collect data

  • Junos OS Release 13.2X51-D15 software

  • TCP server software (for remote streaming servers)

Before you configure network analytics, be sure you have:

  • Junos OS Release 13.2X51-D15 or later software installed and running on the QFX5100 switch.

  • (Optional for streaming servers for the JSON, CSV, and TSV formats) TCP or UDP server software set up for processing records separated by a newline character (\n) on the remote streaming server.

  • (Optional for streaming servers for the GPB format) TCP or UDP build streaming server using the analytics.proto file.

  • All other network devices running.

Overview

The network analytics feature provides visibility into the performance and behavior of the data center infrastructure. This feature collects data from the switch, analyzes the data using sophisticated algorithms, and captures the results in reports. Network administrators can use the reports to help troubleshoot problems, make decisions, and adjust resources as needed.

You enable network analytics by first defining a resource profile template, and then applying the profile to the system (for a global configuration) or to individual interfaces.

Note:

Disabling of the queue or traffic monitoring supersedes the configuration (enabling) of this feature. You disable monitoring by applying a resource profile that includes the no-queue-monitoring or no-traffic-monitoring configuration statement at the [edit services analytics resource-profiles] hierarchy level.

Topology

In this example, the QFX5100 switch is connected to an external server used for streaming statistics data.

Configuration

To configure the network analytics features, perform these tasks:

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them in a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.

content_copy zoom_out_map
[edit]
set services analytics resource system polling-interval queue-monitoring 1000
set services analytics resource system polling-interval traffic-monitoring 5
set services analytics collector local file an.stats
set services analytics collector local file an files 3
set services analytics collector local file an size 10m
set services analytics resource-profiles sys-rp queue-monitoring
set services analytics resource-profiles sys-rp traffic-monitoring
set services analytics resource-profiles sys-rp depth-threshold high 999999 low 99
set services analytics resource system resource-profile sys-rp
set services analytics resource-profiles if-rp queue-monitoring
set services analytics resource-profiles if-rp traffic-monitoring
set services analytics resource-profiles if-rp latency-threshold high 2300 low 20
set services analytics resource interfaces xe-0/0/16 resource-profile if-rp
set services analytics resource interfaces xe-0/0/18 resource-profile if-rp
set services analytics resource interfaces xe-0/0/19 resource-profile if-rp
set services analytics export-profiles ep stream-format gpb
set services analytics export-profiles ep interface information
set services analytics export-profiles ep interface statistics queue
set services analytics export-profiles ep interface statistics traffic
set services analytics export-profiles ep interface status link
set services analytics export-profiles ep system information
set services analytics export-profiles ep system status queue
set services analytics export-profiles ep system status traffic
set services analytics collector address 10.94.198.11 port 50001 transport tcp export-profile ep
set services analytics collector address 10.94.184.25 port 50013 transport udp export-profile ep

Configure the Polling Interval for Queue and Traffic Monitoring

Step-by-Step Procedure

To configure the polling interval queue and traffic monitoring globally:

  1. Configure the queue monitoring polling interval (in milliseconds) for the system:

    content_copy zoom_out_map
    [edit]
    set services analytics resource system polling-interval queue-monitoring 1000
    
  2. Configure the traffic monitoring polling interval (in seconds) for the system:

    content_copy zoom_out_map
    [edit]
    set services analytics resource system polling-interval traffic-monitoring 5
    

Configure a Local Statistics File

Step-by-Step Procedure

To configure a file for local statistics collection:

  1. Configure the filename:

    content_copy zoom_out_map
    [edit]
    set services analytics collector local file an.stats
    
  2. Configure the number of files:

    content_copy zoom_out_map
    [edit]
    set services analytics collector local file an files 3
    
  3. Configure the file size:

    content_copy zoom_out_map
    [edit]
    set services analytics collector local file an size 10m
    

Configure and Apply a Resource Profile for the System

Step-by-Step Procedure

To define a resource profile template for queue and traffic monitoring resources:

  1. Configure a resource profile and enable queue monitoring:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles sys-rp queue-monitoring
    
  2. Enable traffic monitoring in the profile:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles sys-rp traffic-monitoring
    
  3. Configure the depth-threshold (high and low values) for queue monitoring in the profile:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles sys-rp depth-threshold high 999999 low 99
    
  4. Apply the resource profile template to the system resource type for a global configuration:

    content_copy zoom_out_map
    [edit]
    set services analytics resource system resource-profile sys-rp
    

Configure and Apply a Resource Profile for an Interface

Step-by-Step Procedure

You can configure queue and traffic monitoring for one or more specific interfaces. The interface-specific configuration supersedes the global (system) configuration. To define a resource profile template for queue and traffic monitoring resources for an interface:

  1. Configure a resource profile and enable queue monitoring:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles if-rp queue-monitoring
    
  2. Enable traffic monitoring in the profile:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles if-rp traffic-monitoring
    
  3. Configure the latency-threshold (high and low values) for queue monitoring in the profile:

    content_copy zoom_out_map
    [edit]
    set services analytics resource-profiles if-rp latency-threshold high 2300 low 20
    
  4. Apply the resource profile template to the interfaces resource type for specific interfaces:

    content_copy zoom_out_map
    [edit]
    set services analytics resource interfaces xe-0/0/16 resource-profile if-rp
    set services analytics resource interfaces xe-0/0/18 resource-profile if-rp
    set services analytics resource interfaces xe-0/0/19 resource-profile if-rp
    

Configure an Export Profile and Collector for Streaming Data

Step-by-Step Procedure

To configure a collector (streaming server) for receiving monitoring data:

  1. Create an export profile and specify the stream format:

    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles ep stream-format gpb
    
  2. Configure the export profile to include interface information:

    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles ep interface information
    
  3. Configure the export profile to include interface queue statistics:

    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles ep interface statistics queue
    
  4. Configure the export profile to include interface traffic statistics:

    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles ep interface statistics traffic
    
  5. Configure the export profile to include interface status link information:

    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles ep interface status link
    
  6. Configure the export profile to include system information:

    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles ep system information
    
  7. Configure the export profile to include system queue status:

    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles ep system status queue
    
  8. Configure the export profile to include system traffic status:

    content_copy zoom_out_map
    [edit]
    set services analytics export-profiles ep system status traffic
    
  9. Configure the transport protocol for the collector addresses and apply an export profile:

    content_copy zoom_out_map
    [edit]
    set services analytics collector address 10.94.198.11 port 50001 transport tcp export-profile ep
    set services analytics collector address 10.94.184.25 port 50013 transport udp export-profile ep
    
    Note:

    If you configure the tcp or udp option for the JSON, CSV, and TSV formats, you must also set up the TCP or UDP client software on the remote collector to process records that are separated by the newline character (\n) on the remote server.

    If you configure the tcp or udp option for the GPB format, you must also set up the TCP or UDP build streaming server using the analytics.proto file.

Results

Display the results of the configuration:

content_copy zoom_out_map
[edit services analytics]
user@switch# run show configuration
services {
    analytics {
        export-profiles {
            ep {
                stream-format gpb;
                interface {
                    information;
                    statistics {
                        traffic;
                        queue;
                    }
                    status {
                        link;
                    }
                }
                system {
                    information;
                    status {
                        traffic;
                        queue;
                    }
                }
            }
        }
        resource-profiles {
            sys-rp {
                queue-monitoring;
                traffic-monitoring;
                depth-threshold high 99999 low 99;
            }
            if-rp {
                queue-monitoring;
                traffic-monitoring;
                latency-threshold high 2300 low 20;
            }
        }
        resource {
            system {
                resource-profile sys-rp;
                polling-interval {
                    traffic-monitoring 5;
                    queue-monitoring 1000;
                }
            }
            interfaces {
                xe-0/0/16 {
                    resource-profile if-rp;
                }
                xe-0/0/18 {
                    resource-profile if-rp;
                }
                xe-0/0/19 {
                    resource-profile if-rp;
                }
            }
        }
        collector {
            local {
                file an size 10m files 3;
            }
            address 10.94.184.25 {
                port 50013 {
                    transport udp {
                        export-profile ep;
                    }
                }
            }
            address 10.94.198.11 {
                port 50001 {
                    transport tcp {
                        export-profile ep;
                    }
                }
            }
        }
    }
}

Verification

Confirm that the configuration is correct and works as expected by performing these tasks:

Verify the Network Analytics Configuration

Purpose

Verify the configuration for network analytics.

Action

From operational mode, enter the show analytics configuration command to display the traffic and queue monitoring configuration.

content_copy zoom_out_map
user@host> show analytics configuration

Traffic monitoring status is enabled
Traffic monitoring polling interval : 5 seconds
Queue monitoring status is enabled
Queue monitoring polling interval : 1000 milliseconds
Queue depth high threshold : 99999 bytes
Queue depth low threshold : 99 bytes

Interface     Traffic       Queue        Queue depth              Latency
            Statistics    Statistics      threshold              threshold
                                         High         Low      High      Low
                                            (bytes)            (nanoseconds)
xe-0/0/16   enabled       enabled        n/a          n/a      2300      20
xe-0/0/18   enabled       enabled        n/a          n/a      2300      20
xe-0/0/19   enabled       enabled        n/a          n/a      2300      20
Meaning

The output displays the traffic and queue monitoring configuration information on the switch.

Verify the Network Analytics Status

Purpose

Verify the network analytics operational status of the switch.

Action

From operational mode, enter the show analytics status global command to display global traffic and queue monitoring status.

content_copy zoom_out_map
user@host> show analytics status global

Traffic monitoring status is enabled 
Traffic monitoring pollng interval : 5 seconds
Queue monitoring status is enabled
Queue monitoring polling interval : 1000 milliseconds
Queue depth high threshold : 99999 bytes
Queue depth low threshold : 99 bytes

From operational mode, enter the show analytics status command to display both the interface and global queue monitoring status.

content_copy zoom_out_map
user@host> show analytics status

Traffic monitoring status is enabled 
Traffic monitoring pollng interval : 5 seconds
Queue monitoring status is enabled
Queue monitoring polling interval : 1000 milliseconds
Queue depth high threshold : 99999 bytes
Queue depth low threshold : 99 bytes

Interface     Traffic    Queue      Queue depth             Latency
            Statistics Statistics    threshold             threshold 
                                   High       Low        High      Low
                                      (bytes)            (nanoseconds)
xe-0/0/16   enabled    enabled     n/a        n/a        2300      20      
xe-0/0/18   enabled    enabled     n/a        n/a        2300      20      
xe-0/0/19   enabled    enabled     n/a        n/a        2300      20    
Meaning

The output displays the global and interface status of traffic and queue monitoring on the switch.

Verify the Collector Configuration

Purpose
Action

Verify the configuration for the collector for streamed data is working.

From operational mode, enter the show analytics collector command to display the streaming servers configuration.

content_copy zoom_out_map
user@host> show analytics collector

Address        Port   Transport  Stream format  State           Sent
10.94.184.25   50013  udp        gpb            n/a             484
10.94.198.11   50001  tcp        gpb            In progress     0
Meaning

The output displays the collector configuration.

Note:

The connection state of a port configured with the udp transport protocol is always displayed as n/a.

Change History Table

Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.

Release
Description
13.2X51-D15
In Junos OS Release 13.2X51-D15, the network analytics feature was enhanced, and extensive changes were made to the CLI statements and hierarchies.
13.2X51-D15
Beginning in Junos OS Release 13.2X51-D15, the network analytics feature provides the following enhancements:
13.2X51-D15
Beginning in Junos OS Release 13.2X51-D15, enhancements to the network analytics feature result in changes in the CLI when you configure the feature.
13.2X51-D15
Starting in Junos OS Release 13.2X51-D15, network analytics supports the following streaming data formats and output:
13.2X51-D15
Beginning in Junos OS Release 13.2X51-D15, the traffic and queue monitoring statistics can be stored locally in a single file.
13.2X51-D15
The procedure to configure queue monitoring on a QFX Series standalone switch requires Junos OS Release 13.2X51-D15 or later to be installed on your device.
13.2X51-D15
The procedure to configure a local file for storing queue and traffic monitoring statistics requires Junos OS Release 13.2X51-D15 or later to be installed on your device.
13.2X51-D15
The procedure to configure a collector for receiving streamed analytics data requires Junos OS Release 13.2X51-D15 or later to be installed on your device.
footer-navigation