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

Understanding Enabling 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 interface (JTI) 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.

About Transit Spring Statistics

Exported statistics are for SPRING traffic and exclude RSVP and LDP-signaled traffic. Family MPLS statistics per interface is 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 you enable SPRING statistics, verify your SPRING configuration on the device from which you will 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).

Enabling Export of Statistics

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

Exporting Statistics

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

Enabling Collection of SPRING Statistics and Exporting Them

You can export through Junos telemetry interface (JTI) transit Source Packet Routing in Networking (SPRING) statistics, also known as segment routing statistics.

Before statistics can be exported, they need to be enabled for collection. After statistics are enabled for collection, you choose how they should be exported to an outside collector: gRPC services or a UDP-format using 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 interface (JTI) supports the export of transit SPRING statistics on PTX3000 routers and PTX5000 routers with FPC2