Question 460
A Huawei network design review finds: A policy change prepends a provider path and operators expect the longer AS_PATH to be preferred. Which protocol principle explains the condition?
Explanation
Correct Answer
The key technical boundary is BGP often prefers the shorter AS_PATH after higher-priority attributes tie under the configured policy. That points to this action: Compare AS_PATH lengths after higher-priority selection criteria are equal. A matching test result is: The selected route has the intended shorter AS_PATH when no earlier policy overrides it.
Incorrect Answers
The alternative is about BGP best-path selection and route control, for example 'Two BGP advertisements from the same neighboring AS differ only in MED.' The present symptom is governed instead by BGP often prefers the shorter AS_PATH after higher-priority attributes tie under the configured policy. Verification should show the selected route has the intended shorter AS_PATH when no earlier policy overrides it.
This answer fits the neighboring issue 'A dual-provider site leaves local preference lower on its preferred WAN exit.' rather than the described device state. Its rule is BGP preference commonly evaluates LOCAL_PREF before AS_PATH length or MED in standard selection. The direct target is the selected route has the intended shorter AS_PATH when no earlier policy overrides it.
This choice addresses another BGP best-path selection and route control concern: A BGP peer exports its entire RIB to another AS despite a requirement for only customer prefixes. That would call for applying strict inbound and outbound BGP prefix or AS-path policy at the AS boundary. The current incident instead requires comparing AS_PATH lengths after higher-priority selection criteria are equal.