11. BGP Message and FSM Flashcards
What are the BGP message types?
- Open
- Keepalive
- Update
- Route Refresh
- Notification
What is special about the route refresh message?
The route refresh message is when a soft reset occurs
What does setting the KEEPALIVE interval to 0 represent?
Keepalives are never sent
What is the default keepalive interval for BGP?
60 seconds
In which BGP message type would you find the NLRI and path attributes?
UPDATE
What are the stages FSM of BGP?
- Idle
- Connect
- Active
- OpenSent
- OpenConfirm
- Established
What happens in the Idle stage?
BGP detects a start event, tries to initiate a TCP connection, and listens for a new connection from another peer
What happens if an error causes BGP to go back to the Idle state for the second time?
The ConnectRetry timers is set to 60 seconds and must decrement to 0 before a new connection can be initiated. Further errors wil double the timer in legnth of the previous one
What happens in the Connect stage?
BGP initiates the connection. If the three-way handshake completes, the ConnectRetry timer resets, an OPEN message will be send to the neighbor. The status will be changed to OpenSent
What happens if the ConnectRetry timer depletes before the Connect stage has completed?
A new TCP connection is attempted, the ConnectRetry timer is reset and the state is set to Active. The neighbor with the higher IP manages the connection
What happens in the Active stage?
BGP start a new three-way handshake,. If succesful an OPEN message is send, the hold timer placed 4 minutes and the status changed to OpenSent.
What happens if the connection attempt fails in the Active state?
The state moves back to Connect and the ConnectRetry timer is reset
What happens in the OpenSent stage?
The router will wait for an open message and will compare:
- BGP version
- Source IP
- AS
- RID
- Security parameters
The hold timer is negotiated (lower wins) and a KEEPALIVE is send (if not set to 0). The state if moved to OpenConfirm
What happens when an error is found in the OPEN message during the OpenSent stage?
A notification message is sent, and the state is moved back to Idle
What happens when TCP receives a disconnect message in the OpenSent state?
BGP closes the connection and goes back to Active