Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Enabling Export of Transit SPRING Statistics

Export of Transit SPRING Statistics

Source Packet Routing in Networking (SPRING), also known as segment routing, is a control-plane architecture that enables an ingress router to steer a packet through a specific set of nodes and links in the network. Starting in Junos OS Release 19.1R1, Junos Telemetry supports the export of transit SPRING statistics on PTX3000 routers and PTX5000 routers with FPC2. Use these statistics to monitor traffic, model engineering, and plan capacity.

Transit Spring Statistics

Exported statistics are for SPRING traffic and exclude RSVP and LDP-signaled traffic. Family MPLS statistics per interface are accounted for separately. The segment routing statistics also include SPRING traffic statistics per link aggregation group (LAG) member and per segment identifier (SID).

Use a valid SPRING configuration

Statistics are not collected without the appropriate SPRING configuration in place. Before enabling SPRING statistics, verify your SPRING configuration on the device you will use to export statistics. Below is a sample Junos OS SPRING configuration.

Ingress Device

Transit Device

Egress Device

For more information about configuring SPRING, see Understanding Source Packet Routing in Networking (SPRING).

Enable Export of Statistics

To receive statistics, enable statistical data for export on Juniper device through the Junos OS. To enable export, configure per-sid-ingress at the [edit protocols isis source-packet-routing] hierarchy level. For example, see Enabling Collection of SPRING Statistics and Exporting Them.

Export Statistics

After you have enabled telemetry export for transit SPRING statistics, stream statistics to an outside collector using either remote procedure call (gRPC) services or a native sensor. Native sensors exports statistics in UDP-format and requires a Junos OS configuration on the device.

Enable Collection and Export of SPRING Statistics

Enable statistics for collection before exporting them. After enabling statistics for collection, choose how to export them to an external collector using either gRPC services or a UDP format with a native sensor.

To enable the export of transit SPRING statistics:

Enable sensor-based statistics per segment identifier for the ingress direction:

To export transit SPRING statistics using gRPC services:

  1. Start gRPC services for the device by including the configuration below:

  2. Create a subscription using the telemetrySubcribe remote procedure call. The subscription must contain telemetry parameters, including the resource path /junos/services/segment-routing/sid/usage/. For more information about configuring gRPC streaming and creating a subscription for statistics to be delivered to an outside collector, see Understanding OpenConfig and gRPC on Junos Telemetry Interface, gRPC Services for Junos Telemetry Interface, and Configure a NETCONF Proxy Telemetry Sensor in Junos.

To export transit SPRING statistics in UDP-format using a native sensor:

  1. Configure the sensor statement at the [edit services analytics] hierarchy level on the device. Include the sensor path (/junos/services/segment-routing/sid/usage/), an export profile name, a resource identifier string that enables monitoring and streaming of data for the specified system resource, and a server name to collect the data.

For more information about configuring a native sensor, see Configuring a Junos Telemetry Interface Sensor (CLI Procedure).

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
19.1R1
Starting in Junos OS Release 19.1R1, Junos Telemetry supports the export of transit SPRING statistics on PTX3000 routers and PTX5000 routers with FPC2