Routing. Advanced Computer Networks: Routing 1

Similar documents
Basic Idea. Routing. Example. Routing by the Network

Routing by the Network

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

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

ETSF05/ETSF10 Internet Protocols Routing on the Internet

CompSci 356: Computer Network Architectures. Lecture 12: Dynamic routing protocols: Link State Chapter Xiaowei Yang

Open Shortest Path First (OSPF)

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

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

Why dynamic route? (1)

BLM6196 COMPUTER NETWORKS AND COMMUNICATION PROTOCOLS

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

Chapter 4: Advanced Internetworking. Networking CS 3470, Section 1

Network Protocols. Routing. TDC375 Winter 2002 John Kristoff - DePaul University 1

Routing. Outline. Algorithms Scalability

C13b: Routing Problem and Algorithms

Network Protocols. Routing. TDC375 Autumn 03/04 John Kristoff - DePaul University 1

ICMP, ARP, RARP, IGMP

Computer Networking Introduction

Overview 4.2: Routing

CSCE 463/612 Networks and Distributed Processing Spring 2018

CompSci 356: Computer Network Architectures. Lecture 13: Dynamic routing protocols: Link State Chapter 3.3.3, Xiaowei Yang

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

Chapter 4: outline. Network Layer 4-1

Routing in the Internet

Unit 3: Dynamic Routing

Routing Protocols. Autonomous System (AS)

Routing in a network

CSc 450/550 Computer Networks Internet Routing

Routing, Routing Algorithms & Protocols

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

Chapter IV: Network Layer

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

Network Layer: Routing

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

Lecture 4. The Network Layer (cont d)

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

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Chapter 7: Routing Dynamically. Routing & Switching

CSCD 330 Network Programming Spring 2018

CSC 4900 Computer Networks: Routing Protocols

CSCD 330 Network Programming Spring 2017

Chapter 4: Network Layer

HY 335 Φροντιστήριο 8 ο

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

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

Chapter 12. Routing and Routing Protocols 12-1

Outline. Routing. Introduction to Wide Area Routing. Classification of Routing Algorithms. Introduction. Broadcasting and Multicasting

Topics for This Week

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

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

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

Routing in Internet. Problem. Given set of nodes, how do routers acquire info about neighbors to construct the routing tables?

Chapter 4: Network Layer, partb

Introduction to Routing

OSPF Protocol Overview on page 187. OSPF Standards on page 188. OSPF Area Terminology on page 188. OSPF Routing Algorithm on page 190

Course Routing Classification Properties Routing Protocols 1/39

ITEC310 Computer Networks II

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

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

Internet Routing Protocols Tuba Saltürk

Inter-domain Routing. Outline. Border Gateway Protocol

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

9.1. Routing Protocols

Planning for Information Network

Routing in packet-switching networks

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

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

Link State Routing. Link State Packets. Link State Protocol. Link State Protocols Basic ideas Problems and pitfalls

Lecture 9. Reminder: Homework 3, Programming Project 2 due today. Questions? Thursday, September 22 CS 475 Networks - Lecture 9 1

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

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

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

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

CS 43: Computer Networks. 24: Internet Routing November 19, 2018

Network Layer, Part 2 Routing. Terminology

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

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

Routing Basics ISP/IXP Workshops

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

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

CSCI Topics: Internet Programming Fall 2008

CS 43: Computer Networks Internet Routing. Kevin Webb Swarthmore College November 16, 2017

Introduction to OSPF

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

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Routing. Info 341 Networking and Distributed Applications. Addresses, fragmentation, reassembly. end-to-end communication UDP, TCP

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Module 8. Routing. Version 2 ECE, IIT Kharagpur

OSPF (Open Shortest Path First)

Which of the following describe the process identifier that is used to run OSPF on a router? (Choose two)

CS118 Discussion Week 7. Taqi

Network layer: Overview. Network layer functions Routing IP Forwarding

