28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BGP establishes the connection, from Idle, toActive, OpenSent, and OpenConfirm,<br />

and finally to Established.<br />

Another useful tracing flag for ongoing monitoring of BGP is open, used to track<br />

when peer connections are established and torn down:<br />

[edit protocols bgp]<br />

aviva@RouterF# set traceoptions flag open<br />

When the BGP peer session drops and re-establishes, the log contains traces of the<br />

BGP Open messages:<br />

aviva@RouterF> show log bgp-trace<br />

Aug 6 19:17:45 trace_on: Tracing to "/var/log/bgp-trace" started<br />

Aug 6 19:18:05 bgp_recv: peer 10.0.31.1 (External AS 65505): received unexpected EOF<br />

Aug 6 19:18:05 bgp_peer_close: closing peer 10.0.31.1 (External AS 65505), state is<br />

6 (Established)<br />

Aug 6 19:18:05 bgp_event: peer 10.0.31.1 (External AS 65505) old state Established<br />

event Closed new state Idle<br />

Aug 6 19:18:05 bgp_event: peer 10.0.31.1 (External AS 65505) old state Idle event<br />

Start new state Active<br />

Aug 6 19:18:09<br />

Aug 6 19:18:09 BGP RECV 10.0.31.1+4379 -> 10.0.31.2+179<br />

Aug 6 19:18:09 BGP RECV message type 1 (Open) length 45<br />

Aug 6 19:18:09 bgp_event: peer 10.0.31.1 (External AS 65505) old state Active event<br />

Open new state OpenSent<br />

Aug 6 19:18:09 bgp_send: sending 45 bytes to 10.0.31.1 (External AS 65505)<br />

Aug 6 19:18:09<br />

Aug 6 19:18:09 BGP SEND 10.0.31.2+179 -> 10.0.31.1+4379<br />

Aug 6 19:18:09 BGP SEND message type 1 (Open) length 45<br />

Aug 6 19:18:09 bgp_event: peer 10.0.31.1 (External AS 65505) old state OpenSent<br />

event RecvOpen new state OpenConfirm<br />

Aug 6 19:18:09 bgp_event: peer 10.0.31.1 (External AS 65505) old state OpenConfirm<br />

event RecvKeepAlive new state Established<br />

When debugging BGP, you can set one or more of the following trace flags to monitor<br />

BGP information:<br />

[edit protocols bgp]<br />

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

Possible completions:<br />

all<br />

Trace everything<br />

damping<br />

Trace BGP damping information<br />

general<br />

Trace general events<br />

keepalive<br />

Trace BGP keepalive packets<br />

normal<br />

Trace normal events<br />

open<br />

Trace BGP open packets<br />

packets<br />

Trace all BGP protocol packets<br />

policy<br />

Trace policy processing<br />

refresh<br />

Trace BGP refresh packets<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 />

update<br />

Trace BGP update packets<br />

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

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

Tracing BGP Protocol Traffic | 477

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

Saved successfully!

Ooh no, something went wrong!