JN0-281 practice question 23 of 35

Which of the following is a key factor in BGP's route selection process?

Full set: 271 questions
Answer options
A: Administrative distance
B: Subnet mask length
C: Link state
D: AS path length Correct answer
Correct Answer:
D. AS path length
Explanation

The BGP route selection process is a deterministic algorithm that evaluates multiple path attributes to select a single best path for each prefix. One of the most fundamental and earliest attributes considered in this process is the AS path length. BGP prefers the path with the shortest AS path, meaning the route that has traversed the fewest autonomous systems to reach the destination. This attribute is a core component of BGP's path-vector nature and is a key factor in preventing routing loops in inter-domain routing.

Why Incorrect

A. Administrative distance is a router-local value used to compare routes from different protocols (e.g., OSPF vs. BGP), not for selecting between multiple BGP routes.
B. Subnet mask length is used in the general forwarding decision (longest-prefix match), but it is not an attribute used within the BGP algorithm to select the best path for a specific prefix.
C. Link state is a metric used by Interior Gateway Protocols like OSPF and IS-IS, not by the path-vector protocol BGP.

References

1. Juniper Networks Documentation, "Junos OS Routing Protocols Library for Routing Devices," BGP Path Selection. It lists the default order of evaluation, stating, "AS path—Choose the path with the shortest AS path length."

2. IETF RFC 4271, "A Border Gateway Protocol 4 (BGP-4)," Section 9.1.2.2: Path Selection. The decision process explicitly includes comparing the length of the ASPATH attribute: "(d) if the paths were not learned from the same neighboring AS, the local BGP speaker MAY select the path with the shortest ASPATH."

Scroll to Top