EITF25 Internet Routing. Jens A Andersson

Similar documents
ETSF10 Internet Protocols Routing on the Internet

Routing Unicast routing protocols

Routing. Jens A Andersson Communication Systems

ITEC310 Computer Networks II

Computer Networks. Routing Algorithms

ETSF10 Internet Protocols Routing on the Internet

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

Chapter 7 Routing Protocols

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

The most simple way to accelerate a Router is at 9.8 m/sec/sec.

ETSF05/ETSF10 Internet Protocols Routing on the Internet

ICS 351: Today's plan. netmask exercises network and subnetwork design dynamic routing RIP distance-vector routing

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

Unit 3: Dynamic Routing

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Homework 3 Discussion

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

List of groups known at each router. Router gets those using IGMP. And where they are in use Where members are located. Enhancement to OSPF

Routing Protocols. Autonomous System (AS)

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

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

C13b: Routing Problem and Algorithms

CSCD 330 Network Programming Spring 2017

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

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

Basic Idea. Routing. Example. Routing by the Network

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

Routing by the Network

Routing in the Internet

CS321: Computer Networks Unicast Routing

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

Overview 4.2: Routing

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

CSCD 330 Network Programming Spring 2018

Unicast Routing Protocols (RIP, OSPF, and BGP)

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

Unit 6 Routing and Layers 3 and 4 Protocols. Chapter 6: Layers 3 and 4 Protocols

Routing. Advanced Computer Networks: Routing 1

Network Layer (Routing)

COM-208: Computer Networks - Homework 6

BTEC Level 3 Extended Diploma

2008 NDP Lectures 7 th Semester

Routing. Outline. Algorithms Scalability

CSCE 463/612 Networks and Distributed Processing Spring 2018

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

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

Computer Networking Introduction

Top-Down Network Design

Review: Routing in Packet Networks Shortest Path Algorithms: Dijkstra s & Bellman-Ford. Routing: Issues

CSE 461 Routing. Routing. Focus: Distance-vector and link-state Shortest path routing Key properties of schemes

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

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

Internetworking - We are heterogeneity to our network (variable network technologies, bandwidth, MTU, latency, etc. etc.)

Routing in packet-switching networks

EEC-684/584 Computer Networks

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

Operating Systems and Networks. Network Lecture 7: Network Layer 2. Adrian Perrig Network Security Group ETH Zürich

Module 8. Routing. Version 2 ECE, IIT Kharagpur

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits

Lecture 4. The Network Layer (cont d)

Distance Vector Routing

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

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

Politecnico di Milano Scuola di Ingegneria Industriale e dell Informazione. 06 Routing protocols. Fundamentals of Communication Networks

CSc 450/550 Computer Networks Internet Routing

ICMP, ARP, RARP, IGMP

Chapter 4: Network Layer, partb

Network Layer: Routing

IP Multicast Technology Overview

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

Network Layer (Routing)

CS 457 Networking and the Internet. What is Routing. Forwarding versus Routing 9/27/16. Fall 2016 Indrajit Ray. A famous quotation from RFC 791

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

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

Routing in a network

Chapter 4 Network Layer. Network Layer 4-1

Solution of Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

Chapter 4: outline. Network Layer 4-1

Network Layer, Part 2 Routing. Terminology

TDC 363 Introduction to LANs

CSEP 561 Routing. David Wetherall

cs/ee 143 Communication Networks

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

CS4450. Computer Networks: Architecture and Protocols. Lecture 11 Rou+ng: Deep Dive. Spring 2018 Rachit Agarwal

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

Network Layer (Routing)

IP Protocols. ALTTC/Oct

EE 122: Intra-domain routing

CSC 4900 Computer Networks: Routing Algorithms

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

ETSF10 Internet Protocols Routing on the Internet

UNIT 2 ROUTING ALGORITHMS

CMPE 151 Routing. Marc Mosko

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Address Translation. Map IP addresses into physical addresses destination host next hop router

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

Routing. Basic principles. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.4, 2017/02/23 10:58:58)

Intra-AS Routing. Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley.

Transcription:

EITF25 Internet Routing Jens A Andersson

Study Guide Kihl & Andersson: Ch 8, 9.3 9.4 Stallings: Ch 19.1 & 19.2 Forouzan 5th ed Ch 20.1 20.3, 21.1 21.2

