CCNP – Advanced Routing CCNP – Advanced Routing Ch. 6 - OSPF, Single Area – Part 1 of 3 Ch. 6 - OSPF, Single Area – Part 1 of 3 Credits: This presentation.

Slides:



Advertisements
Similar presentations
Routing Protocol.
Advertisements

CCNA 2 v3.1 Module 6.
Routing and Routing Protocols
1 CCNA 3 v3.1 Module 2. 2 CCNA 3 Module 2 Single Area OSPF.
Single Area OSPF Concepts Single Area OSPF Configuration
1 Semester 2 Module 6 Routing and Routing Protocols YuDa college of business James Chen
Fundamentals of Networking Discovery 2, Chapter 6 Routing.
Chapter 22 Network Layer: Delivery, Forwarding, and Routing.
Switching and Routing Technique
Enhanced IGRP (EIGRP) EIGRP Characteristics. EIGRP Configuration. Verifying EIGRP.
Each computer and router interface maintains an ARP table for Layer 2 communication The ARP table is only effective for the broadcast domain (or LAN)
CISCO NETWORKING ACADEMY Chabot College ELEC IP Routing Protocol Highlights.
Chapter 3 Dynamic Routing Protocols. Introduction to Dynamic Routing Protocols Perspective and Background Network Discovery and Routing Table Maintenance.
Chapter 12 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Read a routing table  Configure a static route 
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.
Link-State Routing Protocols
Chapter 7: Routing Dynamically
Click to edit Master subtitle style Chapter 10: Routing Protocols Instructor:
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
Routing and Routing Protocols Routing Protocols Overview.
1 Introducing Routing 1. Dynamic routing - information is learned from other routers, and routing protocols adjust routes automatically. 2. Static routing.
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.
Collected By: Mehdi Daneshvar Supervisor: E.M.Kosari.
Routing -2 Dynamic Routing
Review Routing fundamental W.lilakiatsakun. Review Routing Fundamental VLSM VLSM Route Summarization Route Summarization Static & Dynamic Routing Static.
Instructor & Todd Lammle
Click to edit Master subtitle style Chapter 9: Introduction to IP Routing Instructor:
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:
© 1999, Cisco Systems, Inc OSPF Overview RFC 2328, 2178, 1583.
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.
Network Architecture and Design
Routing Fundamental W.lilakiatsakun. Review Routing Fundamental VLSM Static & Dynamic Routing Routing algorithm concept.
Ch. 6-7– Routing Theory – Part 3 CCNA Semester 2 Originally by Rick Graziani, Instructor Modified by Prof. Yousif.
Instructor & Todd Lammle
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.
1 of of 35 Single Area OSPF Concepts 3 of 35 OSPF Basics.
CCNA Guide to Cisco Networking Fundamentals Fourth Edition
Networks and Protocols CE Week 8b. Link state Routing.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
© 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.
6: Routing Working at a Small to Medium Business.
Routing and Routing Protocols
Open Shortest Path First (OSPF)
Interior Gateway Protocols (RIP, OSPF) continued….
1 Version 3.1 Module 6 Routed & Routing Protocols.
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.
© 2002, Cisco Systems, Inc. All rights reserved..
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—3-1 Implementing a Scalable Multiarea Network OSPF-Based Solution Planning Routing Implementations.
Top-Down Network Design Chapter 3.3 Selecting Switching and Routing Protocols Copyright 2010 Cisco Press & Priscilla Oppenheimer.
1 24-Feb-16 S Ward Abingdon and Witney College OSPF CCNA Exploration Semester 2 Chapter 11.
Cisco 2 - Routers Perrine modified by Brierley Page 13/21/2016 Chapter 4 Module 6 Routing & Routing Protocols.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
Click to edit Master subtitle style Chapter 10: Routing Protocols.
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.
+ Dynamic Routing Protocols 2 nd semester
Link State Routing protocol
Dynamic Routing Protocols part2
Ch. 6-7– Routing Theory – Part 3 CCNA Semester 2
Chapter 5: Dynamic Routing
Dynamic Routing and OSPF
Chapter 10 Link State Routing Protocols
Dynamic Routing Protocols part3 B
Presentation transcript:

CCNP – Advanced Routing CCNP – Advanced Routing Ch. 6 - OSPF, Single Area – Part 1 of 3 Ch. 6 - OSPF, Single Area – Part 1 of 3 Credits: This presentation was prepared by: Rick Graziani, Few modifications were made by professor Yousif

OSPF Exam Objectives n Explain why OSPF is better than RIP in large internetwork n Explain how OSPF discovers, chooses, and maintains routes. n Explain how OSPF operates in a single area NBMA environment n Configure OSPF for proper operation in a single area n Configure a single-area OSPF environment n Configure OSPF for an NBMA environment

OSPF Overview n OSPF does not gather routing table information, but routers and the status of their connections, links. n OSPF routers use this information to build a topological data base (link state database), runs the Shortest Path First (SPF), Dijkstra’s algorithm, and creates a SPF tree. From that SPF tree, a routing table is created.

