NOTE: Using software to mass-download the site degrades the server and is prohibited.
If you want to read The TCP/IP Guide offline, please consider licensing it. Thank you.

The Book is Here... and Now On Sale!

Searchable, convenient, complete TCP/IP information.
The TCP/IP Guide

Google
Web TCP/IP Guide






Table Of Contents  The TCP/IP Guide
 9  TCP/IP Lower-Layer (Interface, Internet and Transport) Protocols (OSI Layers 2, 3 and 4)
      9  TCP/IP Internet Layer (OSI Network Layer) Protocols
           9  TCP/IP Routing Protocols (Gateway Protocols)
                9  TCP/IP Interior Routing Protocols (RIP, OSPF, GGP, HELLO, IGRP, EIGRP)
                     9  Open Shortest Path First (OSPF)

Previous Topic/Section
OSPF Hierarchical Topology, Areas and Router Roles
Previous Page
Pages in Current Topic/Section
12
3
4
Next Page
OSPF General Operation and Message Types
Next Topic/Section

OSPF Route Determination Using SPF Trees
(Page 3 of 4)

Second Level

To construct the second level, we look for all devices that the devices on the first level can reach directly. We then add the cost to reach each device on the first level to the cost of each device at the second level:

  • RB: RB has a cost of 5 and can reach:
    • RC, with a cost of 5, total cost of 10.

    • N2, with a cost of 4, total cost of 9.

    • N3, with a cost of 5, total cost of 10.


  • N2: N2 has a cost of 3 and can reach:
    • RA, with a cost of 0, total cost of 3.

    • RB, with a cost of 0, total cost of 3.

    • RC, with a cost of 0, total cost of 3.


  • N3: N3 has a cost of 6 and can reach:
    • RB, with a cost of 0, total cost of 6.

    • RC, with a cost of 0, total cost of 6.

    • RD, with a cost of 0, total cost of 6.

You probably can see immediately that we ended up with a number of different paths to the same devices or networks, some of which make no sense. For example, we don't really care about any path that goes to RC, since we are RC! Similarly, we can weed out certain paths immediately because we already have a shorter path to them; taking a path through RB to N3 with a cost of 10 makes no sense when we can go directly at the first level for a cost of 6. So, after separating out the chaff, we end up with the following “wheat” at the second level:

  • N2 to RA, with a cost of 3.

  • N3 to RD, with a cost of 6.
Third Level

We continue the process by looking for devices that connect to the “weeded-out” devices we found on the second level (this time I am only showing the meaningful ones):

  • RA: RA connects to N1, with a cost of 2, total cost of 5.

  • RD: RD connects to N4, with a cost of 4, total cost of 10.

Previous Topic/Section
OSPF Hierarchical Topology, Areas and Router Roles
Previous Page
Pages in Current Topic/Section
12
3
4
Next Page
OSPF General Operation and Message Types
Next Topic/Section

If you find The TCP/IP Guide useful, please consider making a small Paypal donation to help the site, using one of the buttons below. You can also donate a custom amount using the far right button (not less than $1 please, or PayPal gets most/all of your money!) In lieu of a larger donation, you may wish to consider purchasing a download license of The TCP/IP Guide. Thanks for your support!
Donate $2
Donate $5
Donate $10
Donate $20
Donate $30
Donate: $



Home - Table Of Contents - Contact Us

The TCP/IP Guide (http://www.TCPIPGuide.com)
Version 3.0 - Version Date: September 20, 2005

© Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.