Open Shortest Path First Protocol (OSPF) Sudarshan Vasudevan

Slides:



Advertisements
Similar presentations
Multi-Area OSPF Multi-area OSPF networks can be difficult to design, and typically demand more administrative attention than any other popular interior.
Advertisements

OSPF Header OSPF HEADER OSPF HEADER for this project Types we will use
Introduction to OSPF.
Lonnie Decker Multiarea OSPF for CCNA Department Chair, Networking/Information Assurance Davenport University, Michigan August 2013 Elaine Horn Cisco Academy.
Computer Networks with Internet Technology William Stallings
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization –All routers are identical –Network is flat. Not true in Practice Hierarchical.
Nov 11, 2004CS573: Network Protocols and Standards1 IP Routing: OSPF Network Protocols and Standards Autumn
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
CCNA 2 v3.1 Module 6.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
CSEE W4140 Networking Laboratory Lecture 5: IP Routing (OSPF and BGP) Jong Yul Kim
Routing and Routing Protocols
COS 420 Day 17. Agenda Finished Grading Individualized Projects Very large disparity in student grading No two students had same ranking for other students.
CSE5803 Advanced Internet Protocols and Applications (9) Introduction Chapter 6 introduced basic routing concepts inside Autonomous Systems. Chapter.
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Objectives After completing this chapter you will be able to: Describe hierarchical routing in OSPF Describe the 3 protocols in OSPF, the Hello, Exchange.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
ROUTING PROTOCOLS PART II ET4187/ET5187 Advanced Telecommunication Network.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Routing in the Internet Internal Routing Protocols.
CCNP Network Route OSPF Part -I OSPF: Open Shortest Path First Concept of OSPF: 1. It is a link state routing protocol. 2. There are basically only 2 ISIS.
Introduction to networking Dynamic routes. Objectives  Define dynamic routing and its properties  Describe the classes of routing protocols  Describe.
Link State Routing Protocol W.lilakiatsakun. Introduction (1) Link-state routing protocols are also known as shortest path first protocols and built around.
Open Shortest Path First (OSPF) -Sheela Anand -Kalyani Ravi -Saroja Gadde.
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
Carl Bergenhem Multi Area OSPF Carl Bergenhem
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
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.
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Collected By: Mehdi Daneshvar Supervisor: E.M.Kosari.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
© 1999, Cisco Systems, Inc OSPF Overview RFC 2328, 2178, 1583.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
Network Architecture and Design
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
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.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
 Development began in 1987  OSPF Working Group (part of IETF)  OSPFv2 first established in 1991  Many new features added since then  Updated OSPFv2.
CCNA 2 Week 6 Routing Protocols. Copyright © 2005 University of Bolton Topics Static Routing Dynamic Routing Routing Protocols Overview.
Routing and Routing Protocols
Cisco Systems Networking Academy S2 C 11 Routing Basics.
1 OSPF in Multiple Areas. 2 2 Scalability Problems in Large OSPF Areas Scalability problems in large OSPF areas include Large routing tables Large routing.
Chapter 14 1 Unicast Routing Protocols There isn’t a person anywhere that isn’t capable of doing more than he thinks he can. - Henry Ford.
Open Shortest Path First (OSPF)
Interior Gateway Protocols (RIP, OSPF) continued….
Dynamic Routing Protocols II OSPF
4: Network Layer4b-1 OSPF (Open Shortest Path First) r “open”: publicly available r Uses Link State algorithm m LS packet dissemination m Topology map.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
LINK STATE ROUTING PROTOCOLS Dr. Rocky K. C. Chang 22 November
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—3-1 Implementing a Scalable Multiarea Network OSPF-Based Solution Planning Routing Implementations.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
Dynamic Routing Protocols II OSPF
CMPT 371 Data Communications and Networking Routing in the Internet
OSPF (Open Shortest Path First)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols part2
13.3 OSPF: Open Shortest Path First.
Dynamic Routing Protocols II OSPF
Dynamic Routing and OSPF
Presentation transcript:

Open Shortest Path First Protocol (OSPF) Sudarshan Vasudevan

Overview Introduction Motivation OSPF Basics Hierarchical Routing in OSPF Summary