Chapter 7 Routing Protocols

Computer Networks ICS 651. IP Routing RIP OSPF BGP MPLS Internet Control Message Protocol IP Path MTU Discovery

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Network Layer. Goals of This Lecture. Internet Reference Model. Outline of the Class

OSPF (Open Shortest Path First)

Routing. Jens A Andersson Communication Systems

Transcription:

Routing Advanced Computer Networks: Routing 1

Gateway To internet or wide area network Metropolitan Area Network (MAN) s s Organization Servers Backbone R S R R Departmental Server s R S R s S R s s s s s s s Copyright 2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.6 Advanced Computer Networks: Routing 2

Wide Area Network (WAN) Interdomain level Border routers Autonomous system or domain Border routers Internet service provider LAN level Intradomain level Leon-Garcia & Widjaja: Communication Networks Copyright 2000 The McGraw Hill Companies Figure 7.7 Advanced Computer Networks: Routing 3

(a) National service provider A National ISPs National service provider B NAP National service provider C NAP Network Access Point (b) NAP R A Route server LAN R B R C Copyright 2000 The McGraw Hill Companies Advanced Computer Networks: Routing 4 Leon-Garcia & Widjaja: Communication Networks Figure 7.8

Datagram Packet Switching Packet 1 Packet 1 Packet 2 Packet 2 Packet 2 Copyright 2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.15 Advanced Computer Networks: Routing 5

Datagram Network Routing Table Destination address Output port 0785 7 1345 12 1566 6 2458 12 Copyright 2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.16 Advanced Computer Networks: Routing 6

Virtual Circuit Network Packet Packet Copyright 2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.17 Advanced Computer Networks: Routing 7

Virtual Circuit Network Routing Table Identifier Output port Next identifier 12 13 44 Entry for packets with identifier 15 15 15 23 27 13 16 58 7 34 Copyright 2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 7.21 Advanced Computer Networks: Routing 8

Routing Routing algorithm:: that part of the Network Layer responsible for deciding on which output line to transmit an incoming packet. Remember: For virtual circuit subnets the routing decision is made ONLY at set up. Algorithm properties:: correctness, simplicity, robustness, stability, fairness, optimality, and scalability. Advanced Computer Networks: Routing 9

Routing Classification Adaptive Routing based on current measurements of traffic and/or topology. 1. centralized 2. isolated 3. distributed Non-Adaptive Routing routing computed in advance and off-line 1. flooding 2. static routing using shortest path algorithms Advanced Computer Networks: Routing 10

Flooding Pure flooding :: every incoming packet to a node is sent out on every outgoing line. Obvious adjustment do not send out on arriving link (assuming full-duplex links). The routing algorithm can use a hop counter (e.g., TTL) to dampen the flooding. Selective flooding :: only send on those lines going approximately in the right direction. Advanced Computer Networks: Routing 11

Shortest Path Routing 1. Bellman-Ford Algorithm [Distance Vector] 2. Dijkstra s Algorithm [Link State] What does it mean to be the shortest (or optimal) route? Choices: a. Minimize the number of hops along the path. b. Minimize mean packet delay. c. Maximize the network throughput. Advanced Computer Networks: Routing 12

Metrics Set all link costs to 1. Shortest hop routing. Disregards delay. Measure the number of packets queued. Did not work well. Timestamp ArrivalTime and DepartTime * and use link-level ACK to compute: Delay = (DepartTime ArrivalTime) + TransmissionTime + Latency * Reset after retransmission Advanced Computer Networks: Routing 13

Metrics Unstable under heavy link load. Difficulty with granularity of the links. Revised ARPANET routing metric: Compress dynamic range of the metric Account for link type Smooth variation of metric with time: Delay transformed into link utilization Utilization was averaged with last reported utilization. Hard limit set on how much the metric could change per measurement cyle. Advanced Computer Networks: Routing 14

