OSPF Network Types | Broadcast and Point To Point Networks

Network Direction
27 Mar 202310:00

Summary

TLDRThis script delves into OSPF (Open Shortest Path First) networking, focusing on OSPF neighbors and network types. It explains the distinction between broadcast and point-to-point networks, the default election of Designated Routers (DR) and Backup Designated Routers (BDR) to optimize OSPF message traffic, and the importance of matching OSPF network types for stable neighbor adjacencies. The script also covers how to force an OSPF election and the potential inefficiencies of using broadcast network configurations in point-to-point scenarios.

Takeaways

  • 🌐 OSPF (Open Shortest Path First) is a protocol used for routing and can operate on various network types, including point-to-point and broadcast networks.
  • 🔗 In a point-to-point OSPF network, two routers are directly connected, commonly seen in WAN connections, and it's a simple model with only one recipient for each message.
  • 📡 Broadcast networks in OSPF are typically connected via a switch and can include multiple routers and devices, such as when a router connects to a VLAN on a switch.
  • đŸ“¶ Ethernet is a common protocol for broadcast networks, characterized by its use of broadcasts, which OSPF routers can leverage to communicate.
  • 📣 OSPF does not use traditional broadcast messages but instead utilizes multicast to send Hello messages to a specific multicast address (224.0.0.5) for neighbor discovery.
  • đŸ€– To manage the OSPF communication efficiently in broadcast networks, OSPF elects a Designated Router (DR) and a Backup Designated Router (BDR) to minimize the number of messages exchanged.
  • 🔄 When a router introduces a new network, it sends Link State Advertisements (LSAs) only to the DR and BDR, which then distribute the information to other routers, reducing network traffic.
  • 🆔 Each OSPF router has a priority, which can be adjusted to influence the election of DR and BDR. The router with the highest priority becomes the DR, followed by the one with the next highest.
  • 🔄 OSPF elections are not preemptive, meaning a change in priority does not automatically trigger a new election. An election can be forced by clearing the OSPF process on the current DR or BDR.
  • 🔄 If the DR fails, the BDR is promoted to DR, and a new BDR is elected from the remaining routers. If the new BDR is needed, another election is held.
  • 🛠 The OSPF network type can be manually changed using the 'ip ospf network' command, but it must match on all routers in the segment to maintain neighbor adjacency.

Q & A

  • What are the two main OSPF network types discussed in the script?

    -The two main OSPF network types discussed in the script are broadcast and point-to-point.

  • What is the significance of the OSPF multicast address 224.0.0.5?

    -224.0.0.5 is OSPF's special multicast address used for sending Hello messages, allowing OSPF routers to discover each other on a network.

  • Why does OSPF use multicast instead of broadcast messages?

    -OSPF uses multicast to send Hello messages to 224.0.0.5, which allows OSPF routers to communicate without sending messages to all devices on the network, thus reducing network traffic.

  • What is the role of the Designated Router (DR) in an OSPF network?

    -The Designated Router (DR) is responsible for managing the OSPF communication on a broadcast network. It receives Link State Advertisements (LSAs) from routers adding new networks and then distributes this information to other routers.

  • What is the Backup Designated Router (BDR) and what happens when the DR fails?

    -The Backup Designated Router (BDR) is a secondary router that steps in if the DR fails. When the DR fails, the BDR is promoted to DR, and one of the DR others is promoted to BDR.

  • How does OSPF handle the election of DR and BDR?

    -OSPF elects a DR and BDR based on router priority. The router with the highest priority becomes the DR, and the next highest becomes the BDR. If routers have the same priority, the router ID is used to break the tie.

  • What is the purpose of the 'show ip ospf neighbor' command?

    -The 'show ip ospf neighbor' command is used to display information about OSPF neighbors, including their roles as DR, BDR, or DR other.

  • How can you change the OSPF priority on a router?

    -You can change the OSPF priority on a router by entering interface configuration mode and using the command 'ip ospf priority' followed by the desired priority value.

  • Why might changing the OSPF priority not immediately affect the DR and BDR election?

    -OSPF elections are not preemptive, meaning changing the priority does not trigger an immediate election. To force an election, you need to clear the OSPF process on the current DR and BDR routers.

  • What happens if a router changes its OSPF network type to point-to-point in a broadcast network?

    -If a router changes its OSPF network type to point-to-point in a broadcast network, it will cause the neighbors to drop the adjacency as the network types must match for OSPF communication to function correctly.

