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.

stops running or a network link goes down but is something you might be able to<br />

respond to and repair quickly. When this happens, the routing protocols stop sending<br />

keepalive messages to their neighbors. After a short while (the actual time<br />

depends on the protocol and how it’s configured), the neighbor will declare that the<br />

local router is down and, because the network topology has changed, will start calculating<br />

new paths to network destinations. This recalculation floods a lot of protocol<br />

traffic, which can disrupt the operation of the network. If you know that the downtime<br />

for the routing protocols will generally be brief, you really don’t want the routing<br />

protocols to recalculate paths, only to recalculate them again once the routing<br />

protocols are back up.<br />

Graceful restart is a way to hide the fact that a routing protocol has restarted and<br />

thus prevent path recalculations. With graceful restart, if the router or routing protocol<br />

has to restart, it informs its adjacent neighbors and requests a grace period from<br />

them. During this grace period, the neighbor acts as a helper, masking the fact that<br />

the local router is down. The restarting router continues to forward traffic during the<br />

restart period, and convergence in the network is not disrupted. The restart is not<br />

visible to the portion of the network that is not communicating directly with the<br />

local router. The neighboring routers are aware of the restart. Also, the restarting<br />

router is not removed from the network topology. Because the network’s topology is<br />

“frozen” during the restart period, you should use graceful restart only when you<br />

know that your topology is stable.<br />

You turn on graceful restart globally, as shown in this recipe. You generally leave<br />

graceful restart running all the time in case of an unplanned failure. The global configuration<br />

applies to all routing protocols, including BGP, IS-IS, OSPF, PIM SM, RIP,<br />

and RIPng, and to all MPLS-related protocols, including RSVP, LDP, CCC, and TCC.<br />

Configuring graceful restart is just a request. The JUNOS software honors the request<br />

only when the network topology is stable and the neighboring routers cooperate.<br />

Now you see that graceful restart settings are different for the different protocols. For<br />

BGP, use the show bgp neighbor command:<br />

aviva@RouterG> show bgp neighbor 10.0.0.2<br />

Peer: 10.0.0.2+2098 AS 64555 Local: 10.0.0.1+179 AS 64550<br />

Type: External State: Established Flags: <br />

Last State: OpenConfirm Last Event: RecvKeepAlive<br />

Last Error: None<br />

Options: <br />

Holdtime: 90 Preference: 170<br />

Number of flaps: 1<br />

Error: 'Cease' Sent: 0 Recv: 1<br />

Peer ID: 10.0.0.1 Local ID: 192.168.19.1 Active Holdtime: 90<br />

Keepalive Interval: 30 Peer index: 0<br />

Local Interface: fe-1/0/1.0<br />

NLRI for restart configured on peer: inet-unicast<br />

NLRI advertised by peer: inet-unicast<br />

NLRI for this session: inet-unicast<br />

278 | Chapter 8: IP Routing<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!