Overview
Explains BGP persistence and its role in network resiliency, outlines operational flows, delivers recommendations for enhancing stability, and provides instructions to configure BGP persistence.
BGP persistence mechanism is a routing feature that
-
allow you to retain BGP routes learned from a configured neighbor
-
keep those routes active even if the BGP session with that neighbor goes down, and
-
help you maintain network stability during transient neighbor outages.
BGP persistence, also known as Long-Lived Graceful Restart (LLGR), is a feature that enables a local router to retain BGP routes learned from a configured neighbor, even if the BGP session with that neighbor goes down. This capability helps maintain network stability by preventing unnecessary route withdrawals during transient neighbor outages.
Key characteristics of BGP Persistence routes include:
-
Duration: LLGR can remain in effect for a significantly longer period than standard Graceful Restart (GR).
-
Route Preference: LLGR stale routes are assigned the lowest preference during the BGP bestpath computation, ensuring that fresh, active routes are always preferred.
-
Advertisement: If an LLGR stale route is selected as the best path, it is advertised with the
LLGR_STALEcommunity (65535:6) attached. These routes are not advertised to neighbors that do not support LLGR. -
Resilience: LLGR stale routes are not deleted if the forwarding path to the neighbor is detected as down, nor are they deleted if the BGP session to the neighbor experiences multiple flaps, even if the neighbor does not re-advertise the route.
-
Exclusion: Any route explicitly tagged with the
NO_LLGRcommunity (65535:7) will not be retained by the BGP persistence mechanism.
By using BGP persistence, you reduce the impact of transient BGP session outages on your network, which can be especially useful in large or dynamic environments.