Outlines

00:00

🌐 OSPF Neighbors and Network Types Overview

This paragraph discusses the concept of OSPF neighbors and the different types of networks they can be part of. It explains that OSPF operates on a small scale, connecting just two routers, or a larger scale involving multiple routers and devices on a switch. The four OSPF network types are introduced: broadcast, point-to-point, point-to-multipoint, and non-broadcast multi-access (NBMA). For the CCNA exam level, the focus is on broadcast and point-to-point networks. The paragraph emphasizes the simplicity of point-to-point networks, commonly used in WAN connections, and the use of Ethernet as the most common protocol, which relies on broadcasts. It clarifies that OSPF uses multicast instead of broadcast for communication, specifically addressing 224.0.0.5 for OSPF Hello messages. The designated router (DR) and backup designated router (BDR) election process is introduced to optimize OSPF message traffic on broadcast networks, with the DR and BDR handling the flood of LSA and LSR messages to prevent network performance issues.

05:02

đŸ› ïž Manipulating OSPF Designated Router Elections

This paragraph delves into the process of influencing the OSPF designated router (DR) and backup designated router (BDR) elections. It explains that routers can be configured with a priority to affect the election, with the default priority being one and the ability to set it to zero to prevent a router from becoming a DR or BDR. The paragraph clarifies that OSPF elections are not preemptive, meaning a change in priority does not automatically trigger an election. To force an election, the OSPF process must be cleared on the current DR and BDR routers, not the newly configured one. The paragraph also discusses the implications of changing the OSPF network type on a router's interface, emphasizing that all neighbors must have the same network type configured. Mismatches in network types can cause adjacency problems, as demonstrated by the logs showing repeated formation and dropping of neighbor relationships. The importance of matching network types for OSPF operation is highlighted, along with a brief mention of a lab exercise at the end of the video for further exploration of changing OSPF network types.

Mindmap

Keywords

💡OSPF Neighbors

OSPF Neighbors refer to routers that are part of the same OSPF process and exchange routing information. In the video, it is discussed how OSPF neighbors can be part of a small network connecting just two routers or a larger network involving multiple routers and devices. The concept is central to understanding OSPF operations as it forms the basis for OSPF's ability to build a routing table.

💡Network Types

OSPF categorizes networks into types to determine how routing information is exchanged. The script mentions four types: broadcast, point-to-point, point-to-multipoint, and non-broadcast multi-access (NBMA). For the CCNA exam level, the focus is on broadcast and point-to-point networks. Understanding network types is crucial for OSPF configuration and operation, as it impacts the way routers communicate and establish adjacencies.

💡Point-to-Point

A point-to-point network is a direct connection between two routers, commonly used in WAN connections. The script explains that in a point-to-point network, a message sent by one router is intended for only one other router, making it a straightforward model. This network type is significant in OSPF as it simplifies the routing process by eliminating the need for multicast addressing.

💡Ethernet

Ethernet is a common network protocol used in local area networks, which the script mentions as the most common protocol for OSPF networks. It is characterized by its use of broadcasts, which OSPF routers leverage by sending multicast Hello messages to a specific multicast address to discover and communicate with OSPF neighbors.

💡Multicast

Multicast is a method of sending messages to a group of destinations simultaneously at the data link layer. In the context of OSPF, multicast is used instead of broadcast to communicate Hello messages to the special multicast address 224.0.0.5, allowing OSPF routers to identify each other without flooding the network with broadcasts.

💡Designated Router (DR)

In OSPF, the Designated Router is a router elected on a broadcast network to manage the exchange of OSPF information and reduce the number of messages required. The script explains that the DR and the Backup Designated Router (BDR) are responsible for collecting and disseminating OSPF Link State Advertisements (LSAs), which optimizes network performance by minimizing OSPF traffic.

💡Backup Designated Router (BDR)