OSPF is a link state protocol n Link n Link: interface on a router n Link state n Link state: the status of a link between two routers.

Link-State Routing Protocols n The first type of routing protocol we discussed was distance vector. n The second type of routing protocol that we will examine is link-state. n In this presentation we will only examine the very basic concepts of link-state routing protocols.

Distance Vector Routing Protocols n Distance vector routing protocols like RIP and IGRP do not know the exact topology of a network. n All distance vector routing decisions are made from information from neighboring routers – routing by rumor. n The only information the router has about a route is how far away the network is in hops or using another cost (distance) and which interface to send forward the packet out of (vector). n The router has no way to make its own decision on which direction is ultimately the best way to send the packets.

Link-State Routing Protocols - History n The first link-state routing protocol was implemented and deployed in the ARPANET (Advanced Research Project Agency Network), the predecessor to later link-state routing protocols. n Next, DEC (Digital Equipment Corporation) proposed and designed a link-state routing protocol for ISO’s OSI networks, IS-IS (Intermediate System-to-Intermediate System). –The OSI protocol stack is what the OSI model was based on. The OSI protocol stack was designed to be the protocol of the Internet, but to make a long story short, TCP/IP became the Internet protocol instead. n Later, IS-IS was extended by the IETF to carry IP routing information.

Link-State Routing Protocols - History n An IETF working group designed a routing protocol specifically for IP routing, OSPF (Open Shortest Path First). n For most network administrators they had two open-standard routing protocols to choose from: RIP, simple but very limited, or OSPF, robust but more sophisticated to implement. –IGRP and EIGRP are Cisco proprietary –IS-IS is used in IP networks, but not as common as OSPF

Theory of Link-State Routing Protocols n In this presentation we will examine “some” of the theory behind link- state routing protocols. n This will only be a brief introduction to the link-state theory, requiring much more time and perhaps even some requisite knowledge of algorithms. n At the end of this presentation will be some suggested resources for leaning more about the theory of link-state routing and Dijkstra’s algorithm.

Mathematical point of view n Link-state routing is not based on IP addresses, subnets and network information! n Link-state routing has a mathematical point of view, looking at the network as nothing more than a graph with vertices and the costs to these vertices. n Okay, I’m losing you and I said I wouldn’t get mathematical. n Link-state routing is based on a very simple algorithm known as Dijkstras’s algorithm, invented by Edsger Wybe Dijkstra n This algorithm can and has been used in many areas of human activity, not just for routing. (Ex. GIS)

Link-State Theory n The network is viewed as a graph, showing the complete topology of the network. n How do routers build this topology? 1 – Flooding of link-state information n The first thing that happens is that each node, router, on the network announces its own piece of link-state information to other all other routers on the network: who their neighboring routers are and the cost of the link between them. n Example: “Hi, I’m RouterA, and I can reach RouterB via a T1 link and I can reach RouterC via an Ethernet link.” n Each router sends these announcements to all of the routers in the network. 1 – Flooding of link-state information

2. Building a Topological Database n Each router collects all of this link-state information from other routers and puts it into a topological database. 3. Shortest-Path First (SPF), Dijkstra’s Algorithm n Using this information, the routers can recreate a topology graph of the network. n Believe it or not, this is actually a very simple algorithm and I highly suggest you look at it some time, or even better, take a class on algorithms. (Radia Perlman’s book, Interconnections, has a very nice example of how to build this graph – she is one of the contributers to the SPF and Spanning-Tree algorithms.) 1 – Flooding of link-state information 2 – Building a Topological Database 3 – SPF Algorithm

4. Shortest Path First Tree n This algorithm creates an SPF tree, with the router making itself the root of the tree and the other routers and links to those routers, the various branches. –Note: Just a reminder that the link-state algorithm and graph it creates is mathematically based and although we are mentioning routers and their links, it has nothing to do with IP addresses or other network information. 5. Routing Table n Using this information, the router creates a routing table. I bet you can create this tree given the link-state information! 1 – Flooding of link-state information 2 – Building a Topological Database 3 – SPF Algorithm 4 – SPF Tree 5 – Routing Table

Exercise: From link-state flooding to routing tables - Lets try it… n For this exercise we will not worry about the individual, leaf, networks attached to each node or router (shown as a blank line), but focus on how the topology is built to find the the shortest path between each router. n In order to keep it simple, we will take some liberties with the actual process and algorithm, but you will get the basic idea! n You are RouterA and you have a link to RouterB with a cost of 15, a link to RouterC with a cost of 2, a link to RouterD with a cost of 5, and a leaf network “apple.” n This is your own link-state information, which you will flood to all other routers so they can do the same thing we will be doing for RouterA. “Leaf” network apples

