Introduction to OSPF. ISP Workshops. Last updated 11 November 2013

Similar documents
Introduction to OSPF

Introduction to Local and Wide Area Networks

ITE PC v4.0. Chapter Cisco Systems, Inc. All rights reserved. Cisco Public

OSPF. Routing Protocols and Concepts Chapter 11. ITE PC v4.0 Chapter Cisco Systems, Inc. All rights reserved. Cisco Public

Link-state protocols and Open Shortest Path First (OSPF)

OSPF for IPv6. ISP Workshops

OSPF. Routing Protocols and Concepts Chapter 11

Link State Routing. In particular OSPF. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. March 4, 2008

Configuring the maximum number of external LSAs in LSDB 27 Configuring OSPF exit overflow interval 28 Enabling compatibility with RFC Logging

Link State Routing. In particular OSPF. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.3, 2017/03/09 11:25:31)

material. For more information on how to get additional questions, please see a.

Configuring OSPF. Information About OSPF CHAPTER

Table of Contents. OSPF Configuration 1

Link State Routing. In particular OSPF. Karst Koymans. Informatics Institute University of Amsterdam. (version 17.4, 2017/11/30 12:33:57)

OSPF Fundamentals. Agenda. OSPF Principles. L41 - OSPF Fundamentals. Open Shortest Path First Routing Protocol Internet s Second IGP

OSPF - Open Shortest Path First. OSPF Fundamentals. Agenda. OSPF Topology Database

Configuring OSPF. The Cisco OSPF Implementation

Rev a. Single-Area OSPF. c cnac o okbook.com

IP Routing: OSPF Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3650 Switches)

Guide to OSPF Application on the CSS 11000

OSPF Domain / OSPF Area. OSPF Advanced Topics. OSPF Domain / OSPF Area. Agenda

Cisco IOS IP Routing: OSPF Command Reference

Junos Intermediate Routing

C Commands. Send comments to

OSPF Mechanism to Exclude Connected IP Prefixes from LSA Advertisements

OSPF Enhanced Traffic Statistics for OSPFv2 and OSPFv3

OSPF. OSPF Areas. BSCI Module Cisco Systems, Inc. All rights reserved. Cisco Public. Review of OSPF area characteristics:

IP Routing: OSPF Configuration Guide, Cisco IOS Release 12.2SX

CS 457 Lecture 16 Routing Continued. Spring 2010

Question No: 2 In an OSPF Hello packet, which of the following fields must match for all neighbor routers on the segment? Choose three answers.

Sybex ICND Chapter 4 and 18: OSPF. Instructor & Todd Lammle

OSPF Per-Interface Link-Local Signaling