The Backup Designated Router is a secondary router elected in OSPF to take over the DR's responsibilities if the DR fails. The script illustrates the importance of the BDR in maintaining OSPF operations by providing a seamless transition in case of a DR failure.

💡LSA (Link State Advertisement)

LSAs are packets of information that describe the state of a router's links to other routers. The script describes how a router floods an LSA to its neighbors when a new network is added, which is a fundamental part of OSPF's method for route advertisement and propagation.

💡LSR (Link State Request)

An LSR message is sent by OSPF routers to request more information about a specific LSA. The script mentions that after neighbors learn about a new route from an LSA, they may use LSR to get detailed information, which is part of the OSPF process to ensure all routers have the most up-to-date routing information.

💡OSPF Priority

OSPF priority is a configurable value that influences the election of the DR and BDR on a broadcast network. The script explains that routers with higher priority are more likely to be elected as DR or BDR, and changing this priority can influence the election process, although it does not trigger an immediate election.

💡Interface Configuration

Interface configuration in OSPF involves setting specific parameters for an interface to influence OSPF operations. The script discusses how changing the OSPF priority or network type on an interface can affect OSPF neighbor relationships and elections, emphasizing the importance of consistent interface configurations for proper OSPF operation.

Highlights

OSPF neighbors can be on a small network connecting just two routers or a larger network with multiple routers and devices.

There are four OSPF network types: broadcast, point-to-point, point-to-multipoint, and non-broadcast multi-access (NBMA).

For CCNA, focus on broadcast and point-to-point OSPF network types.

Point-to-point OSPF is common in WAN connections and is simple as only one router can receive a message from another.

Ethernet is the most common protocol for OSPF broadcast networks, which use broadcasts for communication.

OSPF routers use multicast to send and receive Hello messages on the special multicast address 224.005.

OSPF can experience performance issues with a large number of routers due to the volume of messages in broadcast networks.

OSPF elects a Designated Router (DR) and a Backup Designated Router (BDR) to manage communication on broadcast networks.

Routers with the highest priority become DR and BDR, with priority defaulting to one but can be adjusted.

DR and BDR routers use multicast address 224.006 to receive LSAs from other routers, reducing OSPF message traffic.

Use 'show IP ospf neighbor' to identify the roles of OSPF neighbors in a network.

Changing a router's OSPF priority does not trigger an immediate election for DR or BDR.

OSPF elections are not preemptive; you must force an election by clearing the OSPF process on the current DR and BDR routers.

Even if a router has a higher priority, it may not become the DR if the current DR and BDR are stable.

A point-to-point OSPF network may not necessarily be two directly connected routers; it could be on the same VLAN.

Changing the OSPF network type to point-to-point can improve efficiency in certain topologies.

Mismatched OSPF network types between neighbors will cause adjacency to fail and require correction.

Review of designated and backup designated routers in OSPF concludes the discussion.

Transcripts

play00:02

let's think about ospf neighbors again

play00:04

as we've seen there is a network between

play00:07

Neighbors

play00:08

this could be a very small Network only

play00:10

enough to connect two routers together

play00:12

and nothing more

play00:14

or it could be a bigger Network there

play00:16

could be several routers connecting to a

play00:18

switch

play00:19

there might even be other devices on the

play00:21

same switch

play00:22

from ospf's perspectives

play00:25

that's only two of the possible Network

play00:26

types

play00:27

in total there are four Network types

play00:30

there's broadcast like when the routers

play00:33

are connected to a switch

play00:34

there's point to point when two routers

play00:37

directly connect to each other

play00:39

there's also point to multi-point

play00:41

and non-broadcast multi-access or nbma

play00:47

for a CCNA exam level we're only going

play00:49

to be worried about the first two

play00:51

broadcast and point to point so you can

play00:53

ignore the other two for this series

play00:56

point-to-point is the simplest one to

play00:58

understand

play00:59

one router directly connects to another

play01:01

this is more common with a Wan

play01:03

connection that is a connection from one

play01:05

site to another

play01:07

when one router sends a message there's

play01:10

only one other router that could

play01:11

possibly receive it

play01:13

this is a nice and uncomplicated model

play01:16

on the downside we can't add more

play01:18

routers to the network we can only

play01:20

create more networks and add routers

play01:22

