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

Similar documents
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

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

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.

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

Table of Contents. OSPF Configuration 1

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

Configuring OSPF. Information About OSPF CHAPTER

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

Configuring OSPF. The Cisco OSPF Implementation

Junos Intermediate Routing

Guide to OSPF Application on the CSS 11000

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

Cisco IOS IP Routing: OSPF Command Reference

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

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

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

Introduction to Local and Wide Area Networks

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

IP Routing: OSPF Configuration Guide, Cisco IOS Release 12.4

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

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 XE Release 2

OSPF for IPv6. ISP Workshops

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

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

OSPF Enhanced Traffic Statistics for OSPFv2 and OSPFv3

OSPF Inbound Filtering Using Route Maps with


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

OSPF Mechanism to Exclude Connected IP Prefixes from LSA Advertisements

CS 457 Lecture 16 Routing Continued. Spring 2010

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

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

OSPF Enhanced Traffic Statistics

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

C Commands. Send comments to

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

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

Lecture 8 Link-State Routing

OSPF Version 3 for IPv6

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

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

OSPF Link-State Database Overload Protection

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

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

OSPF Per-Interface Link-Local Signaling

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

OSPF Sham-Link MIB Support

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

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

Network Layer (Routing)

ISP Operations Troubleshooting OSPF for IPv4 and IPv6

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

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

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

Scalable Routing Protocols for Mobile Ad Hoc Networks

Request for Comments: 4750

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

Wireless Internet Routing. IEEE s

Computer Networks II

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

CSE 123: Computer Networks

Energy Saving Routing Strategies in IP Networks

Energy-Efficient MANET Routing: Ideal vs. Realistic Performance

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

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

Interlayer routing issues for wireless networks

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

Introduction to OSPF

Wireless Mesh Networks

IX Series 2. Description. IX Series 2 System Features

Identifying OSPF Anomalies Using Recurrence Quantification Analysis

Papers. Ad Hoc Routing. Outline. Motivation

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

Chapter 10 Mobile Communication Systems

Routing Algorithm Classification. A Distance Vector Routing Algorithm

Babel A flexible routing protocol

Advanced Modeling and Simulation of Mobile Ad-Hoc Networks

Chapter 1 Basic concepts of wireless data networks (cont d.)

Signature and Database Exchange for Wireless OSPF Interfaces

OLSR Standards. Emmanuel BACCELLI. INRIA / Hitachi

PaperCut VCA Cash Acceptor Manual

Pass Cisco Exam

UCS-805 MOBILE COMPUTING NIT Agartala, Dept of CSE Jan-May,2011

MOBILE COMPUTING NIT Agartala, Dept of CSE Jan-May,2012

Distance-Vector Routing

International Journal of Advance Engineering and Research Development (IJAERD) Volume 1,Issue 5,May 2014, e-issn: , print-issn:

Chapter 5: outline. Network-layer functions. Chapter 5: outline. Routing protocols. data plane. Logically centralized control plane

Y.1731 Performance Monitoring

Performance Comparison of AODV, DSDV and ZRP Routing Protocols

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

TRBOnet Enterprise. IP Site Connect. Deployment Guide. Internet. US Office Neocom Software Jog Road, Suite 202 Delray Beach, FL 33446, USA

Modular Metering System ModbusTCP Communications Manual

Optimisation and Operations Research

showtech 9th May.txt

CROSS-LAYER DESIGN FOR QoS WIRELESS COMMUNICATIONS

UNIVERSAL NET SERVICES

Transcription:

OSPF Domain / OSPF Area OSPF Advanced Topics Areas,, Backbone, Summary-LSA, ASBR, Stub Area, Route Summarization, Virtual Links, Header Details OSPF domain can be divided in multiple OSPF areas to improve performance to decouple network parts from each other performance improvement by restricting Router-LSA and Network-LSA to the originating area note: receiving a Router-LSA will cause the SPF algorithm to be performed decoupling is actually done by route summarization enabled through the usage of classless routing and careful IP address plan OSPF Advanced, v4.4 3 Agenda OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats OSPF Advanced, v4.4 2 OSPF Domain / OSPF Area every area got its own topology database which is unknown to other areas area specific routing information stays inside this area on topology changes routing traffic causing Dikstra algorithm to be performed stays inside the area where the change appears route summarization reduces routing traffic drastically OSPF areas are labelled with area-ids unique within the OSPF domain written in IP address like format or just as number an OSPF domain contains at least one single area or several areas OSPF Advanced, v4.4 4 Page 42- Page 42-2

