Introduction to OSPF

Similar documents
Introduction to OSPF

Introduction to OSPF OSPF. Link State Routing. Link State. Fast Convergence. Low Bandwidth Utilisation

Introduction to OSPF

OSPF Protocol Overview on page 187. OSPF Standards on page 188. OSPF Area Terminology on page 188. OSPF Routing Algorithm on page 190

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

Configuring OSPF. Cisco s OSPF Implementation

Table of Contents 1 OSPF Configuration 1-1

OSPF. Unless otherwise noted, OSPF refers to OSPFv2 throughout this document.

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

OSPF Not So Stubby Area (NSSA)

Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of opaque LSAs 40 Configuring OSPF to

Logging neighbor state changes 38 Configuring OSPF network management 39 Enabling message logging 39 Enabling the advertisement and reception of

OSPF Commands. Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols IP2R-61

Introduction to OSPF. ISP Training Workshops

Which of the following describe the process identifier that is used to run OSPF on a router? (Choose two)

Chapter 8 Configuring OSPF

Symbols. Numerics I N D E X

Cabrillo College. Rick Graziani, Instructor

Table of Contents 1 Static Routing Configuration RIP Configuration 2-1

Configuring Networking Protocols

REDDIG II Computer Networking Training

OSPF (Open Shortest Path First)

DD2490 p Link-state routing and OSPF. Olof Hagsand KTH/CSC

4A Alcatel-Lucent. Alcatel-Lucent Interior Routing Protocols and High Availability

Lab 4: Routing using OSPF

OSPF. OSPF processs can be enabled on 2 levels

Configuring OSPF. Finding Feature Information

Operation Manual Routing Protocol. Table of Contents

CSCD 433/533 Advanced Networks Spring 2016

Routing Protocol Type Primarily IGP or EGP RIP Distance-Vector IGP EIGRP OSPF IS-IS BGP

Vanguard Managed Solutions

Open Shortest Path First (OSPF)

Creating Multiple OSPF Areas. 2001, Cisco Systems, Inc. 6-1

Configuring OSPF. Finding Feature Information. Contents

DD2490 p Link-state routing and OSPF. Olof Hagsand KTH/CSC

Configuring OSPF. Finding Feature Information

IPv6 Routing: OSPFv3

Unit 3: Dynamic Routing

9.1. Routing Protocols

Routing Protocols. Technology Description BGP CHAPTER

OSPF Demand Circuit Feature

Alcatel-lucent EXAM - 4A Alcatel-Lucent Interior Routing Protocols and High Availability. Buy Full Product.

DD2490 p Link state routing and OSPF. Olof Hagsand KTH/CSC

OSPF. About OSPF. CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.4 1

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Explanation: In order to verify proper route redistribution, use the "show ip route" command on all routers

Vendor: Alcatel-Lucent. Exam Code: 4A Exam Name: Alcatel-Lucent Interior Routing Protocols and High Availability.

ABR (Area Border Router), 206, 216 access, dedicated networks, 23 access layer, three-layer hierarchical design model, 6

BSCI. Section 5. Intermediate System-to- Intermediate System (IS-IS)

OSPF (Open Shortest Path First)

CCNP 1: Advanced Routing

Standard Areas OSPF AREA TYPES:

Operation Manual OSPF. Table of Contents

Internet Routing Protocols Tuba Saltürk

Network Working Group. Category: Standards Track Stanford University March 1994

The Quickest Way To Get Certified (BSCI ) TestKing's Building Scalable Cisco Internetworks. Version 20.

Cisco Building Scaleable Cisco Internetworks (BSCI) Practice Test. Version

OSPF Commands: A through Z

CIS 83 Midterm Spring 2004 Answer Sheet Name Score Grade Question Answer Question Answer

OSPF Commands. adjacency stagger, page 7. authentication-key (OSPF), page 14

CCNA Questions/Answers Routing Protocols

Routing Protocol - IS-IS

CCNA 3 (v v6.0) Chapter 6 Exam Answers % Full

Introduction to IS-IS

Chapter 7: Routing Dynamically. Routing & Switching

Configuring OSPF with CLI

OSPFv3 Commands. address-family (OSPFv3), page 4. authentication (OSPFv3), page 7

Chapter 3 Lab 3-2, Multi-Area OSPFv2 and OSPFv3 with Stub Area

Part II. Chapter 3. Determining IP Routes

Chapter 1 The IP Routing Protocols

Planning for Information Network

MikroTik RouterOS Training. Routing. Schedule. Instructors. Housekeeping. Introduce Yourself. Course Objective 7/4/ :00 10:30 Morning Session I

OSPF Commands on Cisco IOS XR Software

BTEC Level 3 Extended Diploma

The following questions are designed to test your understanding of this chapter s

