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

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

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

Introduction to OSPF

Table of Contents 1 OSPF Configuration 1-1

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

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

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

Introduction to OSPF

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

OSPF (Open Shortest Path First)

Introduction to OSPF

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

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

OSPF (Open Shortest Path First)

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

DD2490 p Lecture 4: OSPF. Link-state routing and Open Shortest Path First. Olof Hagsand KTH CSC

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

OSPF. OSPF processs can be enabled on 2 levels

Cabrillo College. Rick Graziani, Instructor

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

with

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

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

Basic Idea. Routing. Example. Routing by the Network

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

TDC 363 Introduction to LANs

Routing by the Network

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

FiberstoreOS V3.3 IPv6 Routing Command Line Reference

How To Configure Basic OSPFv3 Scenarios

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

FSOS IPv6 Routing Command Line Reference

Open Shortest Path First (OSPF)

FiberstoreOS. IPv6 Routing Command Line Reference

Vanguard Managed Solutions

Configuring OSPF. Cisco s OSPF Implementation

OSPFv2 deep dive. Михайловский Василий Cisco TAC Poland Ноябрь 17, 2015

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

IPv6 Routing: OSPFv3

Configuring OSPF with CLI

Operation Manual Routing Protocol. Table of Contents

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

OSPF Commands: A through Z

Chapter 8 Configuring OSPF

IP Routing Tecnologie e Protocolli per Internet II rev 1

Lab 4: Routing using OSPF

Routing Protocols. Technology Description BGP CHAPTER

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

Helsinki University of Technology Telecommunications Laboratory. OSPF Routing Protocol Licenciate course seminar paper

Teldat Router. OSPF Protocol

debug ip ospf database external default-metric subnet area 0 stub distribute-list in Serial0/1

Link State. 1 Flooding of link-state information. 5 Routing Table. 3 SPF Algorithm. 2 Building a Topological Database. 4 SPF Tree

ROUTING CONSORTIUM. Open Shortest Path First (OSPF) Multi-System Interoperability Test Suite. Technical Document. Revision 1.6

Configuring OSPF. Finding Feature Information. Contents

Sample Configuration for OSPFv3

Unicast Routing. TCP/IP class

OSPF Not So Stubby Area (NSSA)

Top-Down Network Design

Unit 3: Dynamic Routing

Configuring Networking Protocols

Operation Manual IPv4 Routing H3C S3610&S5510 Series Ethernet Switches. Table of Contents

Routing Information Protocol

CSCD 433/533 Advanced Networks Spring 2016

Configuring OSPF. Finding Feature Information

Routing Information Protocol. RIP application. RIP version 1

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

CompSci 356: Computer Network Architectures. Lecture 12: Dynamic routing protocols: Link State Chapter Xiaowei Yang

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

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

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

Symbols. Numerics I N D E X

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

Operation Manual OSPF. Table of Contents

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

Configuring OSPF. Finding Feature Information

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

CompSci 356: Computer Network Architectures. Lecture 13: Dynamic routing protocols: Link State Chapter 3.3.3, Xiaowei Yang

Exam Questions 4A0-101

Veryx ATTEST TM. Sample Test cases Overview. Conformance Test Suite. Open Shortest Path First version 2 (OSPFv2)

Chapter 16 OSPF Version 3 Commands

IT-Operation (2) OSPF. Who am I

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

CCNA Exploration: Routing Protocols and Concepts Chapter 11 Case Study

MULTICAST EXTENSIONS TO OSPF (MOSPF)

Routing. Advanced Computer Networks: Routing 1

COURSE OUTLINE: Course: CCNP Route Duration: 40 Hours

Chapter 15 OSPF Commands

Implementing Cisco IP Routing (ROUTE)

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Internet Routing Protocols Tuba Saltürk

CCNP 1: Advanced Routing

HP Load Balancing Module

Brocade 5600 vrouter OSPFv3 Configuration Guide

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

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

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

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

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

Symbols. Numerics I N D E X

REDDIG II Computer Networking Training

Transcription:

Link State Routing In particular OSPF Karst Koymans Informatics Institute University of Amsterdam (version 16.3, 2017/03/09 11:25:31) Tuesday, March 7, 2017 Link State Protocols Basic ideas Problems and pitfalls OSPF Rationale Parameters Databases Network representation and architecture OSPF packet details OSPF packet header The different types of OSPF packets Link State Advertisement packets OSPF for IPv6 Link State Protocol Link State Packets A Link State Protocol Builds on complete information about the network topology Uses Dijkstra s Single Source Shortest Path Tree algorithm Replaces a distance vector protocol in the case of more complex topologies Has a faster convergence time than distance vector protocols Link State Packets (LSPs) represent the state of a router and its links to the rest of the network This representation would suffice for point to point links Broadcast networks (LANs) and NBMA networks are represented by virtual nodes inside the topology Designated routers (DRs) speak on their behalf

Non-broadcast networks Learn to know your neighbours NBMA Non-Broadcast Multiple Access Full mesh of connectivity, but not all at once in one packet Topological connectivity via elected DR Point-to-Multipoint A subset of the collection of all point-to-point links No full mesh of connectivity Considered as multiple instances of point-to-point links Hence no DR is elected Easy on point to point links Just send out greetings (hello packets) Both ends will become adjacent A little more advanced on broadcast networks Send out hello packets using multicast Not all neighbours will become adjacent Only those that are neighbors in the virtual topology One of the adjacent routers is always a DR LSP generation LSP distribution Periodic announcements with a long period (like 30 minutes) Very much different from RIP (30 seconds) Triggered updates are sent as soon as there are changes Detection of a new neighbour (link or node coming up) Detection of a link or node failure Change of link cost LSPs are distributed throughout the network Distribution can t use the routing database for distant nodes Why? What is the difference with RIP here? Ordinary flooding is problematic..., why? It would need a TTL to prevent loops It could cause exponential multiplication of packets Smart flooding recognizes identical LSPs Causing propagation to be tree-like

Most recent LSP problem Pitfalls LSPs may arrive out of order Therefore we need a mechanism to recognize older packets What mechanisms are available for this recognition? What about using timestamps? Timestamps cause trouble if clocks are not synchronised or out of order! What about using sequence numbers? Sequence numbers need an ageing procedure to protect from stale information for instance when a router reboots and starts from scratch Sequence numbers may wrap Sequence number ordering is not a total ordering, not even a partial ordering a < b < c < d < e < f < g < h < a Intermezzo ARPANET lockup (real historic event 1 ) Suppose we have sequence numbers a, b, c with a < b < c < a The devilish dice There are three dice, A, B and C such that A is better than B B is better than C C is better than A A:114444 B:333333 C:222255 Why didn t ageing do its job? 1 According to Radia Perlman in the Interconnections book

Lockup solution OSPF advantages (1) Use an age (or ttl) field which will be increased (or decreased) periodically and always increase the age (decrease the ttl) by at least one when passing the LSP on Forgetting this was the main problem in the total ARPANET lockup Use a very large sequence number space and wait for timeouts after overflow while reflooding LSPs with maximum age Causing those to time out prematurely OSPF Introduces hierarchical routing Supports subnets Uses efficient multicast for flooding Supports point-to-point, broadcast, NBMA and point-to-multipoint networks Uses metrics built on cost, per interface OSPF advantages (2) OSPF fun :) OSPF Supports virtual links for backbone connectivity Supports load balancing Supports unnumbered interfaces/networks Has built in authentication IETF T-shirt IS IS = 0 The old time IETF versus ISO controversy But OSPF in fact really builds on BBN s research on SPF Early versions of OSI s IS-IS

