09.12.2012 Views

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

Understanding the network.pdf - Back to Home

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Distance Vec<strong>to</strong>r Pro<strong>to</strong>cols<br />

All routing pro<strong>to</strong>cols use an algorithm or set of algorithms <strong>to</strong> calculate<br />

anddistribute routing information. A distance vec<strong>to</strong>r pro<strong>to</strong>col (DVP) is<br />

a dynamic routing pro<strong>to</strong>col that uses an algorithm based on <strong>the</strong> work<br />

of Bellman, Ford, and Fulkerson known as vec<strong>to</strong>r distance or <strong>the</strong><br />

Bellman-Ford algorithm. RIPv1, RIPv2, and Cisco's Interior Gateway<br />

Routing Pro<strong>to</strong>col (IGRP) are considered DVPs.<br />

The idea behind <strong>the</strong> DVP algorithm is that each router on <strong>the</strong> <strong>network</strong><br />

(routing domain or process) compiles a list of <strong>the</strong> <strong>network</strong>s it can<br />

reach and sends <strong>the</strong> list <strong>to</strong> <strong>the</strong>ir directly connected neighbors. The<br />

routers <strong>the</strong>n create routing tables based on what <strong>the</strong>y can reach<br />

directly and indirectly, using <strong>the</strong>ir neighbor routers as gateways. If<br />

multiple paths exist, <strong>the</strong> router only keeps <strong>the</strong> best one. This route is<br />

chosen based on <strong>the</strong> pro<strong>to</strong>col's particular metric for determining <strong>the</strong><br />

best route. Routing pro<strong>to</strong>cols each use different route metrics <strong>to</strong><br />

choose <strong>the</strong> best route.<br />

Link State Pro<strong>to</strong>cols<br />

Link state pro<strong>to</strong>cols (LSPs) are based on a different algorithm than<br />

DVPs. LSPs are based on a graph <strong>the</strong>ory algorithm called Dijkstra's<br />

algorithm, named after its crea<strong>to</strong>r E.W. Dijkstra. The algorithm works<br />

like this: The premise is that a collection of points is seen as a tree;<br />

one point is <strong>the</strong> base and <strong>the</strong> shortest path <strong>to</strong> all o<strong>the</strong>r points as <strong>the</strong><br />

pathway. The cost of <strong>the</strong> path is <strong>the</strong> sum of <strong>the</strong> path costs between<br />

<strong>the</strong> source point and <strong>the</strong> terminus point. Whereas DVPs are interested<br />

in <strong>the</strong> shortest route, LSPs are interested in <strong>the</strong> operational status of<br />

all of <strong>the</strong> links in <strong>the</strong> <strong>network</strong>. Each host compiles a "map" of <strong>the</strong><br />

routing domain from its own point of view.<br />

From a practical perspective, LSPs and DVPs have some similarities.<br />

In both pro<strong>to</strong>cols, <strong>the</strong> router comes online and finds o<strong>the</strong>r routers as<br />

"neighbors" that are directly accessible from its connected <strong>network</strong><br />

interfaces and part of <strong>the</strong> same process. The router <strong>the</strong>n sends out a<br />

message known as a link state announcement (LSA) from each of its<br />

<strong>network</strong> interfaces. The LSA contains information about <strong>the</strong> router's<br />

interfaces: <strong>the</strong>ir cost metric, operational state, and which routers are<br />

reachable from <strong>the</strong>m. The directly accessible routers <strong>the</strong>n forward <strong>the</strong><br />

LSA <strong>to</strong> o<strong>the</strong>r neighbors. LSAs are saved <strong>to</strong>ge<strong>the</strong>r as a link state<br />

database. The router uses <strong>the</strong> database <strong>to</strong> compute its own routing<br />

table.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!