Dynamic Routing Protocols II OSPF. Distance Vector vs. Link State Routing



Similar documents
OSPF Version 2 (RFC 2328) Describes Autonomous Systems (AS) topology. Propagated by flooding: Link State Advertisements (LSAs).

Route Discovery Protocols

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Link-State Routing Protocols

Routing with OSPF. Introduction

Outline. Internet Routing. Alleviating the Problem. DV Algorithm. Routing Information Protocol (RIP) Link State Routing. Routing algorithms

Based on Computer Networking, 4 th Edition by Kurose and Ross

Inter-domain Routing. Outline. Border Gateway Protocol

GregSowell.com. Mikrotik Routing

CSE331: Introduction to Networks and Security. Lecture 8 Fall 2006

Introduction to TCP/IP

Routing Protocols OSPF CHAPTER. The following topics describe supported routing protocols. Topics include OSPF, page 9-1 IS-IS Protocol, page 9-3

Advanced Networking Routing: RIP, OSPF, Hierarchical routing, BGP

6.263 Data Communication Networks

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

Chapter 10 Link-State Routing Protocols

Layer 3 Routing User s Manual

Outline. EE 122: Interdomain Routing Protocol (BGP) BGP Routing. Internet is more complicated... Ion Stoica TAs: Junda Liu, DK Moon, David Zats

Lecture 12: Link-state Routing"

Internet Control Message Protocol (ICMP)

Routing in Small Networks. Internet Routing Overview. Agenda. Routing in Large Networks

CS335 Sample Questions for Exam #2

Lecture 8: Routing I Distance-vector Algorithms. CSE 123: Computer Networks Stefan Savage

CS Computer Networks 1: Routing Algorithms

IP Multicasting. Applications with multiple receivers

Question 1. [7 points] Consider the following scenario and assume host H s routing table is the one given below:

OSPF Routing Protocol

Routing Protocols (RIP, OSPF, BGP)

Border Gateway Protocol (BGP-4)

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

Configuring a Gateway of Last Resort Using IP Commands

Inter-domain Routing Basics. Border Gateway Protocol. Inter-domain Routing Basics. Inter-domain Routing Basics. Exterior routing protocols created to:

Example: Advertised Distance (AD) Example: Feasible Distance (FD) Example: Successor and Feasible Successor Example: Successor and Feasible Successor

Cisco Configuring Commonly Used IP ACLs

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Router and Routing Basics

Textbook Required: Cisco Networking Academy Program CCNP: Building Scalable Internetworks v5.0 Lab Manual.

Module 7. Routing and Congestion Control. Version 2 CSE IIT, Kharagpur

BGP: Border Gateway Protocol

DG Forwarding Algorithm

: Interconnecting Cisco Networking Devices Part 1 v2.0 (ICND1)

Border Gateway Protocol (BGP)

Chapter 4. Distance Vector Routing Protocols

Computer Networks. Main Functions

Exterior Gateway Protocols (BGP)

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

Networking. Palo Alto Networks. PAN-OS Administrator s Guide Version 6.0. Copyright Palo Alto Networks

Active measurements: networks. Prof. Anja Feldmann, Ph.D. Dr. Nikolaos Chatzis Georgios Smaragdakis, Ph.D.

Telematics. 9th Tutorial - IP Model, IPv6, Routing

O /27 [110/129] via , 00:00:05, Serial0/0/1

IP Routing Configuring RIP, OSPF, BGP, and PBR

Lesson 5-3: Border Gateway Protocol

Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

IP - The Internet Protocol

Network layer: Overview. Network layer functions IP Routing and forwarding

IP Addressing. IP Addresses. Introductory material.

Internet Infrastructure Security

Lecture 13: Distance-vector Routing. Lecture 13 Overview. Bellman-Ford Algorithm. d u (z) = min{c(u,v) + d v (z), c(u,w) + d w (z)}

Computer Networks Administration Help Manual Sana Saadaoui Jemai Oliver Wellnitz

MPLS Basics. For details about MPLS architecture, refer to RFC 3031 Multiprotocol Label Switching Architecture.

Lecture 2.1 : The Distributed Bellman-Ford Algorithm. Lecture 2.2 : The Destination Sequenced Distance Vector (DSDV) protocol

Using the Border Gateway Protocol for Interdomain Routing

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

Simulation of Heuristic Usage for Load Balancing In Routing Efficiency

: Interconnecting Cisco Networking Devices Part 2 v1.1

Interconnecting Cisco Networking Devices Part 2

ITRI CCL. IP Routing Primer. Paul C. Huang, Ph.D. ITRI / CCL / N300. CCL/N300; Paul Huang 1999/6/2 1

Introduction to LAN/WAN. Network Layer (part II)

PRASAD ATHUKURI Sreekavitha engineering info technology,kammam

RIP: Routing Information Protocol

Routing and Packet Forwarding

Interconnecting Cisco Network Devices 1 Course, Class Outline

IP Addressing Introductory material.

Network Configuration Example

CCNA 2 v5.0 Routing Protocols Final Exam Answers

Introduction to LAN/WAN. Network Layer

