Introduction to OSPF.

Slides:



Advertisements
Similar presentations
OSPF 1.
Advertisements

Multi-Area OSPF Multi-area OSPF networks can be difficult to design, and typically demand more administrative attention than any other popular interior.
Introduction to OSPF Mark Tinka. Routing and Forwarding  Routing is not the same as Forwarding  Routing is the building of maps Each routing protocol.
CCNP 1: Advanced Routing
Lonnie Decker Multiarea OSPF for CCNA Department Chair, Networking/Information Assurance Davenport University, Michigan August 2013 Elaine Horn Cisco Academy.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 OSPF Routing Protocols and Concepts – Chapter 11.
Designing OSPF Networks
IPv6 Routing IPv6 Workshop Manchester September 2013
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Multiarea OSPF Scaling Networks.
Advanced Juniper Networks Routing
Nov 11, 2004CS573: Network Protocols and Standards1 IP Routing: OSPF Network Protocols and Standards Autumn
1 ELEN 602 Lecture 20 More on Routing RIP, OSPF, BGP.
CSE5803 Advanced Internet Protocols and Applications (9) Introduction Chapter 6 introduced basic routing concepts inside Autonomous Systems. Chapter.
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.
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.
Single-Area OSPF Implementation
Chapter 12 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Read a routing table  Configure a static route 
Open Shortest Path First (OSPF) -Sheela Anand -Kalyani Ravi -Saroja Gadde.
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
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.
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.
1 © 2001, Cisco Systems, Inc. All rights reserved.© 2003, Cisco Systems, Inc. OSPF and ISIS v6 Khalid Raza
LAN Switching and WAN Networks Topic 6 - OSPF. What we have done so far! 18/09/2015Richard Hancock2  Looked at the basic switching concepts and configuration.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Instructor & Todd Lammle
© 1999, Cisco Systems, Inc OSPF Overview RFC 2328, 2178, 1583.
© Synergon Informatika Rt., 1999 Chapter 9 Configuring Open Shortest Path First.
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.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSPF Routing Protocols and Concepts – Chapter 11.
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.
Networks and Protocols CE Week 8b. Link state Routing.
 Development began in 1987  OSPF Working Group (part of IETF)  OSPFv2 first established in 1991  Many new features added since then  Updated OSPFv2.
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.
Dynamic Routing Protocols II OSPF
Open Shortest Path First (OSPF)
OSPFv3 John Rullan Cisco Certified Instructor Trainer Thomas A. Edison CTE HS Stephen Lynch Network Architect, CCIE #36243 ABS Technology Architects.
1 24-Feb-16 S Ward Abingdon and Witney College OSPF CCNA Exploration Semester 2 Chapter 11.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
Open Shortest Path First (OSPF)
Link State Routing protocol
Instructor & Todd Lammle
Open Shortest Path First Chang-Keun Park
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
Dynamic Routing: Dynamic routing is where we use a routing protocol; routing protocols are cool because they take care of our work. Routing protocols will.
13.3 OSPF: Open Shortest Path First.
Link State Algorithm Alternative to distance-vector
Module Summary Open Shortest Path First (OSPF) protocol is one of the most commonly used link-state IP routing protocols in networking. It is an open standard.
Designing and Troubleshooting OSPF Networks
CCNA 3 v3 JEOPARDY Module 2 CCNA3 v3 Module 2 K. Martin.
OSPF.
Dynamic Routing and OSPF
Chapter 8: Single-Area OSPF
Cisco networking, CNET-448
Cisco networking, CNET-448
Chapter 9: Multiarea OSPF
Routing With a Link-State Protocol
Routing Protocols and Concepts – Chapter 11
Dynamic Routing: Dynamic routing is where we use a routing protocol; routing protocols are cool because they take care of our work. Routing protocols will.
Chapter 9: Multiarea OSPF
Presentation transcript:

Introduction to OSPF

OSPF Open Shortest Path First Link state or SPF technology Developed by OSPF working group of IETF (RFC 1247) OSPFv2 standard described in RFC2328 Designed for: TCP/IP environment Fast convergence Variable-length subnet masks Discontiguous subnets Incremental updates Route authentication Runs on IP, Protocol 89

Link State Z’s Link State Q’s Link State Z Q Y X 2 Q Y B Z 13 C X 13 X Topology Information is kept in a Database separate from the Routing Table X’s Link State 44

Link State Routing Neighbour discovery Constructing a Link State Packet (LSP) Distribute the LSP (Link State Announcement – LSA) Compute routes On network failure New LSPs flooded All routers recompute routing table

Low Bandwidth Utilisation LSA X R1 LSA Only changes propagated Uses multicast on multi-access broadcast networks

X Fast Convergence Detection Plus LSA/SPF Known as the Dijkstra Algorithm Alternate Path R2 X N1 N2 R1 R3 Primary Path

X Fast Convergence Finding a new route LSA flooded throughout area Acknowledgement based Topology database synchronised Each router derives routing table to destination network LSA X N1 R1

