ca_ex_s2m10_link-state routing protocol.ppt [compatibility mode]

34
Chapter 10: Link-State Routing Protocols CCNA Ex lorati on v er si on 4.0  

Upload: httpheiserzcom

Post on 06-Apr-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 1/34

Chapter 10: Link-State Routing

Protocols

CCNA Ex loration version 4.0 

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 2/34

Objectives

• Describe the basic features & concepts of link-staterouting protocols.

• List the benefits and requirements of link-state routingprotocols.

Hc vin mng Bach Khoa - Website: www.bkacad.com 2

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 3/34

Link-State Routing

Hc vin mng Bach Khoa - Website: www.bkacad.com 3

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 4/34

Link-State Routing Protocols

• Link state routing protocols

 – Also known as shortest path first algorithms

 – Built around Dijkstra’s SPF

Hc vin mng Bach Khoa - Website: www.bkacad.com 4

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 5/34

Introduction to the SPF Algorithm

• Dikjstra’s algorithm also known as theshortest path first (SPF) algorithm. This

algorithm accumulates costs along eachpath, from source to destination.

 

Hc vin mng Bach Khoa - Website: www.bkacad.com 5

 destination in the topology.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 6/34

Introduction to the SPF Algorithm

Hc vin mng Bach Khoa - Website: www.bkacad.com 6

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 7/34

Introduction to the SPF Algorithm

• The shortest path to a destination is not necessarilythe path with the least number of hops

Hc vin mng Bach Khoa - Website: www.bkacad.com 7

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 8/34

Link-State Routing Process

• How routers using Link State Routing Protocols reach convergence 

Hc vin mng Bach Khoa - Website: www.bkacad.com 8

. .

2. Link state routers exchange hello packet to “meet” other directlyconnected link state routers.

3. Each router builds its own Link State Packet (LSP) whichincludes information about neighbors such as neighbor ID, linktype, & bandwidth.

4. After the LSP is created the router floods it to all neighbors whothen store the information and then forward it until all routershave the same information.

5. Once all the routers have received all the LSPs, the routers thenconstruct a topological map of the network which is used to

determine the best routes to a destination.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 9/34

• Link: this is an interface on arouter

• Information about the state of

those links is known as link-states.This informationincludes:

 –  The interface's IP addressand subnet mask.

1.Learning about Directly Connected Network

Hc vin mng Bach Khoa - Website: www.bkacad.com 9

 

 –  The type of network, suchas Ethernet (broadcast) orSerial point-to-point link.

 –  The cost of that link.

 –  Any neighbor routers onthat link.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 10/34

2.Sending Hello Packets to Neighbors

Hc vin mng Bach Khoa - Website: www.bkacad.com 10

• Routers with link-state routing protocols use a Helloprotocol to discover any neighbors on its links. Aneighbor is any other router that is enabled with thesame link-state routing protocol.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 11/34

2.Sending Hello Packets to Neighbors

Hc vin mng Bach Khoa - Website: www.bkacad.com 11

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 12/34

• When 2 link-state routers learn that they areneighbors, they form an adjacency.

• These small Hello packets continue to beexchanged between two adjacent neighborswhich serve as a "keepalive" function to monitor

2.Sending Hello Packets to Neighbors

Hc vin mng Bach Khoa - Website: www.bkacad.com 12

.

• If a router stops receiving Hello packets from aneighbor, that neighbor is consideredunreachable and the adjacency is broken.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 13/34

• Each router builds its own Link State

Packet (LSP).• Contents of LSP:

 

3.Building the Link-State Packet

Hc vin mng Bach Khoa - Website: www.bkacad.com 13

.  link

2. Includes information about

neighbors such as neighbor ID,link type, & bandwidth.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 14/34

3.Building the Link-State Packet

Hc vin mng Bach Khoa - Website: www.bkacad.com 14

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 15/34

4.Flooding Link-State Packets to Neighbors

• Each router floods the LSP to all neighbors,who then store all LSPs received in a

database.• Each router floods its link-state information

-

Hc vin mng Bach Khoa - Website: www.bkacad.com 15

 area.

• Whenever a router receives an LSP from aneighboring router, it immediately sends thatLSP out all other interfaces except theinterface that received the LSP.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 16/34

4.Flooding Link-State Packets to Neighbors

• LSPs are sent out under the followingconditions

1. During initial startup of the router orof the routing protocol process on

Hc vin mng Bach Khoa - Website: www.bkacad.com 16

 2. Whenever there is a change in the

topology, including a link going

down or coming up, or a neighboradjacency being established orbroken

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 17/34

