cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2456
Views
11
Helpful
5
Replies

OSPF Hiararchy

Aneek
Level 1
Level 1

I am not able to find the answer to this question. Pls, help. The question is given below. 

 

1. Why 32-bit is IP addressing generally limit the number of hierarchical levels to 4 in OSPF? 

5 Replies 5

Peter Paluch
Cisco Employee
Cisco Employee

Hello Aneek,

I am afraid that there is some kind of misunderstanding.

When we talk about hierarchy in OSPF, we talk about the split of the overall network topology into the backbone area (area 0) and other areas (areas whose numbers are non-zero) that are attached to the backbone area. By its design, OSPF has a two level hierarchy - backbone and other areas. There are no more levels of hierarchy in OSPF.

IP addressing and the length of an IP address (32 bits) have nothing to do with the hierarchy depth in OSPF. If you are perhaps referring to the fact that area numbers (area IDs) have 32-bit numbers that look like IP addresses, that is only a matter of convenience since 32-bit numbers are a natural quantity to work with to computers. However, area IDs are just that - 32-bit numbers - and they do not have any further structure, as opposed to IP addresses that have the network prefix part, and the host part.

Please feel welcome to ask further!

Best regards,
Peter

Thank you so much for the response, but I would like you to open the attached doc file and let me know the interpretation of it. I found this in the OSPF- Anatomy of INternet Routing book. 

Hello,

 

I think the book you are talking about was published in 1998. They talk about IPv6 as something 'in the future'. With 4 levels, I can imagine they mean the 4 octets in the 32-bit IPv4 addressing. I don't think they relate that to OSPF in particular...

Hello Georg, Aneek,

Indeed. I agree with Georg. That paragraph does not talk about OSPF hierarchy, it talks about Internet routing hierarchy where obviously OSPF would not be even running (since OSPF is an IGP protocol). The hierarchy they talk about is just an attempt to "scope" an IP address into parts that would be hierarchically related to each other, for example, something like continent->country->owner->host (just an example). With 4B IPv4 addressing, a natural approach would be to take each of the bytes for one of those hierarchical units, and that's what they talk about. We never adopted this in real life, though - the best compromise between an efficient use of IP addresses and the numbers of hierarchy is achieved by a simple approach of splitting an IP address into a network prefix and a host ID part, and allowing the network prefix to be further subnetted later on.

Attempts to make IP addressing somehow related to geographical or geopolitical reality have come in and out several times; if you check the old and already superseded IPv6 addressing documents, in particular RFCs 2373 and 2374, they talk about structuring the IPv6 address into a whole set of parts (Top-Level Aggregation, Next-Level Aggregation, Site-Level Aggregation). It never gained much popularity. Imposing strict hierarchy into IP addressing does not go well with the paradigm of getting a prefix of an arbitrary length and subnetting it further as we need.

The bottom line is - what the book says in the paragraph you quoted is about IP addressing hierarchy, not about OSPF hierarchy, and it is an old take on how we could impose certain levels of hierarchy onto IP addressing. It's not exactly what we do today, and it is not related to OSPF.

Best regards,
Peter

Thank you so much for the input. My doubts are cleared now. 

Much appreciated.   

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card