• In a multi-area OSPF design, understanding how OSPF selects the best path is essential.

    You may have learned that OSPF always chooses the route with the lowest cost.
    That statement is incomplete.

    OSPF does not compare cost first.
    It first evaluates the route type.
    Look at the picture below:

    OSPF route selection order: O (intra-area), O IA (inter-area), O E1 (external type 1), O E2 (external type 2), lowest cost preferred within same type

    Figure 1 - OSPF Route Selection Order

    OSPF Route Selection Order (Most Preferred to Least Preferred)

    1. Intra-Area (O)

    2. Inter-Area (O IA)

    3. External Type 1 (O E1)

    4. External Type 2 (O E2)

    When OSPF learns two routes to the same destination, it does not compare the cost immediately.
    OSPF first evaluates the route type and gives priority according to the order above.

    Cost comparison occurs only when the routes are of the same type.
    In the following sections, you will analyze practical scenarios to understand how OSPF selects the best route.

    Answer the question below

    Between external routes, which type is preferred?