Home > BGP Questions 4

BGP Questions 4

July 9th, 2011 in ROUTE 642-902 Go to comments

Here you will find answers to BGP Questions – Part 4

Question 1

Which two conditions can cause BGP neighbor establishment to fail? (Choose two)

A. There is an access list blocking all TCP traffic between the two BGP neighbors.
B. The IBGP neighbor is not directly connected.
C. BGP synchronization is enabled in a transit autonomous system with fully-meshed IBGP neighbors.
D. The BGP update interval is different between the two BGP neighbors.
E. The BGP neighbor is referencing an incorrect autonomous system number in its neighbor statement.


Answer: A E

Explanation

An underlying connection between two BGP speakers must be established before any routing information is exchanged. This connection takes place on TCP port 179 so if an access list blocks all TCP traffic between the two BGP neighbors, BGP neighbor relationship can not be established -> A is correct.

The IBGP neighbors don’t need to be directly connected -> B is not correct.

BGP synchronization only prevents routes sent to other EBGP neighbors before that route exists in the routing table. It doesn’t prevent BGP neighbor relationship -> C is not correct.

After the first initial exchange (which exchanges routes and synchronize their tables), a BGP speaker will only send further updates upon a change in the network topology -> BGP does not have a fixed update interval -> D is not correct.

BGP neighbor relationship is established when both ends (routers) are manually configured with the “neighbor neighbor-IP remote-as neighbor-AS” command on both sides of the connection. If the neighbor-AS is wrong, the neighbor relationship can not be established -> E is correct.

Question 2

Which statement is true about EBGP?

A. An internal routing protocol can be used to reach an EBGP neighbor.
B. The next hop does not change when BGP updates are exchanged between EBGP neighbors.
C. A static route can be used to form an adjacency between neighbors.
D. EBGP requires a full mesh.


Answer: C

Explanation

When two EBGP neighbors want to establish neighbor relationship without using the directly connected interfaces (for example, use loopback interface), they must tell each other how to reach their interfaces. A static route is the most simple way to do this, especially when they are in different ASs.

Question 3

Why should iBGP sessions be fully meshed within a Transit AS?

A. BGP requires redundant TCP sessions between iBGP peers.
B. A full mesh allows for optimal routing within the Transit AS.
C. Routes learned via iBGP are never propagated to other eBGP peers.
D. Routes learned via iBGP are never propagated to other iBGP peers.
E. Routes learned via eBGP are never propagated to other iBGP peers.


Answer: D

Explanation

BGP split-horizon rule states that a route learned from one IBGP neighbor will not be advertised to another IBGP neighbor so IBGP sessions should be fully meshed. For example in the topology below, routes learned from R1 about AS 200 will be advertised to R2. For R2, the route learned from R1 is a route learned from one IBGP neighbor so R2 will not advertise this route to R3 and AS 100 can never be a transit AS -> IBGP sessions should be fully meshed within a transit AS -> D is correct.

BGP_IBGP_synchronization.jpg

Question 4

Which BGP feature should be used to avoid high memory utilization on a router?

A. soft-reconfiguration
B. route refresh
C. BGP communities
D. full-mesh BGP peering


Answer: B

Explanation

BGP routers have enormous routing tables so it uses much memory to proceed these routes. When a BGP policy is changed, the BGP session needs to be reset for the policy to take effect. But the resetting results in route churn and route flapping. There are two ways to clear a BGP session without resetting the TCP session between them (this is often called “soft reset”):

Soft-reconfiguration: stores all received (inbound) routing policy updates without modification in a table so that when a new filter is applied, the router will use this table to calculate the changes without resetting the TCP session between the two BGP peers . This is a memory-intensive (high memory utilization) method and is not recommended.

Route-refresh: allows a BGP router to request a remote peer resend its BGP Adj-RIB-Out. This allows the BGP router to reapply the inbound policy. The route-refresh capability requires no extra memory on the local router

Question 5

For the accompanying router output, which of the following statements describes the state that neighbor 172.16.254.3 is in?

show_ip_bgp_neighbors.jpg

A. The router will not accept connections from the peer.
B. The router has sent out an active TCP connection request to the peer.
C. The router is listening on its server port for connection requests from the peer.
D. BGP can exchange routing information in this state.


Answer: C

Explanation