Introduction Development began in 1987 OSPF Working Group (part of IETF) OSPFv2 first established in 1991 Many new features added since then Updated OSPFv2 specification in RFC 2178

Motivation Original IGP used was RIP Based on Bellman-Ford Algorithm Worked well in small systems Suffered from problems of Distance Vector Protocol –Count to Infinity Problem –Slow Convergence

Motivation Problems with Distance Vector Protocol –Large update packets –Slow response to topological changes Need for a Link State Protocol A long list of functional requirements follows

Functional Requirements of OSPF Faster Convergence and less consumption of network resources A more descriptive routing metric –configurable –value ranges between 1 and 65,535 –no restriction on network diameters Equal-cost multipath –a way to do load balancing

Functional Requirements(contd.) Routing Hierarchy –support large routing domains Separate internal and external routes Support of flexible subnetting schemes –route to arbitrary [address,mask] combinations using VLSMs Security Type of Service Routing

OSPF Basics the essence Distributed, replicated database model –describes complete routing topology Link state advertisements –carry local piece of routing topology Distribution of LSAs using reliable flooding Link state database –identical for all the routers

Link State Advertisements(LSAs) LS Age OptionsLS Type Link State ID Advertising Router LS Sequence Number LS Checksum Length LSA Header 0 16

LSAs contd. Identifying LSAs –LS type field –Link State ID field mostly carries addressing information e.g. IP address of externally reachable network –Advertising Router field originating router’s OSPF router ID

LSAs contd. Identifying LSA instances –needed to update self-originated LSAs –LS Sequence Number field 32 bit values monotonically increasing until some max value 600 years to roll over! LSA checksum and LS Age guard against potential problems

LSAs contd. Verifying LSA contents –LS Checksum field computed by the originating router and left unchanged thereafter LS age field not included in checksum Removing LSAs from databases –LS Age field ranges from 0 to 30 min. Max Age LSAs used to delete outdated LSAs

LSAs contd. Other LSA Header fields –Options field sometimes used to give special treatment during flooding or routing calculations –Length field includes LSA header and contents ranges from bytes

Sample Router LSA

Sample Router LSA contd.. LS Age Options LS Type Link State ID Advertising Router LS Sequence Number LS Checksum Length Router Type 0 # of links Link ID Link Data Link Type#TOS Metrics Metric 0 seconds E-bit,LS Type x x9b47 60 bytes 0 (ordinary) Ifindex 2 (unnumbered link) 1(point to point), 0 5 Link 1

Link State Database Collection of all OSPF LSAs databases exchanged between neighbors synchronization thru reliable flooding gives the complete routing topology each OSPF router has identical link-state database

Link State Database contd.. Example of a link state database LS TypeLink State IDAdv RouterLS ChecksumLS Seq NoLS Age Router LSA x9b470x …..…...….. ….…...

Communication between OSPF Routers OSPF packets encapsulated in IP packets –standard 24 byte header –OSPF packet type field –OSPF router ID of sender –Packet checksum –Authentication fields –OSPF Area ID

Neighbor Discovery and Maintenance OSPF Hello Protocol Hello packets sent out every 10 seconds helps to detect failed neighbors RouterDeadInterval (default 40 seconds) also ensures that link is bidirectional neighboring routers agree on intervals –hello interval set so that a link is not accidentally brought down

Database Synchronization Crucial to ensure correct and loop free routing must be done before 2 neighbors start communication also whenever new LSAs are introduced –uses reliable flooding each router sends LSA headers to its neighbor when connection comes up requests only those LSAs which are recent

Database Exchange Neighboring routers first exchange hellos a database description packet packet establishes the sequence number the other router sends LSA headers sequence number incremented for every pair od database description packets –implicit acknowledgement for the previous pair after examining LSA headers explicit request sent for complete LSAs

Reliable Flooding Starts when a router wants to update self- originated LSAs Link State Update packets Neighbor installs more recent LSAs into its database floods out on all interfaces except the one on which it arrived reliability-retransmissions until acks received

Reliable Flooding (contd..) Time T1 u u u

Reliable Flooding (contd..) Time T2 u u u u u

Reliable Flooding (contd..) Time T3 u u

Reliable Flooding (contd..) Time T3+ ack

