Introduction to OSPF - Lecture slides-2024
Introduction to OSPF - Lecture slides-2024
Contents of LSP:
• State of each directly connected link
• Includes information about neighbours such as neighbour ID,
link type & bandwidth.
OSPF Using the multicast address:
224.0.0.x
(the x number above
Library Bldg
More Bldgs...
OSPF uses cost as the metric for determining the best route
• The best route will have the lowest cost
• Cost is based on bandwidth of an interface
• Cost is calculated using the formula
108 / bandwidth
• Reference bandwidth defaults to 100Mbps (108)
• can be modified using auto-cost reference-bandwidth
command
OSPF link cost Cost is not same as bandwidth.
Cost is customizable and can be changed to modify preferred paths.
Router(config-if)#bandwidthbandwidth-kbps
• ip ospf cost command allows you to directly specify
interface cost
Multi-area OSPF
Problems as OSPF networks grow
Internal Router
ABR
ASBR
OSPF LSA types
Type 1 – Router LSA
LSA 1 (Router LSA) Generated by all routers in an area to describe their directly
attached links (Intra-area routes). These do not leave the area.
LSA 2 (Network LSA) Generated by the DR of a broadcast or nonbroadcast segment
to describe the neighbors connected to the segment. These do not leave the area.
LSA 3 (Summary LSA) Generated by the ABR to describe a route to neighbors
outside the area. (Inter-area routes)
LSA 4 (Summary LSA) Generated by the ABR to describe a route to an ASBR to
neighbors outside the area.
LSA 5 (External LSA) Generated by ASBR to describe routes redistributed into the
area. These routes appear as E1 or E2 in the routing table. E2 (default) uses a
static cost throughout the OSPF domain as it only takes the cost into account that
is reported at redistribution. E1 uses a cumulative cost of the cost reported into the
OSPF domain at redistribution plus the local cost to the ASBR.
Outside our scope…
LSA 6 (Multicast LSA) Not supported on Cisco routers.
LSA 7 (NSSA External LSA) Generated by an ASBR inside a NSSA to describe routes
redistributed into the NSSA. LSA 7 is translated into LSA 5 as it leaves the NSSA by
the ABR. These routes appear as N1 or N2 in the IP routing table inside the NSSA.
Much like LSA 5, N2 is a static cost while N1 is a cumulative cost that includes the
cost to the ASBR
Order of route determination and appearance
of LSA types in the routing table