Home > BGP Questions

BGP Questions

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

Here you will find answers to BGP questions

Question 1

Refer to the exhibit. Router RIP is attempting to establish BGP neighbor relationships with routers RT1 and RT3. On the basis of the information that is presented in the exhibit, which two statements are true? (Choose two)

BGP_MD5Digest1

BGP_MD5Digest2

A – RTR has a BGP password set but neighbor 10.0.0.1 does not
B – RTR has a BGP password set but neighbor 10.0.0.5 does not
C – RTR has a BGP password set but neighbor 10.0.0.1 has an incorrect password set
D – RTR has a BGP password set but neighbor 10.0.0.5 has an incorrect password set
E – Neighbor 10.0.0.1 has a BGP password set but RTR does not
F – Neighbor 10.0.0.5 has a BGP password set but RTR does not


Answer: A D

Explanation:

You can configure MD5 authentication between two BGP peers, MD5 authentication must be configured with the same password on both BGP peers; otherwise, the connection between them will not be made. If a router has a password configured for a peer, but the other peer does not, a message “No MD5 digest from…” will appear on the console while the routers attempt to establish a Multicast Source Discovery Protocol (MSDP) session between them. Therefore A is correct because RT1 (with an ip address of 10.0.0.1) is not configured with a password.

Similarly, if the two routers have different passwords configured, a message “Invalid MD5 digest from…” will appear on the screen.

Question 2

Refer to the exhibit diagram and configuration. RTB is summarizing its networks from AS 64100 with the aggregate-address command. However, the show ip route command on RTA reveals the RTB individual networks as well as its summary route. Which option would ensure that only the summary route would appear in the routing table of RTA?

BGP_summary

A – Delete the four network statements and leave only the aggregate-address statement in the BGP configuration
B – Add the keyword summary-only to the aggregate-address command
C – Add a static route with a prefix of 192.168.24.0 255.255.252.0 pointing to the null interface
D – Create a route map permitting only the summary address


Answer: B

Explanation

When the aggregate-address command is used within BGP routing, the aggregated address is advertised, along with the more specific routes. The exception to this rule is through the use of the summary-only command. The “summary-only” keyword suppresses the more specific routes and announces only the summarized route.

Question 3

Refer to the exhibit The neighbor 10.1.1.1 weight 200 BGP configuration command has been configured on router A. What will be the result of this configuration?

BGP_weight

A – Router A will prefer the path through router B for network 172.20.0.0
B – Router A will prefer the path through router C for network 172.20.0.0
C – Packets from router D will prefer the path through router B for networks advertised by router A
D – Packets from router D will prefer the path through router C for networks advertised by router A


Answer: A

Explanation

The weight attribute is a special Cisco attribute that is used in the path selection process when there is more than one route to the same destination. The higher the weight value, the better the path. The default weight is 0. Therefore, by configuring weight 200 to the neighbor 10.1.1.1, router A will prefer the path through router B for network 172.20.0.0 then the path through router C.

The weight attribute is local to the router and not propagated to other routers. In this case the weight is local to router A so it has no effect on the decision of transferring packets from router D.

Question 4

Based on the show ip bgp summary output. which two statements are true? (Choose two)

BGP_States

A – The BGP session to the 10.1.1.1 neighbor is established
B – The BGP session to the 10.2.2.2 neighbor is established
C – The BGP session to the 10.3.3.3 neighbor is established
D – The router is attempting to establish a BGP peering session with the 10.1.1.1 neighbor
E – The BGP session to the 10.3.3.3 neighbor is established, but the router has not received any BGP routing updates from the 10.3.3.3 neighbor
F – The router is attempting to establish a BGP peering session with the 10.2.2.2 neighbor


Answer: A F

Explanation

The main point of this question is the “State/PfxRcd” column, which shows the BGP states. Below is the list of BGP states in order, from startup to peering:

1 – Idle: the initial state of a BGP connection. In this state, the BGP speaker is waiting for a BGP start event, generally either the establishment of a TCP connection or the re-establishment of a previous connection. Once the connection is established, BGP moves to the next state.

2 – Connect: In this state, BGP is waiting for the TCP connection to be formed. If the TCP connection completes, BGP will move to the OpenSent stage; if the connection cannot complete, BGP goes to Active

3 – Active: In the Active state, the 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.

4 – OpenSent: the BGP speaker is waiting to receive an OPEN message from the remote BGP speaker

5 – OpenConfirm: Once the BGP speaker receives the OPEN message and no error is detected, the BGP speaker sends a KEEPALIVE message to the remote BGP speaker

6 – Established: All of the neighbor negotiations are complete. You will see a number (2 in this case), which tells us the number of prefixes the router has received from a neighbor or peer group.

Question 5

Which command displays the IBGP and EBGP neighbors that are configured?

A – show ip bgp
B – show ip bgp paths
C – show ip bgp peers
D – show ip bgp summary


Answer: D

Explanation

The picture below shows the output of the show ip bgp summary

BGP_show_ip_bgp_summary

Notice that the “show ip bgp” command to display BGP topology database. Below is the output of the “show ip bgp” command:

BGP_show_ip_bgp

Question 6

