ETSF05/ETSF10 Internet Protocols Routing on the Internet

Similar documents
ETSF05/ETSF10 Internet Protocols. Routing on the Internet

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

Chapter 12. Routing and Routing Protocols 12-1

Lecture 4 Wide Area Networks - Routing

Data and Computer Communications. Chapter 12 Routing in Switched Networks

William Stallings Data and Computer Communications. Chapter 10 Packet Switching

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm

Routing. Advanced Computer Networks: Routing 1

Routing Unicast routing protocols

Routing, Routing Algorithms & Protocols

Routing in packet-switching networks

CS555, Spring /5/2005. April 12, 2005 No classes attend Senior Design Projects conference. Chapter 4 roadmap. Internet AS Hierarchy

Routing. Jens A Andersson Communication Systems

Routing. 4. Mar INF-3190: Switching and Routing

Course Routing Classification Properties Routing Protocols 1/39

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2017

CSCE 463/612 Networks and Distributed Processing Spring 2018

William Stallings Data and Computer Communications 7 th Edition. Chapter 12 Routing

Routing Strategies. Fixed Routing. Fixed Flooding Random Adaptive

This Lecture. BUS Computer Facilities Network Management. Switching Network. Simple Switching Network

Network Routing. Packet Routing, Routing Algorithms, Routers, Router Architecture

Module 8. Routing. Version 2 ECE, IIT Kharagpur

CSc 450/550 Computer Networks Internet Routing

Lecture (08, 09) Routing in Switched Networks

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

Routing in Switched Data Networks

Computer Networking Introduction

Routing. Routing. Overview. Overview. Routing vs. Forwarding. Why Routing

Alternate Routing Diagram

Chapter 7 Routing Protocols

Why dynamic route? (1)

Lecture 12. Introduction to IP Routing. Why introduction? Routing

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load

Chapter 4: outline. Network Layer 4-1

Chapter 22 Network Layer: Delivery, Forwarding, and Routing 22.1

Chapter 4: Network Layer

Basic Idea. Routing. Example. Routing by the Network

ICS 351: Today's plan. OSPF BGP Routing in general

Routing by the Network

Routing Protocols. The routers in an internet are responsible for receiving and. forwarding IP datagrams through the interconnected set of

IP Routing. Bharat S. Chaudhari International Institute of Information Technology Pune, India

Chapter 4: Network Layer. Lecture 12 Internet Routing Protocols. Chapter goals: understand principles behind network layer services:

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

CS 457 Networking and the Internet. Shortest-Path Problem. Dijkstra s Shortest-Path Algorithm 9/29/16. Fall 2016

Overview 4.2: Routing

EECS 122, Lecture 16. Link Costs and Metrics. Traffic-Sensitive Metrics. Traffic-Sensitive Metrics. Static Cost Metrics.

To contain/reduce broadcast traffic, we need to reduce the size of the network (i.e., LAN).

Chapter 4: Network Layer, partb

Topics for This Week

Lecture 4. The Network Layer (cont d)

Unit 3: Dynamic Routing

Routing in the Internet

Network Layer: Routing

ICS 351: Today's plan. distance-vector routing game link-state routing OSPF

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms

CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL

Initial motivation: 32-bit address space soon to be completely allocated. Additional motivation:

Routing. Directly Connected IP Networks. Data link layer routing. ifconfig command

ICMP, ARP, RARP, IGMP

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

CS118 Discussion Week 7. Taqi

Computer Networks. Routing Algorithms

Computer Networking. Intra-Domain Routing. RIP (Routing Information Protocol) & OSPF (Open Shortest Path First)

Chapter IV: Network Layer

ITEC310 Computer Networks II

Internet Routing Protocols Tuba Saltürk

EITF25 Internet Routing. Jens A Andersson

The Network Layer and Routers

ECE 333: Introduction to Communication Networks Fall 2001

Lecture 9. Network Layer (cont d) Network Layer 1-1

