BGP Flashcards

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/155

flashcard set

Earn XP

Description and Tags

Flashcards generated from lecture notes on Border Gateway Protocol (BGP) to help review key concepts and prepare for the exam.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

156 Terms

1
New cards

What is Border Gateway Protocol (BGP)?

A standardized exterior gateway protocol designed to exchange routing and reachability information among autonomous systems (AS) on the Internet.

2
New cards

How is BGP classified as a routing protocol?

Path-vector routing protocol.

3
New cards

How does BGP make routing decisions?

Routing decisions based on paths, network policies, or rule-sets configured by a network administrator.

4
New cards

What is BGP used for routing within an autonomous system called?

Interior Border Gateway Protocol (IBGP).

5
New cards

What is the Internet application of the BGP protocol called?

Exterior Border Gateway Protocol (EBGP).

6
New cards

When was the Border Gateway Protocol sketched out?

1989.

7
New cards

In which RFC was BGP first described?

RFC 1105.

8
New cards

When has BGP been in use on the Internet since?

1994.

9
New cards

In which RFC was IPv6 BGP first defined?

RFC 1654.

10
New cards

In which RFC was IPv6 BGP improved?

RFC 2283.

11
New cards

What is the current version of BGP?

Version 4 (BGP4).

12
New cards

In which RFC was BGP4 first published?

RFC 1654.

13
New cards

In which RFC was BGP4 subsequently updated in 1995?

RFC 1771.

14
New cards

In which RFC was BGP4 subsequently updated in 2006?

RFC 4271.

15
New cards

What was the major enhancement of BGP4?

Support for Classless Inter-Domain Routing (CIDR) and use of route aggregation to decrease the size of routing tables.

16
New cards

What is RFC 4271 called which allows BGP4 to carry a wide range of IPv4 and IPv6 address families?

Multiprotocol Extensions or Multiprotocol BGP (MP-BGP).

17
New cards

What are BGP neighbors called?

Peers.

18
New cards

How are BGP neighbors established?

Manual configuration among routers.

19
New cards

What type of session and port do BGP neighbors create?

TCP session on port 179.

20
New cards

What does a BGP speaker send to maintain the connection between neighbors?

19-byte keep-alive messages every 30 seconds.

21
New cards

What transport protocol does BGP use?

TCP.

22
New cards

What is it called when BGP runs between two peers in the same autonomous system (AS)?

Internal BGP (iBGP or Interior Border Gateway Protocol).

23
New cards

What is it called when BGP runs between different autonomous systems?

External BGP (eBGP or Exterior Border Gateway Protocol).

24
New cards

What are routers on the boundary of one AS exchanging information with another AS called?

Border or edge routers or simply eBGP peers.

25
New cards

How are new routes learned from an eBGP peer propagated by default?

New routes learned from an eBGP peer are re-advertised to all iBGP and eBGP peers.

26
New cards

How are new routes learned from an iBGP peer propagated by default?

New routes learned from an iBGP peer are re-advertised to all eBGP peers only.

27
New cards

How can route propagation be controlled in detail?

Route-maps mechanism.

28
New cards

What action could be taken by the route-maps mechanism?

Drop the route, or modify some attributes of the route before inserting it in the routing table.

29
New cards

What uniquely identifies a network under a single technical administration that has a unique routing policy, or is multi-homed to the public internet?

An Autonomous System Number (AS number or just ASN).

30
New cards

By whom are Autonomous System Numbers assigned?

IANA.

31
New cards

When is an autonomous system number required?

If you are to run BGP and peer with your internet service provider and between internet service providers at peering points and Internet Exchanges (IX).

32
New cards

What does BGP use to determine the shortest path to a destination where a prefix is located?

Prefixes and Autonomous System Paths (AS Paths).

33
New cards

What are the two types of Autonomous System Numbers (ASN)?

16-bit and 32-bit.

34
New cards