OSPF Area Border Router OSPF areas are connected by special routers Area Border Router () maintains a topology database for each area he is connected to all OSPF areas must be connected over a special area Backbone Area area-id = 0.0.0.0 or area-id = 0 if there is only one area in the OSPF domain this OSPF area will be the backbone area OSPF Routing Types OSPF provides three types of routing: intra-area routing: inside of an area (using Level Router; Internal Router IR) Router Link LSA (LSA type) Network Link LSA (LSA type2) note: Backbone Router is a Backbone Area Internal Router inter-area routing: between areas over a Backbone Area (using Area Border) Summary Link LSA (LSA type3 and type4) type 3 to announce networks type 4 to announce IP address of ASBRs OSPF Advanced, v4.4 5 OSPF Advanced, v4.4 7 OSPF Backbone Area non-backbone areas must not be connected directly connection allowed only via Backbone Area this OSPF rule forces a star-like topology of areas with the backbone area in the centre s are connected to the backbone area by direct physical links in normal cases exception with virtual link technique if direct physical link can not be provided a virtual link can be used to "tunnel" the routing traffic between an isolated area and the backbone area through another area OSPF Advanced, v4.4 6 OSPF Routing Types 2 OSPF provides three types of routing (cont.): exterior routing: paths to external destinations (other AS) are configured statically or imported with EGP or BGP using Autonomous Systems Boundary Routers (ASBRs) AS External Summary LSA (LSA type5) to announce external networks OSPF Advanced, v4.4 8 Page 42-3 Page 42-4

Area Border Router ASBR Area Border Router maintains two topology maps one for its area one for the Backbone Area Area Border Router exports the routes of its area to the Backbone Area collects all topology information of its area and sends Summary LSAs to the Backbone Area Area Border Router imports all routes of other areas in its own area this is done again using Summary LSAs LSA LSA 2 When an receives an AS External LSA it emits ASBR Summary LSAs to all routers Router LSA Network LSA Summary LSA Area 5 Autonomous System Border Router (ASBR) Imports foreign routes via AS External LSA ASBR Summary LSA AS External LSA ASBR OSPF Advanced, v4.4 9 OSPF Advanced, v4.4 Agenda Area Border Router (): Terminates Router LSAs and Network LSAs Forwards Summary LSAs LSA LSA 2 Router LSA Network LSA Summary LSA LSA LSA 2 LSA LSA LSA 2 Area 5 LSA 2 Note: Summary LSAs behaves like Distance Vector updates!!! OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats OSPF Advanced, v4.4 0 OSPF Advanced, v4.4 2 Page 42-5 Page 42-6

Areas and Topology (Single s) R7 Backbone Area, Area Border Router,, R7 Internal Router,, R7 Backbone Router Topology Information Maintained every router knows about exact topology of its own area and hence best paths to all networks of its own network best paths stored in routing table e.g. for -> reachable with cost 0 e.g. for -> reachable with cost 0 of its own area and costs to reach s s stored in separate list e.g. for -> reachable with cost 00 e.g. for -> reachable with cost on activation of a network a corresponding Summary LSA is sent out by the with actual cost in order to reach the network from the given OSPF Advanced, v4.4 3 OSPF Advanced, v4.4 5 OSPF Costs of Best Paths Activation of 00 Routing T. 0 00 Routing T. 00 R7 Routing T. 0 R7 Routing T. R7 Routing T. OSPF Advanced, v4.4 4 OSPF Advanced, v4.4 6 Page 42-7 Page 42-8

-> Summary LSA Calculation R7, Routing T. Routing T. 0 00 00 to S-LSA /24 c0 Routing T. 0 00 Routing T. 00 out S-LSA Table 0 Routing T. 0 in S-LSA Table R7 0 R7 Routing T. R7 in S-LSA Table 0 Routing T. out S-LSA Table 0 Routing T. 0 R7 in Routing T. R7 S-LSA Table R7 0 30 in Routing T. S-LSA Table 0 40 OSPF Advanced, v4.4 7 OSPF Advanced, v4.4 9 Topology Information Actualized If a router receives a Summary LSA the costs announced in this Summary LSA are added to the costs in order to reach the announcing result is stored in routing table If an router receives a Summary LSA from the Backbone the costs announced in this Summary LSA are added to the costs in order to reach the announcing result is stored in routing table a Summary LSA is send out in the other Area with the culminated costs and -ID set to the actual value -> Summary LSA out S-LSA Table 0 Routing T. Routing T. 0 0 00 R7 Routing T. R7 Routing T. 00 40 in S-LSA Table R7 0 to S-LSA /24 c40 30 in S-LSA Table in S-LSA Table 0 Routing T. 40 OSPF Advanced, v4.4 8 OSPF Advanced, v4.4 20 Page 42-9 Page 42-0