Routing Protocols. Autonomous System (AS)

ETSF10 Internet Protocols Routing on the Internet

LS Example 5 3 C 5 A 1 D

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Top-Down Network Design

06/02/ Local & Metropolitan Area Networks. Overview. Routing algorithm ACOE322. Lecture 6 Routing

Chapter 7: Routing Dynamically. Routing & Switching

Routing. Outline. Algorithms Scalability

Chapter 4: Network Layer. TDTS06 Computer networks. Subnets. Subnets. Subnets. IP Addressing: introduction

ICS 351: Today's plan. OSPF BGP Routing in general routing protocol comparison encapsulation network dynamics

CS321: Computer Networks Unicast Routing

CSC 4900 Computer Networks: Routing Protocols

CS 138: Communication I. CS 138 V 1 Copyright 2012 Thomas W. Doeppner. All rights reserved.

Open Shortest Path First (OSPF)

Interplay between routing, forwarding

Routing, Routers, Switching Fabrics

Routing Protocol. Seiya Tsubone. Apr The University of Tokyo. Seiya Tsubone (The University of Tokyo) Routing Protocol Apr. 25.

(Refer Slide Time: 01:08 to 01:25min)

C13b: Routing Problem and Algorithms

Routing Basics. What is Routing? Routing Components. Path Determination CHAPTER

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice

Shortest Paths Algorithms and the Internet: The Distributed Bellman Ford Lecturer: Prof. Chiara Petrioli

EE 122: Intra-domain routing

Prof. Shervin Shirmohammadi SITE, University of Ottawa. Internet Protocol (IP) Lecture 2: Prof. Shervin Shirmohammadi CEG

Routing in a network

2008 NDP Lectures 7 th Semester

9.1. Routing Protocols

Helsinki University of Technology Telecommunications Laboratory. OSPF Routing Protocol Licenciate course seminar paper

Transcription:

ETSF05/ETSF10 Internet Protocols Routing on the Internet 2014, (ETSF05 Part 2), Lecture 1.1 Jens Andersson

Circuit switched routing 2014 11 05 ETSF05/ETSF10 Internet Protocols 2

Packet switched Routing Choosing an optimal path According to a cost metric Decentralised: each router has full information 2014 11 05 ETSF05/ETSF10 Internet Protocols 3

Router Internetworking device Passes data packets between networks Checks Network Layer addresses Uses Routing/forwarding tables Two functions: ❶ Routing ❷ Forwarding SA DA Data SA DA Data 2014 11 05 ETSF05/ETSF10 Internet Protocols 4

Router Architecture Overview 2014 11 05 ETSF05/ETSF10 Internet Protocols 5

Input Port Physical layer: bit level reception Data link layer: e.g., Ethernet Decentralized switching: Given destination, lookup output port using routing table in input port memory Goal: complete input port processing at line speed 2014 11 05 ETSF05/ETSF10 Internet Protocols 6

Input Port Queuing Fabric slower that sum of input ports queuing Delay and loss due to input buffer overflow Head of the Line (HOL) blocking: Datagram at front of queue prevents others in queue from proceeding 2014 11 05 ETSF05/ETSF10 Internet Protocols 7

Output Port Priority Scheduling: Scheduling discipline may choose among queued datagrams for transmission 2014 11 05 ETSF05/ETSF10 Internet Protocols 8

Switching Fabrics 2014 11 05 ETSF05/ETSF10 Internet Protocols 10

Routing Tables and Forwarding Table RIP Process BGP Process RIP Routing tables BGP Routing tables BGP OSPF Process OSPF Routing tables Static routing table OS kernel RIP Domain OSPF Domain Forwarding Table Manager Forwarding Table 2014 11 10 ETSF05/ETSF05/ETSF10 Internet Protocols 11

Routing in Packet Switching Networks Key design issue for (packet) switched networks Select route across network between end nodes Characteristics required: Correctness Simplicity Robustness Stability Fairness Optimality Efficiency 2014 11 05 ETSF05/ETSF10 Internet Protocols 12

