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

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

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

Table of Contents. OSPF Configuration 1

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

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

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. Information About OSPF CHAPTER

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

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

Junos Intermediate Routing

Introduction to Local and Wide Area Networks

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.

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

Guide to OSPF Application on the CSS 11000

Cisco IOS IP Routing: OSPF Command Reference

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

Configuring OSPF. The Cisco OSPF Implementation

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

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

OSPF for IPv6. ISP Workshops

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

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

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

OSPF. Routing Protocols and Concepts Chapter 11

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

IP Routing: OSPF Configuration Guide, Cisco IOS Release 12.4

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

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

Lecture 8 Link-State Routing

CS 457 Lecture 16 Routing Continued. Spring 2010

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

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


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

OSPF Mechanism to Exclude Connected IP Prefixes from LSA Advertisements

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

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

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

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

OSPF Enhanced Traffic Statistics for OSPFv2 and OSPFv3

Distance-Vector Routing

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

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

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

OSPF Version 3 for IPv6

OSPF Enhanced Traffic Statistics

Interlayer routing issues for wireless networks

OSPF Inbound Filtering Using Route Maps with

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

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

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

OSPF Per-Interface Link-Local Signaling

Babel A flexible routing protocol

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

Computer Networks II

C Commands. Send comments to

Network Layer (Routing)

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

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

OSPF Link-State Database Overload Protection

Advanced Modeling and Simulation of Mobile Ad-Hoc Networks

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

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

Request for Comments: 4750

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

Energy-Efficient MANET Routing: Ideal vs. Realistic Performance

Introduction to OSPF

Scalable Routing Protocols for Mobile Ad Hoc Networks

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

Wireless Mesh Networks

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

ISP Operations Troubleshooting OSPF for IPv4 and IPv6

Wireless Internet Routing. IEEE s

OSPF Sham-Link MIB Support

Energy Saving Routing Strategies in IP Networks

Papers. Ad Hoc Routing. Outline. Motivation

Semiring Pruning for Information Dissemination in Mobile Ad Hoc Networks

Grundlagen der Rechnernetze. Introduction

A Study of Dynamic Routing and Wavelength Assignment with Imprecise Network State Information

OLSR Standards. Emmanuel BACCELLI. INRIA / Hitachi

Signature and Database Exchange for Wireless OSPF Interfaces

CSE 123: Computer Networks

Identifying OSPF Anomalies Using Recurrence Quantification Analysis

Optimisation and Operations Research

Lecture 18: Network Layer Link State and Distance Vector Routing

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

Introduction to Mesh

IX Series 2. Description. IX Series 2 System Features

Basics of Routing and Link-State Routing

CS649 Sensor Networks IP Lecture 9: Synchronization

Routing Algorithm Classification. A Distance Vector Routing Algorithm

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

Semiring Pruning for Information Dissemination in Mobile Ad Hoc Networks

Performance comparison of AODV, DSDV and EE-DSDV routing protocol algorithm for wireless sensor network

Wi-Fi. Wireless Fidelity. Spread Spectrum CSMA. Ad-hoc Networks. Engr. Mian Shahzad Iqbal Lecturer Department of Telecommunication Engineering

Proxy Mobile IPv6? Sangheon Pack (Korea University, Korea) Sri Gundavelli (Cisco, USA)

SourceSync. Exploiting Sender Diversity

Exhaustive Study on the Infulence of Hello Packets in OLSR Routing Protocol

Optimal Clock Synchronization in Networks. Christoph Lenzen Philipp Sommer Roger Wattenhofer

Transcription:

Link State Routing In particular OSPF dr. C. P. J. Koymans Informatics Institute University of Amsterdam March 4, 2008 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 1 / 70

1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 2 / 70

Outline Link State Protocols 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 3 / 70

Outline Link State Protocols Basic ideas 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 4 / 70

Link State Protocols Basic ideas Link State Protocol A Link State Protocol builds on complete information about the network topology uses Dijkstra s Shortest Path Tree algorithm replaces RIP for more complex topologies has a faster convergence time than distance vector protocols dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 5 / 70

Link State Protocols Basic ideas Link State Packets Links State Packets (LSPs) represent the state of a router and its links to the rest of the network This representation works 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 6 / 70

Link State Protocols Basic ideas Non-broadcast networks NBMA Non-broadcast Multiple Access Full mesh of connectivity Connectivity via elected DR Point-to-Multipoint A subset of the collection of all point-to-point links No full mesh of connectivity No DR is elected dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 7 / 70

Link State Protocols Basic ideas Learn to know your neighbours 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 hellos using multicast Not all neighbours will become adjacent dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 8 / 70

