Basics of Link-State Operations

Rick Graziani
24 Sept 201810:21

Summary

TLDRThis video delves into link-state routing protocols, focusing on OSPF, a popular IETF standard. It explains how routers share link-state information to build a topological map, using the SPF algorithm to determine the shortest path. The process involves routers flooding their link-state data, constructing a common SPF tree, and agreeing on the best path to each network. The result is a routing table that guides packet forwarding, ensuring all routers converge on the optimal path.

Takeaways

  • 😀 Link state routing protocols, such as OSPF, are popular for creating a map of the routing domain by sharing link state information among routers.
  • 🔄 OSPF is an IETF standard-based protocol widely used, especially in service provider networks in Europe, and is supported by various RFCs for IP.
  • 📚 Each router initially only knows about its own links and their characteristics, such as IP prefix, network type, and cost.
  • 🌐 Routers share their link state information with others through a flooding process, which helps build a comprehensive topological database.
  • Each router learns about the links of other routers in the network, enhancing its own link state database with this shared information.
  • đŸ› ïž Dijkstra's algorithm, also known as the Shortest Path First (SPF) algorithm, is used to process the link state database and determine the best path to each network.
  • 🌳 The SPF algorithm creates a shortest path tree that helps routers understand the most efficient route to various networks in the domain.
  • 🔄 All routers in the OSPF network will have the same link state information, leading to a consensus on the best paths to each network.
  • 📋 Once the best paths are determined, this information is offered to the routing table, which is used for packet forwarding.
  • 🚀 OSPF uses bandwidth as a metric for determining the cost of a link, ensuring that routers agree on the fastest path to a destination.
  • 🔄 The routing table is updated with the best paths, which are then used for forwarding packets to their destinations based on the most efficient route.

Q & A

  • What is a link-state routing protocol?

    -A link-state routing protocol is a type of network routing protocol where each router maintains a database describing the network topology. It then uses this information to calculate the best path for data to travel.

  • What does OSPF stand for and what is its significance?

    -OSPF stands for Open Shortest Path First. It is a popular IETF standards-based protocol used for routing within an IP network, and is widely used in service provider networks, especially in Europe.

  • What is the purpose of the SPF algorithm in link-state routing?

    -The Shortest Path First (SPF) algorithm is used to calculate the shortest path to all network nodes from the router running the algorithm. It creates a shortest path tree based on the link-state information in the topological database.

  • What is a link-state advertisement?

    -A link-state advertisement is a message that contains information about a router's links, including the IP prefix, prefix length, type of network, cost, and neighboring routers. It is used to inform other routers in the network about the state of the advertising router's links.

  • How does a router initially learn about its own links?

    -Initially, a router learns about its own links through its local configuration and interface settings. It then places this information into its link-state database and floods this information to other routers in the routing domain.

  • What does flooding mean in the context of link-state routing?

    -Flooding in link-state routing refers to the process where each router shares its link-state information with all other routers in the routing domain. This ensures that all routers have a complete and consistent view of the network topology.

  • How does a router learn about the links of other routers in the network?

    -A router learns about the links of other routers in the network by receiving their link-state advertisements through the flooding process. This allows the router to build a complete picture of the network's topology.

  • What is the role of Dijkstra's algorithm in link-state routing?

    -Dijkstra's algorithm is used in link-state routing to determine the shortest path to all nodes in the network based on the link-state information in the database. It helps in creating the shortest path first tree.

  • What is the SPF tree?

    -The SPF tree, or Shortest Path First tree, is a tree-like structure that represents the shortest path from the router running the algorithm to all other routers in the network. It is used to determine the best path for routing data.

  • How does a router determine the best path to each network?

    -A router determines the best path to each network by using the SPF algorithm to analyze the complete link-state database and calculate the paths with the lowest cumulative cost to reach each destination.

  • What happens once a router has determined the best paths to all networks?

    -Once a router has determined the best paths to all networks, it updates its routing table with this information. The routing table is then used to forward packets based on the entries that represent the best paths to their destinations.

Outlines

00:00

🌐 Link State Routing Protocols Overview

The video begins with an introduction to link state routing protocols, focusing on OSPF (Open Shortest Path First), a popular IETF standard-based protocol widely used in service provider networks, especially in Europe. The concept of link state is explained, where routers share their link state information with others, contributing to a topological database. This database is then used to run the Shortest Path First (SPF) algorithm, which helps in determining the best path for routing. The video goes on to describe the initial state of a router's knowledge, which is limited to its own links, and how it gradually learns about the links of other routers in the network through a flooding process, building up its link state database.

