Description

This article provides information about the CLI command to check the number of active routes that are associated with each RSVP LSP.

Symptoms

The CLI command to check the number of active routes that are associated with each RSVP LSP.

Solution

The show mpls lsp and show rsvp session commands have the Rt counter, which displays the number of active routes that are using a particular LSP as a next-hop.

The command to check this Rt counter was changed via PR 611292 . With this PR fix, you now need the count-active-routes knob to display the number of active routes against the Rt counter. The versions with this PR fix will no longer show the number of active routes with just the show mpls lsp or show rsvp session commands. 

The following sample shows Junos CLI output with and without count-active-routes on Junos 10.4R9, which has fix for PR 611292.
 

lab@router> show mpls lsp
Ingress LSP: 2 sessions
To From State Rt P ActivePath LSPname
10.0.0.3 10.0.0.1 Up 0 * p1-to-p2 < Rt counter is 0
10.0.0.5 10.0.0.1 Up 0 * p1-to-p3
Total 2 displayed, Up 2, Down 0

Egress LSP: 2 sessions
To From State Rt Style Labelin Labelout LSPname
10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p1
10.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1
Total 2 displayed, Up 2, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

lab@router> show rsvp session
Ingress RSVP: 2 sessions
To From State Rt Style Labelin Labelout LSPname
10.0.0.3 10.0.0.1 Up 0 1 FF - 300688 p1-to-p3
Total 2 displayed, Up 2, Down 0

Egress RSVP: 2 sessions
To From State Rt Style Labelin Labelout LSPname
10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p1
10.0.0.1 110.0.0.5 Up 0 1 FF 3 - p3-to-p1
Total 2 displayed, Up 2, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

lab@router> show mpls lsp count-active-routes
Ingress LSP: 2 sessions
To From State Rt P ActivePath LSPname
10.0.0.3 10.0.0.1 Up 5 * p1-to-p2 < Rt counter shows number of routes 5
10.0.0.5 10.0.0.1 Up 0 * p1-to-p3
Total 2 displayed, Up 2, Down 0

Egress LSP: 2 sessions
To From State Rt Style Labelin Labelout LSPname
10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p1
10.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1
Total 2 displayed, Up 2, Down 0

Transit LSP: 0 sessions
Total 0 displayed, Up 0, Down 0

 

lab@router> show mpls lsp count-active-routes
Ingress RSVP: 2 sessions
To From State Rt Style Labelin Labelout LSPname
10.0.0.3 10.0.0.1 Up 5 1 FF - 300752 p1-to-p2 < Rt counter shows number of routes 5
10.0.0.5 10.0.0.1 Up 0 1 FF - 300688 p1-to-p3
Total 2 displayed, Up 2, Down 0

Egress RSVP: 2 sessions
To From State Rt Style Labelin Labelout LSPname
10.0.0.1 10.0.0.3 Up 0 1 FF 3 - p2-to-p1
10.0.0.1 10.0.0.5 Up 0 1 FF 3 - p3-to-p1
Total 2 displayed, Up 2, Down 0

Transit RSVP: 0 sessions
Total 0 displayed, Up 0, Down 0

lab@router>

Modification History

2022-12-07: Updated non-compliant IP addresses to RFC standards.