Link-State Routing Protocols

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
Advertisements

Enhanced Interior Gateway Routing Protocol (EIGRP) Part 2
Introduction to Dynamic Routing Protocols
Chapter 7 RIP Version 2 (RIPv2).
Routing Protocol.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
CCNA 2 v3.1 Module 6.
Routing and Routing Protocols
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
Chapter 7: Routing Dynamically
Lecture Week 3 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Chapter 5 IP Routing Routing Protocol vs. Routed Protocol
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
1 11-Sep-15 S Ward Abingdon and Witney College Link State CCNA Exploration Semester 2 Chapter 10.
Routing and Routing Protocols Dynamic Routing Overview.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Link-State Routing Protocols Routing Protocols and Concepts – Chapter.
Link State Routing Protocols Last Update Copyright Kenneth M. Chipps Ph.D.
Lecture Week 10 Link-State Routing Protocols. Objectives Describe the basic features & concepts of link-state routing protocols. List the benefits and.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing & Switching.
Chapter 7: Routing Dynamically
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing Protocols.
Introduction to Routing and Routing Protocols By Ashar Anwar.
University of the Western Cape Chapter 11: Routing Aleksandar Radovanovic.
CCNA 1 version 3.0 Rick Graziani Cabrillo College
Routing and Routing Protocols Routing Protocols Overview.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
1. 2 Anatomy of an IP Packet IP packets consist of the data from upper layers plus an IP header. The IP header consists of the following:
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Link-State Routing Protocols Routing Protocols and Concepts – Chapter 10.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
Routing/Routed Protocols Part I. Routed Protocol Definition: Routed Protocol – used to transmit user data (packets) through an internetwork. Routed protocols.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
Page 110/27/2015 A router ‘knows’ only of networks attached to it directly – unless you configure a static route or use routing protocols Routing protocols.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
CCNA 3 Week 2 Link State Protocols OSPF. Copyright © 2005 University of Bolton Distance Vector vs Link State Distance Vector –Copies Routing Table to.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
Networks and Protocols CE Week 8b. Link state Routing.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Introduction to Dynamic Routing Protocol Routing Protocols and Concepts.
Routing and Routing Protocols
CCNA2-1 Chapter 5 RIP Version 1 (RIPv1). CCNA2-2 Chapter 5 Note for Instructors These presentations are the result of a collaboration among the instructors.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing & Switching.
1 Version 3.1 Module 6 Routed & Routing Protocols.
OSPF Open Shortest Path First. Table of Content  IP Routes  OSPF History  OSPF Design  OSPF Link State  OSPF Routing Table  OSPF Data Packets.
1 7-Jan-16 S Ward Abingdon and Witney College Dynamic Routing CCNA Exploration Semester 2 Chapter 3.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing & Switching.
© 2002, Cisco Systems, Inc. All rights reserved..
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 7: Routing Dynamically Routing & Switching.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Link-State Routing Protocols Routing Protocols and Concepts – Chapter 10.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
Prof. Alfred J Bird, Ph.D., NBCT Office – Science 3rd floor – S Office Hours – Monday and Thursday.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.1 Routing Working at a Small-to-Medium Business or ISP – Chapter 6.
Prof. Alfred J Bird, Ph.D., NBCT Office – McCormick 3rd floor 607 Office Hours – Monday 3:00 to 4:00 and.
+ Dynamic Routing Protocols 2 nd semester
ROURING ALGORITHM: LINK STATE
Instructor Materials Chapter 5: Dynamic Routing
Routing Protocols and Concepts
Link-State Routing Protocols
Dynamic Routing Protocols part2
Single-Area OSPF (Open Shortest Path First Protocol)
Chapter 5: Dynamic Routing
Chapter 5: Dynamic Routing
Chapter 7: Routing Dynamically
Link-State Routing Protocols
Chapter 8: Single-Area OSPF
Link-State Routing Protocols
Chapter 10 Link State Routing Protocols
Presentation transcript:

Link-State Routing Protocols Chapter 10 Link-State Routing Protocols

Note for Instructors These presentations are the result of a collaboration among the instructors at St. Clair College in Windsor, Ontario. Thanks must go out to Rick Graziani of Cabrillo College. His material and additional information was used as a reference in their creation. If anyone finds any errors or omissions, please let me know at: tdame@stclaircollege.ca.

OSPF Link-State Routing

Link-State Routing Protocols Link-state routing protocols are also known as shortest path first protocols and are built around Edsger Dijkstra’s shortest path first (SPF) algorithm. While they have the reputation of being much more complex than distance vector, the basic functionality and configuration of link state routing protocols are not complex.

Link-State Routing Protocols Distance Vector routing protocols are like road signs. Routers must make preferred path decisions based on a distance or metric to a network. Link-State routing protocols are more like a road map. They create a topological map of the network and each router uses this map to determine the shortest path to each network.

Introduction to the SPF Algorithm Dijkstra’s algorithm is commonly referred to as the Shortest Path First (SPF) algorithm. This algorithm accumulates costs along each path, from source to destination.

Introduction to the SPF Algorithm We will see that Cisco's implementation of OSPF specifies the cost of the link (the OSPF routing metric) as the bandwidth of the outgoing interface.

Introduction to the SPF Algorithm To illustrate how SPF operates, each path in the figure is labeled with an arbitrary value for cost. Each router calculates the SPF algorithm and determines the cost of a link from its own perspective.

Introduction to the SPF Algorithm For example: The cost of the shortest path for R2 to send packets to the LAN attached to R3 is 27 (20 + 5 + 2 = 27).

Introduction to the SPF Algorithm R1 uses 3 “hops” but “faster” links. 27 32 R1 has data to send to the network on R5. You might think that R1 would send directly to R4 (2 hops) instead of to R3 (3 hops).