Some OSPF facts Timers and Overflow OSPF builds directly upon IP (not on UDP) OSPF uses protocol type 89 Current OSPF version is 2 RFC 2328 (Moy, 1998) RFC 2740 (OSPF for IPv6, 1999) version 3 Obsoleted by RFC 5340 (2008) OSPF uses LSA (Link State Advertisement) terminology instead of LSP (Link State Packet) These must be the same for all OSPF neighbours Otherwise the neighbours won t talk at all HelloInterval (default 10 sec) RouterDeadInterval (default 40 sec) In the case of a database overflow external routing information is dropped first Consistent LSA Databases (Backup) Designated Router LSAs must be acknowledged LSAs (and their acks) are queued/flagged for transmission LSAs must time out at about the same time by using triggered (re)distribution of age MaxAge packets for LSAs with an existing sequence number which must be honored...... only if there is already an LSA for this node in the local database A Designated Router (DR) and a Backup Designated Router (BDR) is elected on every multi-access network using Hello packets The (B)DR represents the network as a virtual node in the graph and acts on the network s behalf The DR/BDR election process is sticky This is one of the main differences with IS-IS The priority of routers can be configured

Multicast usage Hierarchical routing On LANs every router becomes adjacent to the Designated Router Area 0 is the backbone area Limbs (non-backbone) are all other areas, not equal to 0 Multicast 2 to AllDRouters (224.0.0.6) Multicast 2 to AllSPFRouters (224.0.0.5) There is also a unicast Ack from the DR back to R 2 OSPFv3 for IPv6 uses FF02::6 and FF02::5 Virtual Links Inter Area Summary (IAS) Area 5 is not physically connected to the backbone A virtual link extends the backbone to the new ABR and behaves as an unnumbered point to point link IASs are injected by ABRs IASs make use of a hub and spoke topology Summary information is spread RIP-like There are no loops or slow convergence Virtual links maintain the hub and spoke topology These virtual spokes are in fact paths through their transit area treated as unnumbered links in the backbone

Router roles Area Border Router (ABR) Backbone router Has at least one interface inside area 0 Internal router All interfaces are completely within a single area (backbone or otherwise) Area Border Router (ABR) Has an interface inside area 0 and one or more other areas Autonomous System Boundary Router (ASBR) Participates in another (external) routing protocol Attaches to multiple areas Runs multiple copies of the basic algorithm One copy for each area Summarizes area data (destination networks) towards the backbone Receives summarized data from the backbone about other areas including the backbone itself Can aggregate summary data Autonomous System Boundary Router (ASBR) Stub(by) area Can be part of any area Interfaces with other routing protocols BGP, RIP, IS-IS, OSPF,... Injects external routes into OSPF ASBR notion is independent of backbone, internal or ABR router A stub(by) area is an area into which no external routing information is injected by the ABRs It uses a default route for all external destinations The default route is injected by all ABRs A totally stubby area is a stubby area into which not even inter-area summaries are injected A not so stubby area is a stubby area inside which certain external information is originated and flooded locally

OSPF packet header (24 bytes) OSPF packet header fields 0 7 8 15 16 31 Version Type Packet length Router ID Area ID Checksum AuType Authentication OSPF packet header fields Version 2 Type 1 5 (see next slide) Packet length Total length, including this header Router ID ID of packet sending router Area ID The area a packet belongs to (is destined for) Checksum One s complement checksum AuType Null, Simple or Crypto Authentication Pointer to message digest (Crypto) OSPF packet types OSPF Hello packet (20 + N 4 bytes) OSPF packet types Type Meaning 1 Hello 2 Database Description 3 Link State Request 4 Link State Update 3 5 Link State Acknowledgement 4 0 15 16 23 24 31 Network Mask HelloInterval Options Rtr Pri RouterDeadInterval Designated Router Backup Designated Router Neighbor #1. Neighbor #N Repeated for each neighbor that is alive 3 These contain the Link State Advertisements 4 Don t confuse these with LSAs