Link State Protocols Basic ideas LSP generation Periodic announcements with a long period (like 30 minutes) Triggered updates when there are changes, which can be Detection of a new neighbour (link or node coming up) Detection of a link or node failure Change of a link cost dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 9 / 70

Link State Protocols Basic ideas LSP distribution 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 10 / 70

Link State Protocols Basic ideas LSP distribution 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 It would need a TTL to prevent loops dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 10 / 70

Link State Protocols Basic ideas LSP distribution 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 It would need a TTL to prevent loops It could cause exponential multiplication of packets dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 10 / 70

Link State Protocols Basic ideas LSP distribution 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 It would need a TTL to prevent loops It could cause exponential multiplication of packets Smart flooding recognizes identical LSPs dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 10 / 70

Link State Protocols Basic ideas LSP distribution 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 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 10 / 70

Outline Link State Protocols Problems and pitfalls 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 11 / 70

Link State Protocols Problems and pitfalls Most recent LSP problem LSPs may arrive out of order Therefore we need a mechanism to recognize older packets dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 12 / 70

Link State Protocols Problems and pitfalls Most recent LSP problem LSPs may arrive out of order Therefore we need a mechanism to recognize older packets What about using timestamps? dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 12 / 70

Link State Protocols Problems and pitfalls Most recent LSP problem LSPs may arrive out of order Therefore we need a mechanism to recognize older packets What about using timestamps? Timestamps cause trouble if clocks are not synchronised or out of order! dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 12 / 70

Link State Protocols Problems and pitfalls Most recent LSP problem LSPs may arrive out of order Therefore we need a mechanism to recognize older packets What about using timestamps? Timestamps cause trouble if clocks are not synchronised or out of order! What about using sequence numbers? dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 12 / 70

Link State Protocols Problems and pitfalls Most recent LSP problem LSPs may arrive out of order Therefore we need a mechanism to recognize older packets 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 aging procedure to protect from stale information, for instance when a router reboots and starts from scratch dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 12 / 70

Pitfalls Pitfalls Sequence numbers may wrap Sequence number comparison is not a total linear order Cyclic behaviour is possible a c b a < b < c < a 9

Link State Protocols Problems and pitfalls Intermezzo 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 14 / 70

Link State Protocols Problems and pitfalls Intermezzo 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 14 / 70

Link State Protocols Problems and pitfalls Intermezzo 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 14 / 70

Link State Protocols Problems and pitfalls Intermezzo 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 14 / 70

ARPANET lockup ARPANET lockup S xcba P c ba c ba a bc a bc Q b c a b c a R 11

Link State Protocols Problems and pitfalls Lockup solution dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 16 / 70

Link State Protocols Problems and pitfalls Lockup solution One could use a very large sequence number space dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 16 / 70

Link State Protocols Problems and pitfalls Lockup solution One could use a very large sequence number space and wait for timeouts after overflow dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 16 / 70

Link State Protocols Problems and pitfalls Lockup solution One could use a very large sequence number space and wait for timeouts after overflow One could use an age (or ttl) field dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 16 / 70

Link State Protocols Problems and pitfalls Lockup solution One could use a very large sequence number space and wait for timeouts after overflow One could use an age (or ttl) field and always increase the age (decrease the ttl) by at least one dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 16 / 70

Link State Protocols Problems and pitfalls Lockup solution One could use a very large sequence number space and wait for timeouts after overflow One could use an age (or ttl) field and always increase the age (decrease the ttl) by at least one and furthermore increase (decrease) it periodically dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 16 / 70

Outline OSPF 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 17 / 70

Outline OSPF Rationale 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 18 / 70

OSPF Rationale OSPF advantages (1) OSPF Introduces hierarchical routing Supports load balancing Supports subnets Supports unnumbered interfaces/networks Supports point-to-point, broadcast, NBMA and point-to-multipoint networks Supports virtual links for backbone connectivity dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 19 / 70

OSPF Rationale OSPF advantages (2) OSPF Has built in authentication Uses efficient multicast for flooding Uses metrics built on cost, per interface Is easily extendable for multicast routing (MOSPF) dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 20 / 70

OSPF Rationale OSPF fun :) IETF T-shirt IS IS = 0 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 21 / 70

OSPF Rationale Some OSPF facts OSPF builds directly upon IP OSPF uses protocol type 89 Current OSPF version is 2 RFC 2328 (Moy, 1998) RFC 2740 (OSPF for IPv6) version 3 OSPF uses LSA (Link State Advertisement) terminology in stead of LSP dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 22 / 70