Table 19.1 Elements of Routing Techniques for Packet Switching Networks Performance Criteria Number of hops Cost Delay Throughput Decision Time Packet (datagram) Session (virtual circuit) Decision Place Each node (distributed) Central node (centralized) Originating node (source) Network I nformation Source None Local Adjacent node Nodes along route All nodes Network Information Update Timing Continuous Periodic Major load change Topology change 2014 11 05 ETSF05/ETSF10 Internet Protocols 13

Performance Criteria Used for selection of route Simplest is to choose minimum hop Can be generalized as least cost routing Because least cost is more flexible it is more common than minimum hop 2014 11 05 ETSF05/ETSF10 Internet Protocols 14

Decision Time and Place Decision time Packet or virtual circuit basis Fixed or dynamically changing Decision place Distributed made by each node More complex, but more robust Centralized made by a designated node Source made by source station 2014 11 05 ETSF05/ETSF10 Internet Protocols 16

Network Information Source and Update Timing Routing decisions usually based on knowledge of network, traffic load, and link cost Distributed routing Using local knowledge, information from adjacent nodes, information from all nodes on a potential route Central routing Collect information from all nodes Issue of update timing Depends on routing strategy Fixed never updated Adaptive regular updates 2014 11 05 ETSF05/ETSF10 Internet Protocols 17

Routing Strategies Fixed Routing Use a single permanent route for each source to destination pair of nodes Determined using a least cost algorithm Route is fixed Until a change in network topology Based on expected traffic or capacity Advantage is simplicity Disadvantage is lack of flexibility Does not react to network failure or congestion 2014 11 05 ETSF05/ETSF10 Internet Protocols 18

To Node CENTRAL ROUTING DIRECTORY From Node 1 2 3 4 5 6 1 1 5 2 4 5 2 2 5 2 4 5 3 4 3 5 3 5 4 4 4 5 4 5 5 4 4 5 5 5 6 4 4 5 5 6 Node 1 Directory Node 2 Directory Node 3 Directory Destination Next Node Destination Next Node Destination Next Node 2 2 1 1 1 5 3 4 3 3 2 5 4 4 4 4 4 5 5 4 5 4 5 5 6 4 6 4 6 5 Node 4 Directory Node 5 Directory Node 6 Directory Destination Next Node Destination Next Node Destination Next Node 1 2 1 4 1 5 2 2 2 4 2 5 3 5 3 3 3 5 5 5 4 4 4 5 6 5 6 6 5 5 Figure 19.2 Fixed Routing (using Figure 19.1) 2014 11 05 ETSF05/ETSF10 Internet Protocols 19

Routing Strategies Adaptive Routing Used by almost all packet switching networks Routing decisions change as conditions on the network change due to failure or congestion Requires information about network Disadvantages: Decisions more complex Tradeoff between quality of network information and overhead Reacting too quickly can cause oscillation Reacting too slowly means information may be irrelevant 2014 11 05 ETSF05/ETSF10 Internet Protocols 20

Classification of Adaptive Routing Strategies A convenient way to classify is on the basis of information source Local (isolated) Route to outgoing link with shortest queue Can include bias for each destination Rarely used does not make use of available information Adjacent nodes Takes advantage of delay and outage information Distributed or centralized All nodes Like adjacent 2014 11 05 ETSF05/ETSF10 Internet Protocols 22

ARPANET Routing Strategies 1st Generation Distance Vector Routing 1969 Distributed adaptive using estimated delay Queue length used as estimate of delay Version of Bellman Ford algorithm Node exchanges delay vector with neighbors Update routing table based on incoming information Doesn't consider line speed, just queue length and responds slowly to congestion 2014 11 05 ETSF05/ETSF10 Internet Protocols 23