OSPF Hello packet fields OSPF DD packet (8 + N 20 bytes) Hello fields Network Mask HelloInterval Options Rtr Pri RouterDeadInterval Designated Router Backup Designated Router Neighbor Subnet mask of link Interval in seconds between hello packets Multiple metrics (T 5 ); no stub area (E) Router priority, used for DR election Interval to consider a silent neighbor dead IP address of designated router IP address of backup designated router Living neighbor IDs 0 15 16 23 24 31 Interface MTU Options 00000 I M M S DD sequence number LSA header #1. LSA header #N Fragment of database with only headers 5 Deprecated because of lack of experience with TOS OSPF DD packet fields OSPF LS request packet (N 12 bytes) DD fields Interface MTU Detection of MTU mismatch Options Same as for Hello packets I Init bit (first packet) M More bit (more packets follow) MS Master/Slave bit DD sequence number Used for recognizing old DD packets LSA header Link state database LSA instance identity 6 0 31 LS type Link State ID Advertising Router Multiple occurrences 6 Specific LSA instance, including age and sequence number

OSPF LS request packet fields OSPF LS Update packet LS request fields LS type Link State ID Advertising Router Link type of the LSA ID of (link type specific part of) the LSA Router ID of originating router These three fields are part of the LSA header. Note that these request packets do not include an age or sequence number. Together these entries uniquely identify an LSA, but not an LSA instance. The Database Description packets refer to a specific LSA instance, but still without actual data. 0 31 # LSAs (N) LSA #1 LSA #N N occurrences OSPF LS Update packet fields OSPF LS Acknowledgement packet (N 20 bytes) LS Update fields # LSAs Number of LSAs inside the update packet LSA #i A complete Link State Advertisement 0 31 LSA header #1 N occurrences Link State Updates contain complete and specific instances of Link State Advertisements (LSAs) with all relevant data. The LSAs have a variable size, depending on LS type. LSA header #N

OSPF LS Acknowledgement packet fields Link State Advertisements LS Acknowledgement fields LSA header #i A complete Link State Advertisement header Link State Acknowledgements again refer to specific instances, but contain no actual data. Multiple LSAs may be found inside a Link State Update packet Every LSA consists of LSA header (20 bytes) LS(A) type specific content LSA header (20 bytes) LSA header fields LSA header fields 0 15 16 23 24 31 LS age Options LS type Link State ID Advertising Router LS sequence number LS Checksum Length LS age Options LS type Link State ID Advertising Router LS sequence number LS Checksum Length Time in seconds since the LSA was originated Same as for Hello packets Link type of the LSA (see next slide) ID of (link type specific part of) the LSA Router ID of originating router Used for most recent check of LSA packets The Fletcher checksum of the LSA (without age) Length in bytes of the LSA, including the header

LS types NSSA LS types LS Type Meaning 1 Router LSA 2 Network LSA 3 Network Summary LSA 4 AS Boundary Router Summary LSA 5 AS External LSA 7 NSSA LSA (see next slide) NSSA stands for Not So Stubby Area Support for certain external routes throughout the area itself NSSA uses its own special type (7) These LSAs are translated at the ABR into ordinary external LSAs (type 5) for the rest of the OSPF domain It is common to inject a type 7 default route from the NSSA boundary router(s) into the NSSA Topological (1,2), prefix (3,5,7) and mixed (4) information Link State IDs Link State IDs Link State IDs LS Type Link State ID meaning 1 ID of originating router 2 IP address of the network s DR 3 The destination network s prefix 4 ID of described ASBR 5 The destination network s prefix 7 The destination network s prefix Link State IDs LS Type Link State ID meaning 1 ID of originating router 2 IP address of the network s DR 3 The destination network s prefix 4 ID of described ASBR 5 The destination network s prefix 7 The destination network s prefix Router LSA Link State ID Network LSA Link State ID Summary LSA Link State ID External LSA Link State ID Router LSA Link State ID Network LSA Link State ID Summary LSA Link State ID External LSA Link State ID

Router LSA (LS type = 1) without header Router LSA fields repeated # Links times 0 7 8 1516 31 0 V E B 0 # Links Link ID Link Data Type # TOS Metric } TOS 0 TOS metric # TOS times 7 Originated by every router Flooded throughout the area(s) the router belongs to Router LSA fields V Router is virtual link endpoint E Router is AS Boundary Router B Router is Area Border Router # Links Number of router links described Link ID ID of the connected network Link Data Extra information on network Type Type of connected network # TOS Number of extra TOSs (usually 0) Metric Cost of link 7 For backward compatibility (but never really implemented or used) Router LSA type field Router LSA Link ID field Router LSA type field Type Meaning 1 Point-to-point link 2 Transit network 3 Stub network 4 Virtual link Router LSA Link ID field Type Meaning 1 ID of neighbor router 2 IP address of designated router 3 IP (sub)network number 8 4 ID of neighbor router 8 This can also be a host (with a /32 mask in the link data)