05:00

🔄 Link State Information Exchange and SPF Algorithm

This paragraph delves deeper into the process of link state information exchange among routers. Each router, such as R1, R2, R3, R4, and R5, shares its link state information, which includes details about connected routers, IP addresses, prefix lengths, and costs associated with each link. As routers receive this information, they update their link state databases, learning about the entire network's topology. The video explains how routers use Dijkstra's algorithm to construct the SPF tree, which helps in determining the shortest path to each network. It emphasizes that all routers will have the same SPF tree and agree on the best path to reach each network due to the shared link state information, ensuring consistency in routing decisions.

10:01

📋 Routing Table Update Based on SPF Tree

The final paragraph discusses the culmination of the SPF process, where routers determine the best path to each network and update their routing tables accordingly. The video highlights that once the best paths are identified, they are offered to the routing table, unless there is a more favorable route from a directly connected source, a static route with a lower administrative distance, or a better route from another dynamic routing protocol. The paragraph concludes by explaining that packets will be forwarded based on the entries in the updated routing table, summarizing the link state routing operations and their impact on packet forwarding.

Mindmap

Keywords

💡Link State Routing Protocols

Link State Routing Protocols are a type of network routing protocol that operates by creating a 'map' of the network. Each router in the network maintains a database of the entire network's topology. The script mentions OSPF (Open Shortest Path First) as an example of such a protocol, which is widely used and standardized by the IETF. This concept is central to the video's theme as it explains how routers share and use link state information to determine the best paths for routing data.

💡OSPF (Open Shortest Path First)

OSPF is a popular link-state routing protocol that is used to find the shortest path for data to travel within an IP network. It is mentioned in the script as an IETF standard and is known for its use in service provider networks, particularly in Europe. OSPF is integral to the video's narrative as it exemplifies how link state information is shared and processed to achieve efficient routing.

💡Topological Database

A topological database in the context of this video refers to the collection of link state information that each router maintains. This database is used to represent the network's structure and is crucial for running algorithms to determine the shortest path for routing. The script explains that routers share their link state information which is then stored in this database, forming the basis for the routing decisions.

💡SPF Algorithm

The Shortest Path First (SPF) algorithm, also known as Dijkstra's algorithm, is a method used by routers to calculate the shortest path to a destination based on the link state information in their database. The script describes how routers use the SPF algorithm to create a shortest path tree, which helps in determining the best path for routing data packets.

💡Link State

In link state routing, a 'link state' refers to the information about a router's link, which includes details like the IP prefix, prefix length, type of network, and the cost associated with using that link. The script uses the term to describe the initial information that routers share with each other, which is the foundation for building the network's topology map.

💡Router

A router is a networking device that forwards data packets between computer networks. In the script, routers are the central entities that share link state information, maintain a topological database, and use the SPF algorithm to determine the best path for routing. The video explains the process from the perspective of a router named R1, illustrating how it learns about its own and other routers' links.

💡Cost

In the context of routing protocols, 'cost' represents a metric that quantifies the use of a link, such as bandwidth or other factors that might affect the desirability of a path. The script mentions that routers use cost, such as bandwidth, to determine the most efficient route for data to travel through the network.

💡Flooding

Flooding in the context of routing protocols is the process by which routers share their link state information with all other routers in the network. The script describes how routers flood their link state information, ensuring that every router has an up-to-date and complete picture of the network's topology.

💡Adjacency

Adjacency in routing protocols refers to the relationship between two routers that are directly connected by a link. The script mentions that routers learn about their neighboring routers and establish adjacency, which is essential for the exchange of routing information.

💡Routing Table

A routing table is a data file used by routers to determine where to forward IP packets. The script explains that once the best paths to each network are determined using the SPF algorithm, this information is then added to the routing table, which is used to forward packets to their destinations.

💡Administrative Distance

Administrative distance is a metric that defines the reliability of a routing information source. The script briefly touches on this concept, explaining that if there is no better routing source with a lower administrative distance, the paths determined by the SPF algorithm are added to the routing table.

Highlights

Link state routing protocols like OSPF are popular IETF standards-based protocols used widely in service provider networks.

OSPF operates on the principle of sharing link state information among routers to build a topological database.

Each router initially only knows about its own links, including IP prefix, network type, and cost.

Routers flood their link state information to other routers in the routing domain.

Link state information includes details about neighboring routers and adjacent networks.

Routers build their link state databases by receiving and incorporating information from other routers.

The SPF (Shortest Path First) algorithm is used to create a tree and determine the best path based on the link state database.

All routers in the OSPF network will end up with the same link state database and SPF tree due to the flooding of information.