ARPANET Routing Strategies 2nd Generation Link State Routing 1979 Distributed adaptive using delay criterion Using timestamps of arrival, departure and ACK times Re computes average delays every 10 seconds Any changes are flooded to all other nodes Re computes routing using Dijkstra s algorithm Good under light and medium loads Under heavy loads, little correlation between reported delays and those experienced 2014 11 05 ETSF05/ETSF10 Internet Protocols 24

ARPANET Routing Strategies 3rd Generation 1987 Link cost calculation changed Damp routing oscillations Reduce routing overhead Measure average delay over last 10 seconds and transform into link utilization estimate Normalize this based on current value and previous results Set link cost as function of average utilization 2014 11 05 ETSF05/ETSF10 Internet Protocols 25

Autonomous Systems (AS) Exhibits the following characteristics: Is a set of routers and networks managed by a single organization Consists of a group of routers exchanging information via a common routing protocol Except in times of failure, is connected (in a graphtheoretic sense); there is a path between any pair of nodes 2014 11 05 ETSF05/ETSF10 Internet Protocols 26

Interior Router Protocol (IRP) Interior Gateway Protocol (IGP) A shared routing protocol which passes routing information between routers within an AS Custom tailored to specific applications and requirements 2014 11 05 ETSF05/ETSF10 Internet Protocols 27

Exterior Router Protocol (ERP) Exterior Gateway Protocol (EGP) Protocol used to pass routing information between routers in different ASs Will need to pass less information than an IRP for the following reason: If a datagram is to be transferred from a host in one AS to a host in another AS, a router in the first system need only determine the target AS and devise a route to get into that target system Once the datagram enters the target AS, the routers within that system can cooperate to deliver the datagram The ERP is not concerned with, and does not know about, the details of the route 2014 11 05 ETSF05/ETSF10 Internet Protocols 29

Graphical representation of a net 2014 11 05 ETSF05/ETSF10 Internet Protocols 30

What is an end node? Problem: The LANs are our destinations/end nodes, not the routers 2014 11 05 ETSF05/ETSF10 Internet Protocols 31

A more realistic representation Solution: Nets and routers are all nodes in the tree. Routers hold tables how to reach nets and what is the next hop for to get there 2014 11 05 ETSF05/ETSF10 Internet Protocols 32

Routing Algorithms and Protocols 2014 11 05 ETSF05/ETSF10 Internet Protocols 34

Distance Vector Routing Requires that each node exchange information with its neighboring nodes Two nodes are said to be neighbors if they are both directly connected to the same network Used in the first generation routing algorithm for ARPANET Each node maintains a vector of link costs for each directly attached network and distance and next hop vectors for each destination Routing Information Protocol (RIP) uses this approach 2014 11 05 ETSF05/ETSF10 Internet Protocols 35

Link State Routing Designed to overcome the drawbacks of distance vector routing When a router is initialized, it determines the link cost on each of its network interfaces The router then advertises this set of link costs to all other routers in the internet topology, not just neighboring routers From then on, the router monitors its link costs Whenever there is a significant change the router again advertises its set of link costs to all other routers in the configuration The OSPF protocol is an example The second generation routing algorithm for ARPANET also uses this approach 2014 11 05 ETSF05/ETSF10 Internet Protocols 36

RIP (Routing Information Protocol) Included in BSD UNIX Distribution in 1982 Distance metric: # of hops (max 15) to destination network Distance vectors: exchanged among neighbours every 30 via Response Message (advertisement) Implementation: Application layer protocol, uses UDP/IP 2014 11 05 ETSF05/ETSF10 Internet Protocols 37

A RIP Forwarding/Routing Table Destination=net Cost Next hop=router 123 3 A 32 5 D 16 3 A 7 2 2014 11 05 ETSF05/ETSF10 Internet Protocols 38

RIP update message Contains the whole forwarding table Add 1 to cost in received message Change next hop to sending router Apply RIP updating algorithm IMPORTANT! Received update msgs identify neighbours! 2014 11 05 ETSF05/ETSF10 Internet Protocols 39

