Let’s analyze the scenario and each statement carefully based on OSPF path selection and BGP behavior in Huawei routers.
✅ Option A: The preferred path is R1–R3–R4.
According to the OSPF cost values:
R1–R3–R4: Cost = 1 + 1 = 2
R1–R2–R4: Cost = 2 + 2 = 4
OSPF chooses the lowest-cost path to reach a destination. Therefore, R1 will prefer the R1–R3–R4 path to reach 172.20.1.4/32.
Huawei Datacom Reference:
"OSPF selects routes based on the shortest path calculated using link costs. The router always selects the path with the lowest cost."
(Source: HCIE-Datacom Study Guide v3.0 – OSPF Path Selection, Chapter 5)
✅ Option B: If the stub router on-startup command is run on R3, packet loss occurs during the power-off process of R3 but no packet loss occurs during the startup process of R3.
When R3 is powered off, OSPF needs to reconverge, which causes temporary packet loss.
When R3 starts up, it will advertise itself as a stub router using the stub-router on-startup command. This tells OSPF not to use R3 as a transit path during the startup period, thus preventing traffic blackholing.
Huawei Datacom Reference:
"stub-router on-startup command prevents a newly started router from being used as a transit node by OSPF, allowing routing to remain stable during convergence."
(Source: HCIE-Datacom Study Guide v3.0 – OSPF Stub Router Functionality, Chapter 6.2)
❌ Option C: The preferred path is R1–R2–R4.
❌ Option D: Packet loss occurs during both the power-off and startup processes of R3.
Incorrect. As explained above, when the stub-router on-startup command is used, packet loss is avoided during startup, but still occurs during power-off since the alternate path requires convergence.