Routing Protocols (RIP, OSPF, BGP)



Similar documents
Distance Vector Routing Protocols. Routing Protocols and Concepts Ola Lundh

Route Discovery Protocols

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

Chapter 4. Distance Vector Routing Protocols

Administrative Distance

Inter-domain Routing. Outline. Border Gateway Protocol

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

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

Routing Protocols. Interconnected ASes. Hierarchical Routing. Hierarchical Routing

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)}

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

IP Routing Configuring RIP, OSPF, BGP, and PBR

Exterior Gateway Protocols (BGP)

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

- Routing Information Protocol -

Introduction to TCP/IP

Configuring RIP. Overview. Routing Update Process CHAPTER

Internet Control Message Protocol (ICMP)

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

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

How To Understand Bg

LAB FOUR Dynamic Routing Protocols

Border Gateway Protocol (BGP-4)

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

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

Router and Routing Basics

GregSowell.com. Mikrotik Routing

- IGRP - IGRP v1.22 Aaron Balchunas

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

CCNA Exploration 4.0: (II) Routing Protocols and Concepts. Chapter 1: Introduction to Routing and Packet Forwarding

Modeling and Simulation of Routing Protocols in the Cloud

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

Internet inter-as routing: BGP

Routing with OSPF. Introduction

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

Border Gateway Protocol (BGP)

BGP overview BGP operations BGP messages BGP decision algorithm BGP states

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

Using the Border Gateway Protocol for Interdomain Routing

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

Transport and Network Layer

Introduction to LAN/WAN. Network Layer

Internetworking and Internet-1. Global Addresses

Internet Packets. Forwarding Datagrams

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

Interconnecting Cisco Networking Devices Part 2

Routing Protocol - BGP

TCP/IP Fundamentals. OSI Seven Layer Model & Seminar Outline

6.263 Data Communication Networks

Understanding Route Redistribution & Filtering

--BGP 4 White Paper Ver BGP-4 in Vanguard Routers

CS335 Sample Questions for Exam #2

APNIC elearning: BGP Basics. Contact: erou03_v1.0

Network Level Multihoming and BGP Challenges

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Link-State Routing Protocols

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

Table of Contents. Cisco How Does Load Balancing Work?

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

: Interconnecting Cisco Networking Devices Part 2 v1.1

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

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

Talk Announcement CSC Lecture 5 Intra-Domain Routing Protocols. Administrivia. This Time

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

Cisco CCNP Optimizing Converged Cisco Networks (ONT)

Lecture 18: Border Gateway Protocol"

Data Networking and Architecture. Delegates should have some basic knowledge of Internet Protocol and Data Networking principles.

Introduction to Dynamic Routing Protocols

HOST AUTO CONFIGURATION (BOOTP, DHCP)

IP Routing Features. Contents

8.2 The Internet Protocol

basic BGP in Huawei CLI

Exercises TCP/IP Networking. Solution. With Solutions

APNIC elearning: BGP Attributes

Route Optimization. rek Petr Grygarek, VSB-TU Ostrava, Routed and Switched Networks 1

BGP Terminology, Concepts, and Operation. Chapter , Cisco Systems, Inc. All rights reserved. Cisco Public

Cisco Configuring Commonly Used IP ACLs

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

Internet Protocol: IP packet headers. vendredi 18 octobre 13

IP - The Internet Protocol

PRASAD ATHUKURI Sreekavitha engineering info technology,kammam

Masterkurs Rechnernetze IN2097

BGP as an IGP for Carrier/Enterprise Networks

CS Computer Networks 1: Routing Algorithms

> Border Gateway Protocol (BGP-4) Technical Configuration Guide. Ethernet Routing Switch. Engineering

NETWORK LAYER/INTERNET PROTOCOLS

Internet inter-as routing: BGP

BGP4 Case Studies/Tutorial

Chapter 4 Network Layer

MPLS VPN Route Target Rewrite

Dynamic Source Routing in Ad Hoc Wireless Networks

Computer Networks Administration Help Manual Sana Saadaoui Jemai Oliver Wellnitz

Cisco Router Configuration Tutorial

Introduction to IP Multicast Routing

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

Evolution of QoS routing in the Internet

Configuring a Gateway of Last Resort Using IP Commands

IP Routing Configuring Static Routes

Computer Networks. Main Functions

Transcription:

Chapter 13 Routing Protocols (RIP, OSPF, BGP) INTERIOR AND EXTERIOR ROUTING RIP OSPF BGP 1 The McGraw-Hill Companies, Inc., 2000 1

Introduction Packets may pass through several networks on their way to destination Each network carries a price tag, or a metric The metric of a network may be: constant (i.e. each network costs one hop) Service type-dependent (the cost of the network depends on what service the packet needs: e.g. throughput, delay,.. etc.) Policy-dependent: a policy defines what paths should, or should not, be followed. The router uses a routing table to determine the path Static vs. Dynamic routing tables. 2 The McGraw-Hill Companies, Inc., 2000 2

