All Cisco configurations

Cisco How To's

All Cisco Configurations: OSPF Theory

Thursday, July 14, 2011

OSPF Theory

OSPF Concepts, Area Design and Terms

Hello Everyone this is Open Shortest Path First(OSPF) Routing protocol Post:

Before moving ahead I request you to please see my Route summarization post here  , as it is utterly important to understand route summarization first. There is no point in applying Routing protocols like
ospf and eigrp without applying route summarization. so please first understand route summarization.

Lets first get familiar about ospf and its terms. OSPF is a link state routing protocol. Unlike distance vector routing protocols like RIP, link state routing protocol only sends changes to its neighbor routers. ( Remember in
RIP routing,router broadcast all their routing information saying " Hello I know about so and so routes" at certain intervals rather than forming neighbor relationship with other routers) . Link state routing protocols first establish neighbor relationship with its neighbors
and then only send changes as updates.

please refer to the below mentioned figures you can click to enlarge the figure

Ospf theory,area designs and terms


AREA: An area in ospf is a group of all routers that all have the same routing information. Cisco recommends this area to have no
more than 50 routers. Inside of Area, there are
1> Internal Routers: Routers that only knows about the specific area. eg in the figure the routers in area 0 knows all about the area 0.
All routers in an area have the same topology table(Roadmap) i.e all of the routers in area 0 knows everything
about the area, but every router within an area may have different routing table.
2> Autonomous Border Routers(ABR): Routers that sits between routers in the same autonomous system. ABR is responsible for
routing between different areas of the same autonomous system i.e ABR is the one that is able summarize.
3>Autonomous System Boundary Router(ASBR): is the one that connects different autonomous system. This ASBR can also summarize the route and advertise to different autonomous system

All Area Must connect to Area 0 ( backbone router). when designing ospf, it has to be a hierarchical designs ie have to group similar
subnets in similar areas.

OSPF Neighbor Relationship
A router running ospf forms neighbor relationship with other router by sending HELLO Messages on the chosen interface
1> once every 10 sec on broadcast/p-2-p networks
2>once every 30 sec on NBMA networks ( we will later discuss NBMA networks)

Hello contains all of the below information:
1>Router I.D : its like the name of the name of the router
2>Hello and Dead timers* : How often the these hello messages should be exchanged and the time after which if no hello messages
is received the neighbor is considered dead
3>Network Mask*: Network mask the router advertises
4>Area ID*:
5>Neighbors*:
6>Route Priority:
7>DR/BDR IP address:
8>Authentication Password*:

The * sign mean that these fields must match between two routers to talk with ospf language.

ok now we are ready to delve into ospf configuration. So In my next post we will configure a simple multi-area ospf and later move into the advanced topics. so stay on

Thank you
Ciscohowtos

3 comments:

  1. I have a number of easy to understand configurations (real world as well as for Lab purposes). Configuration scripts/samples range from:
    - PPPoA > PPPoE lab script
    - AAA (Tacacs+ And Cisco ACS Appliance)
    - MPLS-TE
    - MPLS-VPN
    - VRF (and VRF-lite) using a c3750G L3 sw as "hub" and C3945 as P, 2901 as PE and 2801 as CE router(s)
    - EIGRP/BGP (redistribution scenarios and scripts)

    + many, many more items. Most of designs and scripts has an easy to follow/understand Visio (and/or a pdf file)drawing that makes the setup very easy to understand. If interested, reply on this site with an email address that I can use when sending the scripts. Just to let you know; currently I have +20 GB with useful information and documents.

    Befor asking; and yes, legally obtained documents using my CCO account - (I will under NO circumstances share any Cisco software that I have with anybody here nor will I share the sw from Cisco anywhere else!)

    BR/Michael

    ReplyDelete
  2. Wow what a nice post i am really so inspired here could you more share here i will be back to you as soon as possible keep continue sharing.
    Thanks



    Cisco Catalyst 3750G-24TS-1U

    ReplyDelete