NB - Layer 3 - OSPF
NB - Layer 3 - OSPF
Prepared by:
Mohit Sahai
SVS India
Foundation of Link State Routing Protocols
• Neighbor advertised
latest version of an
already existing LSA in
LSBD.
• Neighbor advertised
LSA which does not
exist in local LSDB.
Link State Update(LSU)
Link State Acknowledgement (LSAck)
• Implicit Ack
• Explicit Ack
OSPF Operation
OSPF Neighbor States
• Down
• Attempt* : Only for NBMA and point to multipoint N. Broadcast
• Init
• 2-Way
• Exstart
• Exchange
• Loading
• Full
Master/Slave Relationship – Exstart State
Ospf priority
Wait Timer
DR/BDR Election on basis on Priority/RID
DR/BDR Election
• When router comes up, it starts wait timer and collects the priority and RID of all the Helloes it received
• If any Hello is received with neighbor claiming itself as BDR or DR (only one), router goes for DR/BDR
election
• The election is performed only for those role which is not claimed.
• Once the election is completed and all routers agree to same DR/BDR, new router with better priority
cannot preempt.
• Incase, different routers calculate different DR/BDR, election may again happen
OSPF Network Types
SPF Calculation
Stub:
• A subnet on which there is no OSPF
neighbors
Transit:
• A network over which two or more OSPF
routers are neighbors and DR is elected so
that traffic can transit each other.
• Exception is point to point link where it is
treated as combination of stub IP Network
and a point to point link.
Some Rules which OSPF follows
• Route Preference: Intra Area Route > Inter Area Route > E1 external route >
E2 external route
• ABR ignores LSA 3 learned from a “non backbone area” during SPF calculation.
• ABR would not flood LSA 3 received from a “Non Backbone area” in to “Backbone”
(only 1 and 2)
• Router which has originated a particular LSA is “only” allowed to modify It or withdraw
it.
• Other routers cannot ever change the content, block it or drop it before max lifetime
has expired.
Stub routing
Stub routing rules
• There is a single ABR, or if there is more than one ABR, suboptimal routing paths
to other areas or external autonomous systems are acceptable
• NSSA breaks stub area rules. • ABR (R2) converts LSA type 7 to LSA type 5.
• ASBR (R1) is allowed in NSSA. • ABR sends default route into NSSA instead of
• Special LSA type 7 defined, sent by ASBR. external routes from other ASBRs.
• NSSA is an RFC addendum.
LSA Type 7: NSSA
NSSA Configuration
Totally NSSA
OSPF Cost and clearing OSPF process
• ASBR performs summarization for the external routes redistributed into OSPF domain
• Type 0: None
• Type 1: plain text
• Type 2: MD5