ENSA M1 Single Area OSPFv2 Concepts — Transcript
Full transcript
- 0:03[Music]
- 0:11hi
- 0:11hello there welcome to single area ospf
- 0:15version 2 concepts
- 0:18so imagine that it is time for your
- 0:19family to visit your grandparents
- 0:22you pack your bags and load them into
- 0:24the car
- 0:25but it takes a bit longer than you
- 0:27planned for and now you are running late
- 0:31so you pull out your map okay so there
- 0:34are three different routes
- 0:36so one route is no good because there is
- 0:39a lot of construction on the main road
- 0:41and it is temporarily closed
- 0:44so another route is a very scenic for
- 0:46instance
- 0:47but it takes an additional r to get to
- 0:50your destination
- 0:53so the third route is not as pretty
- 0:56but it includes a highway which is much
- 0:59faster so in fact it is so much faster
- 1:03than
- 1:03you might actually be on time if you
- 1:05take it
- 1:07so in networking packets do not need to
- 1:10take
- 1:11the scenic route so the fastest
- 1:13available route is always the best
- 1:16so ospf or the open shortest path first
- 1:20is designed to find the fastest
- 1:21available path
- 1:23for a packet from source to destination
- 1:28so this module covers the basic concepts
- 1:32of a single area ospf version 2.
- 1:35right so let's get started
- 1:42okay so for the module objectives
- 1:46so the module title is single area ospf
- 1:48concepts
- 1:50so the module objective is at the end of
- 1:52this video lecture
- 1:54you should be able to explain how a
- 1:56single area spf operates
- 1:58in both point-to-point and broadcast
- 2:01multi-access network so sub-topics
- 2:05includes the ospf features and
- 2:07characteristics
- 2:09the ospf packets and the ospf
- 2:12operations
- 2:18all right so let's start with the first
- 2:20section let's talk about
- 2:22the ospf features and characteristics
- 2:28so introduction to ospf
- 2:31so this topic is a brief overview
- 2:34of the open source test path first or
- 2:37ospf
- 2:38which includes a single area and multi
- 2:41area
- 2:43so ospf version 2 is used for ipv4
- 2:46networks
- 2:48ospf version 3 is used for ipv6 network
- 2:52so the primary focus of
- 2:55this entire module is single area ospf
- 2:58version 2.
- 3:00so ospf is a link state routing protocol
- 3:04that was developed as an alternative
- 3:08for the distance vector routing
- 3:09information protocol or the rip
- 3:12so rip was unacceptable
- 3:16a routing protocol in the early days of
- 3:19networking
- 3:20and the internet so however
- 3:23the reap reliance on hub count as the
- 3:26only metric for determining the best
- 3:28route quickly became problematic so
- 3:31using the hap count does not scale well
- 3:34in a large networks with multiple paths
- 3:37of varying speeds so ospf has
- 3:40significant advantages over rip
- 3:43that it has offered faster convergence
- 3:47and scales to much larger network
- 3:50implementation
- 3:53so ospf is a link state routing protocol
- 3:57that uses the concept of areas
- 4:00so a network administrator can divide
- 4:03the routing domain into distinct areas
- 4:06that help control routing update traffic
- 4:09so a link state or a link is an
- 4:12interface on a router
- 4:14so a link is also a network segment
- 4:17that connects two routers or a stop
- 4:20network such as the ethernet lan
- 4:24that is connected to a single router
- 4:27so information about the state of the
- 4:29link
- 4:30is known as the link state
- 4:33so all link state information includes
- 4:36the network prefix
- 4:38the prefix length and the cost so this
- 4:42module covers the basic
- 4:44single area ospf implementations and
- 4:47configurations
- 4:52so what are the components of ospf
- 4:56so all routing protocols share similar
- 4:58components
- 5:00they all use routing protocols messages
- 5:03to exchange route information so the
- 5:06messages
- 5:07help build data structures
- 5:10okay so which are then processed
- 5:14using a routing algorithm so basically
- 5:17components of ospf includes routing
- 5:20control messages
- 5:21data structures and algorithm
- 5:27now let's talk about the routing control
- 5:29messages
- 5:31okay so routers running ospf exchange
- 5:34messages to convey routing information
- 5:36using five types of packets
- 5:39so these packets as shown here in the
- 5:41figure
- 5:42are as follows so you've got the hello
- 5:44packets
- 5:46okay so database description packet the
- 5:49link state request packets
- 5:51the link state update packets and
- 5:54the link state acknowledgement packets
- 5:57okay now these packets are used to
- 6:00discover
- 6:01neighboring routers and also
- 6:04to exchange router information to
- 6:06maintain accurate
- 6:08information about the network
- 6:13so for the data structures so all spf
- 6:16messages are used to create and maintain
- 6:19three ospf databases
- 6:21as follows so you've got the adjacency
- 6:24database
- 6:26this creates the neighbor table okay
- 6:30so you also have the link state database
- 6:32or lsdb
- 6:34this creates the topology table and
- 6:37you've got the forwarding database
- 6:39this creates the routing table now this
- 6:42table
- 6:43here contains a list of neighboring
- 6:45routers to exchange
- 6:47routing information the tables are kept
- 6:50and maintained
- 6:51in ram so in the following table
- 6:54take a particular note of the command
- 6:57used to display each
- 6:58table so basically if you want to see
- 7:01the content
- 7:02of the neighbor table so we can view it
- 7:05by using the command show ipo spf
- 7:08neighbor
- 7:10okay now the topology table can be seen
- 7:14using the show ipo spf database command
- 7:18and of course the routing table which is
- 7:20also similar to
- 7:22static routing we can see the routing
- 7:24table
- 7:25via the command show ip route
- 7:28okay so basically the difference between
- 7:31these tables are as follows
- 7:33so when you say neighbor table okay so
- 7:36it lists down all the neighbor routers
- 7:39to which a router has established a
- 7:41bi-directional communication okay
- 7:44so topology table lists information
- 7:47about
- 7:48all the routers in the network so the
- 7:51database
- 7:51represents the network lsdp
- 7:55so all routers within an area have an
- 7:58identical lsdb
- 8:01right so the last table is a routing
- 8:04table
- 8:05so this are the list of routes generated
- 8:09when an algorithm is run on the link
- 8:12state database
- 8:14so ospf uses the spf or the shortest
- 8:17path algorithm
- 8:19or also known as the dixtras algorithm
- 8:22so each router's routing table is unique
- 8:25and contains information on how and
- 8:28where to send packets
- 8:30to other routers
- 8:38okay so next would be the algorithm
- 8:42okay so that's what i'm saying ospf uses
- 8:46the algorithms
- 8:47called dextras algorithm or also known
- 8:49as the spf
- 8:51or the shortest path first so the spf
- 8:54algorithm
- 8:55is based on the cumulative cost to reach
- 8:57the destination
- 8:59so the spf algorithm creates an spf
- 9:033 by placing its router
- 9:06at the root of the tree and calculating
- 9:08the shortest path
- 9:09to each node so the spf3
- 9:13is then used to calculate the best
- 9:15routes
- 9:16so ospf places the best routes into the
- 9:19for wiring database
- 9:21which is used to make the routing table
- 9:25all right now let's talk about the link
- 9:29state operations
- 9:31so to maintain information ospf routers
- 9:36complete a genetic link state routing
- 9:38process
- 9:39to reach a state of convergence so when
- 9:42you say state of convergence
- 9:43we're talking about the disability of
- 9:46the
- 9:46network so the figure here
- 9:50okay shows a five router
- 9:54topology it's linked between the router
- 9:57which are labeled okay
- 10:02now this includes
- 10:05okay so establishing a neighbor
- 10:08adjacencies
- 10:10right so the exchange of blink state
- 10:12advertisements
- 10:14build the link state database execute
- 10:17the shortest path first
- 10:19and choosing the best route
- 10:24okay now let's talk about the first one
- 10:27so which is establish neighbor
- 10:29adjacencies
- 10:31so ospf enabled routers must recognize
- 10:35each other on the network before they
- 10:37can share information
- 10:40so an ospf enabled router sends
- 10:43hello packets out all ospf enabled
- 10:47interfaces
- 10:48to determine okay if
- 10:52neighbors are present on those links so
- 10:55if a neighbor is present the ospf
- 10:58enabled router attempts to establish
- 11:01neighbor adjacency with that neighbor
- 11:04okay so each of the router here will
- 11:07send hello packets to each other
- 11:09that is establishing a neighbor
- 11:12adjacency
- 11:14so the next step is exchange link state
- 11:17at participants
- 11:19okay so the link state advertisements
- 11:22or the lsas okay so after the
- 11:25adjacencies are established
- 11:27so routers then exchange link state
- 11:29advertisements or lsas
- 11:32okay so lsas contains the state and cost
- 11:35of each directly connected
- 11:37link so routers flood their lsas
- 11:41to adjacent neighbors so adjacent
- 11:44neighbors
- 11:44receiving the lsas immediately flood the
- 11:47lsa
- 11:48to other directly connected neighbors so
- 11:51until
- 11:52all routers in the area have the lsas
- 11:57all right so the third one would be
- 12:01building the link state database okay
- 12:04so after the lsa are received
- 12:08ospf enabled routers build the topology
- 12:11table
- 12:12all right so or the lsdb based on the
- 12:15received lsas
- 12:17so this database eventually holds all
- 12:20the information about the topology
- 12:22of the area right
- 12:27so the next step would be router will
- 12:30execute the spf or the circus pass
- 12:33algorithm or
- 12:34also known as the dixor's algorithm so
- 12:37routers then
- 12:38execute this spf algorithm okay
- 12:41so the gears in the figure for this
- 12:44step are used to indicate the execution
- 12:47of the spf algorithm so the spf
- 12:51algorithm creates
- 12:52the spf3
- 12:57and then we have now choosing the best
- 13:00route okay so after the spf3 is built
- 13:06from the previous step the best path
- 13:09to each network are offered to the ipo
- 13:12routing table
- 13:13so the route will be inserted into the
- 13:16routing table
- 13:17unless there is a route source to the
- 13:19same network
- 13:20with a lower administrative distance
- 13:24so such as a static graph right so if
- 13:27you still remember
- 13:28static route has a value or an
- 13:30administrative distance of one
- 13:32okay so ospf has an administrative
- 13:36distance of 110
- 13:39okay so routing decisions are made based
- 13:42on the entries
- 13:43in the routing table okay
- 13:48so numbers here okay so
- 13:512 20 25 2
- 13:55those are the cost to reach the
- 13:56destination
- 13:58so for instance if our destination is 10
- 14:005
- 14:010 0 16 okay so that would be reference
- 14:05to r1
- 14:06so 10 5
- 14:100 0 okay so is located
- 14:14on r2 okay so it's the land of
- 14:17r2 here now if that would be our
- 14:20destination from r1
- 14:22then the cert the circus path
- 14:26okay so to get into that destination is
- 14:28via r2
- 14:29and the cost is 22. so that would be
- 14:32the cost between r1 and r2 this figure
- 14:35is 20.
- 14:36and you've got from r2 going to the lan
- 14:39okay you've got one you've got two there
- 14:42so that means it's 22.
- 14:45all right
- 14:48so next would be the single area and the
- 14:51multi-area
- 14:52spf so to make an ospf more efficient
- 14:56and scalable ospf
- 14:58supports hierarchical routing using
- 15:00areas
- 15:02so an ospf area is a group of routers
- 15:05that share the same link state
- 15:07information and their
- 15:08lsdbs so ospf can be implemented
- 15:12in one of two ways are as follows
- 15:17okay so you've got the single area ospf
- 15:21where in all routers are in one area
- 15:24so best practice is to use area
- 15:27zero okay so as always if you are not
- 15:30given
- 15:31any area on the topology it is
- 15:32considered to be an area zero
- 15:35okay if we are working on a single area
- 15:38it's always an area zero
- 15:41so the next one is a multi-area ospf
- 15:45so ospf is implemented using multiple
- 15:48areas
- 15:49in a hierarchical fashion
- 15:53so all the areas must connect to the
- 15:55backbone
- 15:56okay so which is area 0. so
- 15:59routers interconnecting the areas are
- 16:02referred to as
- 16:03the area border routers or the abrs
- 16:06okay so the focus of this module
- 16:10is on the single area ospf version 2.
- 16:17okay so how about multi-area ospf
- 16:21so with multi-area ospf one large
- 16:24routing domain can be divided into
- 16:26smaller areas
- 16:27to support hierarchical routing so
- 16:30routing is still a course
- 16:32between the areas you've got the inter
- 16:34area
- 16:35routing so while many of the process
- 16:38source intensive routing operations
- 16:40such as recalculating the database are
- 16:44kept
- 16:44within the area okay
- 16:47so for instance any time a router
- 16:51receives
- 16:51new information about the topology
- 16:53change
- 16:55so within the area including the
- 16:56addition deletion
- 16:58or modification of a link so the router
- 17:01must rerun the spf algorithm
- 17:03creating a new spf tree
- 17:07and update the routing table so
- 17:10the spf algorithm is cpu
- 17:13intensive and the time it takes for the
- 17:16calculation
- 17:17depends on the size of the area
- 17:21okay so routers in other areas
- 17:24receive updates regarding topology
- 17:27changes
- 17:28but these routers only update the
- 17:31routing table
- 17:33not run the spf algorithm
- 17:36so too many routers in one area
- 17:39would make the lsdb very large and
- 17:42increase
- 17:42the load to the cpu so therefore
- 17:46arranging the routers into areas
- 17:48effectively partitions
- 17:50a potentially large database into a
- 17:53smaller
- 17:53and more manageable databases
- 17:57okay now that hierarchical topology that
- 18:00i'm referring to
- 18:02okay so share this advantages here
- 18:06okay so smaller routing tables
- 18:10reduced link state update overhead and
- 18:12reduced
- 18:13frequency of the spf calculations
- 18:17now in the multi-area ospf so the
- 18:20network are divided into different areas
- 18:23but the requirement is all non-area zero
- 18:27like area 1 here in the figure and area
- 18:3051
- 18:31should be connected to the backbone or
- 18:34area 0. so if you will observe your area
- 18:371 which is the non-area 0
- 18:40and area 51 which is also a non-area 0
- 18:43it should be connected to an asbr
- 18:47okay which are r1 and r2 of
- 18:50area 0.
- 18:56all right so let's talk about ospf
- 18:58version 3.
- 19:00so ospf version 3 is the ospf version
- 19:04equivalent for exchanging ipv6
- 19:08prefixes so recall that in ipv6
- 19:12the network address is referred to as
- 19:14the prefix
- 19:15and the subnet mask is called the prefix
- 19:17length
- 19:19okay so similar to ipv4
- 19:22okay so this is its counterpart ospf
- 19:26version 3 exchanges routing information
- 19:28to populate the ipv6 routing table
- 19:31with remote prefixes so take note that
- 19:35with the ospf version 3 address families
- 19:37feature
- 19:38the ospf version 3 includes support for
- 19:41both
- 19:42ipv4 and ipv6
- 19:45okay so os address families is beyond
- 19:48the scope of this curriculum
- 19:52all right so ospf version 2
- 19:55runs over the ipv4 network layer
- 19:59communicating with other ospf ipb for
- 20:02peers
- 20:03and advertising on the ipv4 routes
- 20:07now for ospf version 3 okay
- 20:10this has the same functionality as ospf
- 20:13version 2
- 20:14but uses ipv6 as a network layer
- 20:17transport
- 20:18communicating with ospf version 3 peers
- 20:21and advertising
- 20:22ipv6 routes
- 20:25so ospf version 3 also uses the spf
- 20:29algorithm
- 20:30or dixor's algorithm as the computation
- 20:33engine to determine
- 20:34the best path throughout the routing
- 20:36domain
- 20:38ospf version 3 has separate
- 20:41process from its ipv4 counterpart
- 20:44so the process and operations are
- 20:46basically the same as an ipb4
- 20:49routing protocol but run independently
- 20:53so ospf version 2 and version 3
- 20:57each hub separate adjacency tables
- 21:00ospf topology tables and ip routing
- 21:04tables
- 21:05okay now the ospf version 3
- 21:08configuration and verification commands
- 21:11are similar to those used in ospf
- 21:14version 2.
- 21:18okay so
- 21:22comparing ospf version 2 and ospf
- 21:26version 3 data structures okay
- 21:30so basically both version
- 21:33has the neighbor table okay
- 21:36topology table and routing table
- 21:40okay so it's just that ospf version 2
- 21:45is applicable only for ipv4 network
- 21:49and ospf version 3 is applicable for
- 21:52ipv6 network
- 21:58okay so on this section we will be
- 22:01talking about
- 22:02the ospf buckets
- 22:08so there are types of ospf packets so
- 22:12the link state packets are those or are
- 22:15the tools
- 22:15used by ospf to help determine the
- 22:18fastest available route for a packet
- 22:22so ospf uses the following link state
- 22:25packets or lsps to establish and
- 22:28maintain neighbor adjacencies and
- 22:29exchange routing updates
- 22:32so each packet serves a specific purpose
- 22:35in the ospf routing process are as
- 22:38follows
- 22:39okay so first you've got type
- 22:421 okay so the packet name is hello
- 22:45you've got hello packet
- 22:47this is used to establish and maintain
- 22:49adjacency
- 22:50with other ospf routers so it discovers
- 22:54neighbors and builds adjacencies between
- 22:57them
- 22:58okay so the next one would be
- 23:01the type 2 okay or also known as the
- 23:05database description or dvd packet
- 23:08so this contains an abbreviated list of
- 23:11the lsdb
- 23:13of the sending router and is used by the
- 23:15receiving routers
- 23:17to check against the local lsdb
- 23:20so the lsdb must be identical on all
- 23:23link state routers
- 23:25within an area to construct an accurate
- 23:28spf 3
- 23:30okay so basically it checks for database
- 23:33synchronization
- 23:34between routers okay so the third one
- 23:38is a type 3 or the link state
- 23:42request or lsr
- 23:46so receiving routers can then request
- 23:50more information about any entry in the
- 23:52air in the dvd
- 23:54by sending an lsr okay so lsr basically
- 23:58requests
- 23:59a specific link state records from
- 24:02router
- 24:03to router so the fourth one would be
- 24:07a type 4 okay or the link state update
- 24:12so this is used to reply to lsr
- 24:15or the link state requests and
- 24:18to announce new information
- 24:22so lsu's okay or the link state update
- 24:25contains several different types of
- 24:27lsas so again lsu's sends
- 24:30specifically requested link state
- 24:33records
- 24:35okay so the last one of the ospf packet
- 24:38is a type 5 okay so
- 24:42also known as the link state
- 24:43acknowledgement or
- 24:45elsa okay so the elsa packet
- 24:49so when an lsu or the link state update
- 24:53is received the router sends
- 24:56an elsa or acknowledgement to confirm
- 24:59receipt of the lsu
- 25:01so the elsa data is
- 25:04or the lsec data field is empty
- 25:07okay
- 25:10okay so the next one is the link state
- 25:12updates
- 25:14okay so routers initially exchange
- 25:17type 2 dbd packets which is an
- 25:20abbreviated list of the lsdb
- 25:23of the sending router so it is used by
- 25:26the receiving routers to check against
- 25:29the local
- 25:29lsdb okay
- 25:33so a type 3 lsr packet is used by the
- 25:37receiving routers
- 25:38to request more information about an
- 25:40entry
- 25:41in the dvd okay so a
- 25:44type four lsu okay
- 25:48so lsu packet is used to reply to an lsr
- 25:52packet
- 25:53so a type 5 okay
- 25:56or the elsa packet is used to
- 25:58acknowledge the receipt of
- 26:00a type 4 lsu so lsus
- 26:03are used to forward ospf routing updates
- 26:07such as link changes okay so
- 26:10specifically
- 26:11an lsu packet can contain 11 different
- 26:13types of ospf version 2 lsas
- 26:16with some of the more common ones
- 26:20shown in the figure okay so
- 26:24ospf version 3 renamed several of these
- 26:27lsas
- 26:28and also contains two additional lsas
- 26:32okay so these are the lsas here okay so
- 26:35with
- 26:36six seven 8 and so on
- 26:39all right so note that the difference
- 26:42between the lsu
- 26:44and lsa's terms can sometimes be
- 26:47confusing because
- 26:48these terms are often used
- 26:51interchangeably
- 26:52however an lsu contains one or more
- 26:56lsas just have to remember that okay
- 26:59an lsu contains one or more
- 27:02lsas all right
- 27:10okay so let's get into the detail about
- 27:13the hello packet
- 27:15okay so the ospf type one packet
- 27:18is the hello packet hello packets are
- 27:20used
- 27:21to do the following okay so first
- 27:25it allows discover ospf neighbors and
- 27:29establish
- 27:30neighbor adjacencies so advertise
- 27:34parameters on which two routers must
- 27:37agree
- 27:37to become neighbors so elect
- 27:41designated router or dr and backup
- 27:44designated router or bdr
- 27:46on a multi-access networks like ethernet
- 27:49so take note that point-to-point links
- 27:52do not require
- 27:53dr or pdr okay
- 27:56now the figure here displays the fields
- 27:59contained
- 28:00in the ospf type one hello packet
- 28:04so we are talking about ospf version two
- 28:09all right so techno that we have here
- 28:12type one which pertains to hello packet
- 28:16right so other fields are shown like
- 28:19router id
- 28:20area id so you can understand more of it
- 28:22on the configuration on the next video
- 28:24lecture
- 28:29okay so the next section talks about the
- 28:31ospf operations
- 28:35okay so now that you know about the ospf
- 28:38link state packets
- 28:40this topic explains how they work
- 28:43with ospf enabled routers so
- 28:47when an ospf router is initially
- 28:49connected to a network
- 28:50it attempts to first create adjacencies
- 28:53with neighbors
- 28:55exchange routing information calculate
- 28:58the best
- 28:59routes and reach convergence
- 29:03so the table here okay details the
- 29:07states of
- 29:08ospf progresses
- 29:11through while attempting to which or to
- 29:14reach
- 29:15the level of convergence or the state of
- 29:17convergence
- 29:18okay so we have here starting with the
- 29:21down state
- 29:22the initialization state the two-way
- 29:25state
- 29:26okay the x-start state action state
- 29:31loading state and the full state
- 29:34okay so these are the ospf operational
- 29:37states
- 29:38let's get into each of that state
- 29:41so initially the router is on down state
- 29:45so on down state no hello packets
- 29:48are received okay so router sends hello
- 29:52packets
- 29:53and then transition to initialization
- 29:56state
- 29:57so when you just configure when you just
- 29:59connect two routers
- 30:01and you have not configured yet the ospf
- 30:04it is in downstairs right so
- 30:08after the exchange of hello packets
- 30:12okay it will transition to
- 30:14initialization stage so take note that
- 30:17in a down state
- 30:18router sends hello packets okay
- 30:22now in the init state hello packets are
- 30:25received
- 30:26from the neighbor router so it contains
- 30:30the router id
- 30:31of the sending router okay
- 30:34and then it will transition to the next
- 30:37state
- 30:37which is a two-way state
- 30:41now in the two-way state communication
- 30:44between the two routers
- 30:46is bi-directional on a multi-access
- 30:49links the routers elect dr and
- 30:52bdr so afterwards transition to the next
- 30:57state which
- 30:57is the x-star state
- 31:01now on the x-start uh state on
- 31:04point-to-point networks
- 31:06the two routers decide which router will
- 31:09initiate
- 31:10the dbd packet exchange and decide upon
- 31:13the initial dvd packet sequence number
- 31:16okay so the next state would be the
- 31:19exchange state
- 31:20so routers exchange dvd packets
- 31:24so if additional router information is
- 31:27required
- 31:27then transition to loading otherwise
- 31:30transition to full stack
- 31:33okay so loading state
- 31:36the lsr okay or the link state requests
- 31:39and the link state updates are used to
- 31:41gain additional route information
- 31:44so routes are processed during the spf
- 31:47algorithm
- 31:48transition to the full state
- 31:51and the last one is full state so full
- 31:54state
- 31:54is the link state database of the router
- 31:57in a fully synchronized form
- 32:00so with the full state the network now
- 32:03is in the level of convergence
- 32:08okay so
- 32:12how about established neighbor
- 32:13adjacencies
- 32:15so when ospf is enabled on an interface
- 32:18the router must determine if there is
- 32:21another ospf neighbor
- 32:23on the link so to accomplish this
- 32:26the router sends a hello packet that
- 32:29contains
- 32:30its router id out all ospf enabled
- 32:34interfaces
- 32:35okay now the hello packet is sent to the
- 32:38reserved
- 32:39all ospf routers ipb4 multicast address
- 32:4522405
- 32:47okay so that's a multicast address two
- 32:49two four zero zero
- 32:51five so only ospf version two routers
- 32:54will process these packets so the ospf
- 32:58router id
- 32:59is used by the ospf process to uniquely
- 33:03identify its router
- 33:04in the ospf area okay so a router id
- 33:09is a 32-bit number formatted like an
- 33:12ipv4 address
- 33:14and assigned to uniquely identify a
- 33:16router
- 33:17among the ospf peers
- 33:21now when enabling ospf enabled router
- 33:24receives a hello packet
- 33:26with a router id that is not
- 33:29within its neighbor list so the
- 33:32receiving router attempts to establish
- 33:34an adjacency
- 33:35with the initiating router
- 33:41okay so first
- 33:45it will okay it will be in down state
- 33:48to initialize it okay so
- 33:52when ospf version two is enabled
- 33:55the enabled giga internet zero zero
- 33:57interface
- 33:58okay in this diagram here transitions
- 34:01from down state
- 34:03to initialize or in its state
- 34:06so r1 starts sending hello packets
- 34:10out all ospf enabled interfaces
- 34:13to discover ospf neighbors to develop
- 34:16adjacencies with
- 34:18okay now during the process r1 here
- 34:22okay so from down state okay so
- 34:25it will initialize or it will shift to
- 34:27the initialization state
- 34:29and on that so you've got the hello
- 34:32packet
- 34:33forwarded by r1 to r2
- 34:36okay so something like hello my router
- 34:40id
- 34:40is 172 16 5.1
- 34:44is there anyone else on this link it
- 34:47will be forwarded
- 34:48on a multicast address two two four zero
- 34:50zero five
- 34:52where all the ospf enabled routers
- 34:55are in there okay
- 34:59next would be the initialization or the
- 35:02init state
- 35:04so r2 receives the hello packet from r1
- 35:09and adds the r1 router id
- 35:12to its neighbor list okay
- 35:15r2 then sends a hello packet to r1
- 35:20the packet contains the r2 router id
- 35:23and the r1 router id in its list
- 35:27of neighbors on the same interface
- 35:31okay so afterwards
- 35:34so you've got now the two-way state now
- 35:37what happens
- 35:38during the two-way state so take note
- 35:42that
- 35:42r1 receives the hello and adds the r2
- 35:45router id
- 35:46to its list of ospf neighbors
- 35:49so it also notices its own router id in
- 35:53the list of neighbors
- 35:55of the hello packet so when a router
- 35:58receives a hello packet with
- 35:59its router id listed in the list of
- 36:01neighbors
- 36:02the router transitions from the init
- 36:05state
- 36:07to the two-way state okay
- 36:10so the action performed in the two-way
- 36:13state depends on the type of
- 36:15interconnection
- 36:16between the adjacent router okay so
- 36:20it could be for instance if the two
- 36:23adjacent neighbors are interconnected
- 36:25using a point-to-point
- 36:26link or connected via serial cable
- 36:30then they immediately
- 36:34okay transition from the two-way state
- 36:37to the x-start stick okay
- 36:41now if the routers are interconnected
- 36:43over a common ethernet network
- 36:45then a designated router and bdr
- 36:50or backup designated router must be
- 36:52elected
- 36:54okay so the two-way state
- 36:57would depend on the type of network you
- 37:00are working
- 37:01with all right it could be a
- 37:03point-to-point where in routers are
- 37:04connected by a serial
- 37:06link or it could be
- 37:09a a multi-access
- 37:14okay network like a common internet
- 37:17network
- 37:18wherein there is a need for a designated
- 37:21router and backup designated router
- 37:23election
- 37:25okay so afterwards
- 37:28okay so elect the dr and bdr
- 37:32in case of the ethernet network okay
- 37:35so because r1 and r2 are interconnected
- 37:39over the ethernet so take note that
- 37:40these are g00 and g01 so this
- 37:43is an ethernet network so therefore
- 37:46a dr and bdr election takes place
- 37:50now as shown in the figure here so r2
- 37:54becomes the dr and r1 is
- 37:57the bdr okay so
- 38:00take a look at this so r1 has a default
- 38:02priority of one
- 38:04and the second highest router id so it
- 38:07will be the bdr
- 38:09on this link so r2 has a default
- 38:12priority of one
- 38:13so both of them are using the default
- 38:15priority of one
- 38:16and has the highest router id
- 38:19so it will be the uh dr or the
- 38:22designated router
- 38:23on this link okay so hello packets are
- 38:27continually exchanged
- 38:29to maintain routing information
- 38:35all right so how about synchronizing
- 38:40ospf databases okay
- 38:43so after the two-way state
- 38:46so routers transition to database
- 38:49synchronization states
- 38:51so while the hello packet was used to
- 38:53establish neighbor adjacencies
- 38:55the other four types of ospf packets are
- 38:59used
- 38:59during the process of exchanging and
- 39:02synchronizing the lsdbs
- 39:04so this is a three-step process
- 39:08right so decide first router
- 39:12exchange dvds and send
- 39:15an lsr all right
- 39:19so decide the first router so the router
- 39:21with the highest router id
- 39:23sends its dbd first
- 39:27so exchange dvds so as many as needed
- 39:32to convey the database the other router
- 39:35must acknowledge the dpd with an elsa
- 39:39packet send an lsr
- 39:43so each router compares the dvd
- 39:46information
- 39:47with the local lsdb so
- 39:50if the dvd has more current link
- 39:53information
- 39:54the router transitions to the loading
- 39:57stick
- 39:59all right
- 40:03all right so let's get into the details
- 40:07so decide first router so
- 40:10in the start state the two routers
- 40:13decide
- 40:14which router will send the dvd packets
- 40:17first okay now the router with the
- 40:20higher router id
- 40:22will be the first router to send dvd
- 40:25packets
- 40:25during the exchange state so in the
- 40:28figure here
- 40:30r2 has the higher router id
- 40:34and sends its dvd packets first
- 40:38okay next
- 40:42exchange of dvds
- 40:45now in the exchange state the two
- 40:47routers exchange
- 40:48one or more dvd packets so a dvd packet
- 40:52includes information
- 40:54about the lsa entry header that appears
- 40:57in the lsdb of the router
- 41:00so the entries can be about a link or
- 41:03about a network
- 41:04so each lsa's entry header includes
- 41:08information about the link say type so
- 41:11the address of the advertising router
- 41:14the cost of the link and the sequence
- 41:17number
- 41:18right so the router uses the sequence
- 41:20number to determine
- 41:22the newness of the receive link state
- 41:24information
- 41:26now in this figure here r2 sends a dbd
- 41:30packet to r1
- 41:32so when r1 receives the dbd it performs
- 41:36the following actions
- 41:37first it has to acknowledge the receipt
- 41:40of the dvd
- 41:41using the lsat or link state
- 41:44acknowledgement packet
- 41:45okay so r1 then sends dbd packets to r2
- 41:50and then r2 acknowledges r1
- 41:54all right okay
- 41:57so next would be sending an lsr
- 42:02so r1 okay compares
- 42:06the information received with the
- 42:07information it has in its own lsdb
- 42:11so if the dvd packet has a more
- 42:15current link state entry the router
- 42:18transitions
- 42:18to the loading state okay
- 42:22so for example in the figure
- 42:25r1 sends an lsr okay so regarding the
- 42:29network
- 42:3017216 6.0
- 42:34to r2 okay so
- 42:37r2 will respond
- 42:40okay on that uh lsr
- 42:43via the lsu okay
- 42:47so r2 responds with the complete
- 42:49information about 172 16 6 the 0
- 42:53in an lsu packet
- 42:56right so again when r1 receives an lsu
- 43:00it sends an acknowledgement that's why
- 43:02you have here elsa or the link state
- 43:04acknowledgement
- 43:05so r1 then adds the new link state
- 43:08entries
- 43:09into each lsdb so after
- 43:12all lsrs have been satisfied for a given
- 43:15router
- 43:16the adjacent routers are considered
- 43:19synchronized
- 43:20and it is in a full state so updates
- 43:24okay so lsu's are sent only to neighbors
- 43:28in the following conditions
- 43:29first when a change is perceived
- 43:33we could we call that incremental
- 43:35updates
- 43:37all right so it's in here let's go back
- 43:39to the slides
- 43:40incremental updates and it is every 30
- 43:45minutes
- 43:47all right
- 43:56okay so next would be
- 44:00the need for a dr okay
- 44:03why is a dr bdr election
- 44:06necessary okay now in a multi-access
- 44:10network okay so it can create two
- 44:13challenges for ospf
- 44:15regarding the flooding of lsas as
- 44:17follows
- 44:19okay so first you've got the creation of
- 44:22multiple adjacencies here
- 44:24so ethernet networks could potentially
- 44:27interconnect
- 44:28many ospf routers over a com common link
- 44:31like
- 44:31shown in the diagram here now creating
- 44:34adjacencies with
- 44:35every router is unnecessary and
- 44:37undesirable
- 44:40so it would lead to an excessive number
- 44:42of lsas exchanged
- 44:44between the routers on the same network
- 44:47okay so next would be an extensive
- 44:50flooding of
- 44:51lsas so the ling state routers flood
- 44:54their lsas anytime
- 44:55ospf is initialized or
- 44:58when there is a change in the topology
- 45:00we call it topological changes
- 45:03so this flooding can become excessive
- 45:06okay now to understand the problem with
- 45:09multiple adjacencies
- 45:11we must study the formula okay so for
- 45:15any number of routers designated as n
- 45:19on a multi-axis network there are n
- 45:23okay and then n minus one divided by two
- 45:26adjacencies
- 45:27so for example the figure shows a simple
- 45:30topology of five routers
- 45:32all of which are attached to the same
- 45:35multi-access
- 45:36ethernet network or switch now without
- 45:39some type
- 45:40of mechanism to reduce the number of
- 45:42adjacencies
- 45:44collectively these routers would form
- 45:4810 adjacencies how do we get that so
- 45:50i've got five routers
- 45:52all right for n y minus one is four
- 45:55five times four is 20 divided by two
- 45:58that would yield to 10 adjacencies
- 46:02now this may not seem like much but as
- 46:05routers are added to the network the
- 46:07number of adjacencies increases
- 46:09dramatically
- 46:10for example a multi-access network
- 46:14with 20 routers would create 190
- 46:17adjacencies can you imagine that okay
- 46:26all right so flooding or lsa flooding
- 46:29with
- 46:30a designated router now a dramatic
- 46:33increase
- 46:34in the number of routers also
- 46:35dramatically increases
- 46:37the number of lsas exchanged between the
- 46:39routers
- 46:40so this flooding of lsa significantly
- 46:43impacts the operation
- 46:45of the ospf okay
- 46:48so an increase in the number of routers
- 46:50on a multi-access network or the network
- 46:52that is connected by a switch
- 46:54imagine it will be flooded with a lot of
- 46:56lsas
- 46:57okay so if every router in the
- 47:00multi-access network has to plug
- 47:03okay and acknowledge all received lsas
- 47:06to other routers at the same
- 47:08multi-access network so the traffic or
- 47:10the natural
- 47:11traffic would become quite chaotic
- 47:14now on a multi-access networks ospf lx
- 47:19dr or designated router
- 47:22to be the collective and distribution
- 47:24point for lsa's
- 47:26sent or received a bdr
- 47:29is also elected in case the dr fails
- 47:32now all other routers become drawers
- 47:36take note that we only have one dr and
- 47:39one bdr
- 47:41in the segment the rest are considered
- 47:43to be
- 47:44drawers so a drawer is a router that is
- 47:48neither
- 47:48a dr nor a pdr
- 47:52okay so take note that the dr is
- 47:55only used to disseminate lsas
- 47:59okay so the router will still use the
- 48:01best
- 48:02next hub router indicated in the routing
- 48:05table
- 48:06for the forwarding of all other packets
- 48:12okay now to understand the problem of
- 48:15extensive
- 48:16flooding of lsas okay so please refer to
- 48:19this
- 48:20animations here okay now in the
- 48:23animation
- 48:24okay so r2 sends out analysis
- 48:29so let's wait for that okay so r2
- 48:34sends out analysis this event trigger
- 48:37every other router to also send out an
- 48:39lsa
- 48:42all right so not shown in the animation
- 48:45okay so i required acknowledgement sent
- 48:48for every else is
- 48:50received so if every router in the
- 48:54multi-access network
- 48:56had to flood and acknowledge all
- 48:57received lsas
- 48:59to all other routers on that same
- 49:01multi-access network
- 49:02the network traffic become very chaotic
- 49:06okay
- 49:11now the solution to managing the number
- 49:14of adjacencies
- 49:15and the flooding of lsas on a multi-axis
- 49:17network
- 49:18is the dr okay in this case
- 49:22we have r2 here elected as the dr
- 49:25and r3 here which was elected
- 49:28a bdr okay now on a multi-access
- 49:32networks ospf
- 49:34elects a dr to be the collection and
- 49:37distribution point
- 49:38for lsa's send and receive
- 49:42now a bdr is also elected in case the dr
- 49:46fails now all other routers become
- 49:50drawer so a drawder is a router that is
- 49:53neither
- 49:54again a dr or a pdr so r1
- 49:58r5 and r4 here are designated as
- 50:01rotors now the dr is only used again
- 50:05for dissemination of the lsas the router
- 50:08will still
- 50:09use the best next hub router indicated
- 50:12in the routing table
- 50:14for the following or for for the
- 50:16forwarding of
- 50:18all other packets okay
- 50:23so that would be the end of this video
- 50:25lecture
- 50:26thank you for watching and listening
- 50:28have a great day
- 50:29see you on the next video lecture
About this transcript
This page contains the full transcript of ENSA M1 Single Area OSPFv2 Concepts by Santelmo, generated from the public captions YouTube serves with the video. The transcript has 5,742 words across 1,122 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.