BGP Flashcards

1
Q

BGP ASN Ranges

test - test ack

A
  • 16-bit integers btwn 1-65535
  • 32-bit AS numbers created recently when 16-bit was full
  • 1-64495 - Public ASNs
  • 64496-64511 - reserved for documentation
  • 64512-65535 - Private ASNs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

BGP Traits

(5 points)

A

1) uses TCP 179
2) incremental, triggered updates
3) slow to converge
4) exchange network reachability info, called path vectors
5) advertises path of ASNs and the networks at the end of that path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

BGP Data Structures

(Table Names)

A

1) BGP Neighbor Table
2) BGP Table
3) IP Routing Table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

BGP Administrative Distance

A

1) EBGP AD = 20
2) IBGP AD = 200

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

BGP Message Types

A

1) Open
2) Keepalive
3) Update
4) Notification

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

BGP Open Message Contents

A

1) Version number - highest common version is used; most use BGPv4 now
2) AS Number - local router’s ASN. if it’s not what the peer expects, the BGP session is ended
3) Hold Time - time to wait between the successive keepalive and update msg from the sender. smaller hold time is accepted
4) BGP Router ID - 32-bit field that ID’s the sender. Determined the same way as in OSPF
5) Optional Parameters - Type, Length, Value (TLV) encoded.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

BGP Update Message Contents

A

1) Withdrawn routes
2) Path Attributes
3) Network Layer Reachability Information (NLRI)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

BGP Keepalive Messages

A
  • If the negotiated hold time is 0, then periodic keepalives aren’t sent
  • consists only of a message header
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

EBGP Neighbor Requirements

A

1) Different ASNs
2) Defined neighbors - a TCP session must be estabilished before starting BGP routing update exchanges
3) Reachability - by default, EBGP neighbors must be directly connected, and the IPs on that link must be reachable from each AS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

BGP Route Selection Process
(High level)

A

1) Highest weight attribute (local to router)
2) Highest local preference attribute (global with AS)
3) Route originated by the local router (next hop = 0.0.0.0)
4) Shortest AS Path (Least number of AS in AS-Path attribute)
5) Lowest Origin attribute (IGP < EGP < incomplete)
6) Lowest MED attribute (exchanged between AS’s)
7) EBGP path over an IBGP path
8) (IBGP route) the path through the closest IGP neighbor (best IGP metric)
9) (EBGP route) Oldest EBGP path (neighbor with the longest uptime)
10) Lowest neighbor BGP router ID
11) Lowest neighbor IP address (multiple paths to the same neighbor)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

BGP Path Attribute Types

A
  • Well-known Mandatory
  • Well-known Discretionary
  • Optional Transitive
  • Optional Non-Transitive
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

BGP Well-Known Mandatory Path Attributes

A
  • required to be present for every route in every update
  • Origin
  • AS-Path
  • Next-Hop
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

BGP Path Attribute - Origin

A

1) Well-Known Mandatory
2) set to “i” for IGP if injected with network command or via aggregation
3) set to “?” if injected with redistribution
4) “e” is deprecated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

BGP Path Attribute - AS-Path

A

1) Well-Known Mandatory
2) sequence of AS numbers through which the network is accessed
3) local AS number is prepended each time the route crosses an AS boundary
4) the AS that originally injected the route into BGP is found at the right-most end of the AS path
5) router chooses the path with the least number of AS hops
6) used to avoid loops - the route is ignored if the router sees its own AS in the AS Path

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

BGP Path Attribute - Next-Hop

A

1) Well-Known Mandatory
2) indicates the IP address of the next-hop router
3) each router modifies the next-hop attribute as the route passes through the network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

BGP Well-Known Discretionary Path Attributes

A
  • must be supported by device, but doesn’t have to be used
  • Local preference
  • Atomic aggregate
17
Q

BGP Path Attribute - Local Preference

A

1) Well-known Discretionary
2) used to achieve a consistent routing policy for exiting an AS
3) second most preferred criteria
4) higher value is preferred
5) used when two or more routers provide exit points
6) propagated throughout the AS, but stripped out of updates to EBGP sessions
7) default value of 100, which is applied to updates from external neighbors

18
Q

BGP Path Attribute - Atomic Aggregate

A

1) Well-known discretionary
2) attached to a route that is created as a result of route summarization; signals that info may have been lost when original entries were summarized

19
Q

BGP Optional Transitive Path Attributes

A

1) might not be recognized by the router, but are still propagated
2) if a router propagates an unknown transitive attribute, it sets an extra bit in the attribute to indicate at least one of the routers in the path didn’t understand
3) Aggregator
4) Community

20
Q

BGP Path Attribute - Aggregator

A

1) Optional Transitive
2) identifies the AS and the router within that AS that created a route summarization or aggregate

21
Q

BGP Path Attribute - Community

A

1) Optional Transitive
2) numerical value that can be used to tag certain routes and make decisions based on the tag

22
Q

BGP Optional Nontransitive Path Attributes

A

1) might not be recognized by the router, and only locally significant
2) Multi-Exit Discriminator

23
Q

BGP Path Attribute - Weight

A

1) first parameter that is analyzed in the path selection process
2) configured locally and not propagated
3) values range from 0 - 65535. defaults to 32768 if path originated locally, and other paths have 0 by default
4) higher weights are preferred
5) Cisco proprietary

24
Q

BGP Path Attribute - Multi-Exit Discriminator

A

1) Optional Non-Transitive
2) set to influence inbound traffic on multiple entry points from another AS
3) initially exchanged btwn EBGP peers, but the neighbor doesn’t propagate it to other AS’s
4) default is 0 and it resets when the update is passed to another AS
5) mostly considered as a tie-break but no guarantee it get used b/c it’s optional