Routing The Routing Concept Unicast Routing Multicast Routing (short overview)

Network Layer (Layer 3) Different link protocols

Datagrams in the network

R1 Task: Select Best Path R4 5 R7 5 10 40 R6 6 5 B R2 15 A 20 4 10 10 R8 R3 5 R5 10 Always

Router A router is a type of internetworking device that passes data packets between networks, based on Layer 3 or Network Layer addresses. A router has the ability to make intelligent decisions regarding the best path for delivery of data on the network. Routing is performed based on network identities, not host identities Last step (delivery to host) performed with ARP

Schematic View of a Router Incoming packets Outgoing packets Processing

Routing Technologies No intelligence Centralized Distributed

No intelligence : Flooding Output all packets/datagrams On all ports/interfaces/links Except ingress port/interface/link Problem? Looping packets Two solutions Avoided with TTL counter Remember processed datagrams

Centralized routing technology Database and algorithm centralized Network equipment informs central function Packet forwarding distributed of course!?

Distributed routing technology Routing process distributed among all routers Two approaches Distance Vector Each nodes best-path information is distributed to its neighbours Best end-to-end paths found from comparison of all next-hop choices Simple, low demands on processor and memory Link State Local topology information is flooded to all nodes Best end-to-end paths are computed locally at each router More complicated, high demands on processor and memory

Path Cost, Link Metric Possible metrics hop count inverse of the link bandwidth delay dynamically calculated administratively assigned combination

Routing Tables and Forwarding Table RIP Process BGP Process RIP Routing tables BGP Routing tables BGP OSPF Process OSPF Routing tables Static routing table RIP Domain OSPF Domain Forwarding Table Manager OS kernel Forwarding Table

Local routing & ARP (1).105.10.1 Netid: 192.168.1.0/24 router

Local Routing & ARP (2).105.10 Send datagram to 192.168.1.10! Netid: 192.168.1.0/24.1 router Is destination on same subnet? Sender compares own net-id with net-id of destination. in this case YES Is MAC-address of destination in ARP-cache? if YES, use it if NO, use ARP

Local Routing & ARP (3).105.10 Send datagram to 10.0.100.35! Netid: 192.168.1.0/24.1 router Is destination on same subnet? Sender compares own net-id with net-id of destination. in this case NO Is network address of default gateway known? If YES, is MAC-address of default gateway in ARP-cache? if YES, use it if NO, use ARP

Unicast Routing

Routable protocols Protocols that provide support for the network layer are called routed or routable protocols. IP is a network layer protocol, and because of that, it can be routed over an internetwork.

Routing protocols Routing protocols determine the paths that routed protocols follow to their destinations. Routing protocols enable routers that are connected to create a map, internally, of other routers in the network.

Routing The art of building least-cost trees From sender to receiver From each nod to every other node Three principles 22 Distance Vector Link State Path Vector Policy-based routing

An Internet and its graphical representation A 1 3 1 B 1 1 D 3 E C 3 Graphs are built by Links connects nodes Nodes are destinations In routing two differnet node types: Nets i.e. destinations Routers connection nets, next hop The application of spanning tree algoritms can get fuzzy 23

A distance vector Net-id Cost - - - - - - - - - -

Distance Vector: Principle R1 send its vector to R2 and R3 periodically R2 send its vector to R1, R3 and R4 periodically Nät A Nät B Nät D R1 R2 Only net id and cost in table/vector R3 Nät C R4 R3 send its vector to R1, R2 and R4 periodically R4 send its vector to R3 and R4 periodically

Distance vector: principle Send all known best paths to neighbours Periodically At changes Update routing tables with New nodes Change of cost or path Global knowledge spread locally

Exemple based on hop count A - 1 B - 1 Rtr1 B - 1 D - 1 Rtr3 Nät A Nät B Nät D Rtr2 Nät C Rtr5 C - 1 D 1 E - 1 B - 1 C - 1 Nät E Rtr7 Nät G E - 1 F - 1 Rtr6 E - 1 G - 1 B - 1 F - 1 Rtr4 Nät F

Bellman-Fords algorithm (1) if (advertised destination not in table) then update table (2) else (2.a) if (advertised next-hop = next-hop in table) then replace entry (2.b) else (2.b.i) if (advertised hop count < hop count in table) then replace entry (2.b.ii) else do nothing