The BGP state in the output is “Active”, which means BGP speaker is attempting to initiate a TCP session with the BGP speaker it wants to peer with. If this can be done, the BGP state goes to OpenSent state.

Question 6

A router has two paths to reach another network in a different autonomous system. Neither route was generated by the local router and both routes have the same default weight and local preference values. Which statement is true about how BGP would select the best path?

A. If the command bgp always-compare-med has been given, then the router will prefer the route with the highest MED.
B. The router will prefer the route with the lower MED.
C. The router will prefer the shortest autonomous system path.
D. To influence one route to be preferred, its default local preference value will be changed via the use of the command bgp default local-preference 50.


Answer: C

Explanation

In the Route selection decision process, if the weight, local preference & route originated are the same then the shortest AS path will be chosen.

The full Route selection decision process is listed below:

1. Prefer highest weight (local to router)
2. Prefer highest local preference (global within AS)
3. Prefer route originated by the local router (next hop = 0.0.0.0)
4. Prefer shortest AS path
5. Prefer lowest origin code (IGP < EGP )
6. Prefer lowest MED (exchanged between autonomous systems)
7. Prefer EBGP path over IBGP path
8. Prefer the path through the closest IGP neighbor (IGP cost)
9. Prefer oldest route for EBGP paths
10. Prefer the path with the lowest neighbor BGP router ID
11. Prefer the path with the lowest neighbor IP address

Question 7

Refer to the exhibit. Which two statements are correct? (Choose two)

BGP_show_ip_bgp_route.jpg

A. All six routes will be installed in the routing table.
B. Two routes will be installed in the routing table.
C. Four routes will be installed in the routing table.
D. All the routes were redistributed into BGP from an IGP.
E. All the routes were originated by BGP with the network command.


Answer: C D

Explanation

Only the valid & best routes (represented by *>) will be installed into the routing table -> C is correct.

All the routes were redistributed into BGP from an IGP so we will see a next hop of 0.0.0.0 -> D is correct. For more information about this type of redistribution please read http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800943c5.shtml

Question 8

Which two statements are true about IBGP neighbor relationships? (Choose two)

A. An EGP or static routing is required between IBGP neighbors.
B. A full-mesh IBGP requires that neighbor relationships be established between all BGP enabled routers in the autonomous system.
C. IBGP neighbors must be in different autonomous systems.
D. The BGP split-horizon rule specifies that routes learned via EBGP are never propagated to other IBGP peers.
E. The BGP split horizon rule specifies that routes learned via IBGP are never propagated to other IBGP peers.


Answer: B E

Question 9

Refer to the exhibit. Which two statements are true about the partial configuration that is provided. (Choose two)

router bgp 100
neighbor internal peer-group
neighbor internal remote-as 100
neighbor internal update-source loopback 0
neighbor internal route-map set-med out
neighbor internal filter-list 1 out
neighbor internal filter-list 2 in
neighbor 171.69.232.53 peer-group internal
neighbor 171.69.232.54 peer-group internal
neighbor 171.69.232.55 peer-group internal
neighbor 171.69.232.55 filter-list 3 in

A. All the configured neighbors are in autonomous system 100.
B. The peer group shortens the IBGP configuration.
C. The peer group shortens the EBGP configuration.
D. Only the outgoing filters are applied to BGP updates.
E. Three AS-path filters are applied to each BGP neighbor.


Answer: A B

Explanation

This is an IBGP peer group because the AS numbers in “router bgp {AS number}” and “neighbor internal remote-as {AS number} are the same -> A is correct.

A BGP peer group reduces the load on system resources by allowing the routing table to be checked only once, and updates to be replicated to all peer group members instead of being done individually for each peer in the peer group. In addition, a BGP peer group also simplifies the BGP configuration -> B is correct.

This is the process of creating a peer-group (used the output above):

neighbor internal peer-group Create a peer-group (named internal)
neighbor internal remote-as 100
neighbor internal update-source loopback 0
neighbor internal route-map set-med out
neighbor internal filter-list 1 out
neighbor internal filter-list 2 in
Configure needed commands for the peer-group
neighbor 171.69.232.53 peer-group internal
neighbor 171.69.232.54 peer-group internal
neighbor 171.69.232.55 peer-group internal
Assign BGP neighbor into a peer group