Reliable Flooding(contd..) Robustness –updates flooded over all the links, so failure of any link doesn’t affect database synchronization –LSAs refreshed every 30 minutes –LSA checksum field detects corruption –flooding loops avoided by LS Age field –MinLSInterval limits rate of LSA origination –Receivers can refuse to accept LSA updates if they received an update less than a second ago

Routing Calculations Link costs configurable by administrator Smaller values for more preferred links must make sense to add link costs different costs for each link direction possible Dijkstra’s shortest path algorithm –incrementally calculates tree of shortest paths –each link in the network examined once –computes multiple shortest paths (equal-cost multipath)

Hierarchical Routing Technique used to build large networks minimizes consumption of network resources such as –router memory –router computing resources –link bandwidth with flat routing linear increase in routing table size with hierarchical, size increases logarithmically

an example /

example contd.. Consider a router in assume 16 entries in each of the first level partitions with flat routing, 9*16 = 144 entries/router with 3 level hierarchy, the router has 16 entries within /24 + entries for /24, /24, /16 for a total of 19 entries. Marked reduction in routing table size but might lead to suboptimal routing

OSPF Areas Two-level hierarchical routing scheme through the use of areas areas identified by 32-bit id each area has its own link state database which is a collection of network-LSAs and router-LSAs area’s topology hidden from all other areas interconnection of areas through area border routers (ABRs) ABR leaks IP addressing information to other areas through summary LSAs

Sample Area Configuration A B C D G H F E IJ AA / /24 Area / /24 Area / /24 Area Area

OSPF Areas contd.. Example of Summary LSA(router B) LS Age OptionsLS Type Link State ID Advertising Router LS Sequence Number LS Checksum Length Network Mask TOS Metric 0 0x2, Type 3(summary-LSA) Router B’s router ID 0x bytes TOS 0 (normal) Cost of 7

OSPF Areas contd.. Reduction in link state databases of an area reduction in amount of flooding traffic needed for synchronization reduction in the cost of the shortest path calculations increased robustness routing protection Hidden prefixes

Area Organization All the areas are connected to area also called the backbone area need not have a direct physical connection though –virtual links provide logical link to backbone –summary LSAs tunneled across non backbone areas exchange of routing information between areas using Distance Vector Protocol –absence of redundant paths between areas –not subject to convergence problems

Incorporating external routing information Special routers called AS boundary routers at the edge of OSPF domain ASBRs originate AS-External LSAs only routes for which the choice of an ASBR makes sense are imported otherwise default routes are used AS external LSAs similar to Summary LSAs with 2 additional fields –Forwarding address –external route tag

Interaction with areas AS-External LSAs flooded across borders ASBR summary LSAs used to know the location of the originator of AS-External LSA Link State ID of ASBR Summary LSA set to the OSPF router ID of the ASBR whose location is advertised similar to summary LSA in all other respects

OSPF Area Types Restrict the amount of external routing information within an area used when resources especially router memory is very limited two types of restricted areas –Stub Areas –NSSAs or Not-So-Stubby-Areas

OSPF Area Types Stub Areas –don’t support ASBRs and hence no AS-External-LSAs –routing to external destinations based on default routes originated by the area’s border routers –summary LSAs also made optional –must lie on the edge of OSPF routing domain –inter-area routing may also be based on default routes –improved scaling –but not preferred due to the possibility of suboptimal routes

OSPF Area Types contd.. NSSAs –import small amount of routing information –this information flooded to other areas by the NSSA Border router –Use Type-7 LSAs to import external routing information –translated into AS-External-LSA at the NSSA Border –one-way filter

Summary Why OSPF is needed in the Internet? The basics of the protocol –The Link state Advertisements –Neighbor Discovery (Hello Protocol) –Database Synchronization and reliable flooding Hierarchical Routing in OSPF –OSPF Areas and Area Organization –Interaction with External Routing Information –OSPF Area Types viz. Stub Areas and NSSAs

Issues not covered OSPF Network Types –Broadcast subnets –NBMA Subnets OSPF Extensions Multicast Routing using OSPF (MOSPF) OSPF Management and a whole lot of others!

Further Reading John T. Moy, OSPF - An Anatomy of an Internet Routing Protocol Christian Huitema, Routing in the Internet RFC 2178

Concluding Remark Thank You!