BGP contains two paths to a destination. Assuming both routes were originated locally and have an equal weight. what will be the next determining factor in choosing the best path?

A – lowest MED
B – highest local preference
C – lowest neighbor IP address
D – lowest origin code
E – shortest AS-path


Answer: B

Explanation

Memorizing the BGP decision process steps is very useful and you should remember them. The table below lists the complete path selection process:

1. Weight (Bigger is better)
2. Local preference
(Bigger is better)
3. Self originated (Locally injected is better than iBGP/eBGP learned)
4. AS-Path (Smaller is better)
5. Origin
(Prefer ORIGIN code I over E, and E over ?)
6. MED (Smaller is better)
7. External (Prefer eBGP over iBGP)
8. IGP cost (Smaller is better)
9. EBGP Peering (Older is better)
10. RID (Lower is better)

Question 7

Which BGP path attribute is Cisco proprietary?

A. weight
B. MED
C. local preference
D. origin
E. next-hop
F. AS-path


Answer: A

Explanation

The weight attribute is a Cisco proprietary technology. This attribute is local to a router and is not advertised to neighboring routers. If the router learns about more than one route to the same destination, the route with the highest weight will be preferred and will be installed in the routing table. By default, the value of weight is 0 and the range is from 0 to 65535.

The route with the highest weight will be installed in the IP routing table.

Question 8

Which attribute must exist in the BGP update packet?

A. LOCAL_PREF
B. AGGREGATOR
C. AS_Path
D. Weight


Answer: C

Explanation

Origin, AS_Path, Next_Hop are well-known mandatory BGP attributes that all BGP Updates must include.

Note:

There are 4 BGP attribute types:

+ Well-known Mandatory: recognized by all implementations of BGP and must appear in a BGP update message. If missing, a notification error will be generated.
+ Well-Known Discretionary: recognized by all implementations of BGP but may not be sent in the BGP update message (include LOCAL_PREF, ATOMIC_AGGREGATOR).
+ Optional Transitive: may or may not be recognized by all BGP implementations. Because the attribute is transitive, BGP accepts and advertises the attribute even if it is not recognized (include Community attribte).
+ Optional Nontransitive: may or may not be recognized by all BGP implementations. Whether or not the receiving BGP router recognizes the attribute, it is nontransitive and is not passed along to other BGP peers (include MED).

Question 9

When the BGP path selection process is being performed on a Cisco router, which BGP attribute is used first when determining the best path?

A. local preference
B. MED
C. weight
D. origin
E. next-hop
F. AS-path


Answer: C

Explanation

Weight is the first attribute BGP uses in the route selection process. Route with a higher weight is preferred when multiple routes exist to the same destination.

Question 10

Which BGP attribute will not be advertised in routing updates to its neighboring routers?

A. weight
B. local preference
C. origin
D. AS_path
E. next hop


Answer: A

Explanation

Same as Question 7.