Link-State Routing Process How does a link-state routing protocol work? 5 Step Process: Each router learns about its own directly connected networks. Each router is responsible for contacting its neighbors on directly connected networks. Each router builds a link-state packet (LSP) containing the state of each directly connected link. Each router floods the LSP to all neighbors, who then store all LSPs received in a database. Each router uses the LSPs to construct a database that is a complete map of the topology and computes the best path to each destination network.

Step 1: Directly Connected Networks We will focus on the Link-State routing process from the perspective of R1. Step 1: Each router learns about its own directly connected networks. When a router interface is configured with an IP address and subnet mask and activated, the interface becomes part of that network. Regardless of the routing protocols used, these directly connected networks are now part of the routing table.

Step 1: Directly Connected Networks Information about the state of a router’s links is known as link states.

Step 2: Hello Packets Step 2: Each router is responsible for contacting its neighbors on directly connected networks. The router will not be aware of any neighbor routers on the link until it receives a Hello packet from that neighbor. At that time, it establishes an adjacency with the neighboring router.

Step 2: Hello Packets

Step 2: Hello Packets A neighbor is any other router that is enabled with the same link-state routing protocol. These small Hello packets continue to be exchanged between two adjacent neighbors. These packets serve as a keepalive function to monitor the state of the neighbor.

Step 3: Build the Link-State Packet (LSP) Step 3: Each router builds a link-state packet (LSP) containing the state of each directly connected link. The LSP contains the link-state information about the sending router’s links. The router only sends LSPs out interfaces where it has established adjacencies with other routers.

Step 4: Flooding Link-State Packets Flooding of R1 LSP No response to Hello – no LSP sent. Step 4: Each router floods the LSP to all neighbors, who then store all LSPs received in a database. Whenever a router receives an LSP from a neighboring router, it immediately sends that LSP out all other interfaces, except the interface that received the LSP.

Step 4: Flooding Link-State Packets Link-state routing protocols calculate the SPF algorithm after the flooding is complete. As a result, link-state routing protocols reach convergence much faster than distance vector routing protocols.

Step 4: Flooding Link-State Packets An LSP needs to be sent only: During initial startup of the router or routing protocol. Whenever there is a change in the topology (link going down or coming up) or a neighbor adjacency being established or broken.

Step 5: Constructing a Link-State Database Step 5: Each router uses the LSPs to construct a database that is a complete map of the topology and computes the best path to each destination network.

Step 5: Constructing a Link-State Database As a result of the flooding process, router R1 has learned the link-state information for each router in its routing area.

Step 5: Constructing a Link-State Database Each router in the topology determines the shortest path from its own perspective. With a complete link-state database, R1 can now use the database and the shortest path first (SPF) algorithm to calculate the preferred path or shortest path to each network.

R1: Building the SPF Tree

R1: Building the SPF Tree Root All LSPs have been processed using the SPF algorithm and R1 has now constructed the complete SPF tree.

R1: Determining the Shortest Path Root Using this tree, the SPF algorithm results indicate the shortest path to each network.

R1: Determining the Shortest Path Root Network 10.5.0.0/16 via R2 Serial 0/0/0 at a cost of 22

R1: Determining the Shortest Path Root Network 10.6.0.0/16 via R3 Serial 0/0/1 at a cost of 7

R1: Determining the Shortest Path Root Network 10.7.0.0/16 via R3 Serial 0/0/1 at a cost of 15

R1: Determining the Shortest Path Root Network 10.8.0.0/16 via R3 Serial 0/0/1 at a cost of 17

R1: Determining the Shortest Path Root Network 10.9.0.0/16 via R2 Serial 0/0/0 at a cost of 30

R1: Determining the Shortest Path Root Network 10.10.0.0/16 via R3 Serial 0/0/1 at a cost of 25

R1: Determining the Shortest Path Root Network 10.11.0.0/16 via R3 Serial 0/0/1 at a cost of 27

Generating a Routing Table

Implementing Link-State Routing Protocols OSPF Implementing Link-State Routing Protocols

Advantages: Link-State

Hierarchical Design Link-state routing protocols such as OSPF and IS-IS use the concept of areas. Multiple areas create a hierarchical design to networks, allowing better route aggregation (summarization) and the isolation of routing issues within an area.

Requirements: Link-State Memory Requirements: Link-state routing protocols typically require more memory, more CPU processing and, at times, more bandwidth than distance vector routing protocols. The memory requirements are because of the use of: Link-state databases. Creation of the SPF tree.

Requirements: Link-State Processing Requirements: Link-state protocols can also require more CPU processing than distance vector routing protocols. The SPF algorithm requires more CPU time than distance vector algorithms because link-state protocols build a complete map of the topology.

Requirements: Link-State Bandwidth Requirements: The flooding of link-state packets can adversely affect the available bandwidth on a network. This should only occur during initial startup of routers, but it can also be an issue on unstable networks.

Comparison: Link-State There are two link-state routing protocols used for routing IP today: Open Shortest Path First (OSPF) Intermediate System to Intermediate System (IS-IS)

Comparison: Link-State OSPF was designed by the IETF (Internet Engineering Task Force) OSPF Working Group. It which still exists today. The development of OSPF began in 1987 and there are two current versions in use: OSPFv2: OSPF for IPv4 networks OSPFv3: OSPF for IPv6 networks

Comparison: Link-State IS-IS was designed by the ISO (International Organization for Standardization). IS-IS was originally designed for the OSI protocol suite. Later, Integrated IS-IS, or Dual IS-IS, included support for IP networks. Although IS-IS has been known as the routing protocol used mainly by ISPs and carriers, more enterprise networks are beginning to use IS-IS.