Outline OSPF Parameters 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 23 / 70

OSPF Parameters Timers and Overflow These must be the same for all OSPF routers HelloInterval (default 10 sec) RouterDeadInterval (default 40 sec) In case of database overflow external routing information is dropped first dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 24 / 70

Outline OSPF Databases 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 25 / 70

OSPF Databases Consistent LSP databases LSPs must be acknowledged LSPs are queued/flagged for transmission LSPs must time out at about the same time by using triggered distribution of age MaxAge packets which must be honored dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 26 / 70

Outline OSPF Network representation and architecture 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 27 / 70

OSPF Network representation and architecture (Backup) Designated Router 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 and acts on its behalf The DR/BDR election process is sticky The priority of routers can be configured dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 28 / 70

Multicast usage Multicast usage On LANs every router becomes adjacent to the Designated Router R Link State Update DR (BDR) Link State Ack S Multicast to AllDRouters (224.0.0.6) Multicast to AllSPFRouters (224.0.0.5) 20

Hierarchical routing Hierarchical routing Backbone Area 0 Limbs (non-backbone subsystems) Areas 0 ABRs Backbone (area 0) 1 2 3 4 21

Virtual Links Area 5 Virtual links Not physically linked to the backbone Virtual link created to a real ABR Behaves as an unnumbered point to point link inside the backbone area Backbone (area 0) 5 1 2 3 4 22

OSPF Network representation and architecture Inter Area Summaries 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 Some spokes are point to point links tunneled through an area dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 32 / 70

OSPF Network representation and architecture Router roles Backbone router Has at least one interface inside area 0 Internal router Exists completely inside a single area Area Border Router (ABR) Exists inside area 0 and one or more other areas Autonomous System Border Router (ASBR) Participates in other (external) routing protocol dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 33 / 70

OSPF Network representation and architecture Area Border Router (ABR) Attaches to multiple areas Runs multiple copies of the basic algorithm, once for each area Summarizes area data towards the backbone Receives summarized data from the backbone about other areas dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 34 / 70

OSPF Network representation and architecture Autonomous System Border Router (ASBR) Can be part of any area Interfaces with other routing protocols BGP, RIP, IS-IS,... Injects external routes into OSPF ASBR notion is independent of backbone, internal or ABR router dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 35 / 70

OSPF Network representation and architecture Stub(by) area 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 A default route is injected by all ABRs If even inter-area summaries are not injected the stub area is called totally stubby dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 36 / 70

Outline OSPF packet details 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 37 / 70

Outline OSPF packet details OSPF packet header 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 38 / 70

OSPF packet details OSPF packet header OSPF packet header 0 7 8 15 16 31 Version Type Packet length Router ID Area ID Checksum AuType Authentication dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 39 / 70

OSPF packet details OSPF packet header OSPF packet header fields OSPF packet header fields Version 2 Type Packet length Router ID Area ID Checksum AuType Authentication 1 5 (see next slide) total length, including this header ID of packet originating router The area a packet belongs to one s complement checksum Null, Simple or Crypto Pointer to message digest (Crypto) dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 40 / 70

OSPF packet details OSPF packet header OSPF packet types OSPF packet types Type Meaning 1 Hello 2 Database Description 3 Link State Request 4 Link State Update 5 Link State Acknowledgement dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 41 / 70

Outline OSPF packet details The different kinds of OSPF packets 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 42 / 70

OSPF packet details The different kinds of OSPF packets OSPF Hello packet 0 15 16 23 24 31 Network Mask HelloInterval Options Rtr Pri RouterDeadInterval Designated Router Backup Designated Router Neighbor #1 Repeated for. each neighbor Neighbor #N dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 43 / 70

OSPF packet details The different kinds of OSPF packets a deprecated because of lack of experience with TOS dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 44 / 70 OSPF Hello packet fields Hello fields Network Mask HelloInterval Options Rtr Pri RouterDeadInterval Designated Router Backup Designated Router Neighbor subnet mask of link interval in seconds between hellos multiple metrics (T a ); 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

OSPF packet details The different kinds of OSPF packets OSPF DD packet 0 15 16 23 24 31 Interface MTU Options 00000 I M M S DD sequence number LSA header #1. LSA header #N Partial list of database dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 45 / 70

OSPF packet details The different kinds of OSPF packets OSPF DD packet fields DD fields Interface MTU Options I M MS DD sequence number LSA header detection of MTU mismatch same as for Hello packets init bit (first packet) more bit (more packets follow) master/slave bit used for ordering DD packets identification of link state database piece dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 46 / 70