Calculation Areas and Topology (Redundant s) Routing T. 0 00 in Routing T. S-LSA Table 00 40 60 out S-LSA Table 0 Routing T. 0 R7 in Routing T. R7 S-LSA Table R7 0 30 in S-LSA Table 0 Routing T. 40 Backbone Area,,, Area Border Router, Internal Router,,, Backbone Router OSPF Advanced, v4.4 2 OSPF Advanced, v4.4 23 Agenda OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats OSPF Costs 00 400 50 OSPF Advanced, v4.4 22 OSPF Advanced, v4.4 24 Page 42- Page 42-2

Activation of -> Summary LSA Routing T. 0 Routing T. 20 Routing T. 00 0 400 50 Routing T. Routing T. OSPF Advanced, v4.4 25 Routing T. 400 50 Routing T. 0 00 to S-LSA /24 c20 Routing T. out Routing T. 400 in Routing T. 50 S-LSA Table 20 S-LSA Table 400 20 0 50 20 out Routing T. in Routing T. S-LSA Table 0 S-LSA Table 0 0 20 OSPF Advanced, v4.4 27 -> Summary LSA Calculation, Routing T. 0 Routing T. 20 00 out Routing T. S-LSA Table 0 0 to S-LSA /24 c0 400 50 Routing T. in Routing T. S-LSA Table 400 0 50 OSPF Advanced, v4.4 26 in Routing T. S-LSA Table 0 Routing T. Routing T. 0 00 out Routing T. 400 in Routing T. 50 S-LSA Table 20 S-LSA Table 400 20 0 50 20 260 out Routing T. in Routing T. S-LSA Table 0 S-LSA Table 0 0 20 40 OSPF Advanced, v4.4 28 Page 42-3 Page 42-4

Best Path to for, -> Summary LSA Routing T. Routing T. 0 00 out Routing T. 400 in Routing T. S-LSA Table 20 50 S-LSA Table 400 20 0 50 20 260 out Routing T. in Routing T. S-LSA Table 0 S-LSA Table 0 0 20 40 OSPF Advanced, v4.4 29 Routing T. 0 00 to S-LSA /24 c260 in Routing T. S-LSA Table 40 260 out Routing T. 400 in Routing T. 50 S-LSA Table 20 S-LSA Table 400 20 0 50 20 260 out Routing T. in Routing T. S-LSA Table 0 S-LSA Table 0 0 20 40 OSPF Advanced, v4.4 3 -> Summary LSA Calculation in Routing T. Routing T. S-LSA Table 0 40 00 out Routing T. 400 in Routing T. 50 S-LSA Table 20 S-LSA Table 400 20 0 50 20 260 out Routing T. in Routing T. S-LSA Table 0 S-LSA Table 0 0 20 40 OSPF Advanced, v4.4 30 to S-LSA /24 c40 Routing T. 0 00 Routing T. out Routing T. 400 in Routing T. 50 S-LSA Table 20 S-LSA Table 400 20 0 50 20 260 out Routing T. in Routing T. S-LSA Table 0 S-LSA Table 0 0 20 40 OSPF Advanced, v4.4 32 in S-LSA Table 40 260 560 Page 42-5 Page 42-6

Best Path to for OSPF Domain with 4 Areas Routing T. Routing T. 0 00 560 Routing T. 400 Routing T. 20 50 400 50 260 Routing T. Routing T. 0 40 OSPF Advanced, v4.4 33 N2 N N4 N Area 3 3 3 2 3 8 R9 N9 2 2 N0 N3 N8 N6 4 N7 OSPF Advanced, v4.4 35 N2 2 8 8 8 N3 8 7 6 6 7 N4 Backbone 8 Area 6 5 0 3 R7 R8 6 2 9 N2 N5 Agenda OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats OSPF Domain with 4 Areas internal routers:, 2, 5, 6, 8, 9, 2 router,2... area router 8... area 2 router 9, 2... area 3 router 5,6... backbone Area Border Routers: 3, 4, 7, 0, router 3, 4... topology of area and backbone router 7, 0. topology of area 2 and backbone router... topology of area 3 and backbone Backbone Routers: 4, 5, 6, 7, 0, router is connected to the backbone (router 0) over a virtual link OSPF Advanced, v4.4 34 OSPF Advanced, v4.4 36 Page 42-7 Page 42-8