RIP Updating Algorithm (Bellman Ford) if (advertised destination not in table) { add new entry // rule #1 } else if (adv. next hop = next hop in table) { update cost // rule #2 } else if (adv. cost < cost in table) { replace old entry // rule #3 } 2014 11 05 ETSF05/ETSF10 Internet Protocols 40

RIP Example 2014 11 05 ETSF05/ETSF10 Internet Protocols 41

Two node instability/count to inifinity 2014 11 05 ETSF05/ETSF10 Internet Protocols 42

Split Horizon breaks Count to inifinity I have a route to X, but I got it from A so I won t tell A about it! 2014 11 05 ETSF05/ETSF10 Internet Protocols 43

RIP: Link Failure and Recovery If no advertisement heard after 180 Neighbour/link declared dead Routes via neighbour invalidated (infinite distance = 16 hops) New advertisements sent to neighbours (triggering a chain reaction if tables changed) Poison reverse used to prevent count to infinity loops Good news travel fast, bad news travel slow 2014 11 05 ETSF05/ETSF10 Internet Protocols 44

Routing Algorithms and Protocols 2014 11 05 ETSF05/ETSF10 Internet Protocols 45

Open Shortest Path First (OSPF) Protocol RFC 2328 Used as the interior router protocol in TCP/IP networks Computes a route through the internet that incurs the least cost based on a userconfigurable metric of cost Is able to equalize loads over multiple equalcost paths 2014 11 05 ETSF05/ETSF10 Internet Protocols 46

OSPF (Open Shortest Path First) Divides domain into areas Limits flooding for efficiency One backbone area connects all Distance metric: Cost to destination network 2014 11 05 ETSF05/ETSF10 Internet Protocols 47

Areas, Router and Link Types 2014 11 05 ETSF05/ETSF10 Internet Protocols 48

Point to Point Link Connects two routers No need for addresses 2014 11 05 ETSF05/ETSF10 Internet Protocols 49

Transient Link 2014 11 05 ETSF05/ETSF10 Internet Protocols 50

Stub Link 2014 11 05 ETSF05/ETSF10 Internet Protocols 51

Link State Advertisements What to advertise? Different entities as nodes Different link types as connections Different types of cost 2014 11 05 ETSF05/ETSF10 Internet Protocols 52

Router Link Advertisement 2014 11 05 ETSF05/ETSF10 Internet Protocols 53

Network Link Advertisement Network is a passive entity It cannot advertise itself 2014 11 05 ETSF05/ETSF10 Internet Protocols 54

Summary Link to Network Done by area border routers Goes through the backbone 2014 11 05 ETSF05/ETSF10 Internet Protocols 55

Summary Link to AS Boundary Router Links to other domains autonomous systems 2014 11 05 ETSF05/ETSF10 Internet Protocols 56

External Link Advertisement Link to a single network outside the domain 2014 11 05 ETSF05/ETSF10 Internet Protocols 57

Hello message Find neighbours Keep contact with neighbours: I am still alive! Sent out periodically (typically every 10th second) If no hellos received during holdtime (typically 30 seconds), neighbour declared dead. Compare RIP update messages 2014 11 05 ETSF05/ETSF10 Internet Protocols 58

Destination Next Hop Distance N1 R3 10 N2 R3 10 N3 R3 7 N4 R3 8 N6 R10 8 N7 R10 12 N8 R10 10 N9 R10 11 N10 R10 13 N11 R10 14 H1 R10 21 R5 R5 6 R7 R10 8 N12 R10 10 N13 R5 14 N14 R5 14 Table 19.3 Routing Table for R6 2014 11 05 N15 R10 ETSF05/ETSF10 17 Internet Protocols 61

Dijkstra s Algorithm Finds shortest paths from given source nodesto all other nodes Develop paths in order of increasing path length Algorithm runs in stages Each time adding node with next shortest path Algorithmterminates when all nodes have been added to T 2014 11 05 ETSF05/ETSF10 Internet Protocols 62