BGP Flashcards

(67 cards)

1
Q

What is BGP

A

BGP is a dynamic routing protocol that exchanges routes based on a variety of attributes. It is an EGP. Its purpose is to route different AS’s together.

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

Why does BGP not advertise incremental updates or refresh network advertisements

A

BGP prefers stability and was designed for neighbours not to change very often. if there was a link flap it would cause recomputation of thousands of routes which would be chaotic.

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

What is a BGP AS

A

The autonomous system (AS) within BGP is a collection of network devices under the same network administration. there are 4,294,967,295 ASNs are available.

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

What is a private BGP AS and what are the range

A

A private BGP AS is an AS that is not routable on the internet, similar to private addresses.

64,512 - 65,535
4,200,000,000 - 4,294,967,294

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

Who provides the AS to a company and what should you do if you can’t get one

A

IANA provides the AS, if they can’t provide one use the same one as your ISP.

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

What would happen if you use another companies AS on the internet

A

It would cause packet loss and cause chaos on the internet.

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

What is a BGP path attribute (PA)

A

BGP PA’s are associated with each route path, they allow BGP with more control and granularity.

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

What are the different types of BGP PA’s

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
9
Q

What is: well known mandatory PA

A

a PA that is recognised by all BGP implementations and is required for BGP to work.

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

What is: well known discretionary PA

A

A PA that may or may not be included in BGP process.

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

What is a optional PA and what is the difference between transitive and non-transitive

A

Optional PA’s are optional in the BGP implementation.

Transitive PA’s stay with the NLRI from AS to AS. Non-transitive are dropped between AS’s.

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

What is NLRI

A

Network Layer Reachability Information: Is the BGP routing update that specifies:

Network prefix
prefix length
Any PA’s

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

How does BGP prevent loops

A

BGP uses a well known mandatory PA called PA_Path this records all AS numbers the route passes through.

When a BGP router receives a NLRI routing update with their own AS number already listed within the PA_Path the router knows that this is in a loop and therefore drops the packet.

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

What is multi-protocol BGP

A

MP BGP adds granularity to the NLRI to define an address family and a sub address family.

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

What is an AF and SAF in BGP

A

AFI: address family is IPv4/IPv6

SAFI: sub AF unicast or multicast traffic

Each AF + SAF has its own configuration and respective database.

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

BGP uses hello packets to discover neighbours dynamically.

True or False

A

False - BGP can not discover neighbours dynamically it uses IP addresses to define neighbours.

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

What port does BGP use and does it use TCP/UDP mechanism

A

TCP port 179.

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

BGP neighbours connected to the same network use ARP tables to ID IP addresses.

True or False

A

True.

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

What is multi-hop BGP

A

Forming a neighbour relationship with a BGP router more than 1 hop away.

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

What is the requirement for multi-hop BGP to work

A

There must be a route installed in the RIB to the remote BGP router.

Either statically or dynamically.

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

What are the 2 BGP session types

A

iBGP - internal BGP neighbours established within the same AS (AD200)

eBGP - External BGP, neighbours established within different AS (AD20)

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

What is the use for iBGP

A

When transit connectivity is required within an organisation between ISPs etc.. also with multiple routing policies are used.

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

What is transit connectivity

A

When all BGP routers in the AS allow inbound traffic on the one side of the AS and output on the other side of the network.

Best case is full neighbour relationships making it a full-mesh.

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

What is eBGP used for

A

