11. BGP Flashcards
What is a BGP session?
An esthablished adjacency between 2 BGP routers
What are the 2 types of BGP sessions?
- iBGP (in the same ASN)
- eBGP (not in the same ASN)
What are the 4 BP path attributes (PAs)?
- Well-known mandatory
- Well-known discretionary
- Optional transative
- Optional non-transative
What is the difference between well-known and optional PAs?
Well-known PAs need to be recognized by all BGP implementations
What is the difference between well-known mandatory and discretionary?
Mandatory must be included in every prefix advertisement, discretionary may of may not
What is the difference between transative and non-transative PAs?
Transative stay with the route advertisement. Non-transative cannot be shared from AS to AS.
What is the Network Layer Reachability Information?
The NLRI is the routing update that consists of:
- The network prefix
- Prefix length
- Any BGP PAs for that specific route
What type of routing protocol is BGP?
A path vector, but behaves as a distance vector.
What is the AS_path attribute?
A well-know mandatory that prevents routing loops. If a router receives an advertisement with his AS, it discards
What is AFI?
Address family identifier, it correlates to a specific network protocol
What is SAFI?
Subsequent address family identifier, such as unicast or multicast
What is the MP_REACH_NRLI?
A multiprotocol attribute to allow advertisement of various protocols
What is the MP_UNREACH_NRLI?
Used to withdraw routes or removing them from advertisement
What is the BGP port number?
179
Can BGP run over multiple hops?
Yes, but an underlaying route is needed for this. This can be static or via a routing protocol.
How do BGP neighbors connect?
They use the ARP table, or routing table for Multi-hop
What are the 4 BGP messages?
- Open
- Update
- Notification
- Keepalive
What is in the open message?
- BGP version
- ASN
- Hold time
- BGP identifier (RID)
What is the hold time attribute?
It sets the hold timer. Upon receipt of an update or keepalive the timer will resets. If the timer reaches 0 the session will be torn down.
What is the default hold time?
180 seconds, must be at least 3
What is the BGP identifier?
The RID which must be higher than 0
What is in the keepalive message?
Messages that are exchanged every 1/3 between peers. Can be turned of by placing the hold timer on 0. KEEPALIVE is also used as ACK.
What is in the update message?
The NLRI, routing updates etc
What is the finite-state machine?
FSM is used to maintain a table of all BGP peers and their status.
What are the 6 BGP states?
- 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