Just one thing to notice is the last command “neighbor 171.69.232.55 filter-list 3 in” indicates the filter-list 3 will be applied for neighbor 171.69.232.55 while other neighbors will be applied filter-list 2 as the inbound filter-list (all neighbors use outbound filter-list 1).

Question 10

Observe the diagram. RTC is the hub router and RTA and RTB are the spokes. There are no virtual circuits between the spoke locations. What is needed to successfully route traffic to the 11.11.11.0/24 network from RTA?

BGP_IBGP_Hub_Spoke.jpg

A. The neighbor 10.10.10.1 next-hop-self command on RTA.
B. The neighbor 10.10.10.1 next-hop-self command on RTB.
C. The neighbor 10.10.10.1 next-hop-self command on RTC.
D. Nothing is required. This is the default behavior on this topology.


Answer: C

Explanation

The next-hop-self command must be used on RTC to specify RTC’s IP address as the source address in the packets sent to RTB (and RTB knows how to reach RTC but it does not know how to reach RTA).

Question 11

A router is running BGP and receives more than one route for a particular prefix. Assume all the routes for this prefix have the same attributes. Which three path features would be reasons be for the router to ignore some of the routes and not consider them as candidates for the best path? (Choose three)

A. paths that are marked as synchronized in the show ip bgp output
B. paths that are marked as not synchronized in the show ip bgp output
C. paths for which the NEXT_HOP is accessible
D. paths for which the NEXT_HOP is inaccessible
E. paths from an external BGP (eBGP) neighbor if the local autonomous system (AS) appears in the AS_PATH
F. paths from an internal BGP (iBGP) neighbor if the local autonomous system (AS) appears in the AS_PATH


Answer: B D E

Explanation

Only synchronized routes (answer B) with no AS loops (answer E) and a valid next hop (answer D) will be considered as candidates for the best path route selection decision process.

