Description

The Configuration required to stream segment routing traffic engineering usage stats.

Symptoms

Telemetry output will not have any leafs sent even though subscribed to the path /junos/services/segment-routing/traffic-engineering/ingress/usage.

show agent sensors will report the sensor as installed.

Solution

To receive the telemetry stats for the path /junos/services/segment-routing/traffic-engineering/ingress/usage, there is a minimum config required as below:

 

  1. Enabling of telemetry statistics under protocols --> source-packet-routing
set protocols source-packet-routing telemetry statistics


[edit protocols]

+  source-packet-routing {

+    telemetry {

+      statistics;

+    }

+  }

 

<-- The above config enables the protocol level stats collection.

<-- However, if actual traffic stats required for the subscribed path /junos/services/segment-routing/traffic-engineering/ingress/usage, additional config is required to pull the stats from the PFE.

<-- From show agent sensors output without the additional config:

 

Sensor Information : 

      

  Name                  : sensor_1037      

  Resource                : /junos/services/segment-routing/traffic-engineering/ingress/usage/ 

  Version                 : 1.0          

  Sensor-id                : 539528148       

  Subscription-ID             : 1037         

  Parent-Sensor-Name           : Not applicable    

  Component(s)              : PFE          


  Profile Information : 

      

    Name                : export_1037      

    Reporting-interval         : 10           

    Payload-size            : 5000          

    Format               : GPB  

 

<-- show network-agent statistics detail

 

Sensor Statistics :

    Sensor Path           : /junos/services/segment-routing/traffic-engineering/ingress/usage/

    Reporting Interval       : 10          

    Component(s)          : Not available     

    Bytes Sent           : 0           

    Packets Sent          : 0           

    Drops              : 0    

 

 

<-- The additional config required is as below

 set protocols source-packet-routing source-routing-path <Name of the source routing path>

 

root@lab# set protocols source-packet-routing source-routing-path test ?

Possible completions:

+ apply-groups     Groups from which to inherit configuration data

+ apply-groups-except Don't inherit configuration data from these groups

 binding-sid     Specify the binding-label to enable transit functionality for this tunnel (16..1048575)

 color        Color identifier for the tunnel end-point

 from         Ip-address of the tunnel start-point

> install       Install prefix

 ldp-tunneling    Allow LDP to use this LSP for tunneling

 lsp-external-controller Name of the external path computing entity

 metric        Metric for routes downloaded for this tunnel (1..16777215)

 no-ingress      Disable ingress functionality for this tunnel

> primary       Configure a primary segment list for this source-routing-path

> secondary      Configure a secondary segment list for this source-routing-path

 sr-preference    SR-preference for SPRING-TE routes. Higher value is more preferred (0..4294967295)

 srm6         Tunnel type SRm6

 to          Ip-address of the tunnel end-point

 use-for-shortcut   Allow this LSP to be used as a shortcut tunnel

{master}[edit]

 

<-- After applying the appropriate configuration mentioned above, the show network-agent statistics detail will report as below (there won't be any difference in show agent sensors output)

 

Sensor Statistics :

    Sensor Path           : /junos/services/segment-routing/traffic-engineering/ingress/usage/

    Reporting Interval       : 10          

    Component(s)          : PFE,PFE,PFE,PFE,PFE  

    Bytes Sent           : 827664445       

    Packets Sent          : 249594        

    Drops              : 0           


    Child Sensor Statistics :

      Path            : /junos/services/segment-routing/traffic-engineering/ingress/usage/

      Component          : PFE          

      Component-ID        : 0           

      SubComponent-ID       : 0           

      Bytes Sent         : 165890728       

      Packets Sent        : 49832         

      Drops            : 0           


    Child Sensor Statistics :

      Path            : /junos/services/segment-routing/traffic-engineering/ingress/usage/

      Component          : PFE          

      Component-ID        : 1           

      SubComponent-ID       : 0           

      Bytes Sent         : 165923910       

      Packets Sent        : 49827         

      Drops            : 0           


    Child Sensor Statistics :

      Path            : /junos/services/segment-routing/traffic-engineering/ingress/usage/

      Component          : PFE          

      Component-ID        : 2           

      SubComponent-ID       : 0           

      Bytes Sent         : 165856409       

      Packets Sent        : 49828         

      Drops            : 0           


    Child Sensor Statistics :

      Path            : /junos/services/segment-routing/traffic-engineering/ingress/usage/

      Component          : PFE          

      Component-ID        : 3           

      SubComponent-ID       : 0           

      Bytes Sent         : 166150390       

      Packets Sent        : 49910         

      Drops            : 0           


    Child Sensor Statistics :

      Path            : /junos/services/segment-routing/traffic-engineering/ingress/usage/

      Component          : PFE          

      Component-ID        : 4           

      SubComponent-ID       : 0           

      Bytes Sent         : 163843008       

      Packets Sent        : 50197         

      Drops            : 0          

Modification History

2024-08-16 : Article Created