📝 Path Vector Routing algorithm (17 MCQs)
Advertising Complete Autonomous-System Paths
Path vector routing advertises destination reachability together with information describing the sequence of routing domains through which the advertisement has passed. It is used for inter-domain routing, where decisions must consider administrative relationships and routing policy as well as reachability. Border Gateway Protocol is the principal Internet path-vector protocol. This supports policy choices across independently managed provider networks worldwide at scale.
Path Attributes and Autonomous-System Sequences
A path-vector route carries attributes such as AS_PATH, NEXT_HOP, and ORIGIN, with other attributes influencing local preference or exit selection. AS_PATH records autonomous systems traversed by the route. Unlike a simple distance vector, a path vector provides path history that helps detect loops and supports policy-based selection under administrative control.
Route Advertisement and Loop Prevention
A BGP speaker advertises reachable network prefixes to configured peers using UPDATE messages. When a route is passed to an external autonomous system, the advertising router prepends its own AS number to AS_PATH. A receiving speaker can reject a route containing its own AS number, reducing the risk of an inter-domain routing loop.
Reading an AS_PATH in a Route Advertisement
Suppose a route arrives with AS_PATH 64520 64530. This indicates that the advertisement has traversed those autonomous systems in the recorded sequence. If the receiving router belongs to AS 64520, it detects its own number in the path and rejects the route under normal loop-prevention rules rather than selecting a looping path.
Policy-Based Internet Routing Through BGP
Path vector routing supports the Internet's interconnected autonomous systems, where organizations may prefer particular providers, customers, peers, or exit points. A route with fewer AS hops is not necessarily preferred, because local policy attributes can take precedence. This makes path-vector routing suitable for administrative control across independently managed networks globally.
Misconceptions About Path Vector Routing
'Path vector always chooses the shortest AS path' is incorrect because policy and attributes influence selection. 'AS_PATH lists individual routers' is incorrect because it records autonomous systems, not every internal router. 'Path-vector routing is an interior gateway protocol' is incorrect because BGP is designed for inter-domain routing in real deployments.
Interpreting BGP Path Attributes in Examinations
Students should identify the AS_PATH sequence, explain how an AS prepends its number, and trace the loop check when a local AS appears. Distinguish path-vector routing from distance-vector and link-state methods. Explain why route selection may follow policy rather than simply the smallest hop count, and recognize eBGP versus iBGP roles.
Path Vector Routing algorithm: Key Terms
- Path vector - Advertises reachability with path information.
- AS_PATH - Sequence of autonomous systems traversed.
- Autonomous system - Network under one routing administration.
- BGP - Inter-domain path-vector routing protocol.
- eBGP - BGP exchange between different autonomous systems.
- iBGP - BGP exchange within one autonomous system.
📝 All Path Vector Routing algorithm MCQs
Q1. If a router receives an update that contains its own AS number in the AS_PATH, what action should it take?
📖 Explanation: The presence of the router’s own AS number indicates a loop. BGP specifications require the router to reject such an update to avoid forming a routing loop, so the update is discarded and never installed in the routing table.
Q2. A network operator wants to prefer routes that avoid a certain autonomous system. Which attribute in path‑vector routing can be used to enforce this?
📖 Explanation: The AS_PATH attribute records every autonomous system a route traverses. By examining the AS_PATH, the operator can filter out any route that contains the undesired AS, ensuring that only routes without that AS are considered for forwarding.
Q3. Suppose AS1 learns two routes to prefix X: one via AS2‑AS3 and another via AS4. If AS2 announces a higher MED than AS4, how will AS1's decision process be affected assuming other attributes are equal?
📖 Explanation: MED (Multi‑Exit Discriminator) is used to influence inbound traffic; a lower MED is preferred. Since the AS2 path has a higher MED, AS1 will choose the AS4 path, which presents the lower MED value, assuming LOCAL_PREF and other attributes are identical.
Q4. Router R receives an update from neighbor S that lists AS numbers [R, T, U]. What does this indicate?
📖 Explanation: If the AS_PATH includes the receiving router’s own AS number (R), the route would create a loop if installed. BGP detects this condition and treats the update as invalid, preventing the formation of a routing loop.
Q5. If a route has LOCAL_PREF 200, AS_PATH length 3, and MED 50, while another route has LOCAL_PREF 100, AS_PATH length 2, and MED 20, which route will be selected by the BGP decision process?
📖 Explanation: BGP evaluates attributes in a fixed order. LOCAL_PREF has the highest priority among the listed attributes, and the first route’s LOCAL_PREF of 200 outweighs the second route’s 100. Therefore, despite a longer AS_PATH and higher MED, the first route is chosen.
Q6. Which statement best differentiates path‑vector from distance‑vector routing?
📖 Explanation: Path‑vector protocols, such as BGP, attach the full sequence of autonomous system identifiers (AS_PATH) to each advertised route, enabling loop detection and policy enforcement. Distance‑vector protocols typically only advertise a scalar metric like hop count and lack this detailed path information.
Q7. An ISP applies a routing policy that adds the AS number 65010 to the AS_PATH of all outbound routes to a customer. What is the primary effect of this policy?
📖 Explanation: Appending an AS number to the AS_PATH makes the route appear longer to downstream autonomous systems. This increased path length can make the route less attractive, influencing traffic engineering decisions without altering actual network performance.
Q8. When both LOCAL_PREF and MED attributes differ between two competing routes, which attribute has higher precedence in the BGP decision process?
📖 Explanation: BGP first compares LOCAL_PREF values; the route with the higher LOCAL_PREF is preferred regardless of MED. Only if LOCAL_PREF values are identical does the decision move to compare MED, making LOCAL_PREF the dominant attribute in this scenario.
Q9. If a router implements route flap damping based on the number of times a path is withdrawn within a 60‑second window, how does this mechanism affect convergence time in a highly dynamic network?
📖 Explanation: Route flap damping penalizes frequently withdrawn routes, causing them to be suppressed for a period. In a network where routes change often, this suppression delays the re‑advertisement of those routes, thereby increasing the overall convergence time.
Q10. An AS prepends its own number twice before advertising a route to a neighboring AS. How does this affect inbound traffic from that neighbor?
📖 Explanation: Prepending adds extra AS numbers to the AS_PATH, artificially lengthening the path. Neighboring ASes interpret the longer path as less attractive, so they are more likely to send traffic via alternate routes, decreasing the amount of inbound traffic received.
Q11. What attribute in path‑vector routing directly prevents routing loops?
📖 Explanation: The AS_PATH attribute records each autonomous system a route traverses. When a router sees its own AS number within the AS_PATH, it knows the route would create a loop and therefore discards it, providing a built‑in loop‑prevention mechanism.
Q12. How does the LOCAL_PREF attribute influence the selection among multiple routes received from different internal BGP peers?
📖 Explanation: LOCAL_PREF is a numeric value assigned within an autonomous system to indicate route preference. Higher values denote greater preference, so when multiple routes exist, the one with the highest LOCAL_PREF is selected before considering other attributes.
Q13. If two routes to the same prefix have identical LOCAL_PREF and MED values, which attribute is considered next in the BGP decision process?
📖 Explanation: After evaluating LOCAL_PREF and MED, BGP compares the length of the AS_PATH. The route with the shorter AS_PATH—meaning it traverses fewer autonomous systems—is considered more direct and is therefore preferred.
Q14. Why does path‑vector routing scale better than link‑state routing in large inter‑domain environments?
📖 Explanation: Path‑vector protocols exchange only route advertisements and policy‑related changes, not the entire network graph. This reduces the volume of routing information exchanged between autonomous systems, making it far more scalable for the Internet’s vast and dynamic inter‑domain topology.
Q15. When AS A exports a route to AS B with a COMMUNITY tag that AS B's import policy strips, what is the likely outcome for the route's attributes in AS B?
📖 Explanation: Import policies can delete specific COMMUNITY attributes from received routes. When the COMMUNITY tag is stripped, the route continues to be propagated, but the particular attribute no longer influences subsequent routing decisions within AS B.
Q16. In BGP, what does the AS_PATH attribute contain?
📖 Explanation: The AS_PATH attribute records the sequence of autonomous system identifiers that a route has traversed. This list enables routers to detect loops and apply policy decisions based on the path’s composition.
Q17. Which BGP attribute indicates the origin of a route?
📖 Explanation: The ORIGIN attribute specifies how the route was learned—whether it was originated by the router itself (IGP), learned from another AS (EGP), or is incomplete. It is one of the fundamental attributes used in BGP path selection.