Comments
  1. Eng
    March 17th, 2012

    Does anyone think that answer to q 10 should be D not C ??

  2. Eng
    March 17th, 2012

    next-hop-self only changes the next hop address for EBGP learned routes
    so it won’t change the next hop to RTC and it will remain RTB as they are all IBGP peers
    and with the next hop of RTB, RTA will still reach the 11.11.11.0/24 network because RTB is reachable to RTA as both of them are in the same multipoint segment

  3. AD
    March 17th, 2012
  4. Eng
    March 18th, 2012

    is RTB in a different AS than the other routers ??
    because if it’s not then RTC will learn the 11 network from an IBGP peer “RTB” so it will not advertise it to other IBGP peers based on the split-horizon rule
    and even if we configured RTC as a route reflector, the “next-hop-self” will do no good and the next hop will remain RTB
    is there an IBGP neighbor relationship between RTA & RTB ??

  5. Bryan
    March 25th, 2012

    Nevermind, I was just confused. C is correct.

  6. Bashir
    April 3rd, 2012

    Could some1 explain to me Q11, I get A&B but why E

    please help anyone

  7. AD
    April 4th, 2012

    2Bashir
    If the local autonomous system (AS) appears in the AS_PATH, it means that there is a loop, and a route discarded

  8. MeMeMe
    April 7th, 2012

    QUESTION 7 – Network 192.168.0.0/16 was redistributed??? Its next hop is NOT 0.0.0.0 so WTF??? Tell me how and why “all routes were redistributed” is a correct answer!@?#

  9. Eng
    April 9th, 2012

    2MeMemE
    redistributed routes will have a next hop address of 0.0.0.0 in the local AS “where the redistribution was configured”
    network 192.168.0.0/16 was redistributed in AS 35 not in the local AS as u see in the AS path
    all routes were redistributed because they all have “incomplete” origin –> ?

  10. DIV
    May 15th, 2012

    Q10. CORRECT ANSWER IS C.

    Why? Because we have to break the hand of the artist who created this stupid picture.

    1. RTC and RTA – IBGP neighbors
    2. RTC and RTB – EBGP neighbors. I don`t know what ip address on the RTB but this is NOT 10.10.10.3
    Ok use 172.16.1.0/24 for example. 172.16.1.3 on RTB.

    without neighbor 10.10.10.1 next-hop-self command on RTC we have:
    no route to 11.11.11.0/24 in the routing table on RTA – because next-hop unreachable
    if run sh ip bgp on RTA:
    Network Next Hop Metric LocPrf Weight Path
    r>i10.10.10.0/24 10.10.10.2 0 100 0 i
    * i11.11.11.0/24 172.16.1.3 0 100 0 65003 i
    after neighbor 10.10.10.1 next-hop-self command on RTC we have:
    Network Next Hop Metric LocPrf Weight Path
    r>i10.10.10.0/24 10.10.10.2 0 100 0 i
    *>i11.11.11.0/24 10.10.10.2 0 100 0 65003 i
    in routing table appearing route:
    B 11.11.11.0 [200/0] via 10.10.10.2, 00:00:52
    and…
    ping 11.11.11.1
    Type escape sequence to abort.
    Sending 5, 100-byte ICMP Echos to 11.11.11.1, timeout is 2 seconds:
    !!!!!
    Success rate is 100 percent (5/5), round-trip min/avg/max = 60/125/248 ms

    All tests was made in GNS3.

  11. Jibo
    June 10th, 2012

    router1 configuration:interface Loopback0 ip aedsdrs 1.1.1.1 255.255.255.255!interface Ethernet0/0 ip aedsdrs 192.168.12.1 255.255.255.0 half-duplex!router bgp 100 no synchronization bgp log-neighbor-changes neighbor 2.2.2.2 remote-as 200 neighbor 2.2.2.2 ebgp-multihop 2 neighbor 2.2.2.2 update-source Loopback0 no auto-summary!ip route 2.2.2.2 255.255.255.255 192.168.12.2******************************************router2 configurationinterface Loopback0 ip aedsdrs 2.2.2.2 255.255.255.255!interface Ethernet0/0 ip aedsdrs 192.168.12.2 255.255.255.0 half-duplex!router bgp 200 no synchronization bgp log-neighbor-changes neighbor 1.1.1.1 remote-as 100 neighbor 1.1.1.1 ebgp-multihop 2 neighbor 1.1.1.1 update-source Loopback0 no auto-summary!ip route 1.1.1.1 255.255.255.255 192.168.12.1

  12. Daniel
    July 7th, 2012

    QUESTION 7
    how do we know all the routes were redistributed into BGP from an IGP. There is no indication of IGP. Can someone help me?

  13. monztor
    July 18th, 2012

    Q7
    To Daniel

    You can see the code-origin in the column “path”, you will se “AS-Number follow the Code-Origin”
    If you see the code “i” after the AS-Number, this route is advertise using command “redistribute” from router in same AS or other AS.
    but if you see the code “?” after the AS-Number, this route is advertise using command “network” from router in same AS or other AS.
    the last, the word cisco use “IGP” in the answer because we can see the next-hop “0.0.0.0″ which is that route from local-router.

  14. Prestley
    July 24th, 2012

    one day to go and i will be writing my exam.

  15. juantron
    July 25th, 2012

    Q10
    Answer: C

    If the common medium is a frame relay or any NBMA cloud, the exact behavior is as if you have connection via Ethernet. RTB advertises 11.11.11.0/24 to RTC with a next hop of 10.10.10.3 and RTC advertises this same route to RTA with the same next hop. The problem is that RTA does not have a direct permanent virtual circuit (PVC) to RTC and cannot reach the next hop. In this case, routing fails.
    The next-hop-self command allows you to force BGP to use a specific IP address as the next hop.

    Reference: http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800c95bb.shtml

  16. abc
    August 17th, 2012

    Q 5… the explanation states that in active state ” BGP speaker is attempting to initiate a TCP session with the BGP speaker it wants to peer with”…
    but in the official route book by wendell odom.. he states that active state means that TCP connection has been established… but no bgp msg have been sent to the peer…
    help me out… which is correct..?

  17. Jack
    August 27th, 2012

    Question 7. I still dont understant how we can tell whether the 192.168.0.0 route was learned via IGP? Next hop is not 0.0.0.0?! Can someone please explain?

  18. Jack
    August 27th, 2012

    Question 7, Also why do 2 of the routes have no network entries? What exactly is meant to go into the routing table?

  19. Jack
    August 27th, 2012

    ignore my second comment about no network entries. i was being thick. The entry is the same address as the line above in the table. But i’d still like to know about the 192 address.

  20. Jack
    August 27th, 2012

    Question 7. Ok i got it now. the question mark after the AS path means an origin of unknown/incomplete. This will happen typically if the networks have come in by issuing the redistribute command. Hence the answer: All the routes were redistributed into BGP from an IGP. Keyword – redistributed.
    In this scenario the 0.0.0.0 has got nothing to do with it.

  21. Snajdan
    September 3rd, 2012

    Question 10: Eng is right. From the picture we can see RTC forms iBGP relationships with RTA and RTB, so RTC must be configured as route-reflectore server to pass the update from RTB to RTA, and with route-reflector, next-hop-self command is useless (it just changes the next-hop of eBGP learned-route – I had tested it with GNS3). Because all three routers are in an AS, it will run an IGP protocol, so RTA will have a route to 10.10.10.3 (RTB) with next-hop is 10.10.10.2 (RTC)

  22. Snajdan
    September 3rd, 2012

    I just want to correct some things: assuming that all three routers are running Frame Relay, then you have already configured frame-relay mapping to map the correct DLCI to forward the packets (with destination is RTB) to RTC

  23. Jonny M
    September 17th, 2012

    question 7 explanation is strange. 0.0.0.0 only means that network originates by local router. The question-mark at the right of as-path means that it is incomplete, that is redistributed in to BGP

  24. Ahmad
    September 21st, 2012

    question 11 ,

    i think a is correct instead of B ,
    I THINK there is a typo ,

    regards

  25. Snajdan
    October 2nd, 2012

    @Jonny M: 0.0.0.0 means that network can be originated by local router, or by redistributed from IGP into BGP, or by using aggregate-address command

  26. MS
    October 19th, 2012

    for Question 5, i’m confused with B and C.

  27. RU
    October 26th, 2012

    Can you explain Q11 more detail ? Why is E correct answer ?

  28. Martinsz
    December 4th, 2012

    @ RU
    If router sees its own AS in as path – it will drop it to avoid loops – this route has allready gone through local routers

  29. alinio
    December 12th, 2012

    Answers for abc and MS regarding Q5. I found the explanation in CCNP foundation Learning guide: “If the router is in the active state, this means that it has found the IP address in the neighbor statement
    and has created and sent out a BGP open packet but has not received a response (an open confirm packet)
    back from the neighbor.
    One common cause of this is when the neighbor does not have a return route to the source IP address.
    Ensure that the source IP address or network of the packets is advertised into the local routing protocol (IGP)
    on the neighboring router.
    Another common problem associated with the active state is when a BGP router attempts to peer with
    another BGP router that does not have aneighbor statement peering back at the first router, or the other
    router is peering with the wrong IP address on the first router. Check to ensure that the other router has
    a neighbor statement peering at the correct address of the router that is in the active state.” So, after I read these statements, I understand why the correct answer for this question is optin C.

  30. Andy
    January 7th, 2013

    Question 10

    Answer C is wrong, because of BGP split-horizon RTC won’t pass any routes learned from the IBGP neighbor RTB to IBGP neighbor RTC (Unless RTC is configured as a route-reflector)

    But all the other answers are wronger ;-)

  31. Kbane
    February 3rd, 2013

    Q8. I think its BGP Sychronization rule that achieves the goal. Not Synchronization rule. Please correcr if I’m wrong.

  32. Kbane
    February 3rd, 2013

    Sorry … I mean Not BGP Split Horizon

  33. ssss
    February 4th, 2013

    Can you explain question 11….

  34. ssss
    February 4th, 2013

    why not A…?

  35. SOLID_SYSTEMS
    February 17th, 2013

    @MS and @alino I still don’t understand why the answer is C and never B. The fact that it has sent a BGP open packet means that it did sent out an active TCP connection request!

    The way I see it for Question 5, the answer B could be wrong because of the last line : No active TCP connection.

    Anyone can challenge my opinion? Please prove me wrong and tell me why

  36. Alexander
    March 18th, 2013

    Question 10 is veeeeeeery strange…
    According to course of CCNP route (which does not include route-reflectors or confederation topics) the most logical thing that comes into my mind that it should be eBGP cloud instead of iBGP

  37. Did_it_work?
    April 18th, 2013

    @Aleksander
    Q.10. If you consider RTB is _E_BGP peer to RTC it explains things.

  1. No trackbacks yet.
Add a Comment