Open Shortest Path First
Open Shortest Path First (OSPF) lets the switch determine the best (shortest) route to a destination. For large networks, OSPF is generally used in preference to Routing Information Protocol (RIP).
If you manage a large or complex network, OSPF offers several benefits:
-
Less network traffic:
- Routing table updates are sent only when a change occurs
- Only the part of the table that changes is sent
- Updates are sent to a multicast address rather than a broadcast address
-
Hierarchical management:
Hierarchical management allows the network to be subdivided.
The top level of the hierarchy of an OSPF network is known as an autonomous system (AS) or routing domain. This is a collection of networks with a common administration and routing strategy. The AS is divided into areas:
-
Intra-area: Intra-area routing is used when a source and destination address are in the same area.
-
Inter-area: Inter-area routing across an OSPF backbone is used when a source and destination address are not in the same area. An inter-area router communicates with border routers in each of the areas to which it provides connectivity.
If you enable OSPF on the switch, it determines the best route using the assigned cost and the type of the OSPF route. If more than one type of route is present, the switch selects a route based on the following order of preference:
- Intra-area route
- Inter-area route
- External type 1 route: The route is external to the AS
- External type 2 route: The route is learned from other protocols such as RIP
-