We now get the following link-state information from RouterB n RouterB has a link to RouterA with a cost of 15. n RouterB has a link to RouterE with a cost of 2. n And information about its own “leaf” network “bananas.” Now lets attach the two graphs… += bananas

We now get the following link-state information from RouterC n RouterC has a link to RouterA with a cost of 2. n RouterC has a link to RouterD with a cost of 2. n And information about its own “leaf” network “cherries.” Now lets attach the two graphs… + = cherries

We now get the following link-state information from RouterD n RouterD has a link to RouterA with a cost of 5. n RouterD has a link to RouterC with a cost of 2. n RouterD has a link to RouterE with a cost of 10. n And information about its own “leaf” network “donuts.” Now lets attach the two graphs… + = donuts

We now get the following link-state information from RouterE n RouterE has a link to RouterB with a cost of 2. n RouterE has a link to RouterD with a cost of 10. n And information about its own “leaf” network “eggs.” Now lets attach the two graphs and we have all the nodes, their links between them and their and leafs! += eggs

Topology n Using the topological information we listed, RouterA has now built a complete topology of the network. n The next step is for the link-state algorithm to find the best path to each node and leaf network. eggs donuts cherries bananas apples

eggs donuts cherries bananas apples Choosing the best path n Using the link-state algorithm RouterA can now proceed to find the shortest path to each leaf network. n Try doing it on your own!

Choosing the best path n Now RouterA knows the best path to each network. eggs donuts cherries bananas apples

OSPF vs RIP (no contest) n OSPF is link-state, where RIP is distance-vector. n OSPF has faster convergence - Because of RIP’s hold- down timer, RIP can be quite slow to converge. n OSPF has no hop restriction - RIP to limited to 15 hops, OSPF does not use hops. n OSPF supports VLSM; RIPv1 doesn’t n Cisco’s OSPF metric is based on bandwidth, RIP’s is based on hop count n Update efficiency - RIP sends entire routing table every 30 seconds, where OSPF only sends out changes when they occur. –Note: OSPF does flood LSAs when it age reaches 30 minutes (later) n OSPF also uses the concept of area to implement hierarchical routing

Cisco’s OSPF’s metric is based on cost Cost Cost: The outgoing cost for packets transmitted from this interface. n Cost is an OSPF metric expressed as an unsigned 16-bit integer, from 1 to 65,535.

Cisco’s OSPF’s metric is based on cost n Cisco uses a default cost of 10 8 /BW, where BW is the configured bandwidth (bandwidth command) of the interface and 10 8 (100,000,000) as the reference bandwidth. n Example: A serial link with a configured bandwidth of 128K would have a cost of: 100,000,000/128,000 = 781 n More on the cost metric later… n Note: Bay and some other vendors use a default cost of 1 on all interfaces, essentially making the OSPF cost reflect hop counts. RFC 2328, OSPF version 2, J. Moy n “A cost is associated with the output side of each router interface. This cost is configurable by the system administrator. The lower the cost, the more likely the interface is to be used to forward data traffic.”

n Area n Area: collection of OSPF routers. n Every OSPF router must belong to at least one area n Every OSPF network must have an Area 0 (backbone area) n All other Areas should “touch” Area 0 –There are exceptions to this rule – virtual link (later) n Routers in the same area have the same link-state information n Much more on areas in the next chapter, OSPF Multiple Areas Areas make OSPF scalable

OSPF neighbor relationships n OSPF is capable of sophisticated communication between neighbors. n OSPF uses 5 different types of packets to communicate information.

OSPF packet types OSPF Type-2 (DBD) OSPF Type-3 (LSR) OSPF Type-4 (LSU) OSPF Type-5 (LSAck)

OSPF packet types – More later OSPF Type-4 packets have 7 LSA packets (later)

OSPF Hello Subprotocol OSPF Header Hello Header

Example Hello packet (Type 1 OSPF packet)

OSPF Hello Subprotocol Hello subprotocol is intended to perform the following tasks within OSPF: n Means for dynamic neighbor discovery n Detect unreachable neighbors within a finite period of time n Ensure two-way communications between neighbors n Ensure correctness of basic interface parameters between neighbors n Provide necessary information for the election of the Designated and Backup Designated routers on a LAN segment

The OSPF Hello Protocol n OSPF routers send Hellos on OSPF enabled interfaces: –default every 10 seconds on broadcast and point-to-point segments –Default every 30 seconds on NBMA segments n Most cases OSPF Hello packets are sent as multicast to ALLSPFRouters ( ) n HelloInterval - Cisco default = 10 seconds/30 seconds and can be changed with the command ip ospf hello-interval. n RouterDeadInterval - The period in seconds that the router will wait to hear a Hello from a neighbor before declaring the neighbor down. –Cisco uses a default of four-times the HelloInterval (4 x 10 sec. = 40 seconds) and can be changed with the command ip ospf dead-interval. n Note: For routers to become adjacent, the Hello, DeadInterval and network types must be identical between routers or Hello packets get dropped!