OSPF Areas Area is a group of contiguous hosts and networks Reduces routing traffic Per area topology database Invisible outside the area Backbone area MUST be contiguous All other areas must be connected to the backbone Area 1 Area 2 Area 3 R1 R2 R3 R6 Area 4 R5 R4 R7 R8 Ra Rd Rb Rc Area 0 Backbone Area 27

Virtual Links between OSPF Areas Virtual Link is used when it is not possible to physically connect the area to the backbone ISPs avoid designs which require virtual links Increases complexity Decreases reliability and scalability Area 1 R3 R6 Area 4 R5 R4 R7 R8 Ra Rd Rb Rc Area 0 Backbone Area 27

Classification of Routers Rd Ra Rb Rc IR ABR/BR IR/BR ASBR To other AS Area 1 Area 0 Area 2 Area 3 Internal Router (IR) Area Border Router (ABR) Backbone Router (BR) Autonomous System Border Router (ASBR) 32

OSPF Route Types Intra-area Route Inter-area Route External Route IR Rd Ra Rb Rc IR ABR/BR ASBR To other AS Area 1 Area 0 Area 2 Area 3 Intra-area Route all routes inside an area Inter-area Route routes advertised from one area to another by an Area Border Router External Route routes imported into OSPF from other protocol or static routes

External Routes Prefixes which are redistributed into OSPF from other protocols Flooded unaltered throughout the AS Recommendation: Avoid redistribution!! OSPF supports two types of external metrics Type 1 external metrics Type 2 external metrics (Cisco IOS default) RIP EIGRP BGP Static Connected etc. OSPF R2 Redistribute 18

External Routes Type 1 external metric: metrics are added to the summarised internal link cost to N1 External Cost = 1 Cost = 10 R2 R1 to N1 External Cost = 2 Cost = 8 R3 Network N1 Type 1 11 10 Next Hop R2 R3 Selected Route 19

External Routes Type 2 external metric: metrics are compared without adding to the internal link cost Cost = 10 to N1 External Cost = 1 External Cost = 2 Cost = 8 Selected Route R3 R1 R2 Network N1 Type 1 1 2 Next Hop 19

Topology/Link State Database A router has a separate LS database for each area to which it belongs All routers belonging to the same area have identical database SPF calculation is performed separately for each area LSA flooding is bounded by area Recommendation: Limit the number of areas a router participates in!! 1 to 3 is fine (typical ISP design) >3 can overload the CPU depending on the area topology complexity 30

The Hello Protocol Responsible for establishing and maintaining neighbour relationships Elects designated router on multi-access networks Hello 38

The Hello Packet Contains: Router priority Hello interval Router dead interval Network mask List of neighbours DR and BDR Options: E-bit, MC-bit,… (see A.2 of RFC2328) Hello 39

Designated Router There is ONE designated router per multi-access network Generates network link advertisements Assists in database synchronization Backup Designated Router Designated Router Designated Router Backup Designated Router

Designated Router by Priority Configured priority (per interface) ISPs configure high priority on the routers they want as DR/BDR Else determined by highest router ID Router ID is 32 bit integer Derived from the loopback interface address, if configured, otherwise the highest IP address 131.108.3.2 131.108.3.3 R1 DR R2 R1 Router ID = 144.254.3.5 R2 Router ID = 131.108.3.3 144.254.3.5 41

Neighbouring States Full Routers are fully adjacent Databases synchronised Relationship to DR and BDR Full DR BDR

Neighbouring States 2-way Router sees itself in other Hello packets DR selected from neighbours in state 2-way or greater 2-way DR BDR

When to Become Adjacent Underlying network is point to point Underlying network type is virtual link The router itself is the designated router or the backup designated router The neighbouring router is the designated router or the backup designated router 44

LSAs Propagate Along Adjacencies DR BDR LSAs acknowledged along adjacencies 45

Broadcast Networks IP Multicast used for Sending and Receiving Updates All routers must accept packets sent to AllSPFRouters (224.0.0.5) All DR and BDR routers must accept packets sent to AllDRouters (224.0.0.6) Hello packets sent to AllSPFRouters (Unicast on point-to-point and virtual links)

Routing Protocol Packets Share a common protocol header Routing protocol packets are sent with type of service (TOS) of 0 Five types of OSPF routing protocol packets Hello – packet type 1 Database description – packet type 2 Link-state request – packet type 3 Link-state update – packet type 4 Link-state acknowledgement – packet type 5 5

Different Types of LSAs Six distinct type of LSAs Type 1 : Router LSA Type 2 : Network LSA Type 3 & 4: Summary LSA Type 5 & 7: External LSA (Type 7 is for NSSA) Type 6: Group membership LSA Type 9, 10 & 11: Opaque LSA (9: Link-Local, 10: Area)