PrepAwayExam. High-efficient Exam Materials are the best high pass-rate Exam Dumps

OSPF Commands on Cisco ASR 9000 Series Router

Configuring OSPF. Finding Feature Information. Last Updated: June 24, 2011

Implementing Cisco IP Routing (ROUTE)

Fravo.com. Certification Made Easy. MCSE, CCNA, CCNP, OCP, CIW, JAVA, Sun Solaris, Checkpoint. World No1 Cert Guides

Nortel Ethernet Routing Switch 5000 Series Configuration IP Routing Protocols. Release: 6.1 Document Revision:

HP Load Balancing Module

Routing II: Protocols (RIP, EIGRP, OSPF, PNNI, IS-IS): Brief Version

Performance Comparison of OSPF and IS-IS Routing Protocols in Dual-Stack Enterprise Networks. Paris Alexandros Roussinos

Table of Contents. Cisco Introduction to EIGRP

IP Routing Tecnologie e Protocolli per Internet II rev 1

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

Passit4Sure.4A Questions 4A Alcatel-Lucent Interior Routing Protocols and High Availability

Network Working Group. Category: Standards Track Juniper Networks J. Moy Sycamore Networks December 1999

TDC 363 Introduction to LANs

CCNA Exploration: Routing Protocols and Concepts Chapter 11 Case Study

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Routing in the Internet

Simulation Based EIGRP over OSPF Performance Analysis

Alcatel-Lucent 7705 SERVICE AGGREGATION ROUTER OS RELEASE 5.0 ROUTING PROTOCOLS GUIDE ROUTING PROTOCOLS GUIDE

Routing Protocol. Seiya Tsubone. Apr The University of Tokyo. Seiya Tsubone (The University of Tokyo) Routing Protocol Apr. 25.

IP Routing: OSPF Configuration Guide, Cisco IOS XE Release 3E

Teldat Router. OSPF Protocol

Basic Idea. Routing. Example. Routing by the Network

Transcription:

Introduction to OSPF ISP/IXP Workshops ISP/IXP Workshops 1999, Cisco Systems, Inc. 1

OSPF Dynamic Routing Protocol Link State technology Runs over IP, protocol 89 Designed by IETF for TCP/IP Supports VLSM Multi-vendor Fast rerouting 2

OSPF (continued) Minimises routing protocol traffic Low bandwidth requirements Supports different types of areas Route summarisation and authentication Cisco s implementation is fully compliant with the specification OSPF v2. 3

Link State Q s Link State Z Z s Link State Q Y A B C Q Z X 2 13 13 X s Link State X Topology Information Is Kept in a Database Separate from the Routing Table 4

Link State Routing Neighbour discovery Constructing an LSP Distribute LSP Compute routes On network failure New LSPs flooded All routers recompute routing tables 5

Low Bandwidth Utilisation LSA FDDI Dual X R1 LSA Only changes propagated Multicast on multi-access broadcast networks 6

Optimal Path Utilisation The optimal path is determined by the sum of the interface costs Cost = 1 Cost = 1 N2 FDDI Dual FDDI Dual N3 R2 R3 N1 R1 R4 N5 Cost = 10 N4 Cost = 10 7

Fast Convergence Detection Plus LSA/SPF Alternate Path R2 N1 R1 X Primary Path R3 N2 8

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

Utilises IP Multicast for Sending/Receiving Updates Broadcast networks DR and BDR > AllSPFRouters (224.0.0.5) All other routers > AllDRRouters (224.0.0.6) Hello packets sent to AllSPFRouters (Unicast on point-to-point and virtual links) 10

OSPF Areas Group of contiguous hosts and networks Per area topological database Invisible outside the area Reduction in routing traffic Backbone area contiguous All other areas must be connected to the backbone Virtual Links Area 2 Area 3 Area 4 Area 0 Backbone Area Area 1 11

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

OSPF Route Types To other AS Area 0 Area 2 Area 3 ASBR ABR 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 13

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

External Routes Redistributed into OSPF Flooded unaltered throughout the AS OSPF supports two types of external metrics Type 1 external metrics Type 2 external metrics (Default) OSPF Redistribute RIP IGRP EIGRP BGP etc. 15

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

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

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 18

Protocol Functionality Bringing up adjacencies LSA types Area classification 19

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

The Hello Packet Router priority Hello interval Hello Router dead interval Hello FDDI Dual Hello Network mask Options: T-bit, E-bit List of neighbours 21

Designated Router One per multi-access network Generates network links advertisements Assists in database synchronization Designated Router Backup Designated Router Designated Router Backup Designated Router 22

