Dynamic versus Static Routing (3.1.2)
Routing tables can contain directly connected, manually configured static routes and routes learned dynamically using a routing protocol. Network professionals must understand when to use static or dynamic routing. This section compares static routing and dynamic routing.
Using Static Routing (3.1.2.1)
Before identifying the benefits of dynamic routing protocols, consider the reasons why network professionals use static routing. Dynamic routing certainly has several advantages over static routing; however, static routing is still used in networks today. In fact, networks typically use a combination of both static and dynamic routing.
Static routing has several primary uses, including:
- Providing ease of routing table maintenance in smaller networks that are not expected to grow significantly.
- Routing to and from a stub network, which is a network with only one default route out and no knowledge of any remote networks.
- Accessing a single default route (which is used to represent a path to any network that does not have a more specific match with another route in the routing table).
Figure 3-2 provides a sample static routing scenario.
Figure 3-2 Static Routing Scenario
Static Routing Scorecard (3.1.2.2)
Static routing is easy to implement in a small network. Static routes stay the same, which makes them fairly easy to troubleshoot. Static routes do not send update messages and, therefore, require very little overhead.
The disadvantages of static routing include:
- They are not easy to implement in a large network.
- Managing the static configurations can become time consuming.
- If a link fails, a static route cannot reroute traffic.
Table 3-2 highlights the advantages and disadvantages of static routing.
Table 3-2 Static Routing Advantages and Disadvantages
Advantages |
Disadvantages |
Easy to implement in a small network. |
Suitable for simple topologies or for special purposes such as a default static route. |
Very secure. No advertisements are sent, unlike with dynamic routing protocols. |
Configuration complexity increases dramatically as the network grows. Managing the static configurations in large networks can become time consuming. |
It is very predictable, as the route to the destination is always the same. |
If a link fails, a static route cannot reroute traffic. Therefore, manual intervention is required to re-route traffic. |
No routing algorithm or update mechanisms are required. Therefore, extra resources (CPU and memory) are not required. |
|
Using Dynamic Routing Protocols (3.1.2.3)
Dynamic routing protocols help the network administrator manage the time-consuming and exacting process of configuring and maintaining static routes.
Imagine maintaining the static routing configurations for the seven routers in Figure 3-3.
Figure 3-3 Small Dynamic Routing Scenario
What if the company grew and now has four regions and 28 routers to manage, as shown in Figure 3-4? What happens when a link goes down? How do you ensure that redundant paths are available?
Figure 3-4 Large Dynamic Routing Scenario
Dynamic routing is the best choice for large networks like the one shown in Figure 3-4.
Dynamic Routing Scorecard (3.1.2.4)
Dynamic routing protocols work well in any type of network consisting of several routers. They are scalable and automatically determine better routes if there is a change in the topology. Although there is more to the configuration of dynamic routing protocols, they are simpler to configure in a large network.
There are disadvantages to dynamic routing. Dynamic routing requires knowledge of additional commands. It is also less secure than static routing because the interfaces identified by the routing protocol send routing updates out. Routes taken may differ between packets. The routing algorithm uses additional CPU, RAM, and link bandwidth.
Table 3-3 highlights the advantages and disadvantages of dynamic routing.
Table 3-3 Dynamic Routing Advantages and Disadvantages
Advantages |
Disadvantages |
Suitable in all topologies where multiple routers are required. |
Can be more complex to initially implement. |
Generally independent of the network size. |
Less secure due to the broadcast and multicast routing updates. Additional configuration settings such as passive interfaces and routing protocol authentication are required to increase security. |
Automatically adapts topology to reroute traffic if possible. |
Route depends on the current topology. |
|
Requires additional resources such as CPU, memory, and link bandwidth. |
Notice how dynamic routing addresses the disadvantages of static routing.