Comments
Comment pages
1 2 16
  1. Buddy Olli
    September 16th, 2012

    Hi,
    can someone please explain q9 ?
    In the Certificatin guide it say N WLLA OMNI !
    So, next-hop should be considered first .

    So, the answer should be E. (next-hop) and not C. (weight)

  2. luiz
    September 18th, 2012

    I think the same …q9 answer E

  3. Lucio
    September 21st, 2012

    Hi,
    is there any tutorial available for BGP?

    thanks

  4. Buddy Olli
    September 21st, 2012

    Can anybody confirm q9 ? Did anybody had that question in the exam ? What do they expect in the exam ? Should i go for C or E ?

  5. reco3d Q9
    September 25th, 2012

    For explanation about Q9 refer please refer to explanation at Question 6.
    Saludos desde Chile, mañana doy el examen espero que todo salga bien.

  6. Marco
    September 27th, 2012

    Is this next-hop an attribute used to determine the best path? So when is a next-hop attribute better than another? :P.

    No, when selecting the BEST PATH, first the weigth is considered, the local-preference. Of course, a next-hop address is …. very important to a route, maybe that’s why ot’s not optional :P.

    Tutorial about BGP…. try CBT Nuggest, a guy named Jeremy Cioara can explain BGP pretty good.

  7. reco3d
    October 13th, 2012

    How was it? with the examen, mine is next week. any advise about the questions that are here?

  8. joe
    October 14th, 2012

    Question 9

    E is the answer. best path selection starts with next-hop and if there is no valid next-hop address, that is when the weight, local-preference and so on be considered.

    correct me it I am wrong…

  9. micrush
    October 16th, 2012

    I think the Q9 is correct. Considering all of the routes in the topology table should have an active next-hop, they were after all advertised by a router, and that the local router would not put them into the BGP table if the locally advertised routes are not in the routing table. The routing table on the other hand will not have any routes that do not have valid next-hop in them. This is just a theory though, goodluck

  10. question 9 answer
    October 16th, 2012

    @Buddy Olli
    I was back and forth with next_hop and weight. Thinking because they intentionally mentioned Cisco it was weight, so I did a little more digging from the Certification Guide… N WLLA OMNI starts at step 0. So after reading the section again…

    “If that router does not have a matching IP route for the BGP route’s Next_Hop IP address,
    then that router will not know how to forward packets for that particular prefix, using that
    particular route. To avoid using such a route, at Step 0, the BGP best path algorithm removes
    such routes from consideration. BGP then uses the following eight steps, in order,
    until one best route is chosen for a given prefix.”

    what I figured the 1st step is next_hop only to check if their is a route in the routing table for that prefix. If not, use the next available entry with a valid route in the routing table.

    hope I explained it well enough to clarify.

  11. Starr
    November 10th, 2012

    This was so hlefpul and easy! Do you have any articles on rehab?

  12. umar
    November 17th, 2012

    their is different answers for BGP attribute Drag n Drop , Kindly clarify any one

    Weight is propagated between AS ? or is MED propagated between AS

    Weight is used for one router with multiple exit points out of AS ?

  13. Vikram
    December 5th, 2012

    Hey Buddy Olli.
    Please suggest the BGP attribute list in which they have mentioned the path selection process.
    1-Weight
    2-Local Pref
    3-Origin
    4-AS-Path
    5-MED

    Hence when performing the path selection process BGP will use “WEIGHT” as its 1st option.

  14. Asad Mehmood
    December 10th, 2012

    Please read the question carefully. it is asking for cisco router. so the first criteria would be “Weight”.

  15. Othman
    January 9th, 2013

    hey guys, i am preparing ccnp route exam . Are those quetions important for me ? are they taken from the last ccnp exam ? pleaaase give me a clarificaion about the optimal way to prepare questions . thank you advancely.

  16. Nabu
    January 13th, 2013

    Next_Hop Attribute is not used in Path selection.
    So for Q9, Weight is the answer

  17. Klauss
    January 18th, 2013

    Weight is considered first. Check this from Cisco site (we are talking about Cisco routers here, right?) ——>
    http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a0080094431.shtml#bestpath

  18. meee
    January 30th, 2013

    I believe next-hop is not an attribute.

  19. Victor
    January 31st, 2013

    Next-hop is an attribute but is not used for path determination. However it is the first thing to consider before anything in that the next-hop has to be reachable. If the next hope is not reachable, then the router cannot proceed in determining the best path!!

  20. Rod
    February 10th, 2013

    I beleive next-host is useful when forming peer relationship between two BGP neigbor. when it comes to path selection it does not influence the process.

  21. vishal
    February 19th, 2013

    I have an doubt abt BGP….BGP is which layer protocol…y its not a network layer protocol?

  22. vk
    February 25th, 2013

    Hi
    q9 is correct, next hop should be reachable for a route to contest in process but contest starts with weight as first check.

  23. Anonymous
    April 1st, 2013

    Question 6

    = E
    weight , eq
    locally orginated, eq

    so then the local_pref is already checked, otherwise it will not check the orginated.
    The next atribute in line is AS_PATH. So tell me why its not E when they ask a question like:
    BOTH originated locally and have an equal weight. what will be the next determining factor.
    Its confusing

  24. You
    April 13th, 2013

    Are these questions still valid on exam?

  25. MM
    April 13th, 2013

    Guy please tell me which one is the router id in the following output which the BGP compares to select the best path

    Router# show ip bgp 192.168.1.0

    BGP routing table entry for 192.168.1.0/24, version 22
    Paths: (2 available, best #2, table default)
    Additional-path
    Advertised to update-groups:
    3
    10 10
    192.168.3.2 from 172.16.1.2 (10.2.2.2)
    Origin IGP, metric 0, localpref 100, valid, internal, backup/repair
    10 10
    192.168.1.2 from 192.168.1.2 (10.3.3.3)
    Origin IGP, localpref 100, valid, external, best , recursive-via-connected

  26. Saurabh
    April 15th, 2013

    @MM

    RID’s of neighbors are in brackets: (10.2.2.2) & (10.3.3.3).

    Lowest neighbor RID is referred as best RID for best path selection.

  27. funsyte
    April 16th, 2013

    If you read the official certification guide by Cisco, it is clearly stated that N- Next Hop reachability is NOT a path attribute (page 499), digitaltut is correct.

  28. TheDmachine
    April 19th, 2013

    #9 -> is like dust in the wind

  29. complete websites
    May 10th, 2013

    it seems like ages that i heve been searching for a wordpresssite like this one? i am glad i found it,some great information here, i am new and just starting out, anyway thanks for some great tips.. complete websites http://createdwebsites.co.uk

  30. Housseyn TIMITE
    May 15th, 2013

    Q6
    Why answer B and not answer E
    Please can you correct this it is confusing.

    here is the BGP path selection process

    1. Weight (Bigger is better)
    2. Local preference (Bigger is better)
    3. Self originated (Locally injected is better than iBGP/eBGP learned)
    4. AS-Path (Smaller is better)
    5. Origin (Prefer ORIGIN code I over E, and E over ?)
    6. MED (Smaller is better)
    7. External (Prefer eBGP over iBGP)
    8. IGP cost (Smaller is better)
    9. EBGP Peering (Older is better)
    10. RID (Lower is better)

Comment pages
1 2 16
  1. No trackbacks yet.
Add a Comment