225 140 90 75 60 9.6-Kbps satellite link 9.6-Kbps terrestrial link 56-Kbps satellite link 56-Kbps terrestrial link 30 25% 50% 75% 100% Utilization Figure 4.22 Revised ARPANET routing metric versus link utilization P&D slide Advanced Computer Networks: Routing 15

Dijkstra s Shortest Path Algorithm Initially mark all nodes (except source) with infinite distance. working node = source node Sink node = destination node While the working node is not equal to the sink 1. Mark the working node as permanent. 2. Examine all adjacent nodes in turn If the sum of label on working node plus distance from working node to adjacent node is less than current labeled distance on the adjacent node, this implies a shorter path. Relabel the distance on the adjacent node and label it with the node from which the probe was made. 3. Examine all tentative nodes (not just adjacent nodes) and mark the node with the smallest labeled value as permanent. This node becomes the new working node. Reconstruct the path backwards from sink to source. Advanced Computer Networks: Routing 16

Internetwork Routing [Halsall] Adaptive Routing [IGP] Interior Gateway Protocols Centralized [RCC] Intradomain routing Distributed Interdomain routing [BGP,IDRP] Isolated [EGP] Exterior Gateway Protocols Distance Vector routing [RIP] Link State routing [OSPF,IS-IS,PNNI] Advanced Computer Networks: Routing 17

Adaptive Routing Basic functions: 1. Measurement of pertinent network data. 2. Forwarding of information to where the routing computation will be done. 3. Compute the routing tables. 4. Convert the routing table information into a routing decision and then dispatch the data packet. Advanced Computer Networks: Routing 18

Adaptive Routing Design Issues: 1. How much overhead is incurred due to gathering the routing information and sending routing packets? 2. What is the time frame (i.e, the frequency) for sending routing packets in support of adaptive routing? 3. What is the complexity of the routing strategy? Advanced Computer Networks: Routing 19

Distance Vector Routing Historically known as the old ARPANET routing algorithm {or known as Bellman-Ford algorithm}. Basic idea: each network node maintains a Distance Vector table containing the distance between itself and ALL possible destination nodes. Distances are based on a chosen metric and are computed using information from the neighbors distance vectors. Metric: usually hops or delay Advanced Computer Networks: Routing 20

Distance Vector Routing Information kept by DV router: 1. each router has an ID 2. associated with each link connected to a router, there is a link cost (static or dynamic). Distance Vector Table Initialization Distance to itself = 0 Distance to ALL other routers = infinity number Advanced Computer Networks: Routing 21

Distance Vector Algorithm [Perlman]] 1. A router transmits its distance vector to each of its neighbors in a routing packet. 2. Each router receives and saves the most recently received distance vector from each of its neighbors. 3. A router recalculates its distance vector when: a. It receives a distance vector from a neighbor containing different information than before. b. It discovers that a link to a neighbor has gone down (i.e., a topology change). The DV calculation is based on minimizing the cost to each destination. Advanced Computer Networks: Routing 22

Distance Vector Routing Figure 5-9.(a) A subnet. (b) Input from A, I, H, K, and the new routing table for J. Advanced Computer Networks: Routing 23

Routing Information Protocol (RIP) RIP had widespread use because it was distributed with BSD Unix in routed, a router management daemon. RIP is the most used Distance Vector protocol. RFC1058 in June 1988. Sends packets every 30 seconds or faster. Runs over UDP. Metric = hop count BIG problem is max. hop count =16 RIP limited to running on small networks!! Upgraded to RIPv2 Advanced Computer Networks: Routing 24

0 8 16 31 Command Version Must be zero Family of net 1 Address of net 1 Address of net 1 (network_address, distance) pairs Distance to net 1 Family of net 2 Address of net 2 Address of net 2 Distance to net 2 Figure 4.17 RIP Packet Format P&D slide Advanced Computer Networks: Routing 25

