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.

The traceoption flags indicate the information to monitor. This recipe traces all routing<br />

protocol traffic.<br />

For a router running RIP, IS-IS, and MPLS, you would see messages like this in the<br />

tracing file:<br />

Apr 5 16:09:43 mpls LSP update start<br />

Apr 5 16:09:43 mpls LSP update complete<br />

Apr 5 16:12:23 task_timer_dispatch: returned from IS-IS I/O./var/run/ppmd_control_<br />

PPM Keepalive, rescheduled in 40<br />

Apr 5 16:12:27 task_receive_packet: task RIPv2 I/O.0.0.0.0+520 from 192.168.220<br />

.18+520 to 224.0.0.9 if t1-0/1/0:0.0 (ix 70) msgix 70 socket 14 length 164<br />

All the messages are timestamped and indicate the protocol or tasks that generated<br />

them.<br />

When debugging global routing operations, one or more of the following can be<br />

traced:<br />

[edit routing-options]<br />

aviva@router1# show traceoptions flag ?<br />

Possible completions:<br />

all<br />

Trace everything<br />

config-internal Trace configuration internals<br />

general<br />

Trace general events<br />

normal<br />

Trace normal events<br />

parse<br />

Trace configuration parsing<br />

policy<br />

Trace policy processing<br />

regex-parse<br />

Trace regular-expression parsing<br />

route<br />

Trace routing information<br />

state<br />

Trace state transitions<br />

task<br />

Trace routing protocol task processing<br />

timer<br />

Trace routing protocol timer processing<br />

Generally, when you are trying to debug a problem with a routing protocol, you turn<br />

on tracing for that protocol only. You can do this for BGP, DVMRP, IGMP, IS-IS,<br />

LDP, MPLS, MSDP, OSPF, PGM, PIM, RIP, RIPng, RSVP, SNMP, and VPLS.<br />

Throughout this book, in the appropriate protocol chapters, we show how to use<br />

tracing to debug problems. You can also use traceoptions to debug interface problems.<br />

Tracing all routing operations is not recommended on a busy router because<br />

the tracing and routing protocol operations use the same CPU and the processing<br />

time required for tracing can slow down the protocol processing. In this case, you<br />

should consider tracing a smaller scope of operations, or even not using tracing at all.<br />

5.11 Monitoring Interface Traffic<br />

Problem<br />

You want to look at the headers of packets transiting an interface to debug protocol<br />

operation.<br />

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

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.<br />

Monitoring Interface Traffic | 179

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

Saved successfully!

Ooh no, something went wrong!