there

play01:25

the most common Network protocol would

play01:27

have to be ethernet

play01:28

one key feature of ethernet is that it

play01:30

uses broadcasts

play01:33

when an ospf router connects with an

play01:35

Ethernet interface it will be on a

play01:37

broadcast network

play01:38

this includes connecting a router to a

play01:40

VLAN on a switch

play01:43

the key points for an Ethernet Network

play01:45

are

play01:46

they can be more than one device on the

play01:48

network

play01:49

when a router sends a message other

play01:51

devices may see it

play01:52

and it scales well as it's easy to add

play01:55

more routers

play01:57

there can be other devices on the same

play01:59

VLAN not only routers

play02:01

so how does a router know which of these

play02:03

devices are ospf routers

play02:06

it would be fair to think that the

play02:07

router would send a broadcast message to

play02:09

everything it is a broadcast network

play02:11

after all

play02:12

that's not right though ospf doesn't

play02:15

actually use broadcast messages

play02:17

it uses multicast

play02:19

this enables ospf to send a Hello

play02:21

message to

play02:24

224.005 which is ospf's special

play02:27

multicast address

play02:29

other ospf routers will listen for

play02:31

messages sent on this address

play02:33

when they receive the Hello message

play02:35

they're able to respond to the sender

play02:38

let's think about a problem that could

play02:40

occur on a broadcast network

play02:42

we'll then see how ospf solves this

play02:46

when a router adds a new network it

play02:48

floods an LSA to its neighbors this is

play02:51

how it advertises this network

play02:53

the neighbors would then request more

play02:55

information with an LSR message

play02:58

once they learn the new route they would

play03:00

tell their neighbors and so on

play03:02

that's a lot of messages flowing back

play03:04

and forth

play03:05

imagine how bad it would be if there

play03:07

were 20 or 30 routers here this many

play03:09

messages has the potential to impact the

play03:11

performance of the network

play03:13

but ospf is smarter than that

play03:16

for every broadcast network ospf will

play03:18

elect one router to be the designated

play03:20

router or Dr

play03:23

it will also elect one backup designated

play03:25

router or bdr

play03:29

all other routers are called Dr others

play03:32

each ospf router has a priority which is

play03:35

set to one by default

play03:37

of course we can change the priority if

play03:39

we want to

play03:40

the router with the highest priority

play03:42

becomes the Dr and the next highest is

play03:44

the bdr

play03:46

if some routers have the same priority

play03:48

like they do by default the highest

play03:51

router ID breaks the tie

play03:54

if a Dr fails the bdr is promoted

play03:57

then one of the Dr others will be

play04:00

promoted to bdr

play04:03

how does that solve the problem

play04:05

well when a router adds a new network

play04:07

and it sends out the lsas they aren't

play04:10

sent to every neighbor

play04:12

instead they're only sent to the Dr and

play04:14

bdr

play04:15

this uses multicast address

play04:19

224006 which only the Dr and bdrs listen

play04:23

to

play04:24

they will then use an LSR to request

play04:26

more information as normal

play04:29

the Dr will then distribute this

play04:31

information out to other routers that's

play04:33

their Dr others on the network

play04:36

this cuts down the number of ospf

play04:38

messages on a broadcast network

play04:42

it's easy to see what roles our

play04:44

neighbors have on a router we can look

play04:47

at the neighbors with show IP ospf

play04:49

neighbor

play04:50

this is a topology with five routers so

play04:53

we will see four neighbors

play04:56

in the state column we can see that one

play04:58

of the routers is Dr one is bdr and the

play05:02

other two are Dr other

play05:04

that makes this router a Dr other as

play05:06

well

play05:08

what if we want to make this route of

play05:10

the Dr

play05:11

to do this we enter configuration mode

play05:14

and then interface configuration mode

play05:17

remember that a Dr and bdr are elected

play05:20

for each broadcast segment

play05:22

that means that these settings can vary

play05:24

per interface

play05:26

for example our router could be Dr Rover

play05:29

on this network and bdr on some other

play05:32

network

play05:33

we need to change the priority to

play05:35

influence the election

play05:37

the command is ipospf priority

play05:41

the default priority is one

play05:43

