Algorithm Types
Routing algorithms can be classified by type. Key differentiators include:
• Static versus dynamic
• Single-path versus multi-path
• Flat versus hierarchical
• Host-intelligent versus router-intelligent
• Intradomain versus interdomain
• Link state versus distance vector
Static Versus Dynamic
Static routing algorithms are hardly algorithms at all, but are table mappings established by the
network administrator prior to the beginning of routing. These mappings do not change unless the
network administrator alters them. Algorithms that use static routes are simple to design and work
well in environments where network traffic is relatively predictable and where network design is
relatively simple.
Because static routing systems cannot react to network changes, they generally are considered
unsuitable for today’s large, changing networks. Most of the dominant routing algorithms in the
1990s are dynamic routing algorithms, which adjust to changing network circumstances by
analyzing incoming routing update messages. If the message indicates that a network change has
occurred, the routing software recalculates routes and sends out new routing update messages. These
messages permeate the network, stimulating routers to rerun their algorithms and change their
routing tables accordingly.
Dynamic routing algorithms can be supplemented with static routes where appropriate. A router of
last resort (a router to which all unroutable packets are sent), for example, can be designated to act
as a repository for all unroutable packets, ensuring that all messages are at least handled in some way.
Single-Path Versus Multipath
Some sophisticated routing protocols support multiple paths to the same destination. Unlike
single-path algorithms, these multipath algorithms permit traffic multiplexing over multiple lines.
The advantages of multipath algorithms are obvious: They can provide substantially better
throughput and reliability.
Flat Versus Hierarchical
Some routing algorithms operate in a flat space, while others use routing hierarchies. In a flat routing
system, the routers are peers of all others. In a hierarchical routing system, some routers form what
amounts to a routing backbone. Packets from non-backbone routers travel to the backbone routers,
Routing Algorithms
5-6 Internetworking Technology Overview, June 1999
where they are sent through the backbone until they reach the general area of the destination. At this
point, they travel from the last backbone router through one or more non-backbone routers to the
final destination.
Routing systems often designate logical groups of nodes, called domains, autonomous systems, or
areas. In hierarchical systems, some routers in a domain can communicate with routers in other
domains, while others can communicate only with routers within their domain. In very large
networks, additional hierarchical levels may exist, with routers at the highest hierarchical level
forming the routing backbone.
The primary advantage of hierarchical routing is that it mimics the organization of most companies
and therefore supports their traffic patterns well. Most network communication occurs within small
company groups (domains). Because intradomain routers need to know only about other routers
within their domain, their routing algorithms can be simplified, and, depending on the routing
algorithm being used, routing update traffic can be reduced accordingly.
Host-Intelligent Versus Router-Intelligent
Some routing algorithms assume that the source end-node will determine the entire route. This is
usually referred to as source routing. In source-routing systems, routers merely act as
store-and-forward devices, mindlessly sending the packet to the next stop.
Other algorithms assume that hosts know nothing about routes. In these algorithms, routers
determine the path through the internetwork based on their own calculations. In the first system, the
hosts have the routing intelligence. In the latter system, routers have the routing intelligence.
The trade-off between host-intelligent and router-intelligent routing is one of path optimality versus
traffic overhead. Host-intelligent systems choose the better routes more often, because they typically
discover all possible routes to the destination before the packet is actually sent. They then choose the
best path based on that particular system’s definition of “optimal.” The act of determining all routes,
however, often requires substantial discovery traffic and a significant amount of time.
Intradomain Versus Interdomain
Some routing algorithms work only within domains; others work within and between domains. The
nature of these two algorithm types is different. It stands to reason, therefore, that an optimal
intradomain- routing algorithm would not necessarily be an optimal interdomain- routing algorithm.
Link State Versus Distance Vector
Link- state algorithms (also known as shortest path first algorithms) flood routing information to all
nodes in the internetwork. Each router, however, sends only the portion of the routing table that
describes the state of its own links. Distance- vector algorithms (also known as Bellman-Ford
algorithms) call for each router to send all or some portion of its routing table, but only to its
neighbors. In essence, link- state algorithms send small updates everywhere, while distance- vector
algorithms send larger updates only to neighboring routers.
Because they converge more quickly, link- state algorithms are somewhat less prone to routing loops
than distance- vector algorithms. On the other hand, link- state algorithms require more CPU power
and memory than distance vector algorithms. Link-state algorithms, therefore, can be more
expensive to implement and support. Despite their differences, both algorithm types perform well in
most circumstances.
Routing Metrics
Routing algorithms can be classified by type. Key differentiators include:
• Static versus dynamic
• Single-path versus multi-path
• Flat versus hierarchical
• Host-intelligent versus router-intelligent
• Intradomain versus interdomain
• Link state versus distance vector
Static Versus Dynamic
Static routing algorithms are hardly algorithms at all, but are table mappings established by the
network administrator prior to the beginning of routing. These mappings do not change unless the
network administrator alters them. Algorithms that use static routes are simple to design and work
well in environments where network traffic is relatively predictable and where network design is
relatively simple.
Because static routing systems cannot react to network changes, they generally are considered
unsuitable for today’s large, changing networks. Most of the dominant routing algorithms in the
1990s are dynamic routing algorithms, which adjust to changing network circumstances by
analyzing incoming routing update messages. If the message indicates that a network change has
occurred, the routing software recalculates routes and sends out new routing update messages. These
messages permeate the network, stimulating routers to rerun their algorithms and change their
routing tables accordingly.
Dynamic routing algorithms can be supplemented with static routes where appropriate. A router of
last resort (a router to which all unroutable packets are sent), for example, can be designated to act
as a repository for all unroutable packets, ensuring that all messages are at least handled in some way.
Single-Path Versus Multipath
Some sophisticated routing protocols support multiple paths to the same destination. Unlike
single-path algorithms, these multipath algorithms permit traffic multiplexing over multiple lines.
The advantages of multipath algorithms are obvious: They can provide substantially better
throughput and reliability.
Flat Versus Hierarchical
Some routing algorithms operate in a flat space, while others use routing hierarchies. In a flat routing
system, the routers are peers of all others. In a hierarchical routing system, some routers form what
amounts to a routing backbone. Packets from non-backbone routers travel to the backbone routers,
Routing Algorithms
5-6 Internetworking Technology Overview, June 1999
where they are sent through the backbone until they reach the general area of the destination. At this
point, they travel from the last backbone router through one or more non-backbone routers to the
final destination.
Routing systems often designate logical groups of nodes, called domains, autonomous systems, or
areas. In hierarchical systems, some routers in a domain can communicate with routers in other
domains, while others can communicate only with routers within their domain. In very large
networks, additional hierarchical levels may exist, with routers at the highest hierarchical level
forming the routing backbone.
The primary advantage of hierarchical routing is that it mimics the organization of most companies
and therefore supports their traffic patterns well. Most network communication occurs within small
company groups (domains). Because intradomain routers need to know only about other routers
within their domain, their routing algorithms can be simplified, and, depending on the routing
algorithm being used, routing update traffic can be reduced accordingly.
Host-Intelligent Versus Router-Intelligent
Some routing algorithms assume that the source end-node will determine the entire route. This is
usually referred to as source routing. In source-routing systems, routers merely act as
store-and-forward devices, mindlessly sending the packet to the next stop.
Other algorithms assume that hosts know nothing about routes. In these algorithms, routers
determine the path through the internetwork based on their own calculations. In the first system, the
hosts have the routing intelligence. In the latter system, routers have the routing intelligence.
The trade-off between host-intelligent and router-intelligent routing is one of path optimality versus
traffic overhead. Host-intelligent systems choose the better routes more often, because they typically
discover all possible routes to the destination before the packet is actually sent. They then choose the
best path based on that particular system’s definition of “optimal.” The act of determining all routes,
however, often requires substantial discovery traffic and a significant amount of time.
Intradomain Versus Interdomain
Some routing algorithms work only within domains; others work within and between domains. The
nature of these two algorithm types is different. It stands to reason, therefore, that an optimal
intradomain- routing algorithm would not necessarily be an optimal interdomain- routing algorithm.
Link State Versus Distance Vector
Link- state algorithms (also known as shortest path first algorithms) flood routing information to all
nodes in the internetwork. Each router, however, sends only the portion of the routing table that
describes the state of its own links. Distance- vector algorithms (also known as Bellman-Ford
algorithms) call for each router to send all or some portion of its routing table, but only to its
neighbors. In essence, link- state algorithms send small updates everywhere, while distance- vector
algorithms send larger updates only to neighboring routers.
Because they converge more quickly, link- state algorithms are somewhat less prone to routing loops
than distance- vector algorithms. On the other hand, link- state algorithms require more CPU power
and memory than distance vector algorithms. Link-state algorithms, therefore, can be more
expensive to implement and support. Despite their differences, both algorithm types perform well in
most circumstances.
Routing Metrics
No comments:
Post a Comment