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
- GR keeps forwarding during a routing process restart, with help from neighbor helpers.
- Enable it with
set routing-options graceful-restart; disable per protocol withgraceful-restart disable. - Helper mode is enabled by default for most protocols;
helper-disableturns 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.
How it works
Roles
| Role | What it does |
|---|---|
| Restarting router | Signals that it is restarting, keeps forwarding on its existing forwarding table, then relearns routes from its helpers |
| Helper | Keeps 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
- 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.
- The routing process on R1 restarts, for example after a Routing Engine switchover with GRES.
- R1's Packet Forwarding Engine keeps forwarding with the old forwarding table.
- R1 reestablishes its sessions and tells the neighbors it is restarting.
- The helpers keep forwarding to R1 and send it their routes again.
- R1 rebuilds its routing table, updates the forwarding table and leaves restart mode.
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 GR | GRES plus NSR | |
|---|---|---|
| Neighbors must support GR | Yes | No |
| Neighbors see a restart | Yes, they act as helpers | No |
| Allowed together with the other | GR and GRES: yes | NSR and GR: no |
Monitoring
| Command | What to look for |
|---|---|
show ospf overview | Restart settings and whether helper mode is enabled |
show isis overview | Restart settings for IS-IS |
show bgp neighbor 192.168.0.2 | Whether the peer negotiated graceful restart and its restart time |
show route summary | Routes stay in place during a restart |
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
| Symptom | Likely cause |
|---|---|
| Routes drop during a restart despite GR | Neighbor does not support GR or has helper mode disabled |
| Commit fails after adding GR | NSR is already configured |
| GR ends early and the network reconverges | Topology changed during the restart, or the restart took longer than allowed |
| BGP peers reset at switchover | GR 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.
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 withgraceful-restart disable. - Helper mode is enabled by default for most protocols;
helper-disableturns 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 overviewandshow 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-restartandrouting-options nonstop-routingtogether?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.