OSPF Domain with 4 Areas Autonomous Systems Boundary Routers: 5, 7 additionally, router 5 and 7 provide connections to external Autonomous Systems Router 3/4 Summary LSAs -> Backbone router 3 and 4 have topology map of area Area Border Router 3 and 4 forward network information (costs for reaching internal destinations) as Summary LSAs to the Backbone Area network costs, notified by router 3 costs, notified by router 4 N 4 4 N2 4 4 N3 N4 2 3 OSPF Advanced, v4.4 37 OSPF Advanced, v4.4 39 Backbone Topology Database Router 7 Summary LSAs -> Backbone N N3 N2 4 4 4 4 N 4 3 N0 N9 N4 2 8 3 N2 2 8 N3 8 8 8 6 8 7 6 6 3 5 0 N4 6 2 N2 R7 9 N5 3 5 5 N8 4 N6 N7 7 router 7 has topology map of area 2 Area Border Router 7 forwards network information of area 2 as Summary LSA to the Backbone Area thus, notifying also and network costs, notified by router 7 N6 N7 5 N8 4 OSPF Advanced, v4.4 38 OSPF Advanced, v4.4 40 Page 42-9 Page 42-20

Router 0 Summary LSAs -> Backbone router 0 has topology map of area 2 Area Border Router 0 forwards network information of area 2 as Summary LSA to the Backbone Area thus, notifying also and network costs, notified by router 0 N6 N7 5 N8 3 Router 3/4 SPF Calculation for Backbone router 3 and 4 have topology map of Backbone Area -> router 3 and 4 can calculate SPF to any Area Border Router Area Border Router costs of costs of to * 2 to 22 * to R7 20 4 to 0 5 22 to 8 25 to 4 8 to R7 20 4 OSPF Advanced, v4.4 4 OSPF Advanced, v4.4 43 Router Summary LSAs -> Backbone router has topology map of area 3 Area Border Router forwards network information of area 3 as Summary LSA to the Backbone Area thus, notifying also and network costs, notified by router N9 N0 3 N 4 OSPF Advanced, v4.4 42 Router 3/4 S-LSAs -> router 3 and 4 can calculate best costs to any destinations outside of area by analyzing Summary LSAs of other Area Border Routers and SPF calculations to the backbone routers and notify their own area with Summary-LSA destination costs, notified by router 3 costs, notified by router 4 N6 6 (0) 5 (R7) N7 20 (0) 9 (R7) N8 8 (0) 8 (R7) N9 9 () 26 () N0 2 () 28 () N 22 () 29 () 4 8 R7 20 4 OSPF Advanced, v4.4 44 Page 42-2 Page 42-22

Topology Database of Agenda N2 N N4 N 3 3 N3 2 N0 N9 N8 N7 N6 N2 N3 N4 8 8 8 2 N2 R7 9 N5 OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats 23/30 22/29 9/26 8/8 20/9 6/5 4/8 20/4 costs of router 3 / router 4 OSPF Advanced, v4.4 45 OSPF Advanced, v4.4 47 Routing Tables, these cost-information to any network (provided by Summary LSA of router 3 and 4) outside of area are added to the internal shortest paths to the Area Border Routers and by the internal routers and determination of best paths to any subnet finally best path is noted in routing table best path from, to N6 over with costs of 6 N7 over with costs of 20 N8 over / with costs of 9 (load balancing) N9 over with costs of 20 etc. OSPF Stub Areas normally, every internal router gets information about all networks internal and external NET-IDs OSPF allows definition of Stub Areas to minimize memory requirements of internal routers of non-backbone areas for external networks only the Area Border Router of a particular area knows all external destinations internal routers only get a default route entry (to this Area Border Router) any traffic that do not stay inside the OSPF domain (external networks) is forwarded to the Area Border Router OSPF Advanced, v4.4 46 OSPF Advanced, v4.4 48 Page 42-23 Page 42-24