Routers agree on the best path to each network because they all use the same link state information.

OSPF uses bandwidth as a cost metric to determine the best path.

Routers determine the best path to each network and offer this information to their routing tables.

The routing table is updated with the best paths, which are used to forward packets.

Link state routing protocols are advantageous because they allow routers to have a complete map of the network.

OSPF is particularly suited for large and complex networks due to its efficient routing calculations.

The SPF algorithm is fundamental to OSPF's operation, ensuring that all routers agree on the shortest path.

In OSPF, routers learn about remote networks and their costs through the exchange of link state information.

The process of flooding ensures that all routers are updated with the latest network topology changes.

OSPF's dynamic nature allows it to quickly adapt to changes in the network topology.

Transcripts

play00:01

hi in this video going to look at link

play00:04

state routing operations

play00:06

okay so link state routing protocols we

play00:09

have open shortest path first OSPF very

play00:13

popular IETF standards based protocol

play00:16

and is is intermediate system to

play00:20

intermediate system popular and with a

play00:23

lot of service provider networks popular

play00:27

in Europe it's an ISO standard there is

play00:31

some RFC's on it that support IP

play00:34

obviously okay

play00:38

let's look at the link state concepts so

play00:42

I mentioned in previous video that the

play00:46

router has will share its link state

play00:49

information with other routers goes into

play00:51

the top topological database we'll talk

play00:54

all about this runs the SPF algorithm

play00:57

come up with the shortest path first

play00:59

tree and offers the best path to the

play01:01

routing table let's go over how all of

play01:05

this works and again remember in link

play01:07

stay we come up with some kind of

play01:09

topology map so routers know the almost

play01:15

a map of the routing domain let's see

play01:18

how this is done the first of all link

play01:21

state a link state is information about

play01:24

it routers link a link is an interface

play01:27

this includes the IP prefix and prefix

play01:30

length the type of the network the cost

play01:33

of you know of that link Cisco OSPF uses

play01:39

bandwidth for that there's any

play01:41

neighboring routers on that link and the

play01:45

adjacent neighbors then so initially

play01:48

that's all the router knows is about its

play01:51

own links okay so here we have there we

play01:57

go so here we have router r1 with four

play02:01

links three of the links actually have

play02:04

neighbors and to learn about those

play02:05

neighbors as you'll see in other videos

play02:09

like with OSPF that actually learned

play02:13

about those neighbors using hole

play02:15

messages but just for now take a look

play02:18

that router r1 knows about its own links

play02:21

information about its own interfaces and

play02:25

what type of networks they are all right

play02:29

so initially that's all our one knows

play02:33

okay

play02:34

and it puts that in what it's known as

play02:36

its link state database and it's going

play02:39

to flood that information to other

play02:41

routers in the routing domain now it's

play02:48

also going to learn about link States

play02:51

from other routers and it's going to

play02:53

build its link state information just

play02:56

like r1 so r1 has information about its

play03:00

own links but it's soon gonna learn

play03:02

information about other routers link

play03:06

states in the routing domain let's see

play03:08

how this works so router r2

play03:11

there's router r2 on the right okay it's

play03:14

going to share its link state

play03:16

information with our one okay all right

play03:22

so r1 is going to add let's take a look

play03:25

here

play03:25

so r2 says okay i'm connected r1 r1

play03:29

already knows that but you can see

play03:31

there's some other information these of

play03:34

this other link information that r1 is

play03:36

going to learn about our two because

play03:38

right now all knows that is r2 is just

play03:42

connected to it's up to r1 to that where

play03:45

we are adjacent neighbors okay

play03:48

but this link state information is gonna

play03:50

tell our once I hate I just learned some

play03:53

new stuff in red I learned that you have

play03:57

a local area network 10500 slash 16 with

play04:00

a cost of two I met you I learned from

play04:03

you that you have a link to our five for

play04:07

the cost of ten and the IP address and

play04:10

prefix length associated with that

play04:13

yeah all right r3 has it's only stated

play04:19

information we see this on the right and

play04:21

that information is going to be flooded

play04:24

throughout the routing domain including

play04:27

sent to R 1 and R 1 like it did with r 2

play04:31

is going to add that information to its

play04:33

links to a database so let's see what

play04:36

new information it pertains so R 1

play04:40

already knew and blue there that I had a

play04:44

link with our 3 but it that our 3 has a

play04:48

local area network

play04:49

10600 16 with a cost of 2 it learns that

play04:53

R 3 is connected to our four didn't know

play04:56

that before did it ok and what that cost

play05:00

