Monday, November 21, 2011

Basics of Routing(part 3 of 5)

Routing Algorithms
Routing algorithms can be differentiated based on several key characteristics. First, the particular
goals of the algorithm designer affect the operation of the resulting routing protocol. Second, various
types of routing algorithms exist, and each algorithm has a different impact on network and router
resources. Finally, routing algorithms use a variety of metrics that affect calculation of optimal
routes. The following sections analyze these routing algorithm attributes.

Design Goals

Routing algorithms often have one or more of the following design goals:
• Optimality
• Simplicity and low overhead
• Robustness and stability
• Rapid convergence
• Flexibility
Optimality refers to the capability of the routing algorithm to select the best route, which depends
on the metrics and metric weightings used to make the calculation. One routing algorithm, for
example, may use a number of hops and delays, but may weight delay more heavily in the
calculation. Naturally, routing protocols must define their metric calculation algorithms strictly.
Routing algorithms also are designed to be as simple as possible. In other words, the routing
algorithm must offer its functionality efficiently, with a minimum of software and utilization
overhead. Efficiency is particularly important when the software implementing the routing algorithm
must run on a computer with limited physical resources.
Routing algorithms must be robust, which means that they should perform correctly in the face of
unusual or unforeseen circumstances, such as hardware failures, high load conditions, and incorrect
implementations. Because routers are located at network junction points, they can cause
considerable problems when they fail. The best routing algorithms are often those that have
withstood the test of time and have proven stable under a variety of network conditions.
In addition, routing algorithms must converge rapidly. Convergence is the process of agreement, by
all routers, on optimal routes. When a network event causes routes either to go down or become
available, routers distribute routing update messages that permeate networks, stimulating
recalculation of optimal routes and eventually causing all routers to agree on these routes. Routing
algorithms that converge slowly can cause routing loops or network outages.
In the routing loop displayed in Figure 5-3, a packet arrives at Router 1 at time t1. Router 1 already
has been updated and thus knows that the optimal route to the destination calls for Router 2 to be the
next stop. Router 1 therefore forwards the packet to Router 2, but because this router has not yet been
updated, it believes that the optimal next hop is Router 1. Router 2 therefore forwards the packet
back to Router 1, and the packet continues to bounce back and forth between the two routers until
Router 2 receives its routing update or until the packet has been switched the maximum number of
times allowed.
Routing algorithms should also be flexible, which means that they should quickly and accurately
adapt to a variety of network circumstances. Assume, for example, that a network segment has gone
down. As they become aware of the problem, many routing algorithms will quickly select the
next-best path for all routes normally using that segment. Routing algorithms can be programmed to
adapt to changes in network bandwidth, router queue size, and network delay, among other variables

No comments:

Post a Comment