High Availability · Topic 3 of 5

Graceful Restart

Learn graceful restart for the JN0-364: restarting and helper routers, GR configuration, GR with GRES, why GR and NSR conflict, and verification.

  • 5 min
In a nutshell
  • GR keeps forwarding during a routing process restart, with help from neighbor helpers.
  • Enable it with set routing-options graceful-restart; disable per protocol with graceful-restart disable.
  • Helper mode is enabled by default for most protocols; helper-disable turns it off for OSPF or IS-IS.

What it is

Graceful restart (GR) lets a router restart its routing process without its neighbors tearing down their routes. While the control plane restarts, the router keeps forwarding with the routes already in its forwarding table, and its neighbors, called helpers, keep sending traffic to it as if nothing happened.

GR is a cooperative feature. It only works if the neighbors support it and agree to help. It is the alternative to NSR for surviving a Routing Engine switchover, and it also covers a restart of the routing process on a router with only one Routing Engine.

Restarting routerkeeps forwardingtells neighborsHelperskeep routesrestart completesRoutes resynchronizedno outage

How it works

Roles

RoleWhat it does
Restarting routerSignals that it is restarting, keeps forwarding on its existing forwarding table, then relearns routes from its helpers
HelperKeeps the restarting router's routes and its adjacency, does not recalculate around it, and resends routing information when it returns

The helper waits for a limited time. If the restarting router does not come back in time, or the topology changes during the restart, the helper gives up and reconverges normally.

The sequence

  1. Before any failure, GR-capable routers tell each other they support GR, for example through the BGP graceful restart capability or OSPF and IS-IS restart signaling.
  2. The routing process on R1 restarts, for example after a Routing Engine switchover with GRES.
  3. R1's Packet Forwarding Engine keeps forwarding with the old forwarding table.
  4. R1 reestablishes its sessions and tells the neighbors it is restarting.
  5. The helpers keep forwarding to R1 and send it their routes again.
  6. R1 rebuilds its routing table, updates the forwarding table and leaves restart mode.
GRES switchoverrouting process restartsR1restart modehelpers resend routesR1tables rebuiltexitsNormal operation

Configuration

GR is enabled globally for all protocols that support it:

user@R1# set routing-options graceful-restart

Individual protocols can be excluded, for example:

user@R1# set protocols ospf graceful-restart disable

Helper mode is enabled by default for most protocols in Junos OS, so a neighbor can help even if it has no GR configuration of its own. To stop a router from acting as a helper for OSPF or IS-IS, use helper-disable under that protocol's graceful-restart statement.

The total time allowed for the restart can be changed with restart-duration under routing-options graceful-restart.

GR with GRES

On a router with two Routing Engines, GRES keeps the forwarding plane running at switchover, but the routing process starts again on the new primary. Adding GR lets the neighbors help that new routing process, so routes stay in place:

user@R1# set chassis redundancy graceful-switchover
user@R1# set system commit synchronize
user@R1# set routing-options graceful-restart

GRES and GR can be enabled together. GR and NSR cannot. NSR hides the switchover from the neighbors completely, while GR announces a restart and asks them for help, so Junos rejects a configuration that enables both.

GRES plus GRGRES plus NSR
Neighbors must support GRYesNo
Neighbors see a restartYes, they act as helpersNo
Allowed together with the otherGR and GRES: yesNSR and GR: no

Monitoring

CommandWhat to look for
show ospf overviewRestart settings and whether helper mode is enabled
show isis overviewRestart settings for IS-IS
show bgp neighbor 192.168.0.2Whether the peer negotiated graceful restart and its restart time
show route summaryRoutes stay in place during a restart
Exam tip

For BGP, GR only works if both peers advertised the graceful restart capability when the session came up. Check the neighbor output before relying on it, and remember that changing GR settings on a BGP group resets the session.

Troubleshooting checklist

SymptomLikely cause
Routes drop during a restart despite GRNeighbor does not support GR or has helper mode disabled
Commit fails after adding GRNSR is already configured
GR ends early and the network reconvergesTopology changed during the restart, or the restart took longer than allowed
BGP peers reset at switchoverGR capability not negotiated with that peer

Common mistakes

Thinking GR works on its own. GR depends on helpers. If neighbors do not support it, routes are withdrawn as usual.

Combining GR with NSR. They cannot be enabled together. Use one or the other.

Confusing GR with GRES. GRES is a chassis feature that keeps forwarding through a Routing Engine switchover. GR is a protocol feature that asks neighbors to keep routes during a routing process restart.

Expecting GR to survive topology changes. A change during the restart makes helpers end GR and reconverge.

Watch out

Helper mode is on by default, so a router with no graceful-restart statement can still help its neighbors. Do not read "no GR configured" as "cannot help".

What to remember for the exam

  • GR keeps forwarding during a routing process restart, with help from neighbor helpers.
  • Enable it with set routing-options graceful-restart; disable per protocol with graceful-restart disable.
  • Helper mode is enabled by default for most protocols; helper-disable turns it off for OSPF or IS-IS.
  • GR and GRES can run together; GR and NSR cannot.
  • A topology change during the restart ends GR.
  • Check with show ospf overview, show isis overview and show bgp neighbor.

Check yourself

  • A router with GRES and GR switches Routing Engines. What do its neighbors do?

    They act as helpers, keep its routes and keep forwarding to it while its routing process restarts.

  • Can you configure routing-options graceful-restart and routing-options nonstop-routing together?

    No. GR and NSR cannot be enabled together, so the commit fails.

  • A neighbor has no graceful restart configuration. Can it still act as a helper?

    Yes, in most protocols, because helper mode is enabled by default in Junos OS.

Topic 3 of 5 in High Availability

Test yourself on High Availability

The full Juniper JNCIS-SP JN0-364 question bank has 860 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Juniper. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.