Please Whitelist This Site?

I know everyone hates ads. But please understand that I am providing premium content for free that takes hundreds of hours of time to research and write. I don't want to go to a pay-only model like some sites, but when more and more people block ads, I end up working for free. And I have a family to support, just like you. :)

If you like The TCP/IP Guide, please consider the download version. It's priced very economically and you can read all of it in a convenient format without ads.

If you want to use this site for free, I'd be grateful if you could add the site to the whitelist for Adblock. To do so, just open the Adblock menu and select "Disable on tcpipguide.com". Or go to the Tools menu and select "Adblock Plus Preferences...". Then click "Add Filter..." at the bottom, and add this string: "@@||tcpipguide.com^$document". Then just click OK.

Thanks for your understanding!

Sincerely, Charles Kozierok
Author and Publisher, The TCP/IP Guide


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

Custom Search







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.