-
Notifications
You must be signed in to change notification settings - Fork 2
bgp gr
Pre-Alpha. This page describes behavior that may change.
Graceful Restart (RFC 4724) and Long-Lived Graceful Restart (RFC 9494) state machine.
Resilience.
plugin {
external gr { run "ze plugin bgp-gr"; encoder json; }
external rib { run "ze plugin bgp-rib"; encoder json; }
}
bgp {
peer upstream {
capability {
graceful-restart {
restart-time 120;
long-lived-stale-time 3600;
}
}
process gr { receive [ state eor ] }
process rib { receive [ state ]; send [ update ] }
}
}
Full reference on the Graceful Restart configuration page.
When a peer session drops, the plugin sends retain-routes to the RIB, which marks the routes stale. It starts a restart timer of restart-time seconds. When the peer reconnects, fresh routes replace the stale ones and purge-stale removes what did not come back. If the timer expires without a reconnect, every stale route is purged (with a 5-second safety margin).
When long-lived-stale-time is configured, the LLGR flow kicks in after the GR window expires. Stale routes get the LLGR_STALE community and stale level 2 (deprioritised in best-path selection). Routes with NO_LLGR are deleted on entry. The LLST timer is per family.
- Depends on
bgp-ribfor the stale route handling. The engine startsbgp-ribfirst. -
bgp-persistcombines with this plugin to provide persist-across-restart for binary upgrades. - The RIB has its own timeout as a fail-safe: stale routes are expired at
restart-time + 5seven if the plugin never issuespurge-stale.
main/internal/component/bgp/plugins/gr/
Unreviewed draft. This wiki was authored in bulk and has not been reviewed. File corrections on the issue tracker.
- Overview
- YANG Model
- Editor Workflow
- Archive and Rollback
- System
- Interfaces
- VRRP
- BFD
- FIB
- OSPF
- IS-IS
- MPLS / LDP / RSVP-TE
- RSVP-TE
- SRv6
- Static Routes
- Policy Routing
- Firewall
- Traffic Control
- Class of Service
- L2TP/PPP
- PPPoE
- VPP Data Plane
- RPKI
- IPsec VPN
- TACACS+ AAA
- RADIUS AAA
- AS112 DNS
- Authorization
- Fleet
- BGP
- Starting and Stopping
- Show Commands
- Monitoring
- Flow Export
- DDoS Mitigation
- Anomaly Detection
- Health Checks
- Audit Trail
- Production Diagnostics
- Logging
- Operational Reports
- Healthcheck
- Self-Update
- Zero-Touch Provisioning
- MRT Analysis
- Upgrade and Restart
- Storage
- Policy
- Core
- Resilience
- Validation
- Capabilities
- Address Families
- Protocol
- Subsystems
- Infrastructure
- Route Server at an IXP
- Transit Edge with RPKI
- Public Looking Glass
- ExaBGP Migration Walkthrough
- FlowSpec Injection
- Chaos-Tested Peering
- AS Path Topology