Alternative: Bellman-Fords equation min,,, Note! can change without node z being added!

Updates Rtr3 Original B - 1 D - 1 From Rtr5 +1 C 2 D 2 E 2 Updated B 1 C rtr5 2 D 1 E rtr5 2 Rtr1 Original A - 1 B - 1 From Rtr2 +1 B 2 C 2 Updated A - 1 B 1 C rtr2 2

Distance Vector, reflections Periodic updates!? How to find neighbours? How to find out neighbour is lost? Problem with loss of links and nodes (behind neighbours). 31

More on distance vector In ETSF10 Count to infinity Two, three node instability Split Horizon Poison Reverse Routing protocol RIP 32

Link State: principle R1 sends information its links to all other routers. R2 sends information its links to all other routers. Nät A Nät B Nät D R1 R2 There might be neighbours on the links! R3 R3 sends information its links to all other routers. Nät C R4 sends information its links to all other routers. R4

Link state: principle Local topology info is flooded globally (LSP) Periodically (in practise very seldom, typically every hour) On local changes Create database in each node with all link states Update routing table when new information is added to database (apply Shortest Path First) Local knowledge spread globally 2011-10-03 34

LSP (Link State Packet)

Link State Databas, exemple

Dijkstra s algorithm: Shortest Path First 1. Identify the root (the node itself) 2. Attach all neighbor nodes temporarily 3. Make link and node with least cumulative cost permanent 4. Choose this node 5. Repeat 2 and 3 until all nodes are permanent

SPF graph example 38 A D B E C 3 1 A D B E C 3 1 2 4 A D B E C 1 2 4 3 3 A D B E C 1 2 3 3 6 A D B E C 1 2 3 3 Root node Permanent node Tentative node Tentative path Permanent path

SPF table example Perm.lista L(A) L(B) L(C) L(D) L(E) 0 {A} 3:A 1:A {A,D} 2:D 4:D {A,D,B} 3:B 3:B {A,D,B,C} 3:B {A,D,B,C,E} Notation: Cost:Via 39

Link State: an exemple Rtr1 Rtr3 4 10 8 1 Nät A Nät B Nät D 2 Rtr2 2 Nät C 1 15 5 Rtr5 Nät E 1 Rtr7 3 Nät G 3 6 2 Rtr6 Rtr4 7 Nät F

SFP: step 1 & 2 for rtr3 Nät B Rtr3 4 10 (a) Nät D Rtr1 Nät B 4 4 Rtr2 Rtr3 4 10 Nät D (b)

Final SFP tree for rtr3 Rtr3 Nät B 4 10 Nät D Nät A Rtr1 12 Rtr4 4 4 Nät C 6 6 Rtr2 10 Rtr5 1 5 Nät E 15 15 Rtr7 13 Rtr6 Nät F 13 Rtr6 19 Nät E

Routing table for rtr3 Nät-id Next-hop Kostnad A Rtr1 12 B - 4 C Rtr2 6 D - 10 E Rtr5 15 F Rtr2 13 G Rtr5 18

Link State, reflections Periodical updates!? Problem with lost links and nodes. How to find neighbours? How to find out neighbour is lost? 44

More on link state In ETSF10: Routing protocol OSPF The concept of Areas or how to reduce flooding 45

Path Vector Routing Distance Vector routing with add ons In the routing table Destination Next-Hop Path to destination BGP Or rather the path this routing information has taken

Bonus material Concept Path Vector Routing Introduction to Multicast Routing More on this in ETSF10

Path Vector Routing Table Network Next Router Path N01 R01 AS14, AS23, AS67 N02 R05 AS22, AS67, AS05, AS89 N03 R06 AS67, AS89, AS09, AS34 N04 R12 AS62, AS02, AS09 AS = Autonomous System, approx = Organisation

Multicasting

Basics for Multicast trees Destinationen is GROUP One and only one copy of each datagram to each group member No datagrams to non members Avoid looping datagrams Optimal paths source members (shortest path)

Multicast Routing protocols

Source Based Tree S1 R3 R2 R4 R1 one tree per source S2

Group Shared Tree S1 R3 R2 R4 R1 Rendezvous Point one tree per group S2

Reverse Path Forwarding Routing per source address!