Question: how bgp graceful restart works?
Answer: Usually, when BGP on a router restarts, all the BGP peers detect that the session went down and then came up. ... A new BGP capability, termed "Graceful Restart Capability", is defined that would allow a BGP speaker to express its ability to preserve forwarding state during BGP restart.