4.Flooding Link-State Packets to Neighbors

Hc vin mng Bach Khoa - Website: www.bkacad.com 17

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 18/34

4.Flooding Link-State Packets to Neighbors

• Unlike distance vector routing protocolsthat must first run the Bellman-Ford

algorithm to process routing updates before sending them to other routers, link-state

Hc vin mng Bach Khoa - Website: www.bkacad.com 18

 algorithm after the flooding is complete.

• As a result, link-state routing protocols

reach convergence much faster thandistance vector routing protocols.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 19/34

5.Constructing a link state database

• Each router uses the database to constructa complete map of the topology and

computes the best path to each destinationnetwork.

Hc vin mng Bach Khoa - Website: www.bkacad.com 19

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 20/34

• Each router in the topology determinesthe shortest path from its ownperspective.

5.Constructing a link state database

Hc vin mng Bach Khoa - Website: www.bkacad.com 20

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 21/34

5.Constructing a link state database

Hc vin mng Bach Khoa - Website: www.bkacad.com 21

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 22/34

Shortest Path First (SPF) Tree

ignore

Hc vin mng Bach Khoa - Website: www.bkacad.com 22

• Building a portion of the SPF

tree:Process begins by examiningR2’s LSP informationR1 ignores 1st LSP: R1 alreadyknows it’s connected to R2

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 23/34

Shortest Path First (SPF) Tree

Hc vin mng Bach Khoa - Website: www.bkacad.com 23

• Building a portion of the SPFtree:

R1 uses 2nd LSPReason: R1 can create a linkfrom R2 to R5. This informationis added to R1’s SPF tree

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 24/34

Shortest Path First (SPF) Tree

Hc vin mng Bach Khoa - Website: www.bkacad.com 24

• Building a portion of the SPF

tree:R1 uses 3rd LSP

Reason: R1 learns that R2is connected to 10.5.0.0/16.

This link is added to R1’s

SPF tree.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 25/34

Shortest Path First (SPF) Tree

• Determining the shortestpath

 – The shortest path to a

Hc vin mng Bach Khoa - Website: www.bkacad.com 25

est nat on eterm neby adding the costs &finding the lowest cost

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 26/34

Shortest Path First (SPF) Tree

• Once the SPF algorithm hasdetermined the shortest pathroutes, these routes areplaced in the routing table.

Hc vin mng Bach Khoa - Website: www.bkacad.com 26

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 27/34

ImplementingLink-State Routing Protocols

Hc vin mng Bach Khoa - Website: www.bkacad.com 27

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 28/34

Routingprotocol

BuildsTopological

map

Router canindependentlydetermine the

shortest path toConvergence

A periodic/ event driven

routing updates

Useof

LSP

Advantages of a Link-State Routing Protocol

Hc vin mng Bach Khoa - Website: www.bkacad.com 28

 

Distancevector

No No Slow Yes/Yes No

Link State Yes Yes Fast No/Yes Yes

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 29/34

Advantages of a Link-State Routing Protocol

Hc vin mng Bach Khoa - Website: www.bkacad.com 29

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 30/34

• Memory requirements

 – Typically link state routing protocols usemore memory

• Processing Requirements

Requirements for using a link state routing protocol

Hc vin mng Bach Khoa - Website: www.bkacad.com 30

 

 – More CPU processing is required of linkstate routing protocols

• Bandwidth Requirements

 – Initial startup of link state routing protocolscan consume lots of bandwidth

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 31/34

Requirements for using a link state routing protocol

Hc vin mng Bach Khoa - Website: www.bkacad.com 31

• Modern LSR protocols are designed to minimize the effects onmemory, CPU, and bandwidth. Multiple areas can reduce the size ofthe link-state databases. It limits the amount of link-state informationflooding in a routing domain and send LSPs only to those routers that

need them.

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 32/34

Requirements for using a link state routing protocol

• 2 link state routing protocols used for routing IP – Open Shortest Path First (OSPF) –  Intermediate System-Intermediate System (IS-IS)

Hc vin mng Bach Khoa - Website: www.bkacad.com 32Multi-areas OSPF and IS-IS are discussed in CCNP

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 33/34

Summary

Hc vin mng Bach Khoa - Website: www.bkacad.com 33

8/3/2019 CA_Ex_S2M10_Link-State Routing Protocol.ppt [Compatibility Mode]

http://slidepdf.com/reader/full/caexs2m10link-state-routing-protocolppt-compatibility-mode 34/34

Hc vin mng Bach Khoa - Website: www.bkacad.com 34