KillTest *KIJGT 3WCNKV[ $GVVGT 5GTXKEG Q&A NZZV ]]] QORRZKYZ IUS =K ULLKX LXKK [VJGZK YKX\OIK LUX UTK _KGX

IP Routing: OSPF Configuration Guide, Cisco IOS Release 12.4

IP Routing: OSPF Configuration Guide, Cisco IOS XE Release 2

OSPF Enhanced Traffic Statistics

CCNA Routing and Switching Study Guide Chapters 5 & 19: Multi-Area OSPF

OSPF Nonstop Routing. Finding Feature Information. Prerequisites for OSPF NSR


OSPF Version 3 for IPv6

Link State Routing. Stefano Vissicchio UCL Computer Science CS 3035/GZ01

OSPF Inbound Filtering Using Route Maps with

Link State Routing. Brad Karp UCL Computer Science. CS 3035/GZ01 3 rd December 2013

Simulative Comparison of MPLS Protection Switching vs. OSPF Re-routing

LAB15: OSPF IPv6. OSPF: Not So Stubby Area. Disclaimer

accurate as possible, the enclosed material is presented on an as is basis. Neither the authors nor

Distance-Vector Routing

Junos OS. OSPF Version 3 for IPv6 Feature Guide. Release Published: Copyright 2011, Juniper Networks, Inc.

CSE/EE 461. Link State Routing. Last Time. This Lecture. Routing Algorithms Introduction Distance Vector routing (RIP)

ISP Operations Troubleshooting OSPF for IPv4 and IPv6

Babel A flexible routing protocol

Network Layer (Routing)

Lecture 8 Link-State Routing

Zebra MCR Software 1.0 Manual Yin Wang Networking Laboratory of Helsinki University of Technology

Interlayer routing issues for wireless networks

Link State Routing. Link state routing principles Dijkstra s shortest-path-first algorithm The OSPF protocol. (Chapter 6 in Huitema) E7310/Comnet 1

Lab Topology R16 R12 R15. Lo R /32 R /32 R /32 R /32 R / /

OLSR Standards. Emmanuel BACCELLI. INRIA / Hitachi

Computer Networks II

OSPF Link-State Database Overload Protection

olsr.org 'Optimized Link State Routing' and beyond December 28th, 2005 Elektra

Optimisation and Operations Research

OSPF Sham-Link MIB Support

ROUTING PROTOCOLS. Dr. Ahmed Khattab. EECE Department Cairo University Fall 2012 ELC 659/ELC724

Overview. Ad Hoc and Wireless Mesh Networking. Ad hoc network. Ad hoc network

Energy Saving Routing Strategies in IP Networks

M U LT I C A S T C O M M U N I C AT I O N S. Tarik Cicic

Network Working Group Request for Comments: Category: Standards Track A. Zinin Alcatel-Lucent R. Coltun Acoustra Productions July 2008

Energy-Efficient MANET Routing: Ideal vs. Realistic Performance

Advanced Modeling and Simulation of Mobile Ad-Hoc Networks

A Comparative Study of Quality of Service Routing Schemes That Tolerate Imprecise State Information

Identifying OSPF Anomalies Using Recurrence Quantification Analysis

Lecture 18: Network Layer Link State and Distance Vector Routing

Scalable Routing Protocols for Mobile Ad Hoc Networks

Empirical Probability Based QoS Routing

OSPF and MANET WG meetings, IETF64. OSPF MANET Design Team outbrief. November, Tom Henderson

Wireless Internet Routing. IEEE s

Routing and Wavelength Assignment in All-Optical DWDM Transport Networks with Sparse Wavelength Conversion Capabilities. Ala I. Al-Fuqaha, Ph.D.

Multimedia Training Kit

Foundations of Distributed Systems: Tree Algorithms

Introduction to Mesh

Performance Evaluation System of Communication Network for Train Control System Using Radio Communication

A HYBRID GENETIC ALGORITHM FOR THE WEIGHT SETTING PROBLEM IN OSPF/IS-IS ROUTING

Evaluation of the 6TiSCH Network Formation

Request for Comments: 4750

Routing Algorithm Classification. A Distance Vector Routing Algorithm

Signature and Database Exchange for Wireless OSPF Interfaces

Achieving Network Consistency. Octav Chipara

Grundlagen der Rechnernetze. Introduction

Link State Routing in Wireless Ad-Hoc Networks

Vulnerability modelling of ad hoc routing protocols a comparison of OLSR and DSR

A Review of Current Routing Protocols for Ad Hoc Mobile Wireless Networks

Microwave Radio Rapid Ring Protection in Pubic Safety P-25 Land Mobile Radio Systems

Reducing the Cost of Security in Link-State Routing R. Hauser A. Przygienda G. Tsudik McKinsey Consulting Fore Systems USC-ISI Zurich, Switzerland Bet

Stroboscope: Declarative Network Monitoring on a Budget

CANopen Programmer s Manual Part Number Version 1.0 October All rights reserved

A Performance Comparison of Multi-Hop Wireless Ad Hoc Network Routing Protocols

Basics of Routing and Link-State Routing

Wireless Mesh Networks

ENHANCEMENT OF OLSR ROUTING PROTOCOL IN MANET Kanu Bala 1, Monika Sachdeva 2 1,2

Transcription:

Introduction to OSPF ISP Workshops Last updated 11 November 2013 1

OSPF p Open Shortest Path First p Open: n Meaning an Open Standard n Developed by IETF (OSPF Working Group) for IP RFC1247 n Current standard is OSPFv2 (RFC2328) p Shortest Path First: n Edsger Dijkstra s algorithm for producing shortest path tree through a graph p Dijkstra, E. W. (1959). A note on two problems in connexion with graphs. Numerische Mathematik 1: 269 271 2

OSPF p Known as a Link State Routing Protocol n The other link state routing protocol is ISIS n Each node in the network computes the map of connectivity through the network p The other type of Routing Protocol is Distance Vector n Like EIGRP or RIP n Each node shares its view of the routing table with other nodes 3

OSPF p Routers with OSPF enabled on them look for neighbouring routers also running OSPF n Using the Hello protocol n The Hello packet includes the subnet mask, list of known neighbours, and details such as hello interval and router dead interval p Hello interval how often the router will send Hellos p Router dead interval how long to wait before deciding router has disappeared p The values of hello interval, router dead interval and subnet mask must match on both neighbours n When a neighbouring router responds with matching details, a neighbour relationship is formed 4

OSPF Neighbour Relationships p A relationship is formed between selected neighbouring routers for the purpose of exchanging routing information n This is called an ADJACENCY p Not every pair of neighbouring routers become adjacent n On multi-access networks (e.g. ethernet), only selected routers form adjacencies 5

OSPF Adjacencies p Once an adjacency is formed, neighbours share their link state information n Information goes in a Link State Packet (LSP) n LSPs sent to a neighbour are known as Link State Announcements (LSA) p New information received from neighbours is used to compute a new view of the network p On a link failure n New LSPs are flooded n The routers recompute the routing table 6

OSPF across a network p All routers across the network form neighbour relationships with their directly attached neighbours p Each router computes the routing table p Once each router has the same view of the network, the network has converged p The IGP design for a network is crucially important to ensure scalability and rapid convergence p Generally: the fewer the prefixes, the faster the convergence 7

OSPF Areas p OSPF has the concept of areas n All networks must have an area 0, the default area n Areas are used to scale OSPF for large networks n There are many types of areas, to suit many different types of infrastructure and topologies n Most small to medium networks (up to ~300 routers) can happily use a single area 8

OSPF p OSPFv2 is for IPv4 n For carrying IPv4 prefixes only p OSPFv3 is for IPv6 n For carrying IPv6 prefixes only n Based on OSPFv2 but is specifically for IPv6 n Documented in RFC5340 n Is totally independent of OSPFv2 p Configuration concepts and syntax are very similar n (There are subtle differences/improvements) 9

Links in OSPF p Two types of links in OSPF: n Point-to-point link p Only one other router on the link, forming a point-to-point adjacency n Multi-access network (e.g. ethernet) p Potential for many other routers on the network, with several other adjacencies p OSPF in multi-access networks has optimisations to aid scaling n Two routers are elected to originate the LSAs for the whole multi-access network n Called Designated Router and Backup Designated Router n Other routers on the multi-access network form adjacencies with the DR and BDR 10

Designated Router p There is ONE designated router per multi-access network n Generates network link advertisements n Assists in database synchronization n Scales OSPF for multi-access (ethernet) networks Designated Router Backup Designated Router Designated Router Backup Designated Router 11

Selecting the Designated Router p Configured priority (per interface) n Configure high priority on the routers to be the DR/BDR p Else priority determined by highest router ID n Router ID is 32 bit integer n Set manually, otherwise derived from the loopback interface IPv4 address, otherwise the highest IPv4 address on the router 131.108.3.2 131.108.3.3 R1 DR R2 144.254.3.5 R1 Router ID = 144.254.3.5 R2 Router ID = 131.108.3.3 12

Adjacencies on multi-access networks p DR and BDR form FULL adjacencies: n With each other n With all other routers on the multi-access network n Databases are synchronised n LSAs propagate along adjacencies Full DR BDR 13

Adjacencies on multi-access networks p Neighbour relationships between routers which are not DR or BDR are called 2WAY n They see each other in HELLO packets but do not exchange topology information n The neighbours then are not adjacent 2WAY DR BDR 14

Adjacencies: Examples p To find adjacency state, use: show ip[v6] ospf neighbor n Point-to-Point link Neighbor ID Pri State Dead Time Address Interface 10.10.15.236 0 FULL/ - 00:00:35 10.10.15.16 Serial1/0 n FULL: other router to DR/BDR Neighbor ID Pri State Dead Time Address Interface 10.10.15.225 1 FULL/BDR 00:00:35 10.10.15.2 FastEth0/0 10.10.15.226 1 FULL/DR 00:00:35 10.10.15.3 FastEth0/0 n 2WAY: other router to other router Neighbor ID Pri State Dead Time Address Interface 10.10.15.227 1 2WAY/DROTHER 00:00:35 10.10.15.4 FastEth0/0 15

OSPF on Cisco IOS p Starting OSPFv2 (IPv4) in Cisco s IOS router ospf 42 n Where 42 is the process ID p Starting OSPFv3 (IPv6) in Cisco s IOS ipv6 router ospf 42 n Where 42 is the process ID p OSPF process ID is unique to the router n Gives possibility of running multiple instances of OSPF on one router n Process ID is not passed between routers in an AS n Some ISPs configure the process ID to be the same as their BGP Autonomous System Number 16

Adding interfaces to OSPF p OSPF interface configuration: n When OSPF is configured for a subnet or on an interface, the router will automatically attempt to find neighbours on that subnet or interface n ISP Best Practice is to disable this behaviour: router ospf 42 passive-interface default n And then explicitly enable the interface to allow OSPF to search for neighbours as required: router ospf 42 no passive-interface POS 4/0 17

OSPF on Cisco IOS p Enabling OSPF on an interface does two things: 1. Enables the Hello protocol for forming neighbour relationships and adjacencies with other routers connected to that interface 2. Announces the interface subnet(s) into OSPF p Care needed n Must avoid enabling the Hello protocol on untrusted networks p (e.g. those outside your Autonomous System) 18

OSPF on Cisco IOS p Forming neighbour relationships n OSPF needs to be activated on the interface the neighbour relationship is desired on: interface POS 4/0 ip address 192.168.1.1 255.255.255.252 ip ospf 42 area 0! router ospf 42! passive-interface default no passive-interface POS 4/0 19

OSPF interface costs p Cisco IOS sets the interface cost automatically n Formula used: cost = 10 8 /interface bandwidth p Which is fine for interfaces up to 100Mbps p Many operators develop their own interface cost strategy ip ospf cost 100 n Sets interface cost to 100 n Care needed as the sum of costs determines the best path through the network p OSPF will load balance over paths with equal cost to the same destination 20

OSPF Metric Calculation p Best path cost = 60 5Mbps 2Mbps 20 50 50 10 2Mbps 10Mbps 21

OSPF Metric Calculation p Best path cost = 60 p Equal cost paths = 70 5Mbps 2Mbps 20 50 50 10 2Mbps 10Mbps 5Mbps 2Mbps 20 50 60 10 1.3Mbps 10Mbps 22

OSPF Neighbour Authentication p Neighbour authentication is highly recommended n Prevents unauthorised routers from forming neighbour relationships and potentially compromising the network p OSPFv2 Authentication is built-in n There are two types: p Plain text password p MD5 hash p OSPFv3 uses standard IP security header n There are two types: p MD5 hash p SHA1 23

OSPFv2 Neighbour Authentication p Configuring authentication for area 0 n Interfaces still need the authentication key, e.g. POS4/0 router ospf 42 area 0 authentication message-digest! interface POS 4/0! ip ospf message-digest-key <key-no> md5 <passwd> p Configuring authentication per interface: interface POS 4/0 ip ospf authentication message-digest! ip ospf message-digest-key <key-no> md5 <passwd> 24

OSPFv3 Neighbour Authentication p Configuring authentication for all interfaces in area 0 n The key is included in the command turning on authentication for area 0: ipv6 router ospf 42! area 0 authentication ipsec spi 256 md5 <passwd> p Configuring authentication per interface: interface POS 4/0 ipv6 ospf authentication ipsec spi 256 md5 <passwd>! 25

Other OSPF Features p Originating a default route into OSPF: router ospf 42 default-information originate n Which will originate a default route into OSPF if a default route exists in the RIB p OSPF on point-to-point ethernet: n DR and BDR election is not needed on a point to point link so it is disabled, which is more efficient interface fastethernet0/2 ip ospf network point-to-point p There are equivalent commands for OSPFv3 26

Conclusion p OSPF is a Link State Routing Protocol p Quick and simple to get started n But has a myriad of options and features to cover almost all types of network topology n ISPs keep their OSPF design SIMPLE n ~300 routers in a single area is entirely feasible 27

Introduction to OSPF ISP Workshops 28