is and what that network is

play05:03

all right from our four it's going to

play05:06

learn some information as well and all

play05:08

this gets put into our ones link state

play05:12

database so really what our one is doing

play05:16

at this point is just putting the

play05:17

information in its link state database

play05:20

hasn't made any real sense out of it yet

play05:23

Dijkstra's algorithm the shortest path

play05:26

first algorithm it's really what creates

play05:28

this tree and then determines the best

play05:30

path we're kind of merging some things

play05:32

together here a little bit to make it

play05:34

more visible okay let's see what our one

play05:39

learns from our four okay so it already

play05:43

knew about our three it learned about it

play05:45

already knew about the connection

play05:47

between r3 and r4 I should stay it knew

play05:49

about our ones connection it's

play05:51

connection to r4 already but it did

play05:54

learn about our four having a connection

play05:57

of r5 what that network is what the cost

play06:00

is I also learned that our 4 has a local

play06:03

area network found sometimes you call

play06:05

this the stub network because there's no

play06:08

adjacent router out you know the router

play06:10

out here but it has a network what that

play06:12

prefix prefix length is and the cost

play06:15

okay and it can add that to it's links

play06:18

to a database and ultimately begin to

play06:22

form this trace I put in pieces of a

play06:24

puzzle together

play06:26

okay just connect one piece to another

play06:29

piece to another piece kinda like that

play06:32

song I love those look at how hot you

play06:34

know foot bone connected to the knee

play06:37

bone Yibo connected thigh bone and all

play06:40

these things are there is a knee bone

play06:42

but all the way up you know that's how

play06:44

we interconnect alright last but not

play06:47

least router RFI our five advertises its

play06:51

link states again this is flooded so all

play06:53

the routers in the routing domain get

play06:56

this information when our one gets it it

play06:59

seems okay I already knew about our

play07:03

tubing r5 connected to our two already

play07:06

knew that I knew our five connected to

play07:08

our floor but a new piece of information

play07:09

is this in red the left end 1100 now

play07:16

okay so it adds that information to its

play07:19

links to a database it's new information

play07:24

there all right so what happens is r1

play07:28

has now constructed this shortest path

play07:31

first tree and this is all done with

play07:33

Dijkstra's algorithm but we're not done

play07:36

yet I start algorithm still have some

play07:38

stuff to do what it's going to do now is

play07:41

determine what it's our ones best path

play07:44

is to each of these networks now one of

play07:47

the key things here is that all these

play07:49

routers here have all flooded link state

play07:53

information to each other

play07:55

r1 flooded its link state information r2

play07:58

r3 they all flooded it and they all

play08:01

received each other's link state

play08:03

information so they're all coming up

play08:05

with the same link state information

play08:08

same link state database and they're all

play08:13

coming up with the same SPF tree and

play08:15

they're all going to agree on what the

play08:17

best path is to to reach each networks

play08:21

OSPF uses bandwidth so they're all going

play08:25

to come up using the same map they can

play08:27

all agree on what the best path is all

play08:31

right so r1 is determine what the best

play08:34

path is to each Network okay and again

play08:38

this can be identical on all routers

play08:40

what that path is okay so I figured out

play08:45

what the best path is to each Network

play08:47

like R once is really the best path for

play08:49

me to reach this 10800 network down here

play08:52

is not directly to r4 that's a cost of

play08:55

20 but I can get there from our three

play08:58

and then to our four that's 15 there so

play09:03

that's cheaper faster than this path

play09:05

here and they all agree on these kinds

play09:08

of things are two agrees the same way

play09:10

they all agree on the same path because

play09:12

r5 has a shorter path this way okay so

play09:17

the router will then offer this

play09:20

information determining what the best

play09:23

path is to each network that information

play09:25

will be now offered to the routing table

play09:29

and if there is no better routing source

play09:32

it's not directly connected there's not

play09:36

a static route that has a lower

play09:38

administrative distance or in a unusual

play09:44

case with another dynamic routing

play09:46

protocol running a a another routing

play09:54

protocol with a better administrative

play09:57

distance okay but so it offers it to the

play10:00

routing table these best paths okay and

play10:04

then once in the routing table packets

play10:06

will be forwarded according to these

play10:08

entries in the routing table okay hope

play10:13

this helped you understand a little bit

play10:14

about link state operations

Rate This
★
★
★
★
★

5.0 / 5 (0 votes)

Étiquettes Connexes
Link-StateRoutingOSPFIS-ISNetworkingProtocolsTopologyDijkstra's AlgorithmNetwork CostSPF Tree
Besoin d'un résumé en anglais ?