Stub Area Totally Stubby Area Cisco Specific LSA 2 LSA 2 LSA LSA 2 LSA Router LSA Network LSA Summary LSA ASBR AS External LSA and ASBR Summary LSA are not sent into a Stub Stub Area Area 5 ASBR Summary LSA AS External LSA LSA LSA 2 LSA Router LSA Network LSA Summary LSA Totally Stubby No external or summary LSA are sent into a Totally Stubby Area Area 5 ASBR Summary LSA AS External LSA ASBR OSPF Advanced, v4.4 49 OSPF Advanced, v4.4 5 OSPF Totally Stubby Areas Cisco allows definition of Totally Stubby Areas internal routers follow default route also for networks of other areas (no Summary-LSA) that means for internal networks of other areas In such an area ASBRs are forbidden Agenda OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats OSPF Advanced, v4.4 50 OSPF Advanced, v4.4 52 Page 42-25 Page 42-26

Summary LSA and Route Summarization Summary LSA is generated by Area Border Router to inform routers inside its area about costs of networks from outside (message direction: Backbone Area -> Area) --> import of net-ids routers outside its area about costs of its internal networks (message direction: Area -> Backbone Area) --> export of net-ids additionally Summary Link LSA can be used for Route Summarization several net-ids can be summarized to a single net-id using an appropriate subnet-mask Route Summarization 2 summarization can occur at any place of the IPaddress for instance, many class C addresses can be summarized to one single address (with a prefix) e.g. class C addresses 20..0.0 to 20..255.0 (subnet-mask 255.255.255.0) can be summarized by a single entry 20..0.0 with subnet-mask 255.255.0.0 note: when summarizing several networks, only the lowest costs of all these networks are reported (RFC 583) note2: when summarizing several networks, only the highest costs of all these networks are reported (RFC 2328) OSPF Advanced, v4.4 53 OSPF Advanced, v4.4 55 Route Summarization Route Summarization can be configured manually for Area Border Routers to minimize number of routing table entries to provide decoupling of OSPF areas basically, an OSPF domain allows combining any IP-address with any arbitrary subnet masks Classless Routing no automatic Route Summarization at the IP address class boundary (A,B or C) like RIPv note: RIPv implements Classful Routing Route Summarization 3 OSPF Route Summarization demands a clever assignment of IP-addresses and areas to enable Route Summarization hence OSPF not only forces a star shaped area topology but also demands for a sound IPaddress design note: it is still possible to use arbitrary subnet masks and arbitrary addresses anywhere in the network because of classless routing in conflict cases Longest Match Routing Rule" is applied but this means a bad network design OSPF Advanced, v4.4 54 OSPF Advanced, v4.4 56 Page 42-27 Page 42-28

Example Summarization Virtual Links Efficient OSPF address design requires hierarchical addressing Address plan should support summarization at s 20..0.0/6... 20.254.0.0/6 0 20/8 2/8 2..0.0/6... 2.254.0.0/6 22/8 22..0.0/6... 22.254.0.0/6 Area 30 Another way to connect to area 0 using a pointto-point tunnel Transit area must have full routing information Must not be stub area Bad Design! Virtual Link 0 OSPF Advanced, v4.4 57 OSPF Advanced, v4.4 59 Agenda Virtual Link Example OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats Now router 3.3.3.3 has an interface in area 0 Thus router 3.3.3.3 becomes an Generates summary LSA for network 7.0.0.0/8 into area and area 0 Also summary LSAs in area 2 for all the information it learned from areas 0 and Router... Router 2.2.2.2 Router 3.3.3.3 4.0.0. 5.0.0. 5.0.0.2 6.0.0.2 6.0.0.3 7.0.0.3 OSPF Advanced, v4.4 58 OSPF Advanced, v4.4 60 Page 42-29 Page 42-30

Agenda OSPF Header OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats OSPF Advanced, v4.4 6 VERSION TYPE of the OPSF message... Hello Message 2... Database Description 3... Link Status Request 4... Link Status Update 5... Link Status Ackowledgement ROUTER ID, AREA ID IP - address (largest IP-address or dummy-ip-address) of the router sending this message, and area number AUTHENTICATION TYPE 0... no authentication;... simple password authentication; 2 cryptographic authentication OSPF Advanced, v4.4 63 OSPF Message Formats OSPF Hello Message 0 8 6 3 version type packet length router ID area ID checksum authentication type authentication OSPF Header 0 8 6 24 3 hello interval OSPF header type network mask dead int options designated router backup designated router neighbor IP address... neighbor n IP address rtr. priority OSPF Advanced, v4.4 62 OSPF Advanced, v4.4 64 Page 42-3 Page 42-32

