1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.

Slides:



Advertisements
Similar presentations
Introduction to OSPF Mark Tinka. Routing and Forwarding  Routing is not the same as Forwarding  Routing is the building of maps Each routing protocol.
Advertisements

Introduction to OSPF.
Lonnie Decker Multiarea OSPF for CCNA Department Chair, Networking/Information Assurance Davenport University, Michigan August 2013 Elaine Horn Cisco Academy.
Designing OSPF Networks
Computer Networks with Internet Technology William Stallings
COMS/CSEE 4140 Networking Laboratory Lecture 05 Salman Abdul Baset Spring 2008.
Nov 11, 2004CS573: Network Protocols and Standards1 IP Routing: OSPF Network Protocols and Standards Autumn
RD-CSY3021 Comparing Routing Protocols. RD-CSY3021 Criteria used to compare routing protocols includes  Time to convergence  Proprietary/open standards.
CCNA 2 v3.1 Module 6.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
CSEE W4140 Networking Laboratory Lecture 5: IP Routing (OSPF and BGP) Jong Yul Kim
Routing.
CS 356: Computer Network Architectures Lecture 12: Dynamic routing protocols: Link State Chapter Xiaowei Yang
1 ECE453 – Introduction to Computer Networks Lecture 10 – Network Layer (Routing II)
Objectives After completing this chapter you will be able to: Describe hierarchical routing in OSPF Describe the 3 protocols in OSPF, the Hello, Exchange.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
ROUTING PROTOCOLS PART II ET4187/ET5187 Advanced Telecommunication Network.
CCNP Network Route OSPF Part -I OSPF: Open Shortest Path First Concept of OSPF: 1. It is a link state routing protocol. 2. There are basically only 2 ISIS.
Open Shortest Path First Protocol (OSPF) Sudarshan Vasudevan
TCP/IP Protocol Suite 1 Chapter 14 Upon completion you will be able to: Unicast Routing Protocols: RIP, OSPF, and BGP Distinguish between intra and interdomain.
Open Shortest Path First (OSPF) -Sheela Anand -Kalyani Ravi -Saroja Gadde.
1 CS 4396 Computer Networks Lab Dynamic Routing Protocols - II OSPF.
1 Routing Protocols. 2 Distributed Routing Protocols Rtrs exchange control info Use it to calculate forwarding table Two basic types –distance vector.
Routing/Routed Protocols. Remember: A Routed Protocol – defines logical addressing. Most notable example on the test – IP A Routing Protocol – fills the.
Unicast Routing Protocols  A routing protocol is a combination of rules and procedures that lets routers in the internet inform each other of changes.
M.Menelaou CCNA2 ROUTING. M.Menelaou ROUTING Routing is the process that a router uses to forward packets toward the destination network. A router makes.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 6 Routing and Routing Protocols.
Lecture 4: Dynamic routing protocols
Code : STM#520-1 Samsung Electronics Co., Ltd. OfficeServ7400 Router Operation Distribution EnglishED01.
Collected By: Mehdi Daneshvar Supervisor: E.M.Kosari.
Routing protocols Basic Routing Routing Information Protocol (RIP) Open Shortest Path First (OSPF)
Instructor & Todd Lammle
© 1999, Cisco Systems, Inc OSPF Overview RFC 2328, 2178, 1583.
Interior Gateway Protocol. Introduction An IGP (Interior Gateway Protocol) is a protocol for exchanging routing information between gateways (hosts with.
© 2002, Cisco Systems, Inc. All rights reserved. 1 Determining IP Routes.
Introduction to OSPF Nishal Goburdhan. Routing and Forwarding Routing is not the same as Forwarding Routing is the building of maps Each routing protocol.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 3 v3.0 Module 2 Single-Area OSPF.
CCNA 3 Week 2 Link State Protocols OSPF. Copyright © 2005 University of Bolton Distance Vector vs Link State Distance Vector –Copies Routing Table to.
1 Module 4: Implementing OSPF. 2 Lessons OSPF OSPF Areas and Hierarchical Routing OSPF Operation OSPF Routing Tables Designing an OSPF Network.
1 of of 35 Single Area OSPF Concepts 3 of 35 OSPF Basics.
Link State Routing NETE0521 Presented by Dr.Apichan Kanjanavapastit.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
7400 Samsung Confidential & Proprietary Information Copyright 2006, All Rights Reserved. -0/35- OfficeServ 7x00 Enterprise IP Solutions Quick Install Guide.
 Development began in 1987  OSPF Working Group (part of IETF)  OSPFv2 first established in 1991  Many new features added since then  Updated OSPFv2.
Routing and Routing Protocols
Chapter 14 1 Unicast Routing Protocols There isn’t a person anywhere that isn’t capable of doing more than he thinks he can. - Henry Ford.
Open Shortest Path First (OSPF)
1 Version 3.1 Module 6 Routed & Routing Protocols.
Dynamic Routing Protocols II OSPF
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
LINK STATE ROUTING PROTOCOLS Dr. Rocky K. C. Chang 22 November
© 2009 Cisco Systems, Inc. All rights reserved. ROUTE v1.0—3-1 Implementing a Scalable Multiarea Network OSPF-Based Solution Planning Routing Implementations.
CCNP Routing Semester 5 Chapter 4 OSPF.
1 24-Feb-16 S Ward Abingdon and Witney College OSPF CCNA Exploration Semester 2 Chapter 11.
Single Area OSPF Module 2, Review How routing information is maintained Link-state routers apply the Dijkstra shortest path first algorithm against.
Open Shortest Path First (OSPF) Uses Link State routing Each node acquires complete topology information using link state updates Link-state - what it.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
1 CMPT 471 Networking II OSPF © Janice Regan,
Dynamic Routing Protocols II OSPF
Link State Routing protocol
OSPF (Open Shortest Path First)
Dynamic routing Routing Algorithm (Dijkstra / Bellman-Ford) – idealization All routers are identical Network is flat. Not true in Practice Hierarchical.
Dynamic Routing Protocols part2
13.3 OSPF: Open Shortest Path First.
Routing.
Link State Algorithm Alternative to distance-vector
Dynamic Routing Protocols II OSPF
Dynamic Routing and OSPF
Dynamic Routing Protocols part2
Routing.
Presentation transcript:

1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF

2 Distance Vector vs. Link State Routing With distance vector routing, each node has information only about the next hop: Node A: to reach F go to B Node B: to reach F go to D Node D: to reach F go to E Node E: go directly to F Distance vector routing makes poor routing decisions if directions are not completely correct (e.g., because a node is down). If parts of the directions incorrect, the routing may be incorrect until the routing algorithms has re-converged. A A B B C C D D E E F F

3 Distance Vector vs. Link State Routing In link state routing, each node has a complete map of the topology If a node fails, each node can calculate the new route Difficulty: All nodes need to have a consistent view of the network A A B B C C D D E E F F ABC DE F ABC DE F ABC DE F ABC DE F ABC DE F ABC DE F

4 Link State Routing: Properties Each node requires complete topology information Link state information must be flooded to all nodes Guaranteed to converge

5 Link State Routing: Basic princples 1. Each router establishes a relationship (“adjacency”) with its neighbors 2.Each router generates link state advertisements (LSAs) which are distributed to all routers LSA = (link id, state of the link, cost, neighbors of the link) 3. Each router maintains a database of all received LSAs (topological database or link state database), which describes the network as a graph with weighted edges 4. Each router uses its link state database to run a shortest path algorithm (Dijikstra’s algorithm) to produce the shortest path to each network

6 Operation of a Link State Routing protocol Received LSAs IP Routing Table Dijkstra’s Algorithm Link State Database LSAs are flooded to other interfaces

7 Dijkstra’s Shortest Path Algorithm for a Graph Input: Graph (N,E) with N the set of nodes and E the set of edges d vw link cost (d vw = infinity if (v,w)  E, d vv = 0) s source node. Output : D n cost of the least-cost path from node s to node n M = {s}; for each n  M D n = d sn ; while (M  all nodes) do Find w  M for which D w = min{D j ; j  M}; Add w to M; for each n  M D n = min w [ D n, D w + d wn ]; Update route; enddo

8 OSPF OSPF = Open Shortest Path First The OSPF routing protocol is the most important link state routing protocol on the Internet The complexity of OSPF is significant History: –1989: RFC 1131 OSPF Version 1 –1991: RFC 1247 OSPF Version 2 –1994: RFC 1583 OSPF Version 2 (revised) –1997: RFC 2178 OSPF Version 2 (revised) –1998: RFC 2328 OSPF Version 2 (current version)

9 Features of OSPF Provides authentication of routing messages Enables load balancing by allowing traffic to be split evenly across routes with equal cost Type-of-Service routing allows to setup different routes dependent on the TOS field Supports subnetting Supports multicasting Allows hierarchical routing

10 Example Network Router IDs are selected independent of interface addresses Link costs are called Metric Metric is in the range [0, 2 16 ] Metric can be asymmetric

11 Link State Advertisement (LSA) The LSA of router is as follows: Link State ID: = Router ID Advertising Router: = Router ID Number of links: 3 = 2 links plus router itself Description of Link 1: Link ID = , Metric = 4 Description of Link 2: Link ID = , Metric = 3 Description of Link 3: Link ID = , Metric = Each router sends its LSA to all routers in the network (using a method called reliable flooding)

12 Network and Link State Database Each router has a database which contains the LSAs from all other routers

13 Link State Database The collection of all LSAs is called the link-state database Each router has an identical link-state database –Useful for debugging: Each router has a complete description of the network If neighboring routers discover each other for the first time, they will exchange their link-state databases The link-state databases are synchronized using reliable flooding

14 OSPF Packet Format Destination IP: neighbor’s IP address or (ALLSPFRouters) or (AllDRouters) TTL: set to 1 (in most cases) OSPF packets are not carried as UDP payload! OSPF has its own IP protocol number: 89

15 OSPF Packet Format 2: current version is OSPF V2 Message types: 1: Hello (tests reachability) 2: Database description 3: Link Status request 4: Link state update 5: Link state acknowledgement ID of the Area from which the packet originated Standard IP checksum taken over entire packet 0: no authentication 1: Cleartext password 2: MD5 checksum (added to end packet) Authentication passwd = 1: 64 cleartext password Authentication passwd = 2: 0x0000 (16 bits) KeyID (8 bits) Length of MD5 checksum (8 bits) Nondecreasing sequence number (32 bits) Prevents replay attacks

16 OSPF LSA Format LSA Header Link 1 Link 2

17 Discovery of Neighbors Routers multicasts OSPF Hello packets on all OSPF-enabled interfaces. If two routers share a link, they can become neighbors, and establish an adjacency After becoming a neighbor, routers exchange their link state databases Scenario: Router restarts

18 Neighbor discovery and database synchronization Sends empty database description Scenario: Router restarts Discovery of adjacency Sends database description. (description only contains LSA headers) Database description of Acknowledges receipt of description After neighbors are discovered the nodes exchange their databases

19 Regular LSA exchanges explicitly requests each LSA from sends requested LSAs has more recent value for and sends it to (with higher sequence number)

20 Routing Data Distribution LSA-Updates are distributed to all other routers via Reliable Flooding Example: Flooding of LSA from LSA Update database ACK LSA ACK LSA Update database ACK Update database

21 Dissemination of LSA-Update A router sends and refloods LSA-Updates, whenever the topology or link cost changes. (If a received LSA does not contain new information, the router will not flood the packet) Exception: Infrequently (every 30 minutes), a router will flood LSAs even if there are not new changes. Acknowledgements of LSA-updates: explicit ACK, or implicit via reception of an LSA-Update Question: If a new node comes up, it could build the database from regular LSA-Updates (rather than exchange of database description). What role do the database description packets play?

Relates to Lab 4. This module covers additional details on the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols III More OSPF

Functional Requirements of OSPF Fast convergence and low consumption of network resources A descriptive routing metric –Configurable –Value ranges between 1 and 65,535 –No restriction on network diameters (RIP has a limit of 15) Equal-cost multipath –A way to do load balancing

Functional Requirements of OSPF Routing Hierarchy –Support large routing domains Separate internal and external routes Support of flexible subnetting schemes –Route to arbitrary [address,mask] combinations using variable length subnet masks (VLSMs) Security Type of Service Routing

OSPF Basics (The Essence) Distributed, replicated database model –Describes complete routing topology Link State Advertisements (LSAs, sometimes called Link State Announcements) –Carry local piece of routing topology Distribution of LSAs using reliable flooding Link state database –Identical for all the routers

OSPF Packet Format Destination IP: neighbor’s IP address or (ALLSPFRouters) or (AllDRouters) TTL: set to 1 (in most cases) OSPF packets are not carried as UDP payload! OSPF has its own IP protocol number: 89

OSPF Packet Format 2: current version is OSPF V2 Message types: 1: Hello (tests reachability) 2: Database description 3: Link Status request 4: Link state update 5: Link state acknowledgement ID of the Area from which the packet originated Standard IP checksum taken over entire packet 0: no authentication 1: Cleartext password 2: MD5 checksum (added to end packet) Authentication passwd = 1: 64 cleartext password Authentication passwd = 2: 0x0000 (16 bits) KeyID (8 bits) Length of MD5 checksum (8 bits) Nondecreasing sequence number (32 bits) Prevents replay attacks

OSPF LSA Format LSA Header Link 1 Link 2

LSAs (1) Identifying LSAs –LS type field –Link State ID field Mostly carries addressing information E.g. IP address of externally reachable network –Advertising Router field Originating router’s OSPF router ID

LSAs (2) Identifying LSA instances –Needed to update self-originated LSAs –LS Sequence Number field 32 bit values Monotonically increasing until some max value 600 years to roll over! LSA checksum and LS Age guard against potential problems

LSAs (3) Verifying LSA contents –LS Checksum field Computed by the originating router and left unchanged thereafter LS age field not included in checksum Removing LSAs from databases –LS Age field Ranges from 0 to 30 min. Max Age LSAs used to delete outdated LSAs

LSAs (4) Other LSA Header fields –Options field Sometimes used to give special treatment during flooding or routing calculations –Length field Includes LSA header and contents Ranges from bytes

Link State Database Collection of all OSPF LSAs Databases exchanged between neighbors Synchronization thru reliable flooding Gives the complete routing topology Each OSPF router has identical link-state database

Reliable Flooding Robustness –Updates flooded over all the links, so failure of any link does not affect database synchronization –LSAs refreshed every 30 minutes –LSA checksum field detects corruption –Flooding loops avoided by LS Age field –MinLSInterval limits rate of LSA origination –Receivers can refuse to accept LSA updates if they received an update less than a second ago

Routing Calculations Link costs configurable by administrator Smaller values for more preferred links Must make sense to add link costs Different costs for each link direction possible Dijkstra’s shortest path algorithm –Incrementally calculates tree of shortest paths –Each link in the network examined once –Computes multiple shortest paths (equal-cost multipath)

IP Multicast to Send/Receive Changes Multi-Access networks –All routers must accept packets sent to the AllSPFRouters ( ) address –All Designated Router (DR) and Backup Designated Router (BDR) must accept packets sent to the AllDRouters ( ) address Hello packets are sent to the AllSPFRouters address (Unicast for point-to-point and virtual links)

Hierarchical Routing Technique used to build large networks Minimizes consumption of network resources: –Router memory –Router computing resources –Link bandwidth Flat Routing: linear increase in routing table size Hierarchical Routing: size increases logarithmically

An Example of Hierarchical Routing (1) / / / /16

An Example of Hierarchical Routing (2) Consider a router in Assume 16 entries in each of the first level partitions With flat routing, 9*16 = 144 entries/router With 3 level hierarchy, the router has 16 entries within /24 + entries for /24, /24, /16 and /16 for a total of 20 entries. Significant reduction in routing table size But might lead to suboptimal routing

Two-level hierarchical routing scheme through the use of areas Areas identified by 32-bit id Each area has its own link state database which is a collection of network-LSAs and router-LSAs Area’s topology hidden from all other areas Interconnection of areas through area border routers (ABRs) ABR leaks IP addressing information to other areas through summary LSAs OSPF Areas

Reduction in link state databases of an area Reduction in amount of flooding traffic needed for synchronization Reduction in the cost of the shortest path calculations Increased robustness

Area Organization All the areas are connected to area also called the Backbone Area Need not have a direct physical connection though –Virtual links provide logical link to backbone –Summary LSAs tunneled across non backbone areas Exchange of routing information between areas using Distance Vector Protocol –Absence of redundant paths between areas –Not subject to convergence problems

OSPF Areas Group of nodes/networks Per area topology DB –Invisible outside the area –Reduces routing traffic Backbone Area is contiguous –All others areas must connect to the backbone Virtual Links Area 1 Area 4 Area 0 Backbone Area Area 2 Area 3

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

OSPF Route Types Intra-Area Route –All routes within an area Inter-Area Route –Routes announced from area to another by an ABR External Route –Routes imported into OSPF from another protocol or Static routes Area 0 Area 2 Area 3 ABR To Another AS ASBR

Inter-Area Route Summarization Prefix or all subnets Prefix or all networks 1.A1.B1.C FDDI Dual Ring R1 (ABR) R2 Network 1 Next Hop R1 Network 1.A 1.B 1.C Next Hop R1 With Summarization Without Summarization Backbone Area 0 Area 1

External Routes Redistributed into OSPF Flooded without changes throughout the AS OSPF supports two type of external metrics –Type 1 –Type 2 (Default) RIP IGRP EIGRP BGP etc. OSPF Redistribute

Topology/Links-State DB A router has a separate DB for each area it belongs to All routers within an area have an identical DB SPF calculation is done separately for each area LSA flooding is limited to the particular area

Protocol Functionality Bringing up adjacencies LSA Types Area Classification

The Hello Protocol Responsible to establish and maintain neighbor relationships Elects designated router in multi-access networks FDDI Dual Ring Hello

Designated Router (DR) One per multi-access network Generates network links advertisements Assists in DB synchronization Designated Router Backup Designated Router

Designated Router by Priority Configured priority (per interface) Otherwise determined by the highest router ID R2 Router ID = R1 Router ID = DR

Neighbor States 2-way –The router sees itself in other Hello packets –DR is selected from neighbors in state 2-way or greater DRBDR 2-way

Neighbor States Full –Routers are fully adjacent –DB is synchronized –Relationship to the DR and BDR DRBDR Full

When to Become Adjacent Underlying network is point-to-point Underlying network type is virtual link The router itself is the DR The router itself is the BDR The neighboring router is the DR The neighboring router is the BDR

LSAs Propagate Along Adjacencies LSAs acknowledged along adjacencies DRBDR

Different Types of LSAs Five LSA types –Type 1 : Router LSA –Type 2 : Network LSA –Type 3 y 4:Summary LSA –Type 5 y 7:External LSA

Router LSA (Type 1) Describes the state and cost of the router’s link to the area All the router’s links in an area must be described in a single LSA Flooded throughout the particular area and not beyond Router indicates whether it is an ASBR, ABR, or the end point of a virtual link

Network LSA (Type 2) Generated for every transit broadcast or NBMA network Describes all the routers attached to the network Only the DR originates this type of LSA Flooded throughout the area and not beyond

Summary LSA (Type 3 y 4) Describes a destination outside the area but still within the AS Flooded throughout a single area Originated by an ABR Only intra-area routes are advertised into the backbone (Area 0) Type 4 is the information about the ASBR

External LSA (Type 5) Defines routes to destinations outside the AS Default route is also sent as external Two Types of external LSA: E1: Considers the total cost of to the external destination E2: Considers only the cost of the outgoing interface to the external destination

Issues not covered OSPF Network Types –Broadcast subnets –NBMA Subnets OSPF Extensions Multicast Routing using OSPF (MOSPF) OSPF Management and a whole lot of others!

Further Reading John T. Moy, OSPF - An Anatomy of an Internet Routing Protocol Christian Huitema, Routing in the Internet RFC 2178