BGP Session Lifecycle
The finite state machine governing every BGP peering session. Understand why 'Active' means the session is failing, how hold timers create silent blackholes, and what happens when a BGP peer goes down.
What you'll explore
- 01
FSM States
The six states of a BGP session. Each has specific events that cause transitions.
- 02
OPEN Message Exchange
AS number, hold time, BGP identifier, optional capabilities.
- 03
KEEPALIVE & Hold Timer
The heartbeat mechanism that detects peer failure — and creates blackholes.
- 04
UPDATE Message
How prefixes are advertised and withdrawn.
- 05
Session Failure & Recovery
What happens when a peer goes down.
Validated against FRRouting frr-10.6.1 — bgpd/bgp_fsm.c and friends. Every simulated behavior cites a real source function.
The simulator is free. Unlock the full kata library, progress tracking, and weak-area analysis with zerohop Pro.