OSPF Hello Message NETWORK MASK network-mask of the network over which this message has been send HELLO INTERVAL amount of time between two Hello messages RTR PRIORITY priority of the sending router; important for determination Designated Router and Backup Router DEAD INT timeout-value to consider a not-replying neighbor-router as being out of order Usage of OSPF Hello Message NEIGHBOUR x IP ADDRESS IP- addresses of neighbour routers that sending Hello messages recently set-up and test reachability of neighbours determination of Designated Routers failure detection (router or link) values for DEAD INT and HELLO INTERVAL directly influences the duration time a router needs to detect failures and furthermore to select a new path (rerouting) OSPF Advanced, v4.4 65 OSPF Advanced, v4.4 67 OSPF Hello Message OSPF Database Description Message OPTIONS T - Bit... router supports Type of Service Routing ToS of IP contains 4 bit (delay, throughput, reliability, cost) -> provides 6 different metrics E - Bit... router sends or receives external information (External Link Advertisements) E - Bit is mechanism for "Tagged External" (marking external routes in the whole area) M - Bit... indicates multicast OSPF (MOSPF) DESIGNATED + BACKUP ROUTER IP-addresses of designated and backup routers (assumed by the sending router for this network segment) LSA Header 0 8 6 24 3 OSPF header type 2 Interface MTU options database sequence number link state ID advertising router link state sequence number zero I M S link state age options LS type link state checksum next LSA header... length OSPF Advanced, v4.4 66 OSPF Advanced, v4.4 68 Page 42-33 Page 42-34

OSPF Database Description Message is used to initialize the topology-database after establishing communication master / slave principle OPTIONS is similar as in OSPF header FLAGS I... first packet of the database description M... further database description packets will follow S... specifies master or slave DATABASE SEQUENCENUMBER indicates successive database description packets OSPF Database Description Message LS types and associated Link State ID: Link State Type: Link State ID:... Router LSA -> ID of source router 2... Network LSA -> IP address of DR 3... Summary LSA -> IP address of destination (IP Network) network 4... Summary LSA -> Router ID of AS (ASBR) Boundary Router 5... AS External LSA -> IP address of destination network OSPF Advanced, v4.4 69 OSPF Advanced, v4.4 7 OSPF Database Description Message LINK STATE AGE describes age of information initially set to zero; increased by one by every forwarding router also increased as database entry until aging-timeout (60 min) expires -> LS is removed LINK STATE (LS) TYPE and LINK STATE ID type identifies LS type (one out of 5 different LS types) type also identifies type of Link State ID and data range of the LSA Description Message contains LSA-header only!!! OSPF Database Description Message usage of LSA types: type is used by any router inside an area; describes Router Link State of a router inside this area (Router-LSA) type 2 is used by Designated Routers inside an area; describes which routers are connected to the same network segment (Network LSA) type 3 are used by Area Border Routers to announce networks outside of the area (Summary LSA), type 4 notifies Autonomous System Boundary Routers (ASBR) type 5 is used by ASBR to announce external networks (outside OSPF domain, Net-IDs of other AS) OSPF Advanced, v4.4 70 OSPF Advanced, v4.4 72 Page 42-35 Page 42-36

OSPF Database Description Message ADVERTISING ROUTER ID of router which generates this state information LINK STATE SEQUENCENUMBER to differentiate successive link state information of a LSA LENGTH length of LSA including LSA-header (depends on type field) further entries only in case of Update Messages (not database description messages) LINK STATE CHECKSUM OPSF Link State Update Message 0 8 6 24 3 OSPF header type 4 number of advertisements link state advertisement (LSA header + LSA info)... OSPF Advanced, v4.4 73 OSPF Advanced, v4.4 75 OPSF Link State Request Message 0 8 6 24 3 OSPF header type 3 link state type link state ID advertising router... OSPF LS Request/Update Message a request message triggers one or more Link State Updates from the neighbour's database neighbour router replies with Link State Update contains LSA-header and associated information -> Link State Advertisement, LSA Link State Update Message is also used to refresh the state information every 30 minutes every Update Message is confirmed with an Acknowledgement Message OSPF Advanced, v4.4 74 OSPF Advanced, v4.4 76 Page 42-37 Page 42-38

