Question of the day - OSPF Cost Caulcation

rakemrakem Posts: 800Member
This thread needs more technical discussions!
So here is my attempt at stimulating something....

How does an OSPF router, that isn't an ABR or ASBR, calculate it's cost to an inter-area subnet?
CCIE# 38186
showroute.net

Comments

  • al3kt.R***al3kt.R*** Posts: 118Member
    Nice one!

    Router calculates (applying SPF to its LSDB), for each type3 LSA in its LSDB, the intra-area cost from itself to reach the ABR listed in a given type3 LSA and adds to it the cost value listed in this type3 LSA (the actual cost from this ABR to the dest subnet)

    Cheers
    "Tigranes: Good heavens! Mardonius, what kind of men have brought us to fight against? Men who do not compete for possessions, but for honour."--- Herodotus, The Histories
    "Nipson anomemata me monan opsin"--- Gregory of Nazianzus
    "Bruce Schneier's secure handshake is so strong, you won't be able to exchange keys with anyone else for days."--- Bruce Schneier Facts
  • MrBrianMrBrian Posts: 520Member
    Ditto what the previous poster said.

    However, I think the way ospf routers calculate the cost to reach redistributed routes, that were also redistributed in a different area than its own, is the money question.

    Like what if I redistributed routes into area 10, let's say. How would an internal ospf router, that's part of the backbone area, determine the cost to those routes?? That's the one that took me the longest to get down!

    The type 3 lsa's are low-hanging fruit for a ccie thread imo.. icon_wink.gif

    Love the quick hit question though! Got me thinking about something I hadn't thought of in awhile.
    Currently reading: Internet Routing Architectures by Halabi
  • rakemrakem Posts: 800Member
    Yep good answers.

    I guess the main point is the router trusts the cost that is received from the ABR. It then calculates its cost to reach the ABR then adds that value to the cost received from the ABR.
    CCIE# 38186
    showroute.net
  • vishaw1986vishaw1986 Posts: 40Member ■■□□□□□□□□
    Per hop cost as added to the particular route when moving in the OSPF area .
Sign In or Register to comment.