Connectivity between AS’s. Most commonly used to exchange routes on the internet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the difference in TTL between iBGP and eBGP
iBGP - TTL default is 255 (to allow multi hop) eBGP - TTL is 1 by default
26
How many message types does BGP use to communicate and what are they
1. OPEN 2. UPDATE 3. NOTIFICATION 4. KEEPALIVE
27
What is the purpose of each BGP message type
OPEN - Establishes neighbour adjacencies. UPDATE - Advertises, updates and withdraws routes from RIB. NOTIFICATION - indicates an error to BGP neighbour. KEEPALIVE - used to maintain neighbour adjacency. default every 60 seconds.
28
What is the Hold timer used for
BGP uses the hold timer to maintain the adjacencies if the timer reaches zero the route is removed. default value 180 seconds. resets from receiving a KEEPALIVE or NOTIFICATION.
29
what is the BGP ID
It is used as a identifier in BGP process it is either assigned statically or dynamically (same process as OSPF).
30
BGP uses a TCP session to form a relationship with a peer. What are the states of the session.
Idle - Listening for BGP sessions to initiate. Connect - 3 way hand shakes is initiating, peer with higher IP manages session. if success - moved to open sent. Active - if the connect retry timer reaches zero before handshake complete states moves to active then idle to restart. Open Sent - Open message has been sent and waiting for Open message from peer. Open Confirm - on receipt of a KEEPALIVE or NOTFICATION. KEEPALIVE > Established if NOTIFICATION > Idle. Established - BGP TCP session established, routes exchanged via UPDATE message.
31
How to configure basic BGP
1. initialise BGP process router bgp 65000 2. Under bgp process form neighbours neighbour 10.1.1.1 remote-as 65100 3. Activate AF (IPv4 unicast is up by default) address family IPv4 neighbour 10.1.1.1 activate 4. advertise routes to BGP process under AF network 192.168.1.0 mask 255.255.255.0
32
What are the different BGP tables
Loc-RIB table- contains all NLRI following validity check Adj-RIB-IN - contains NLRI before it is processed by routing polices Adj-RIB-OUT- contains all NLRI after it has been processed by routing polices.
33
What command is used to view BGP table and BGP routes
show bgp [afi] [safi] show ip bgp route
34
Which routes from the Loc-RIB are installed into the global RIB
the best paths.
35
What is the warning with redistributing routes in BGP
Be careful when redistributing internet BGP routes into IGP as there is millions of routes and this could cause chaos and damage to resources.
36
What is the benefit of summarising routes in BGP
Conserves resources and improves path calculation as the size of the routing tables are significantly smaller with summarisation.
37
What is the 2 ways to configure BGP summarisation
Static - static route to null0 interface and summary prefix advertised. dynamic - use a aggregate network prefix that summarises the networks.
38
What is the command and optional PAs for configuring BGP summarisation
under the AF: aggregate-address 10.10.10.0 mask 255.255.254.0 [summary-only][as-set]
39
What does the summary-only PA do
suppresses the prefixes within the summary prefix from been shown in the routing table. The prefixes are still available to view in the BGP table (Loc-RIB).
40
What does the AS_SET PA do
Used to keep the AS path history for the aggregate history
41
IPv6 BGP configuration is the same as IPv4, with the exception of a different address family True or False.
True
42
What is BGP multihoming
It is a method of providing resilience in BGP sessions.
43
What is the most resilient method of bgp multihoming
2 BGP router connected via iBGP, which are connected to 2 separate SP routers via eBGP
44
What is internet transit routing
When an enterprise connects to 2 different service providers it runs the risk of there AS becoming a transit connecting for internet traffic.
45
How do you avoid internet transit routing
Apply outbound BGP route policy that only allows for local BGP routes to be advertised to other AS's.
46
What is symmetric and asymmetric traffic flow?
symmetric: traffic flows the same path in both directions asymmetric: traffic flows in different routes on the out and in directions.
47
What is branch transit routing and what is the issue with it
When a link failure occurs and instead of the traffic flowing from router to MPLS SP router the traffic traverses another MPLS branch router then to the MPLS SP. this causes extra usage on the branch router.
48
What is conditional matching in BGP
Is a method of matching network prefixes
49
ACLs react differently when matching against IGP compared to BGP. True or False
True.
50
What is prefix matching
It allows the selection of multiple networks with a variety of prefix lengths that can be specified.
51
192.168.0.0/16 ge 24 the following prefix's do or don't match: 1. 192.168.0.0/16 2. 192.168.7.0/24 3. 192.168.4.0/26
1. No match 2. Match 3. Match
52
in prefix matching what does (le) and (ge) refer to
less than equal to greater than equal to
53
what is a prefix list
Contains multiple prefix matching statements with either a permit or deny
54
What is the sequence increment default value for a prefix list
5
55
the logic for IPv6 prefix lists are the same as Ipv4 prefix lists. True or False
True
56
What is regex commonly used for with regards to BGP
Parse through BGP tables
57
What is the regex expression for: Local originating routes only routes from neighbour AS200
^$ permit ^200_
58
What is a route map and what is the benefit of route maps over ACLs
Can filter networks similar to ACLs. As well as that they can add/modify/remove network attributes to influence routing path decisions.
59
What is the components of a route map
Sequence number - incremented by 10 Conditional matching criteria permit or deny - default is permit optional action - allows for addition/modification/removal of characteristics
60
in a route map following a permit statement with multiple match statements what happens if both statements are not matched
it is not permitted as both need to match
61
What are the 2 methods of clearing a BGP connection
Hard reset - tears down BGP session, this removes the BGP routes from the peer and is the most disruptive. Soft reset - invalidates the BGP cache and requests a full advertisement from its BGP peer.
62
What is the purpose of BGP communities
provides additional capability for tagging/modifying GP routing polices on upstream and downstream routers.
63
BGP communities are optional non transitive PA True or False
False BGP communities are an optional transitive PA
64
What are the 3 well known BGP communities
Internet - standard community for identifying routes that should be advertised to the internet. No advertise - routes should not be advertised to the internet. No export - iBGP peers only.
65
Are BGP communities advertised by default
No
66
what does the additive keyword do in BGP community config
prevents overwriting of the BGP community
67
After the longest prefix match and AD of the routing protocol what does BGP prefer for install a route.
1. Weight 2. Local preference 3. Local originated 4. AIGP 5. Shortest AS_Path 6. Origin type 7. Lowest MED 8. eBGP over iBGP 9. Lowest IGP next hop address 10. if both eBGP use oldest neighbour 11. Route that comes from BGP peer with lowest RID 12. minimum cluster list length 13. neighbour with lowest address.