OSPF LS Acknowledgement Message 0 8 6 24 3 OSPF header type 5 link state advertisement header... to enable proper confirmation the Link State Acknowledgement Message contains LSA header of the previous Update OSPF Advanced, v4.4 77 Router Link LSA 0 8 6 24 3 OSPF header type 4 #advertisements LSA header with LS type (router link) 0 E B 0 # links link ID link data type # ToS ToS 0 metric ToS 0 metric... next link ID... OSPF Advanced, v4.4 79 Agenda OSPF Advanced Topics Area Principles Summary LSA Operation Example Summary LSA Operation Example 2 Computation Example Stub Areas Route Summarization Virtual Link OSPF Header Details Message Formats LSA Formats OSPF Advanced, v4.4 78 Router Link LSA E-bit state message of AS Boundary Router B-bit state message of Area Border Router # links number of described connections type, link ID, link data see table on next page ToS 0 metric costs of connection if using service class ToS 0 ToS and metric further service class plus cost values OSPF Advanced, v4.4 80 Page 42-39 Page 42-40

Router Link LSA type connection type link ID link data 2 3 4 point-to- point connection to other routers connection to transit network connection to stub network virtual link ID of neighbor router IP address of DR IP address of network ID of neighbor router IP address of router IP address of router subnet mask IP address of router Mapping IP ToS Bits to OSPF ToS Service Classes OSPF ToS D(elay) IP ToS bits T(hroughput) 0 0 0 0 4 0 0 8 0 0 2 0 6 0 0 20 0 24 0 28 R(eliability) OSPF Advanced, v4.4 8 OSPF Advanced, v4.4 83 Meaning of Router Link LSA type describes a neighborhood relation only description of a physical point-to-point line in case of IP-unnumbered lines type 2 to announce network address of a Designated Router of a transit network type 3 to announce network address and subnet mask of a stub network using a point-to-point line with IP numbering, these IPaddresses are also announced as stub network Network Link LSA 0 8 6 24 3 OSPF header type 4 # advertisements LSA header with LS type 2 (network link) network mask attached router... OSPF Advanced, v4.4 82 OSPF Advanced, v4.4 84 Page 42-4 Page 42-42

Network Link LSA generated by Designated Router of a network segment with multiple access (transit network) network mask and connected routers are reported net-id of the transit network can be calculated from the address of the Designated Router (which can be found in the OSPF header) and the subnet mask Summary Link LSA generated by Area Border Router to notify costs to networks outside of its area (message direction: Backbone Area -> Area) (type 3) to networks inside of its area (message direction: Area -> Backbone Area) (type 3) to ASBR or to notify the router-id of the ASBR (type 4, network -ID in header) Summary Link LSA can be additionally used for Route Summarization OSPF Advanced, v4.4 85 OSPF Advanced, v4.4 87 Summary Link LSA AS External Link LSA 0 8 6 24 3 OSPF header type 4 # advertisements LSA header with LS type 3/4 (summary link) ToS network mask... metric 0 8 6 24 3 OSPF header type 4 # advertisements E LSA header with LS type 5 (external link) ToS network mask metric forwarding address external route tag... OSPF Advanced, v4.4 86 OSPF Advanced, v4.4 88 Page 42-43 Page 42-44

AS External Link LSA to announce external networks outside of the Autonomous System (OSPF Domain) generated by ASBR and distributed across the whole OSPF domain note: net-id of external network is found in the OSPF header AS External Link FORWARDING ADDRESS to specify a router (not ASBR) who should receive packets for external targets (0.0.0.0 means ASBR) using Forwarding Address a redirect-hint to another router (than the ASBR) can be specified then this router is used as datagram forwarder for the given network OSPF Advanced, v4.4 89 OSPF Advanced, v4.4 9 AS External Link LSA 2 E - bit: to differentiate type (E) and type 2 (E2) metrics how are these metrics interpreted? E type means: costs can be compared with internal metric; if there exist two ASBR with different costs to the external network, this external costs can be added to the internal to determine the best of both paths AS External Link EXTERNAL ROUTE TAG supports communication between ASBRs by route tagging external networks (net-id of other ASs) external net-ids can be labelled (route tagging) via External Route Tag External Route Tag plays an important role for routing policy (BGP and Internet Service Provider concerns) E2 type means: costs can not be compared with internal metric; only external costs specify the best path OSPF Advanced, v4.4 90 OSPF Advanced, v4.4 92 Page 42-45 Page 42-46