21.4 Network Address Translation (NAT) NAT concept

RIP: Routing Information Protocol

Cisco Router Configuration Tutorial

CCNP CISCO CERTIFIED NETWORK PROFESSIONAL LAB MANUAL

The Internet. Internet Technologies and Applications

Configuring RIP. Overview. Routing Update Process CHAPTER

Routing. An Engineering Approach to Computer Networking

DEMYSTIFYING ROUTING SERVICES IN SOFTWAREDEFINED NETWORKING

Internet inter-as routing: BGP

Using OSPF in an MPLS VPN Environment

10CS64: COMPUTER NETWORKS - II

Comparison of RIP, EIGRP, OSPF, IGRP Routing Protocols in Wireless Local Area Network (WLAN) By Using OPNET Simulator Tool - A Practical Approach

Introduction to Link State Protocols

Introduction to ISIS. ISP/IXP Workshops

How To Learn Cisco Cisco Ios And Cisco Vlan

Internet Protocol Version 6 (IPv6)

Internetworking and Internet-1. Global Addresses

Tomás P. de Miguel DIT-UPM. dit UPM

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Border Gateway Protocol BGP4 (2)

CHAPTER 10 IP MULTICAST

Faculty of Engineering Computer Engineering Department Islamic University of Gaza Network Chapter# 19 INTERNETWORK OPERATION

Transcription:

Dynamic Routing Protocols II OSPF Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. 1 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. 2 1

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 3 Link State Routing: Properties Each node requires complete topology information Link state information must be flooded to all nodes Guaranteed to converge 4 2

Link State Routing: Basic princples 1. Each router establishes a relationship ( adjacency ) with its neighbors 2.Each router generates link state advertisements (s) which are distributed to all routers = (link id, state of the link, cost, neighbors of the link) 3. Each router maintains a database of all received s (topological database or link state database), which describes the network has 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 5 Operation of a Link State Routing protocol Received s Link State Database Dijkstra s Algorithm IP Routing Table s are flooded to other interfaces 6 3

Dijkstra s Shortest Path Algorithm for a Graph Input: Graph (N,E) with N the set of nodes and E N N the set of edges d vw link cost (d vw = infinity if (v,w) ˇ E, d vv = 0) s Output: D n source node. 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 7 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: RFC1247 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) 8 4

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 9 Example Network 10.10.10.1 10.10.10.2 10.10.10.4 10.10.10.6 4 2 1.1.2.2.4.4.6 10.1.1.0 / 24 10.1.4.0 / 24 10.1.7.0 / 24.1.2.4.6 IDs are selected independent of interface addresses Link costs are called Metric 10.1.2.0 / 24 Metric is in the range [0, 2 16 ] 3 2 10.1.0 / 24 5.5 10.1.6.0 / 24 10.1.5.0/24 10.10.10.2 10.10.10.5 3.5.5 1 10.1.8.0 / 24 Metric can be asymmetric 10 5

Link State Advertisement () The of router 10.10.10.1 is as follows: Link State ID: 10.10.10.1 = ID Advertising : 10.10.10.1 = ID Number of links: 3 = 2 links plus router itself 10.10.10.1 Description of Link 1: Link ID = 10.1.1.1, Metric = 4 Description of Link 2: Link ID = 10.1.2.1, Metric = 3 Description of Link 3: Link ID = 10.10.10.1, Metric = 0.1.1.2.2 10.1.1.0 / 24 3 10.1.2.0 / 24 4 10.10.10.2 2.2 10.1.0 / 24 10.10.10 10.1.4.0 / 24 10.1.5.0/24 Each router sends its to all routers in the network (using a method called reliable flooding) 11 Network and Link State Database 10.10.10.1 10.10.10.2 10.10.10.4 10.10.10.6.1.2.2.4.4.6 10.1.1.0 / 24 10.1.4.0 / 24 10.1.7.0 / 24.1.2.4.6 Each router has a database which contains the s from all other routers 10.1.2.0 / 24 10.1.0 / 24.5 10.1.5.0/24 10.1.6.0 / 24.5.5 10.1.8.0 / 24 10.10.10.2 10.10.10.5 LS Type Link StateID Adv. Checksum LS SeqNo LS Age - 10.1.10.1 10.1.10.1 0x9b47 0x80000006 0-10.1.10.2 10.1.10.2 0x219e 0x80000007 1618-10.1.10 10.1.10 0x6b53 0x80000003 1712-10.1.10.4 10.1.10.4 0xe39a 0x8000003a 20-10.1.10.5 10.1.10.5 0xd2a6 0x80000038 18-10.1.10.6 10.1.10.6 0x05c3 0x80000005 1680 12 6

Link State Database The collection of all s is called the link-state database Each router has and 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 13 OSPF Packet Format IP header OSPF Message OSPF packets are not carried as UDP payload! OSPF has its own IP protocol number: 89 OSPF Message Header Message Type Specific Data Body of OSPF Message...... TTL: set to 1 (in most cases) Header Data Destination IP: neighbor s IP address or 224.0.0.5 (ALLSPFs) or 224.0.0.6 (AllDs ) 14 7

