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.

► The associated cost (distance) of the most attractive path to reach this<br />

destination. This provides the ability to differentiate between multiple paths to<br />

a destination. In this context, the terms distance <strong>and</strong> cost can be misleading.<br />

They have no direct relationship to physical distance or monetary cost.<br />

► The <strong>IP</strong> address of the next-hop device used to reach the destination network.<br />

Each time a routing table advertisement is received by a device, it is processed<br />

to determine if any destination can be reached by a lower cost path. This is done<br />

using the R<strong>IP</strong> distance vector algorithm. The algorithm can be summarized as:<br />

► At router initialization, each device contains a distance vector table listing<br />

each directly attached networks <strong>and</strong> configured cost. Typically, each network<br />

is assigned a cost of 1. This represents a single hop through the network. The<br />

total number of hops in a route is equal to the total cost of the route. However,<br />

cost can be changed to reflect other measurements such as utilization,<br />

speed, or reliability.<br />

► Each router periodically (typically every 30 seconds) transmits its distance<br />

vector table to each of its neighbors. The router can also transmit the table<br />

when a topology change occurs. Each router uses this information to update<br />

its local distance vector table:<br />

– The total cost to each destination is calculated by adding the cost reported<br />

in a neighbor's distance vector table to the cost of the link to that neighbor.<br />

The path with the least cost is stored in the distance vector table.<br />

– All updates automatically supersede the previous information in the<br />

distance vector table. This allows R<strong>IP</strong> to maintain the integrity of the<br />

routes in the routing table.<br />

► The <strong>IP</strong> routing table is updated to reflect the least-cost path to each<br />

destination.<br />

Chapter 5. Routing protocols 183

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

Saved successfully!

Ooh no, something went wrong!