13.1 Interior & Exterior Routing Autonomous system: a group of networks and routers under authority of a single administrator 3 The McGraw-Hill Companies, Inc., 2000 3

Popular routing protocols 4 The McGraw-Hill Companies, Inc., 2000 4

13.2 RIP: Routing Information Protocol Distance Vector Routing Share the most you know about the entire autonomous system Share with all your direct neighbors, and them only Share periodically, e.g. every 30 seconds Destination Hop Count Next Hop Other Info 163.5.0.0 7 172.6.23.4 197.5.13.0 5 176.3.6.17 189.45.0.0 4 200.5.1.6 5 The McGraw-Hill Companies, Inc., 2000 5

RIP Updating Algorithm Receive: a response RIP message 1. Add one to the hop count for each advertised destination 2. Repeat for each advertised destination If ( destination is not in my routing table) Add the destination to my table Else If ( next-hop field is the same) Replace existing entry with the new advertised one Else if (advertised hop-count after incrementing- is smaller) Replace existing entry with the new advertised one 6 The McGraw-Hill Companies, Inc., 2000 6

Example of updating a routing table Receive: a response RIP message 1. Add one to the hop count for each advertised destination 2. Repeat for each advertised destination If ( destination is not in my routing table) Add the destination to my table Else If ( next-hop field is the same) Replace existing entry with the new advertised one Else if (advertised hop-count after incrementing- is smaller) Replace existing entry with the new advertised one 7 The McGraw-Hill Companies, Inc., 2000 7

Initial routing tables in a small autonomous system Configuration File Directly attached networks Hop-count = 1 8 The McGraw-Hill Companies, Inc., 2000 8

Final routing tables for the previous autonomous system RIP messages are exchanged Routing tables are updated 9 The McGraw-Hill Companies, Inc., 2000 9

RIP message format 1: Request 2: Response 1 or 2 Address Family Identifier 2: TCP/IP family 12 Bytes up to 25 AFIs Hops from advertising router to dest. network 10 The McGraw-Hill Companies, Inc., 2000 10

RIP Request Messages Sent by a router when booted, or when an entry times-out May request updates for ALL networks, or specific one(s) RIP Response Messages Solicited responding to a previous request Unsolicited (sent periodically to all neighbors) 11 The McGraw-Hill Companies, Inc., 2000 11

Example 1 What is the periodic response sent by router R1? Assume R1 knows about the whole autonomous system. 12 The McGraw-Hill Companies, Inc., 2000 12

RIP Timers Periodic Timer ( 25 < random < 35): controls advertising of update messages. There ONE such timer Expiration Timers: governs route validity. Reset upon receipt of an update. If it ever expires, destination is considered unreachable. Yet, entry is not removed from table, it continues to be advertised with hop count = 16 ( i.e. infinity) Garbage Collection Timers: Reset to 120sec when a route is invalidated. If it expires, the route entry is completely removed from routing table 13 The McGraw-Hill Companies, Inc., 2000 13

Example 2 A routing table has 20 entries. It does not receive information about five routes for 200 seconds. How many timers are running at this time? Solution The timers are listed below: Periodic timer: 1 Expiration timer: 20-5 = 15 Garbage collection timer: 5 14 The McGraw-Hill Companies, Inc., 2000 14

RIP Problems: 1) Slow convergence Network topology changes propagate slowly (avg. 15 sec per hop) Solution: Limit the diameter of an autonomous system to 15 hops. 15 The McGraw-Hill Companies, Inc., 2000 15

RIP Problems: 2) Instability Net1 is disconnected from Router A Router A updates its hop count to 16 Router A waits for 30 seconds before sending it advertisement Router B advertises Net1 (with hop-count =2) to A before A has a chance to advertise that Net1 is disconnected A is fooled and sets its Hop-count to 2+1=3 16 The McGraw-Hill Companies, Inc., 2000 16

Remedies for RIP Instability Triggered Update: Send an immediate update (with hop count =16) whenever a network becomes unreachable, otherwise send periodic updates. Split Horizons: Never sent same information back to the interface it came from 17 The McGraw-Hill Companies, Inc., 2000 17

Remedies for RIP Instability: Poison reverse A variation of Split Horizon. 18 The McGraw-Hill Companies, Inc., 2000 18

RIP-v2 Format: Same length as in RIP-v1 AS number RIP version 2 supports CIDR. RIP messages are encapsulated in a UDP datagram RIP uses the services of UDP on well-known port 520. or prefix useful if 2 AS share a backbone network 19 The McGraw-Hill Companies, Inc., 2000 19

Authentication Protect against unauthorized advertisement First entry (with family type = FFFF) is used for authontication 20 The McGraw-Hill Companies, Inc., 2000 20