Link State Algorithm 1. Each router is responsible for meeting its neighbors and learning their names. 2. Each router constructs a link state packet (LSP) which consists of a list of neighbors names and the cost to reach each neighbor. 3. The LSP is transmitted to ALL other routers. Each router stores the most recently generated LSP from each other router. 4. Each router uses complete information on the network topology to compute the shortest path route to each destination node. Advanced Computer Networks: Routing 26

X A X A C B D (a) C B D (b) X A X A C B D (c) C B D (d) Figure 4.18 Reliable LSP Flooding P&D slide Advanced Computer Networks: Routing 27

Reliable Flooding The process of making sure all the nodes participating in the routing protocol get a copy of the link-state information from all the other nodes. LSP contains: Sending router s node ID List connected neighbors with the associated link cost to each neighbor Sequence number Time-to-live Advanced Computer Networks: Routing 28

Reliable Flooding First two items enable route calculation Last two items make process reliable ACKs and checking for duplicates is needed. Periodic Hello packets used to determine the demise of a neighbor. The sequence numbers are not expected to wrap around. => field needs to be large (64 bits) Advanced Computer Networks: Routing 29

Open Shortest Path First (OSPF) Provides for authentication of routing messages. 8-byte password designed to avoid misconfiguration. Provides additional hierarchy Domains are partitioned into areas. This reduces the amount of information transmitted in packet. Provides load-balancing via multiple routes. Advanced Computer Networks: Routing 30

Open Shortest Path First (OSPF) Area 1 Area 0 Area 3 R9 R8 R7 R1 R3 R4 R2 Area 2 R6 R5 Backbone area Figure 4.32 A Domain divided into Areas P&D slide Advanced Computer Networks: Routing 31

Open Shortest Path First (OSPF) OSPF runs on top of IP, i.e., an OSPF packet is transmitted with IP data packet header. Uses Level 1 and Level 2 routers Has: backbone routers, area border routers, and AS boundary routers LSPs referred to as LSAs (Link State Advertisements) Complex algorithm due to five distinct LSA types. Advanced Computer Networks: Routing 32

OSPF Terminology Internal router :: a level 1 router. Backbone router :: a level 2 router. Area border router (ABR) :: a backbone router that attaches to more than one area. AS border router :: (an interdomain router), namely, a router that attaches to routers from other ASs across AS boundaries. Advanced Computer Networks: Routing 33

OSPF LSA Types 1. Router link advertisement [Hello message] 2. Network link advertisement 3. Network summary link advertisement 4. AS border router s summary link advertisement 5. AS external link advertisement Advanced Computer Networks: Routing 34

LS Age Options Type=1 Link-state ID Advertising router LS sequence number LS checksum Length 0 Flags 0 Number of links Link ID Link data Link type Num_TOS Metric Optional TOS information More links Indicates LSA type Indicates link cost Figure 4.21 OSF Type 1 Link-State Advertisement P&D slide Advanced Computer Networks: Routing 35

N1 R1 OSPF Areas To another AS [AS Border router] N5 N2 R3 R6 N4 R7 R2 R4 R5 N6 N3 Area 0.0.0.1 R8 Area 0.0.0.0 Area 0.0.0.2 N7 ABR Area 0.0.0.3 R = router N = network Copyright 2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 8.33 Advanced Computer Networks: Routing 36

OSPF Figure 5-65.The relation between ASes, backbones, and areas in OSPF. Tanenbaum slide Advanced Computer Networks: Routing 37

Border Gateway Protocol (BGP) The replacement for EGP is BGP. Current version is BGP-4. BGP assumes the Internet is an arbitrary interconnected set of AS s. In interdomain routing the goal is to find ANY path to the intended destination that is loop-free. The protocols are more concerned with reachability than optimality. Advanced Computer Networks: Routing 38

Source Routing A B G C D E F H J Advanced Computer Networks: Routing 39