we'll set this router to 100.

play05:47

we can also set the priority to zero

play05:49

this would mean that the router would

play05:50

never become a Dr or bdr

play05:54

if we take a look at our neighbors again

play05:55

we will see that nothing has changed

play05:58

so what's wrong

play05:59

nothing it may be surprising to hear

play06:02

that this is actually what's supposed to

play06:03

happen

play06:04

let me explain

play06:06

ospf elections are not preemptive

play06:10

that means that changing priority does

play06:12

not trigger an election

play06:13

so adding a router with a better

play06:15

priority will not immediately change the

play06:17

Dr and bdr

play06:20

this means we need to force an election

play06:22

we can do this by clearing the ospf

play06:25

process

play06:26

but we don't do it on the router we just

play06:29

configured

play06:30

that won't trigger an election

play06:32

instead we need to do this on the

play06:34

current Dr and bdr routers

play06:38

let's head over to R5 which is the

play06:40

current designated router

play06:43

here we'll clear the ospf process which

play06:46

causes the names to drop and reform

play06:52

back on R1 we can look at the neighbors

play06:54

again

play06:57

we see that the router R5 that's 192.168

play07:01

10.5 is now a Dr other

play07:04

router R4 has been promoted from BDO to

play07:08

Dr

play07:09

so even though there's an election

play07:11

process R1 hasn't become the Dr

play07:14

when the designated router drops out the

play07:17

bdr gets a promotion

play07:19

the routers hold an election to select

play07:21

the new bdr

play07:23

you'll notice that there's no bdr in the

play07:25

list here that's because R1 the router

play07:28

we're logged into is now the bdr

play07:32

for R1 to become the Dr now we would

play07:35

need to restart the ospf process on R4

play07:40

let's take a step back and think about

play07:42

this simple topology

play07:44

what type of ospf network is this

play07:47

you might assume that it's point to

play07:49

point but that's not necessarily true

play07:52

these two routers could connect to a

play07:54

switch and be in the same VLAN

play07:56

that would be an ethernet connection and

play07:58

therefore a broadcast network

play08:01

or they could be directly connected

play08:03

together

play08:04

but the interface type might still use

play08:06

ethernet

play08:07

that would still be a broadcast network

play08:09

as far as ospf is concerned

play08:12

even though there are only two routers

play08:15

they would still need to elect a Dr and

play08:18

bdr and handle LSUS in the manner we've

play08:21

been discussing

play08:22

of course that's not very efficient so

play08:25

if we want to we can change the ospf

play08:27

network type

play08:29

let's go back to R1 and see how that's

play08:31

done

play08:32

from before we can see that there are a

play08:34

few routers here

play08:36

this is not a very good topology to

play08:38

change the network type as there are

play08:39

five routers in the segment

play08:41

but I want to show you how to make the

play08:42

change as well as what happens if you

play08:44

use the wrong network type

play08:47

once again we configure this under the

play08:49

interface

play08:51

we use the ipospf network command

play08:55

and here we can see the network types we

play08:57

can choose

play08:58

we'll set this interface to point to

play09:00

point

play09:04

straight away the neighbors drop the key

play09:07

Point here is that neighbors need to

play09:08

have the same network type

play09:11

let's look at the R5 router

play09:13

the logs on the screen show us that the

play09:15

neighbor adjacency with R1 repeatedly

play09:17

forms and drops

play09:19

we can change the network type on this

play09:21

router too it's the same command as

play09:23

before

play09:28

immediately the other neighbors fail

play09:29

they keep trying to reconnect but

play09:32

they'll never be successful as long as

play09:34

the network types don't match

play09:36

we'll take a look at a better example of

play09:38

changing the network type when we get to

play09:40

the lab at the end of the video

play09:42

before we move on here's a little review

play09:45

to help with designated routers and

play09:47

backup designated routers

Rate This
★
★
★
★
★

5.0 / 5 (0 votes)

Étiquettes Connexes
OSPF ProtocolNetwork RoutingDR/BDREthernet NetworksMulticast MessagesCCNA ExamRouter ConfigurationBroadcast NetworksPoint-to-PointNetwork EfficiencyOSPF Election
Besoin d'un résumé en anglais ?