Router LSA Link Data field Link State IDs Link State IDs Router LSA Link Data field Type Meaning 1 Originating router s interface IP address 2 Originating router s interface IP address 3 Connected (sub)network mask 4 Originating router s interface IP address LS Type Link State ID meaning 1 ID of originating router 2 IP address of the network s DR 3 The destination network s prefix 4 ID of described ASBR 5 The destination network s prefix 7 The destination network s prefix Router LSA Link State ID Network LSA Link State ID Summary LSA Link State ID External LSA Link State ID Network LSA (LS type = 2) without header 4 + N 4 bytes Network LSA fields 0 31 Network Mask Attached Router } Repeated for each attached router Network LSA fields Network Mask (Sub)network mask 9 Attached Router Router ID of router(s) on network Originated by Designated Router Flooded throughout the area 9 Where is the network itself defined?

Link State IDs Summary LSA (type = 3, 4) without header Link State IDs LS Type Link State ID meaning 1 ID of originating router 2 IP address of the network s DR 3 The destination network s prefix 4 ID of described ASBR 5 The destination network s prefix 7 The destination network s prefix Router LSA Link State ID Network LSA Link State ID Summary LSA Link State ID External LSA Link State ID 0 7 8 31 Network Mask 10 0 Metric TOS TOS metric Originated by Area Border Router Flooded throughout the area(s) } for each desired TOS 10 Only relevant for type 3 Summary LSA fields Link State IDs Link State IDs Summary LSA fields Network Mask 11 Address mask for the advertised destination Metric Cost to advertised destination LS Type Link State ID meaning 1 ID of originating router 2 IP address of the network s DR 3 The destination network s prefix 4 ID of described ASBR 5 The destination network s prefix 7 The destination network s prefix Router LSA Link State ID Network LSA Link State ID Summary LSA Link State ID External LSA Link State ID 11 Only relevant for type 3

AS External LSA (LS type 5) without header AS External LSA fields 0 7 8 31 Network Mask E 0 Metric Forwarding address External Route Tag E TOS TOS metric Forwarding address External Route Tag for each desired TOS AS External LSA fields Network Mask Address mask for the advertised destination E External cost is higher than internal cost Metric Cost to advertised destination Forwarding address Comparable to Next Hop in RIP External Route Tag Comparable to Route Tag in RIP Originated by AS Boundary Router Flooded throughout the whole AS Representation of routers and networks Representation of point to multipoint networks Source: RFC 2328 Source: RFC 2328

Example OSPF network from RFC 2328 The directed graph for the example network Source: RFC 2328 Source: RFC 2328 The shortest path tree from router RT6 Router (RT12) and network (N9) LSAs Source: RFC 2328 Source: RFC 2328

OSPF for IP version 6 Important changes Also referred to as OSPFv3 Published as RFC 5340 Extensive, incompatible modification of OSPFv2 Therefore needs a new version number (3) Basic functionality is the same Flooding, areas, SPT, DRs,... All addressing semantics moved to LSA payload Works per-link instead of per-subnet Introduces a new link-lsa Introduces explicit flooding scope Link scope, Area scope and AS scope Removes authentication from packet header Authentication uses AH and ESP headers Router and network LSAs LSA renamings Do not contain address information any more Only topological connectivity No IPv6 prefix information Network protocol independent Prefix information on transit and stub networks is inside a new intra-area-prefix-lsa Link-LSAs now distribute Link local addresses of routers IPv6 prefixes used on the link Option announcements for network LSAs Type-3 summary-lsas are now called inter-area-prefix-lsas Type-4 summary LSAs are now called inter-area-router-lsas