25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5.2.3 Link state routing<br />

The growth in the size <strong>and</strong> complexity of networks in recent years has<br />

necessitated the development of more robust routing algorithms. These<br />

algorithms address the shortcoming observed in distance vector protocols.<br />

These algorithms use the principle of a link state to determine network topology.<br />

A link state is the description of an interface on a router (for example, <strong>IP</strong> address,<br />

subnet mask, type of network) <strong>and</strong> its relationship to neighboring routers. The<br />

collection of these link states forms a link state database.<br />

The process used by link state algorithms to determine network topology is<br />

straightforward:<br />

1. Each router identifies all other routing devices on the directly connected<br />

networks.<br />

2. Each router advertises a list of all directly connected network links <strong>and</strong> the<br />

associated cost of each link. This is performed through the exchange of link<br />

state advertisements (LSAs) with other routers in the network.<br />

3. Using these advertisements, each router creates a database detailing the<br />

current network topology. The topology database in each router is identical.<br />

4. Each router uses the information in the topology database to compute the<br />

most desirable routes to each destination network. This information is used to<br />

update the <strong>IP</strong> routing table.<br />

Shortest-Path First (SPF) algorithm<br />

The SPF algorithm is used to process the information in the topology database. It<br />

provides a tree-representation of the network. The device running the SPF<br />

algorithm is the root of the tree. The output of the algorithm is the list of<br />

shortest-paths to each destination network. Figure 5-3 on page 178 provides an<br />

example of the shortest-path algorithm executed on router A.<br />

Chapter 5. Routing protocols 177

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

Saved successfully!

Ooh no, something went wrong!