BGP States Flashcards

1
Q

What are the BGP states?

A
  • Idle
  • Connect
  • Active
  • OpenSent
  • OpenConfirm
  • Established
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What 6 things happen in the IDLE state?

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What 4 things happen in the CONNECT state?

A
  • Waiting for TCP connection to complete
  • Once 3WHS succeeds ConnectRetry timer cleared
  • Sends Open message to neighbor
  • Transitions to OpenSent state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What 5 things happen in a successful ACTIVE state?

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  • What 8 things happen in the OpenSent state?
A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What 2 things happen in the OpenConfirm state?

A
  • BGP waits for a keepalive message
  • Transitions to Established state when Keepalive message is received
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What 3 things happen in the Established state

A
  • BGP connection is fully established
  • BGP peers exchange Update and Keepalive messages
  • Hold timer is reset when Update or Keepalive messages are received
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Connect State: what 3 things happen if the tcp connection initialized by the local host fails?

A
  • Local host continues to wait for its peer to establish a TCP connection
  • Then resets ConnectRetry timer
  • Transitions to Active state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Connect State: what 4 things happen if the ConnectRetry timer expires?

A
  • Remains in Connect state
  • Resets ConnectRetry timer
  • Another TCP session is attempted
  • Any other input event causes transition to IDLE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Active State: what 3 things happen if the ConnectRetry timer expires while in Active State?

A
  • BGP transitions back to Connect State
  • Resets ConnectRetry timer
  • TCP connection is tried again in Connect State
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Active State: what 4 things happen if while in Active State the neighbor attempts to connect from an unexpected IP address?

A
  • ConnectRetry timer is reset
  • Connection is refused
  • Local process remains in Active State
  • Any other input event transitions to IDLE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

OpenSent State: what 2 things happen if errors exist in the Open message received from the peer?

A
  • Notification message sent
  • State transitions to IDLE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

OpenSent State: what 4 things happen if a TCP disconnect is received?

A
  • Local host closes the BGP connection
  • Resets ConnectRetry timer
  • Begins listening for TCP connection from peer
  • Transitions to Active State
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

OpenConfirm State: what 4 things happen if no Keep-alive is heard from the neighbor?

A
  • Local host waits for Hold timer to expire
  • Notification sent to neighbor
  • BGP connection closed
  • Transitions to IDLE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly