28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Keepalive interval: 10, Connect retry interval: 1<br />

Local address: 192.168.19.1, Remote address: 192.168.17.1<br />

Last down 00:00:09 ago; Reason: connect time expired<br />

Authentication type: MD5<br />

Local - Restart: disabled, Helper mode: enabled<br />

Remote - Restart: disabled, Helper mode: enabled<br />

Local maximum recovery time: 240000 msec<br />

Next-hop addresses received:<br />

t1-4/0/0.0<br />

The Authentication type line shows that the LDP session is using MD5 authentication.<br />

14.5 Tracing LDP Operations<br />

Problem<br />

You want to check that LDP is properly exchanging messages with its neighbors.<br />

Solution<br />

Set up a tracing file to capture information about the exchange of LDP protocol<br />

packets:<br />

[edit protocols ldp]<br />

aviva@RouterG# set traceoptions file ldp-log<br />

aviva@RouterG# set traceoptions flag packets<br />

<strong>Discussion</strong><br />

One tool for troubleshooting LDP operation is the JUNOS tracing facility. If an LDP<br />

session that was operating properly suddenly stops working, you can trace the<br />

router’s LDP packet exchanges with its neighbors to help track down the source of<br />

the problem. This recipe sets up an LDP-specific tracing file named ldp-log that captures<br />

all LDP packet exchanges with neighboring routers.<br />

Use the show log command to see the file contents:<br />

aviva@RouterG> show log ldp-log<br />

Oct 5 19:25:46 Incredible-Hulk clear-log[15758]: logfile cleared<br />

Oct 5 19:25:48 LDP sent UDP PDU 10.0.0.1 -> 224.0.0.2 (t1-4/0/0.0)<br />

Oct 5 19:25:48 ver 1, pkt len 42, PDU len 38, ID 192.168.19.1:0<br />

Oct 5 19:25:48 Msg Hello (0x100), len 28, ID 396082<br />

Oct 5 19:25:48 TLV HelloParms (0x400), len 4<br />

Oct 5 19:25:48 TLV XportAddr (0x401), len 4<br />

Oct 5 19:25:48 TLV ConfSeq (0x402), len 4<br />

Oct 5 19:25:49 LDP rcvd UDP PDU 10.0.0.2 -> 224.0.0.2 (t1-4/0/0.0)<br />

Oct 5 19:25:49 ver 1, pkt len 42, PDU len 38, ID 192.168.17.1:0<br />

Oct 5 19:25:49 Msg Hello (0x100), len 28, ID 397238<br />

Oct 5 19:25:49 TLV HelloParms (0x400), len 4<br />

Oct 5 19:25:49 TLV XportAddr (0x401), len 4<br />

Oct 5 19:25:49 TLV ConfSeq (0x402), len 4<br />

Oct 5 19:25:52 LDP sent UDP PDU 10.0.0.1 -> 224.0.0.2 (t1-4/0/0.0)<br />

Oct 5 19:25:52 ver 1, pkt len 42, PDU len 38, ID 192.168.19.1:0<br />

500 | Chapter 14: MPLS<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!