OSPF packet details The different kinds of OSPF packets OSPF LS request packet 0 31 LS type Link State ID Advertising Router Multiple occurrences dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 47 / 70

OSPF packet details The different kinds of OSPF packets OSPF LS request packet fields 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 Together these entries uniquely identify an LSA, but not an LSA instance dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 48 / 70

OSPF packet details The different kinds of OSPF packets OSPF LS update packet 0 31 # LSAs (N) LSA #1 N occurrences LSA #N dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 49 / 70

OSPF packet details The different kinds of OSPF packets OSPF LS update packet fields LS update fields # LSAs Number of LSAs inside the update packet LSA A complete Link State Advertisement dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 50 / 70

OSPF packet details The different kinds of OSPF packets OSPF LS Acknowledgement packet 0 31 LSA header #1 N occurrences LSA header #N dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 51 / 70

OSPF packet details The different kinds of OSPF packets OSPF LS acknowledgement packet fields LS acknowledgement fields LSA header A complete Link State Header dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 52 / 70

Outline OSPF packet details Link State Advertisement packets 1 Link State Protocols Basic ideas Problems and pitfalls 2 OSPF Rationale Parameters Databases Network representation and architecture 3 OSPF packet details OSPF packet header The different kinds of OSPF packets Link State Advertisement packets Link State Advertisement header The different kinds of Link State Advertisements dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 53 / 70

OSPF packet details Link State Advertisement packets Link State Advertisements Multiple LSAs may be found inside a Link State Update packet Every LSA consists of LSA Header (20 bytes) LSA type specific content dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 54 / 70

OSPF packet details Link State Advertisement packets LSA header 0 15 16 23 24 31 LS age Options LS type Link State ID Advertising Router LS sequence number LS Checksum length dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 55 / 70

OSPF packet details Link State Advertisement packets LSA header fields LSA header fields 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 56 / 70

OSPF packet details Link State Advertisement packets LS types LS Types 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) dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 57 / 70

OSPF packet details Link State Advertisement packets NSSA 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 58 / 70

OSPF packet details Link State Advertisement packets Link State IDs Link State IDs Type Meaning 1 ID of originating router 2 IP address of the network s DR 3 The destination s IP network address 4 ID of described ASBR 5 The destination s IP network address dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 59 / 70

OSPF packet details Link State Advertisement packets Router LSA without header (LS type = 1) 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 1 Originated by every router Flooded throughout the area(s) 1 For backward compatibility dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 60 / 70

Router LSA fields OSPF packet details Link State Advertisement packets 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 61 / 70

OSPF packet details Link State Advertisement packets Router LSA type field Router LSA type field Type Meaning 1 Point-to-point link 2 Transit network 3 Stub network 4 Virtual link dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 62 / 70

OSPF packet details Link State Advertisement packets Router LSA Link ID field Router LSA Link ID field Type Meaning 1 ID of neighbor router 2 IP address of designated router 3 IP (sub)network number 4 ID of neighbor router dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 63 / 70

OSPF packet details Link State Advertisement packets Router LSA Link Data field 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 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 64 / 70

OSPF packet details Link State Advertisement packets Network LSA without header (LS type = 2) 0 31 Network Mask Attached Router } Repeated for each attached router Originated by Designated Router Flooded throughout the area dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 65 / 70

OSPF packet details Link State Advertisement packets Network LSA fields Network LSA fields Network Mask Attached Router (sub)network mask Router ID of router(s) on network dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 66 / 70

OSPF packet details Link State Advertisement packets Summary LSA without header (type = 3, 4) 0 7 8 31 Network Mask 2 0 metric TOS TOS metric } for each desired TOS 3 Originated by Area Border Router Flooded throughout the area(s) 2 Only relevant for type 3 3 For backward compatibility dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 67 / 70

OSPF packet details Link State Advertisement packets Summary LSA fields Summary LSA fields Network Mask a metric Address mask for the advertised destination Cost to advertised destination a Only relevant for type 3 dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 68 / 70

OSPF packet details Link State Advertisement packets AS External LSA without header (LS type 5) 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 4 Originated by AS Border Router Flooded throughout the whole AS 4 For backward compatibility dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 69 / 70

OSPF packet details Link State Advertisement packets AS External LSA fields AS External LSA fields Network Mask E metric Forwarding address External Route Tag Address mask for the advertised destination External cost is higher than internal cost Cost to advertised destination Comparable to Next Hop in RIP Comparable to Route Tag in RIP dr. C. P. J. Koymans (UvA) Link State Routing March 4, 2008 70 / 70