The ASN field was extended the field from how many bits to how many bits?

16 to 32 bits.

35
New cards

What are the two types of ASN?

Public and private.

36
New cards

What is a public ASN?

Globally unique and may be announced on the global Internet to your ISP or at an internet exchange point (peering point) via BGP.

37
New cards

What is a private ASN?

Should not be seen on the global Internet (they shouldn't be announced via your exterior gateway routing protocol).

38
New cards

Private AS numbers are used by ISP's who use what?

Using BGP confederations or in private networks

39
New cards

Most ISPs utilize what to reject routes that contain private ASNs?

Route filters.

40
New cards

An AS-number must be obtained (leased) from where?

One of the Regional Internet Registries (RIR's) [ARIN, LACNIC, RIPE NCC, AFRINIC, APNIC].

41
New cards

Which registry you obtain your AS number from is based upon what?

Where in the world your network resides physically, or where your organization is headquartered, and where will be connecting.

42
New cards

ASN's are usually provided for which type of fee?

Container fee.

43
New cards

You will need to use an online registration page, or the downloadable form commonly called what to request your AS number (ASN)?

The ASN template.

44
New cards

What is one thing you will need to demonstrate to get an ASN?

That you have a connection to more than one ISP (or will in the next 30 days). This is called being 'multi-homed'.

45
New cards

What will you be asked to specify regarding your ISP to get an ASN?

You will be asked to specify the exterior routing protocol used to communicate with your ISP (this is exclusively BGP today).

46
New cards

To get an ASN You must demonstrate a need to utilize BGP with what?

You must demonstrate a need to utilize BGP with an organizationally unique route policy OR be multi-homed.

47
New cards

What is Internal Border Gateway Protocol (iBGP)?

Routing protocol used on the internet for exchanging routing information between two or more routers within an autonomous system (AS).

48
New cards

iBGP is used to do what?

Propagate routes within a single AS.

49
New cards

What is the purpose of iBGP?

Facilitate communication between multiple routers within an AS.

50
New cards

What is one of the primary functions of iBGP?

Exchange routing information between different routers in the same AS.

51
New cards

What is another function of iBGP?

Provide information to other BGP routers about available routes within the AS.

52
New cards

What does iBGP ensure for routers in the AS?

Ensure all routers in the AS have consistent routing information to make decisions about which paths to take when forwarding packets.

53
New cards

What type of capabilities does iBGP allow for?

Allow for redundancy and failover capabilities by allowing multiple paths to be used for a given route.

54
New cards

How does iBGP prevents routing loops?

Help prevent routing loops by ensuring that only one path is used for a given route at any given time.

55
New cards

How does iBGP work?

Each router sends its own routing table to its neighbors, which contains information about the networks it knows and how they can be reached from that router.

56
New cards

To configure iBGP you must first do what?

Configure the BGP process on each router and assign them unique AS numbers.

57
New cards

What type of relationships must you establish while configuring iBGP?

Establish neighbor relationships between the routers by specifying which IP addresses they should use for communication.

58
New cards

What additional parameters can you configure in iBGP?

Route filtering and authentication.

59
New cards

What commands can be used to verify an iBGP configuration?

“show ip bgp summary” and “show ip bgp neighbors.”

60
New cards

What is External Border Gateway Protocol (eBGP)?

Routing protocol used to exchange information between two autonomous systems (AS)

61
New cards

For what is eBGP used?

Connecting distinct networks, such as those belonging to different internet service providers.

62
New cards

Of what is eBGP responsible?

Exchanging network prefixes between autonomous systems, allowing them to communicate with each other.

63
New cards

What is the main difference between iBGP and eBGP?

iBGP is used to propagate routes within an autonomous system, eBGP is used for propagating routes between different autonomous systems.

64
New cards

How are routes advertised in iBGP concerning peers?

Routes received from a peer cannot be advertised to another peer but can be advertised to an eBGP peer.

65
New cards

How are routes advertised in eBGP concerning peers?

Routes received from a peer can be broadcast to both eBGP and iBGP peers.

66
New cards

Is a full mesh topology required for iBGP?

Required.

67
New cards

Is a full mesh topology required for eBGP?

Not Required.

68
New cards

Where is iBGP used?

Within the same organization.

69
New cards

Where is eBGP used?

Distinct networks (i.e., different organizations or internet service providers).

70
New cards

What does iBGP use for loop prevention?

Uses BGP split horizon.

71
New cards

What does eBGP use for loop prevention?

Uses path for loop prevention.

72
New cards

What is the default peer setup for iBGP?

TTL = 255.

73
New cards

What is the default peer setup for eBGP?

TTL = 1.

74
New cards

Are local preference attributes sent in iBGP?

Sent.

75
New cards

Are local preference attributes sent in eBGP?

Not Sent.

76
New cards

What is the behavior on route advertisement to a peer for iBGP?

The next hop remains unchanged.

77
New cards

What is the behavior on route advertisement to a peer for eBGP?

The next hop is changed to the local router.

78
New cards

When there are multiple paths, it’s better to use what type of interface with an IP address and to advertise that into your IGP?

Loopback interface.

79
New cards

Why is it best practice to use loopback interfaces when configuring IBGP?

A physical interface can go down, which means the IP address on the interface is no longer reachable.

80
New cards

What does eBGP require by default in order to establish a neighbor adjacency?

EBGP (external BGP) by default requires two Cisco IOS routers to be directly connected to each other in order to establish a neighbor adjacency.

81
New cards

What TTL do eBGP routers use for their BGP packets?

A TTL of one.

82
New cards

When two routers are not directly connected how can we still make it work?

Multihop.

83
New cards

What does the command 'show ip bgp neighbors | include External' return if the external BGP neighbor is not directly connected?

External BGP neighbor not directly connected.

84
New cards

What command disables the connected check so that R1 and R3 try to become eBGP neighbors?

neighbor [ip address] disable-connected-check.

85
New cards

What command is used to increase the TTL?

neighbor [ip address] ebgp-multihop [number].

86
New cards

What are the BGP states?

Idle, Connect, Active, OpenSent, OpenConfirm, Established.

87
New cards

What happens in the BGP Idle state?

Listens for an incoming connection request from its peer router.

88
New cards

For how long does the ConnectRetry timer allow for connection requests to be complete?

The ConnectRetry timer allows 120 seconds by default for connection requests between the routers to complete before shifting to the next state.

89
New cards

What happens in the BGP Connect state?

BGP tries to complete the three-way TCP handshake.

90
New cards

What happens in the BGP Active state?

BGP will kick off and attempt a new TCP connection.

91
New cards

What happens in the BGP OpenSent state?

BGP is listening for an Open message from its neighbor.

92
New cards

What are the most notable variables in the Open message?

BGP version, the autonomous system (AS) numbers, the source IP address of the configured neighbor, router-ID uniqueness, security parameters, capabilities.

93
New cards

If there are no errors in the OpenSent state, what does BGP start to do?

BGP starts to send Keepalive messages and negotiates the hold time.

94
New cards

What happens in the BGP OpenConfirm state?

BGP listens for Keepalive messages from its peer.

95
New cards

What happens in the BGP Established state?

BGP neighbor adjacency has been created.

96
New cards

Which command tells BGP which interface to source the BGP packets out of?

BGP update-source command.

97
New cards

What is a method used by distance vector protocols to prevent network routing loops?

Split horizon.

98
New cards

What is the basic principle of split horizon?

Never send routing information back in the direction from which it was received.

99
New cards

What does iBGP split horizon state?

A BGP router will not advertise prefixes from one iBGP neighbor to another iBGP neighbor.

100
New cards

What reflects learnt routes to their adjacent neighbors?

BGP route reflectors.