Step 2: Trace Nodes Visited During CSPF Computations
Purpose
The configuration of the
cspf-nodeflag provides details in the log file about the nodes visited during CSPF computations. The node information is in addition to the overview information provided by thecspfflag. Details about links visited during CSPF computations are not included in the log file.Action
To trace nodes visited during CSPF computations and to examine the CSPF log file, enter the following JUNOS CLI commands:
[edit protocols mpls]user@R1#run monitor startfilenameuser@R1#run show logfilename
NOTE: To stop monitoring CSPF, issue the
monitor stopcommand. If you are working in configuration mode, as shown in the sample output, issue therun monitor stopcommand.Sample Output 1
[edit protocols mpls]user@R1#showtraceoptions {file cspf-node1;flag cspf;flag cspf-node;}label-switched-path R6-to-R1 {to 10.0.0.1;}interface so-0/0/0.0;interface so-0/0/1.0;interface so-0/0/2.0;interface so-0/0/3.0;Sample Output 2
[edit protocols mpls]user@R1#run show log cspf-node1 | no-moreApr 29 13:39:08 trace_on:Tracing to "/var/log/cspf-node1"startedApr 29 13:40:43 RPD_MPLS_LSP_DOWN: MPLS LSP R1-to-R6 down on primary()Apr 29 13:40:43 RPD_MPLS_PATH_DOWN: MPLS path down on LSP R1-to-R6Apr 29 13:40:43 CSPF adding path R1-to-R6(primary) to CSPF queue 1Apr 29 13:40:43 CSPF creating CSPF jobApr 29 13:40:43Apr 29 13:40:43 CSPF for path R1-to-R6(primary), begin at R1.00, startingApr 29 13:40:43 bandwidth: CT0=0bps; setup priority: 0; randomApr 29 13:40:43 CSPF final destination 10.0.0.6Apr 29 13:40:43 CSPF starting from R1.00 (10.0.0.1) to 10.0.0.6, hoplimit 254Apr 29 13:40:43Node R1.00 (10.0.0.1) metric 0, hops 0, avail 32000 32000 32000 32000Apr 29 13:40:43Node R3.00 (10.0.0.3) metric 10, hops 1, avail 32000 32000 32000 32000Apr 29 13:40:43Node R5.00 (10.0.0.5) metric 10, hops 1, avail 32000 32000 32000 32000Apr 29 13:40:43Node R2.00 (10.0.0.2) metric 10, hops 1, avail 32000 32000 32000 32000Apr 29 13:40:43Node R4.00 (10.0.0.4) metric 20, hops 2, avail 32000 32000 32000 32000Apr 29 13:40:43Node R6.00 (10.0.0.6) metric 20, hops 2, avail 32000 32000 32000 32000Apr 29 13:40:43 CSPF Reached targetApr 29 13:40:43 CSPF completed in 0.000304sApr 29 13:40:43CSPF ERO for R1-to-R6(primary) (2 hops)Apr 29 13:40:43node 10.1.12.2/32Apr 29 13:40:43node 10.1.26.2/32Apr 29 13:40:43 CSPF for R1-to-R6 done!Apr 29 13:40:43 RPD_MPLS_PATH_UP: MPLS path up on LSP R1-to-R6Apr 29 13:40:43RPD_MPLS_LSP_UP: MPLS LSP R1-to-R6 up on primary() Route 10.1.12.2 10.1.26.2[...Output truncated...][edit protocols mpls]user@R1#run monitor stopWhat It Means
Sample Output 1 shows the configuration of the
cspf-nodefile,cspfflag andcspf-nodeflag at the [edit protocols mpls traceoptions] hierarchy level. See Configuring CSPF Tracing for steps to configure CSPF tracing.Sample Output 2 shows the contents of the
cspf-nodefile in the/var/log/directory on ingress routerR1. Thecspf-nodefile contains the CSPF computations logged when thecspfandcspf-nodeflags are configured at the [edit protocols mpls traceoptions] hierarchy level and after therun monitor start cspfandrun show log cspfcommands are issued.Each line of output describes the steps taken by the CSPF algorithm to calculate the shortest path between the ingress and egress routers. Because the
cspf-nodeflag is configured, the output shows the nodes visited during the calculations performed by the CSPF algorithm. For example, all nodes in the network shown in Figure are included.The result of the CSPF algorithm is formed into a strict-hop ERO. For example, the ERO for the LSP
R1-to-R6contains two hops that pass through nodes10.1.12.2/32and10.1.26.2.32. When the ERO is completed,CSPF for R1-to-R6 done!, the ERO is passed to the RSVP protocol process, where it is used for signaling and establishing the LSP in the network. The output showsRPD_MPLS_LSP_UP, indicating that the LSP was established successfully.