BGP States Flashcards
What are the BGP states?
- Idle
- Connect
- Active
- OpenSent
- OpenConfirm
- Established
What 6 things happen in the IDLE state?
- Start event detected
- Initializes all BGP resources
- Starts ConnectRetry timer
- Initializes TCP connection to the neighbor
- Listens for TCP connection from neighbor
- Transitions to Connect state
What 4 things happen in the CONNECT state?
- Waiting for TCP connection to complete
- Once 3WHS succeeds ConnectRetry timer cleared
- Sends Open message to neighbor
- Transitions to OpenSent state
What 5 things happen in a successful ACTIVE state?
- BGP tries to initiate TCP connection to neighbor
- BGP clears the ConnectRetry timer when TCP connection suceeds
- BGP completes initialization
- Sends OPEN message to neighbor
- Transitions to OpenSent state
- What 8 things happen in the OpenSent state?
- Open message has been sent to neighbor
- Waiting to hear Open message from neighbor
- When Open message is received all fields are checked
- Keepalive message is sent
- Keepalive timer is set
- Hold time is negotiated
- Peer connection determined to be iBGP or eBGP
- Transitions to OpenConfirm state
What 2 things happen in the OpenConfirm state?
- BGP waits for a keepalive message
- Transitions to Established state when Keepalive message is received
What 3 things happen in the Established state
- BGP connection is fully established
- BGP peers exchange Update and Keepalive messages
- Hold timer is reset when Update or Keepalive messages are received
Connect State: what 3 things happen if the tcp connection initialized by the local host fails?
- Local host continues to wait for its peer to establish a TCP connection
- Then resets ConnectRetry timer
- Transitions to Active state
Connect State: what 4 things happen if the ConnectRetry timer expires?
- Remains in Connect state
- Resets ConnectRetry timer
- Another TCP session is attempted
- Any other input event causes transition to IDLE
Active State: what 3 things happen if the ConnectRetry timer expires while in Active State?
- BGP transitions back to Connect State
- Resets ConnectRetry timer
- TCP connection is tried again in Connect State
Active State: what 4 things happen if while in Active State the neighbor attempts to connect from an unexpected IP address?
- ConnectRetry timer is reset
- Connection is refused
- Local process remains in Active State
- Any other input event transitions to IDLE
OpenSent State: what 2 things happen if errors exist in the Open message received from the peer?
- Notification message sent
- State transitions to IDLE
OpenSent State: what 4 things happen if a TCP disconnect is received?
- Local host closes the BGP connection
- Resets ConnectRetry timer
- Begins listening for TCP connection from peer
- Transitions to Active State
OpenConfirm State: what 4 things happen if no Keep-alive is heard from the neighbor?
- Local host waits for Hold timer to expire
- Notification sent to neighbor
- BGP connection closed
- Transitions to IDLE