Designated Router by Priority Configured priority (per interface) Else determined by highest router ID Router ID is the loopback interface address, if configured, otherwise the highest IP address 131.108.3.2 131.108.3.3 DR R1 Router ID = 144.254.3.5 R2 Router ID = 131.108.3.3 144.254.3.5 23

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

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

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

LSAs Propagate Along Adjacencies DR BDR LSAs acknowledged along adjacencies 27

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 28

Different Types of LSAs Five distinct type of LSAs Type 1 : Router LSA Type 2 : Network LSA Type 3 and 4: Summary LSA Type 5 and 7: External LSA 29

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 30

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 31

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 intra-area routes are advertised into the backbone Type 4 is the information about the ASBR 32

External LSA (Type 5) 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 33

Not Summarised: Specific Links Specific link LSA advertised out Link state changes propagate out ASBR External links 1.A 1.B 1.C 1.D Backbone Area #0 3.A 3.B 3.C 3.D 1.B 1.A 2.A 2.B 2.C 3.B 3.A 1.C 1.D 2.B 2.A 3.C 3.D 2.C 34

Summarised: Summary Links Only summary LSA advertised out Link state changes do not propagate External links ASBR Backbone Area #0 1 3 2 1.B 1.A 3.B 3.A 1.C 1.D 2.B 2.A 3.C 3.D 35

Not Summarised: Specific Links Specific link LSA advertised in Link state changes propagate in ASBR External links 1.B 2.A 2.B 2.C 3.A 3.B 3.C 3.D 1.A 1.A 1.B 1.C 1.D 3.A 3.B 3.C 3.D Backbone Area #0 3.B 3.A 1.A 1.B 1.C 1.D 2.A 2.B 2.C 1.C 1.D 2.B 2.A 3.C 3.D 2.C 36

Summarised: Summary Links Only summary LSA advertised in Link state changes do not propagate External links ASBR Backbone Area #0 2,3 1,2 1,3 1.B 1.A 3.B 3.A 1.C 1.D 2.B 2.A 3.C 3.D 37

Regular Area (Not a Stub) From area 1 s viewpoint Summary networks from other areas injected External networks injected, for example network X.1 ASBR 2,3 1,3 External Networks X.1 1,2 1.B 1.C 1.A X.1 1.D 2.B X.1 2.C 2.A 2.D 3.B 3.A X.1 3.C 3.D 38

From area 1 s viewpoint Normal Stub Area Summary networks from other areas injected Default network injected into the area - represents external links Default path to closest area border router Define all routers in the area as stub area x stub command 2,3 & Default 1,3 ASBR External Networks X.1 1,2 1.B 1.C 1.A X.1 1.D 2.B X.1 2.C 2.A 2.D 3.B 3.A X.1 3.C 3.D 39

From area 1 s viewpoint Totally Stubby Area Only a default network is injected into the area Represents external networks and all inter-area routes Default path to closest area border router Define all routers in the area as totally stubby area x stub no-summary command Default 2&3 1,3 ASBR External Networks X.1 1,2 1.B 1.C 1.A X.1 1.D 2.B X.1 2.C 2.A 2.D 3.B 3.A X.1 3.C 3.D 40

Not-So-Stubby Area Capable of importing external 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 Default 2&3 1,3 ASBR External Networks X.1 1,2 1.B 1.A 3.B 3.A External Networks X.2 1.C X.1 1.D 2.B 2.A 2.D 2.C X.1, X.2 X.1, X.2 3.D 3.C 41

Addressing Area 0 network 192.117.49.0 range 255.255.255.0 Area 1 network 131.108.0.0 subnets 17-31 range 255.255.240.0 Area 2 network 131.108.0.0 subnets 33-47 range 255.255.240.0 Area 3 network 131.108.0.0 subnets 49-63 range 255.255.240.0 Assign contiguous ranges of subnets per area to facilitate summarisation 42

Summary Scalable OSPF Network Design Area hierarchy Stub areas Contiguous addressing Route summarisation 43

Redistributing Routes into OSPF ROUTER OSPF <pid#x> REDISTRIBUTE {protocol} <as#y> <metric> <metric-type (1 or 2) <tag> <subnets> 44

Router Sub-commands NETWORK <n.n.n.n> <mask> AREA <area-id> AREA <area-id> STUB {no-summary} AREA <area-id> AUTHENTICATION AREA <area-id> DEFAULT_COST <cost> AREA <area-id> VIRTUAL-LINK <router-id>... AREA <area-id> RANGE <address mask> 45

Interface Subcommands IP OSPF COST <cost> IP OSPF PRIORITY <8-bit-number> IP OSPF HELLO-INTERVAL <number-of-seconds> IP OSPF DEAD-INTERVAL <number-of-seconds> IP OSPF AUTHENTICATION-KEY <8-bytes-ofpassword> 46

47