Router LSA (Type 1) Describes the state and cost of the router’s links to the area All of the router’s links in an area must be described in a single LSA Flooded throughout the particular area and no more Router indicates whether it is an ASBR, ABR, or end point of virtual link 21

Network LSA (Type 2) Generated for every transit broadcast and NBMA network Describes all the routers attached to the network Only the designated router originates this LSA Flooded throughout the area and no more 25

Summary LSA (Type 3 and 4) Describes the destination outside the area but still in the AS Flooded throughout a single area Originated by an ABR Only inter-area routes are advertised into the backbone Type 4 is the information about the ASBR 28

External LSA (Type 5 and 7) Defines routes to destination external to the AS Default route is also sent as external Two types of external LSA: E1: Consider the total cost up to the external destination E2: Considers only the cost of the outgoing interface to the external destination (Type 7 LSAs used to describe external LSA for one specific OSPF area type) 32

Inter-Area Route Summarisation Prefix or all subnets Prefix or all networks ‘Area range’ command R2 Backbone Area 0 With summarisation Network 1 Next Hop R1 (ABR) R1 Area 1 Without summarisation Network 1.A 1.B 1.C Next Hop R1 1.A 1.B 1.C 16

No Summarisation Specific Link LSA advertised out of each area Link state changes propagated out of each area 3.A 3.B 3.C 3.D 2.A 2.B 2.C 2.D 1.A 1.B 1.C 1.D Area 0

With Summarisation Only summary LSA advertised out of each area Link state changes do not propagate out of the area 3.A 3.B 3.C 3.D 2.A 2.B 2.C 2.D 1.A 1.B 1.C 1.D 1 Area 0 2 3

No Summarisation Specific Link LSA advertised in to each area Link state changes propagated in to each area 3.A 3.B 3.C 3.D 2.A 2.B 2.C 2.D 1.A 1.B 1.C 1.D 2.A 2.B 2.C 2.D 3.A 3.B 3.C 3.D Area 0 1.A 1.B 1.C 1.D

With Summarisation Only summary link LSA advertised in to each area Link state changes do not propagate in to each area 3.A 3.B 3.C 3.D 2.A 2.B 2.C 2.D 1.A 1.B 1.C 1.D 2 3 Area 0 1

Types of Areas Regular Stub Totally Stubby Not-So-Stubby Only “regular” areas are useful for ISPs Other area types handle redistribution of other routing protocols into OSPF – ISPs don’t redistribute anything into OSPF The next slides describing the different area types are provided for information only

Regular Area (Not a Stub) From Area 1’s point of view, summary networks from other areas are injected, as are external networks such as X.1 3.A 3.B 3.C 3.D 2.A 2.B 2.C 2.D 1.A 1.B 1.C 1.D 2 3 Area 0 1 ASBR External networks X.1 X.1 X.1 X.1 X.1 X.1 X.1

Normal Stub Area Summary networks, default route injected Command is area x stub 3.A 3.B 3.C 3.D 2.A 2.B 2.C 2.D 1.A 1.B 1.C 1.D 2 3 Area 0 1 ASBR External networks X.1 Default Default Default X.1 X.1 X.1

Totally Stubby Area Only a default route injected Default path to closest area border router Command is area x stub no-summary 3.A 3.B 3.C 3.D 2.A 2.B 2.C 2.D 1.A 1.B 1.C 1.D Area 0 1 3 2 ASBR External networks X.1 Totally Stubby Area Default Default Default X.1 X.1 X.1

Not-So-Stubby Area ASBR Not-So-Stubby Area Area 0 Capable of importing routes in a limited fashion Type-7 LSA’s carry external information within an NSSA NSSA Border routers translate selected type-7 LSAs into type-5 external network LSAs 3.A 3.B 3.C 3.D 2.A 2.B 2.C 2.D 1.A 1.B 1.C 1.D Area 0 1 3 2 ASBR External networks X.1 Not-So-Stubby Area Default Default X.2 Default X.2 X.2 X.2 X.1 X.1 X.2 X.1 External networks

ISP Use of Areas ISP networks use: Backbone area Regular area No partitioning Summarisation of point to point link addresses used within areas Loopback addresses allowed out of regular areas without summarisation (otherwise iBGP won’t work)

Addressing for Areas Area 0 network 192.168.1.0 range 255.255.255.192 Area 1 network 192.168.1.64 range 255.255.255.192 Area 2 network 192.168.1.128 range 255.255.255.192 Area 3 network 192.168.1.192 range 255.255.255.192 Assign contiguous ranges of subnets per area to facilitate summarisation 69

Summary Fundamentals of Scalable OSPF Network Design Area hierarchy DR/BDR selection Contiguous intra-area addressing Route summarisation Infrastructure prefixes only 73

Acknowledgement and Attribution This presentation contains content and information originally developed and maintained by the following organisation(s)/individual(s) and provided for the African Union AXIS Project Cisco ISP/IXP Workshops Philip Smith: - pfsinoz@gmail.com www.apnic.net

Introduction to OSPF End