OSPF Packet Format 2: current version is OSPF V2 OSPF Message Header Message types: 1: Hello (tests reachability) 2: Database description 3: Link Status request 4: Link state update 5: Link state acknowledgement Standard IP checksum taken over entire packet Body of OSPF Message version type message length source router IP address Area ID checksum authentication type authentication authentication 32 bits ID of the Area from which the packet originated 0: no authentication 1: Cleartext password 2: MD5 checksum (added to end packet) Authentication passwd = 1: Authentication passwd = 2: 64 cleartext password 0x0000 (16 bits) KeyID (8 bits) Length of MD5 checksum (8 bits) Nondecreasing sequence number (32 bits) Prevents replay attacks 15 OSPF Format Link Age Link Type Header Data Header Link State ID advertising router link sequence number checksum length Link ID Link 1 Link 2 Link Data Link Type #TOS metrics Link ID Link Data Link Type #TOS metrics Metric Metric 16 8

Discovery of Neighbors s multicasts OSPF Hello packets on all OSPF-enabled interfaces. If two routers share a link, they can become neighbors, and establish an adjacency 10.1.10.1 10.1.10.2 OSPF Hello Scenario: 10.1.10.2 restarts OSPF Hello: I heard 10.1.10.2 After becoming a neighbor, routers exchange their link state databases 17 Neighbor discovery and database synchronization Scenario: 10.1.10.2 restarts 10.1.10.1 10.1.10.2 Discovery of adjacency OSPF Hello OSPF Hello: I heard 10.1.10.2 After neighbors are discovered the nodes exchange their databases Sends database description. (description only contains headers) Acknowledges receipt of description Database Description: Sequence = X Database Description: Sequence = X, 5 headers = -, 10.1.10.1, 0x80000006 -, 10.1.10.2, 0x80000007 -, 10.1.10, 0x80000003 -, 10.1.10.4, 0x8000003a -, 10.1.10.5, 0x80000038 -, 10.1.10.6, 0x80000005 Database Description: Sequence = X+1, 1 header= -, 10.1.10.2, 0x80000005 Database Description: Sequence = X+1 Sends empty database description Database description of 10.1.10.2 18 9

Regular exchanges 10.1.10.1 10.1.10.2 10.1.10.1 sends requested s Link State Request packets, s = -, 10.1.10.1, -, 10.1.10.2, -, 10.1.10, -, 10.1.10.4, -, 10.1.10.5, -, 10.1.10.6, Link State Update Packet, s = -, 10.1.10.1, 0x80000006 -, 10.1.10.2, 0x80000007 -, 10.1.10, 0x80000003 -, 10.1.10.4, 0x8000003a -, 10.1.10.5, 0x80000038 -, 10.1.10.6, 0x80000005 Link State Update Packet, = -, 10.1.1.6, 0x80000006 10.1.10.2 explicitly requests each from 10.1.10.1 10.1.10.2 has more recent value for 10.0.1.6 and sends it to 10.1.10.1 (with higher sequence number) 19 Routing Data Distribution -Updates are distributed to all other routers via Reliable Flooding Example: Flooding of from 10.10.10.1 10.10.10.1 10.10.10.2 10.10.10.4 10.10.10.6 Update database Update database Update database Update database Update database 10.10.10.2 10.10.10.5 20 10

Dissemination of -Update A router sends and refloods -Updates, whenever the topology or link cost changes. (If a received does not contain new information, the router will not flood the packet) Exception: Infrequently (every 30 minutes), a router will flood s even if there are not new changes. Acknowledgements of -updates: explicit, or implicit via reception of an -Update Question: If a new node comes up, it could build the database from regular -Updates (rather than exchange of database description). What role do the database description packets play? 21 Autonomous Systems An autonomous system is a region of the Internet that is administered by a single entity. Examples of autonomous regions are: UVA s campus network MCI s backbone network Regional Internet Service Provider Routing is done differently within an autonomous system (intradomain routing) and between autonomous system (interdomain routing). 22 11

Autonomous Systems (AS) Ethernet Ethernet Autonomous System 1 Ethernet Ethernet Ethernet Autonomous System 2 Ethernet 23 BGP BGP = Border Gateway Protocol Currently in version 4 Note: In the context of BGP, a gateway is nothing else but an IP router that connects autonomous systems. Interdomain routing protocol for routing between autonomous systems Uses TCP to send routing messages BGP is neither a link state, nor a distance vector protocol. Routing messages in BGP contain complete routes. Network administrators can specify routing policies 24 12

BGP BGP s goal is to find any path (not an optimal one). Since the internals of the AS are never revealed, finding an optimal path is not feasible. For each autonomous system (AS), BGP distinguishes: local traffic = traffic with source or destination in AS transit traffic = traffic that passes through the AS Stub AS = has connection to only one AS, only carry local traffic Multihomed AS = has connection to >1 AS, but does not carry transit traffic Transit AS = has connection to >1 AS and carries transit traffic 25 BGP AS 1 AS 2 AS 3 AS 4 26 13