Introduction to Intra-Domain Routing

Size: px
Start display at page:

Download "Introduction to Intra-Domain Routing"

Transcription

1 Introduction to Intra-Domain Routing Stefano Vissicchio UCL Computer Science COMP3

2 Agenda We delve into network layer s main functionality. Setting Context Routing players. Intra-domain routing problem definition

3 Let s consider a network with several LANs host host DNS host host... DNS.../3 router..3.9 router router /4 3

4 Several LANs can belong to a single organization Domain (e.g., UCL) host host DNS host host... DNS.../3 router..3.9 router router /4 Internet 4

5 Collecting evidence from the real world Traceroute exposes real Internet paths Unix: traceroute <destination> Windows: tracert <destination> It displays all hops on the path between host where launched and <destination> it sends a sequence of carefully constructed packets that expire after hop, hops, each of those packets elicits ICMP error from router that many hops from sender 5

6 A traceroute from UCL to Cambridge traceroute to (8.3..), 64 hops max, 4 byte packets cisco ( ).37 ms.3 ms.36 ms ( ).483 ms.348 ms.487 ms (8.4..).486 ms.34 ms.36 ms (8.4..6).486 ms.474 ms.363 ms 5 ulcc-gsr.lmn.net.uk ( ).485 ms.346 ms.36 ms 6 london-bar.ja.net ( ).485 ms.47 ms.488 ms 7 po-.lond-scr.ja.net ( ).735 ms.7 ms.6 ms 8 po-.cambridge-bar.ja.net ( ) 5.3 ms ms ms 9 route-enet-3.cam.ac.uk ( ) 4.98 ms 4.84 ms 4.86 ms route-cent-3.cam.ac.uk ( ) ms ms 4.86 ms 6

7 A traceroute from UCL to Cambridge traceroute to (8.3..), 64 hops max, 4 byte packets cisco ( ).37 ms.3 ms.36 ms ( ).483 ms.348 ms.487 ms (8.4..).486 ms.34 ms.36 ms (8.4..6).486 ms.474 ms.363 ms 5 ulcc-gsr.lmn.net.uk ( ).485 ms.346 ms.36 ms 6 london-bar.ja.net ( ).485 ms.47 ms.488 ms 7 po-.lond-scr.ja.net ( ).735 ms.7 ms.6 ms 8 po-.cambridge-bar.ja.net ( ) 5.3 ms ms ms 9 route-enet-3.cam.ac.uk ( ) 4.98 ms 4.84 ms 4.86 ms route-cent-3.cam.ac.uk ( ) ms ms 4.86 ms 7

8 The big picture emerging from the traceroute Host Interface (IP address A) Subnet /4 Interface (IP address B) Router Interface (IP address C) Subnet /4 Interface (IP address D) Router 9

9 Routers keep routing tables Three fields Destination: destination IP Outgoing interface: on which to forward packet for the given destination Metric: total cost to reach the destination depends on interfaces metrics (set by net admins) Destination Interface Metric A B

10 Routers destinations are IP prefixes Each host (interface) has unique 3-bit IP address E.g., Must every router in entire Internet know about every other router and host? No; interfaces on same subnet share IP prefix e.g., /4 for IP routing destination is subnet s prefix Not single IP addresses

11 Routers use routing table to forward packets Packet for destination D arrives Router searches D in destination field of routing table using longest-prefix match If more than one route match D, choose the route with the longest prefix Possible outcomes: if entry for D, forward on interface in the entry if no entry, no route known à drop packet 3

12 Routers use routing table to forward packets Packet for destination D arrives Router searches D in destination field of routing table using longest-prefix How to populate match routing tables for any router in a domain? If more than one route match D, choose the route with the longest prefix Possible outcomes: if entry for D, forward on interface in the entry if no entry, no route known à drop packet 4

13 At startup, a router initializes its routing table for directly connected subnets Subnet /4 Host Interface (IP address B) Destination Interface Metric /4 Interface (IP address A) /4 Router Interface (IP address C) Subnet /4 Interface (IP address D) Router 5

14 At startup, a router initializes its routing table for directly connected subnets Subnet /4 Host Interface (IP address B) Destination Interface Metric /4 Interface (IP address A) /4 Router Interface (IP address C) Subnet /4 Packets to other destinations would be dropped Interface (IP address D) Router 6

15 At startup, a router initializes its routing table for directly connected subnets Subnet /4 Host Interface (IP address B) Destination Interface Metric /4 Interface (IP address A) /4 Routing protocols are needed to add information on remote destinations Router Interface (IP address C) Subnet /4 Packets to other destinations would be dropped Interface (IP address D) Router 7

16 Agenda We delve into network layer s main functionality. Setting Context Routing players. Intra-domain routing problem definition 8

17 Consider an arbitrary network Each router has an ID and several interfaces Linked to many other routers and subnets D Each router must choose the next-hop for received packets Packets include info on destinations (IP addresses) But not on intermediate hops?? S? 9

18 Routing protocols build routing tables Routing protocols define information and messages exchanged by routers For routers to accumulate state (routing table entries) to forward packets D Routing protocols also determine how to choose between alternative next-hops S

19 Intra-domain routing goals Provide good performance Typically, choose good paths for any pair of routers Automated path computation Possibly, efficient in time and memory Deal with failures Routes must be coherent with topology

20 Typical solution: shortest path routing View network as weighted graph Routers are vertices, links are edges Link metrics are edge weights 5 5 5

21 Typical solution: shortest path routing Shortest paths problem: What path between two vertices offers minimal sum of edge weights? Classic graph algorithms find single-source shortest paths when the entire graph is known centrally Dijkstra s Algorithm, Bellman-Ford Algorithm Typically, no central knowledge of entire graph Each router only knows its own interfaces addresses 3

22 Challenge: deal with changing networks Network components are not reliable Links may be cut, router or their interfaces may fail Changing networks induce hazards Need for (fast) re-convergence to new, correct paths after a failure Potential for forwarding loops Amplify traffic à congest links TTL will eventually expire, but typically too late Possibility of temporary disconnections (i.e., blackholes) 4

23 Distance Vector Routing Stefano Vissicchio UCL Computer Science COMP3

24 Agenda We are now ready to study Distance Vector routing. Algorithm. Pathologies 3. Optimizations 6

25 Basic Distance Vector Algorithm Distributed Bellman-Ford (DBF) Principle: tell everything you know to your neighbours Periodically, send all your routing table entries (destination and metric fields) to all your neighbouring routers 7

26 Basic Distance Vector Algorithm: DBF (Failures Not Yet Considered) Upon receipt of routing table entry for destination D with metric m on interface i: m += configured metric for interface i rt = lookup(d) in roung table if (rt = not found ) then rt_new = new roung table entry rt_new.dst = D; rt_new.metric = m; rt_new.iface = i add rt_new to roung table else if (m < rt.metric) then rt.metric = m; rt.iface = i 8

27 Distance Vector: Example Consider simple network where all nodes are routers, addresses are simply single letters Initial routing tables when routers first start: A local Dst Metric A A D B E B local C C local D local E local 9

28 Distance Vector: Iteration Routers incorporate received announcements: A local B D A D D local A E B local A C E B E E local D B C C local B E C 3

29 Distance Vector: Iteration Routers incorporate received announcements: A local B local B A D C E E C D A D D local E local A D E B B C C A B E C C local B E A D 3

30 Distance Vector: Iteration Convergence: Routers incorporate received announcements: routing tables no longer changing; A local B local routes reflect up-to-date knowledge of topology B A D C E E C D A D D local E local A D E B B C C A B E C C local B E A D 3

31 Link Failure () A local B local B A D C E E C! A D D B! E C C local B D local E local E A D A E B D B C C A 33

32 Link Failure () A local B local B Inf A Inf D C E E C Inf A D D B E C C local B D local E local E A D A E B D B C C A 34

33 Link Failure () A local B local B Inf A Inf D C E Dst Metric C Inf A B Inf D E C Inf A D E D B E C C local B D local E local E A D A E B D B C C A 35

34 Link Failure () A local B Inf D E Dst Metric C Inf A B Inf D E C Inf A D D local A E B C Problem: D ignores the update for the route to B because the metric is worse than the one B it local already has. A Inf C E D B E E local D B C A C C local B E A D 36

35 DV Algorithm, Revised Upon receipt of routing table entry for destination D with metric m on interface i: m += metric for interface i rt = lookup(d) in rou<ng table if (rt = not found ) then r_new = new rou<ng table entry r_new.d = D; r_new.metric = m; r_new.iface = i add r_new to table else if (i == rt.iface) then rt.metric = m else if (m < rt.metric) then rt.metric = m; r.iface = i 37

36 Link Failure (3) A D Dst Metric A D local D local B Inf D + A E A E E 3 B B Inf C Inf C C 38

37 Link Failure (3) A local B local B Inf A Inf D C E E C Inf A D D B E C C local B D local E local E A D A E B D B Inf C C A 39

38 Link Failure (4) A local B local B Inf D E C Inf A D A Inf Dst Metric C B E A Inf D C E D B E C C local B D local E local E A D A E B D B Inf C C A 4

39 Link Failure (5) B E Dst Metric B E local E local A Inf C + D B D B E C C D 3 A A Inf 4

40 Link Failure (5) A local B local B Inf A Inf D C E E C Inf A D D B E C C local B D local E local E A D A E B D B Inf C C A Inf 4

41 Link Failure (6) A local B local Next B round: all Inf routers A broadcast Inf their tables to neighbours D E C E C Inf D A D D local E local A D E B B Inf C C A Inf B E C C local B E A D 43

42 Link Failure (7) A local B local B Inf A Inf D C E E C 3 A D D B E C C local B D local E local E A D A Inf E B D B C C A 44

43 Link Failure (8) A local B local B 3 A 3 D C E E C 3 A D D B E C C local B D local E local E A D A 3 E B D B C C A 45

44 Agenda We are now ready to study Distance Vector routing. Algorithm. Pathologies Bouncing Counting to Infinity 3. Optimizations 46

45 Bouncing (I) Consider same network, where link (C, E) has metric ; all others have metric Consider all nodes routes to C after convergence Now suppose link (B, C) breaks C A D C 3 C B E C C C local 47

46 Bouncing (II) Suppose A advertises its table first C A D C 3 C Inf B E C C C local 48

47 Bouncing (III) Suppose A advertises its table first and B advertises its table next C A D C 3 C 3 B E C C C local 49

48 Bouncing (IV) Suppose A advertises its table first and B advertises its table next Loop between A and B for destination C! If C now advertises its table, E will ignore cost route! C 4 A D C 3 C 3 B E C 4 C C local 5

49 Bouncing (V) Suppose A and E advertise next (B,D update metrics) C 4 A D C 5 C 5 B E C 4 C C local 5

50 Bouncing (VI) Suppose A and E advertise next (B,D update metrics) and B advertises next (A and E update metrics) C 6 A D C 5 C 5 B E C 6 C C local 5

51 Bouncing (VII) Suppose A and E advertise next (B,D update metrics) and B advertises next (A and E update metrics) And so on and A advertises next (B updates metric) C 6 A D C 5 C 7 B E C 6 C C local 53

52 Bouncing (VIII) Long, painful convergence process, details dependent on message ordering Transient loops Eventually, converged state: C A D C C B E C C C local 54

53 Counting to Infinity (I) Converged after link (A, B) breaks Suppose (D, E) now breaks A local B 3 D E C 3 D local A E A D B local A 3 C E D B E E local D B C C local B E A 3 D B C C A 55

54 Counting to Infinity (II) A local B 3 D E C 3 Dst Metric A B 4 D E 3 C 4 + A D D local A E Inf B Inf C Inf Network partitioned Focus on {A, D} partition Suppose sequence of events: D notices link failure A advertises its routing table Loop for {B, C, E} between A and D! How long will loop persist? D local A E 3 B 4 C 4 56

55 Counting to Infinity (III) A local A local A local A B 5 D E 4 C 5 B 7 D E 6 C 7 B Inf D E Inf C Inf D D local D local D local A E 3 A E 5 A E Inf B 4 B 6 B Inf C 4 C 6 C Inf Each advertisement increments metrics for partitioned destinations by one Loop persists until count reaches infinity! 57

56 Agenda We are now ready to study Distance Vector routing. Algorithm. Pathologies 3. Optimizations Split Horizon Poison Reverse 58

57 Avoiding direct loops Bouncing and counting to infinity cause slow convergence, create loops Consider any link (X, Y), and destination Z with X s next hop toward Z being Y Split Horizon: clearly, Y should never choose X as next hop toward Z Intuition: X should never announce to Y a path with short distance to Z if it s forwarding to Z via Y! 59

58 Split Horizon with Poison Reverse Again, consider link (X, Y), destination Z with X s next hop toward Z being Y More generally: routers should announce different routing tables to different neighbors Split horizon: don t announce route for destination Z on interface used as next hop toward Z! Poison Reverse (optional): X announces to Y its distance to Z is infinity! 6

59 Example: Split Horizon and Poison Reverse A local B 3 D E C 3 Dst Metric A B Inf D Inf E Inf C Inf + A D D local A E Inf B Inf C Inf Same example as counting to infinity: {A, D} partitioned D detects link break, A announces first No loop, immediate convergence after one advertisement! D local A E Inf B Inf C Inf 6

60 Limitations: Split Horizon and Poison Reverse Consider same example, but {B, C, E} partition Link (A, B) already failed, routing has converged Now link (D, E) fails Consider only destination D A D B E D D C D 6

61 Limitations (II): Split Horizon and Poison Reverse E notices failed link, updates local table B E D C D D Inf 63

62 Limitations (III): Split Horizon and Poison Reverse E advertises its new table Suppose advertisement reaches B, but not yet C B E D Inf C D D Inf 64

63 Limitations (IV): Split Horizon and Poison Reverse C advertises its table, with split horizon and poison reverse B E D Inf C + Dst Metric D 3 D D 3 D Inf + Dst D Metric Inf D Inf 65

64 Limitations (V): Split Horizon and Poison Reverse B advertises its routing table, with split horizon and poison reverse For destination D, loop {C à E à B à C}! resolved only by counting to infinity D 3 B E C D + Dst D Metric Inf D D Inf + Dst Metric D 4 D 4 66

65 Summary: Distance Vector routing DV algorithm: periodically dump routing table contents to neighbors Convergence: after topology change, point when routing tables stop changing Pros: simple finds correct routes after topology changes Cons: bouncing, counting to infinity cause loops slow to converge after some topology changes split horizon, poison reverse only partial solutions 67

Computer Networks. Routing Algorithms

Computer Networks. Routing Algorithms Computer Networks Routing Algorithms Topics Routing Algorithms Shortest Path (Dijkstra Algorithm) Distance Vector Routing Count to infinity problem Solutions for count to infinity problem Link State Routing

More information

Intra-domain Routing

Intra-domain Routing Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm CS 640 1 Goal Build router forwarding tables in an internetwork using intra-domain routing protocols High level approach Distributed

More information

CSCE 463/612 Networks and Distributed Processing Spring 2018

CSCE 463/612 Networks and Distributed Processing Spring 2018 CSCE 463/612 Networks and Distributed Processing Spring 2018 Network Layer IV Dmitri Loguinov Texas A&M University April 12, 2018 Original slides copyright 1996-2004 J.F Kurose and K.W. Ross 1 Chapter

More information

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

Chapter 22 Network Layer: Delivery, Forwarding, and Routing 22.1 Chapter 22 Network Layer: Delivery, Forwarding, and Routing 22.1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 22-3 UNICAST ROUTING PROTOCOLS 22.2 A routing

More information

CSCD 330 Network Programming Spring 2018

CSCD 330 Network Programming Spring 2018 CSCD 330 Network Programming Spring 018 Lecture 16 Network Layer Routing Protocols Reading: Chapter 4 Some slides provided courtesy of J.F Kurose and K.W. Ross, All Rights Reserved, copyright 017 1 Network

More information

CSCD 330 Network Programming Spring 2017

CSCD 330 Network Programming Spring 2017 CSCD 330 Network Programming Spring 017 Lecture 16 Network Layer Routing Protocols Reading: Chapter 4 Some slides provided courtesy of J.F Kurose and K.W. Ross, All Rights Reserved, copyright 1996-007

More information

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

Computer Networking. Intra-Domain Routing. RIP (Routing Information Protocol) & OSPF (Open Shortest Path First) Computer Networking Intra-Domain Routing RIP (Routing Information Protocol) & OSPF (Open Shortest Path First) IP Forwarding The Story So Far IP addresses are structured to reflect Internet structure IP

More information

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

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 CS 457 Networking and the Internet Fall 2016 Indrajit Ray What is Routing A famous quotation from RFC 791 A name indicates what we seek An address indicates where it is A route indicates how we get there

More information

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

Last time. Transitioning to IPv6. Routing. Tunneling. Gateways. Graph abstraction. Link-state routing. Distance-vector routing. Dijkstra's Algorithm Last time Transitioning to IPv6 Tunneling Gateways Routing Graph abstraction Link-state routing Dijkstra's Algorithm Distance-vector routing Bellman-Ford Equation 10-1 This time Distance vector link cost

More information

Youki Kadobayashi NAIST

Youki Kadobayashi NAIST Information Network 1 Routing (1) Image: Part of the entire Internet topology based on CAIDA dataset, using NAIST Internet viewer Youki Kadobayashi NAIST 1 The Routing Problem! How do I get from source

More information

Routing in a network

Routing in a network Routing in a network Focus is small to medium size networks, not yet the Internet Overview Then Distance vector algorithm (RIP) Link state algorithm (OSPF) Talk about routing more generally E.g., cost

More information

Youki Kadobayashi NAIST

Youki Kadobayashi NAIST Information Network 1 Routing (1) Image: Part of the entire Internet topology based on CAIDA dataset, using NAIST Internet viewer Youki Kadobayashi NAIST 1 The Routing Problem How do I get from source

More information

Basic Idea. Routing. Example. Routing by the Network

Basic Idea. Routing. Example. Routing by the Network Basic Idea Routing Routing table at each router/gateway When IP packet comes, destination address checked with routing table to find next hop address Questions: Route by host or by network? Routing table:

More information

Routing by the Network

Routing by the Network Routing Basic Idea Routing table at each router/gateway When IP packet comes, destination address checked with routing table to find next hop address Questions: Route by host or by network? Routing table:

More information

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

CS118 Discussion 1A, Week 7. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m. CS118 Discussion 1A, Week 7 Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m. 1 Outline Network control plane Routing Link state routing (OSPF) Distance vector routing (RIP) BGP ICMP Midterm/Project 2

More information

Distance-Vector Routing: Distributed B-F (cont.)

Distance-Vector Routing: Distributed B-F (cont.) istance-vector Routing: istributed - (cont.) xample [ istributed ellman-ord lgorithm ] ssume each node i maintains an entry (R(i,x), L(i,x)), where R(i,x) is the next node along the current shortest path

More information

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

CS4450. Computer Networks: Architecture and Protocols. Lecture 11 Rou+ng: Deep Dive. Spring 2018 Rachit Agarwal CS4450 Computer Networks: Architecture and Protocols Lecture 11 Rou+ng: Deep Dive Spring 2018 Rachit Agarwal 2 Goals for Today s Lecture Learning about Routing Protocols Link State (Global view) Distance

More information

Lecture 19: Network Layer Routing in the Internet

Lecture 19: Network Layer Routing in the Internet Lecture 19: Network Layer Routing in the Internet COMP 332, Spring 2018 Victoria Manfredi Acknowledgements: materials adapted from Computer Networking: A Top Down Approach 7 th edition: 1996-2016, J.F

More information

Distance vector and RIP

Distance vector and RIP DD2490 p4 2008 Distance vector and RIP Olof Hagsand KTHNOC/NADA Literature RIP lab RFC 245: RIPv2. Sections 1 2 contains some introduction that can be useful to understand the context in which RIP is specified..1.4

More information

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan

Routing Protocols of IGP. Koji OKAMURA Kyushu University, Japan Routing Protocols of IGP Koji OKAMURA Kyushu University, Japan Routing Protocol AS (Autonomous System) Is operated autonomous in the organization. 6bit IGP (Interior Gateway Protocol) Routing Control inside

More information

Homework 3 Discussion

Homework 3 Discussion Homework 3 Discussion Address Resolution Protocol (ARP) Data Link Layer Network Layer Data Link Layer Network Layer Protocol Data Unit(PDU) Frames Packets Typical Device Switch/Bridge Router Range Local

More information

Review problems (for no credit): Transport and Network Layer

Review problems (for no credit): Transport and Network Layer Review problems (for no credit): Transport and Network Layer V. Arun CS 653, Fall 2018 09/06/18 Transport layer 1. Protocol multiplexing: (a) If a web server has 100 open connections, how many sockets

More information

TDC 363 Introduction to LANs

TDC 363 Introduction to LANs TDC 363 Introduction to LANs Routing Protocols and RIP Greg Brewster DePaul University TDC 363 1 Dynamic Routing Routing Protocols Distance Vector vs. Link State Protocols RIPv1 & RIPv2 RIP Problems Slow

More information

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007.

Routing Algorithms. CS158a Chris Pollett Apr 4, 2007. Routing Algorithms CS158a Chris Pollett Apr 4, 2007. Outline Routing Algorithms Adaptive/non-adaptive algorithms The Optimality Principle Shortest Path Routing Flooding Distance Vector Routing Routing

More information

Youki Kadobayashi NAIST

Youki Kadobayashi NAIST Information Network 1 Routing (1) Youki Kadobayashi NAIST 1 The Routing Problem! How do I get from source to destination?! Which path is best? In terms of:! Number of hops! Delay! Bandwidth! Policy constraints!

More information

Top-Down Network Design

Top-Down Network Design Top-Down Network Design Chapter Seven Selecting Switching and Routing Protocols Original slides by Cisco Press & Priscilla Oppenheimer Selection Criteria for Switching and Routing Protocols Network traffic

More information

COM-208: Computer Networks - Homework 6

COM-208: Computer Networks - Homework 6 COM-208: Computer Networks - Homework 6. (P22) Suppose you are interested in detecting the number of hosts behind a NAT. You observe that the IP layer stamps an identification number sequentially on each

More information

ICMP, ARP, RARP, IGMP

ICMP, ARP, RARP, IGMP Internet Layer Lehrstuhl für Informatik 4 Raw division into three tasks: Data transfer over a global network Route decision at the sub-nodes Control of the network or transmission status Routing Protocols

More information

CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL

CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL CHAPTER 9: PACKET SWITCHING N/W & CONGESTION CONTROL Dr. Bhargavi Goswami, Associate Professor head, Department of Computer Science, Garden City College Bangalore. PACKET SWITCHED NETWORKS Transfer blocks

More information

Youki Kadobayashi NAIST

Youki Kadobayashi NAIST Information Network 1 Routing (1) Image: Part of the entire Internet topology based on CAIDA dataset, using NAIST Internet viewer Youki Kadobayashi NAIST 1 The Routing Problem How do I get from source

More information

Routing Unicast routing protocols

Routing Unicast routing protocols Routing Unicast routing protocols Jens A Andersson Electrical and Information Technology R1 Choosing an Optimal Path R4 5 R7 5 10 40 R6 6 5 B R2 15 A 20 4 10 10 R8 R3 5 10 R5 1 Router A router is a type

More information

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet

5.1 introduction 5.5 The SDN control 5.2 routing protocols plane. Control Message 5.3 intra-as routing in Protocol the Internet Chapter 5: outline 5.1 introduction 5.5 The SDN control 5.2 routing protocols plane link state 5.6 ICMP: The Internet distance vector Control Message 5.3 intra-as routing in Protocol the Internet t 5.7

More information

Routing. Jens A Andersson Communication Systems

Routing. Jens A Andersson Communication Systems Routing Jens A Andersson Communication Systems R1 Choosing an Optimal Path R4 5 R7 5 10 40 R6 6 5 B R2 15 A 20 4 10 10 R8 R3 5 R5 10 Router A router is a type of internetworking device that passes data

More information

Node A B 0 2 C D E F 6 0. Node A B C D E F

Node A B 0 2 C D E F 6 0. Node A B C D E F 4.15 For the network given in Figure 4.50, give global distance-vector tables like those of table 4.5 and 4.8 when (a)each node knows only the distances to its immediate neighbor. (b)each node has reported

More information

Distance Vector Routing Protocols

Distance Vector Routing Protocols Distance Vector Routing Protocols Routing Protocols and Concepts Chapter 4 Version 4.0 1 Objectives Identify the characteristics of distance vector routing protocols. Describe the network discovery process

More information

Lecture 13: Routing in multihop wireless networks. Mythili Vutukuru CS 653 Spring 2014 March 3, Monday

Lecture 13: Routing in multihop wireless networks. Mythili Vutukuru CS 653 Spring 2014 March 3, Monday Lecture 13: Routing in multihop wireless networks Mythili Vutukuru CS 653 Spring 2014 March 3, Monday Routing in multihop networks Figure out a path from source to destination. Basic techniques of routing

More information

C13b: Routing Problem and Algorithms

C13b: Routing Problem and Algorithms CISC 7332X T6 C13b: Routing Problem and Algorithms Hui Chen Department of Computer & Information Science CUNY Brooklyn College 11/20/2018 CUNY Brooklyn College 1 Acknowledgements Some pictures used in

More information

Routing Algorithms. Daniel Zappala. CS 460 Computer Networking Brigham Young University

Routing Algorithms. Daniel Zappala. CS 460 Computer Networking Brigham Young University Routing Algorithms Daniel Zappala CS 460 Computer Networking Brigham Young University Routing 2/20 How does the Internet determine which path to use from the source to the destination? Challenges need

More information

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

Announcements. CS 5565 Network Architecture and Protocols. Project 2B. Project 2B. Project 2B: Under the hood. Routing Algorithms Announcements CS 5565 Network Architecture and Protocols Lecture 20 Godmar Back Project 2B due in 2 parts: Apr 29 and May 6 Extra Credit Opportunities: Expand simulator (and your implementation) to introduce

More information

Routing Protocols and the IP Layer

Routing Protocols and the IP Layer Routing Protocols and the IP Layer CS244A Review Session 2/0/08 Ben Nham Derived from slides by: Paul Tarjan Martin Casado Ari Greenberg Functions of a router Forwarding Determine the correct egress port

More information

Redes de Computadores. Shortest Paths in Networks

Redes de Computadores. Shortest Paths in Networks Redes de Computadores Shortest Paths in Networks Manuel P. Ricardo Faculdade de Engenharia da Universidade do Porto » What is a graph?» What is a spanning tree?» What is a shortest path tree?» How are

More information

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class Computer Network Homework#2 COMPUTER NETWORK Homework #3 Due Date: May 22, 2017 in class Question 1 Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes

More information

Routing in packet-switching networks

Routing in packet-switching networks Routing in packet-switching networks Circuit switching vs. Packet switching Most of WANs based on circuit or packet switching Circuit switching designed for voice Resources dedicated to a particular call

More information

CCNA IP ROUTING. Revision no.: PPT/2K605/03

CCNA IP ROUTING. Revision no.: PPT/2K605/03 CCNA 640-801 IP ROUTING Revision no.: PPT/2K605/03 Routing Basics The term routing is used for taking a packet from one device and sending it through the network to another device on a different network.

More information

ECE 333: Introduction to Communication Networks Fall 2001

ECE 333: Introduction to Communication Networks Fall 2001 ECE : Introduction to Communication Networks Fall 00 Lecture : Routing and Addressing I Introduction to Routing/Addressing Lectures 9- described the main components of point-to-point networks, i.e. multiplexed

More information

We will discuss about three different static routing algorithms 1. Shortest Path Routing 2. Flooding 3. Flow Based Routing

We will discuss about three different static routing algorithms 1. Shortest Path Routing 2. Flooding 3. Flow Based Routing In this lecture we will discuss about Routing algorithms Congestion algorithms Lecture 19 The routing algorithm is that part of the network layer software, which is responsible for deciding which output

More information

Chapter 4: Network Layer, partb

Chapter 4: Network Layer, partb Chapter 4: Network Layer, partb The slides are adaptations of the slides available by the main textbook authors, Kurose&Ross Network Layer 4-1 Interplay between routing, forwarding routing algorithm local

More information

IP Forwarding Computer Networking. Graph Model. Routes from Node A. Lecture 11: Intra-Domain Routing

IP Forwarding Computer Networking. Graph Model. Routes from Node A. Lecture 11: Intra-Domain Routing IP Forwarding 5-44 omputer Networking Lecture : Intra-omain Routing RIP (Routing Information Protocol) & OSPF (Open Shortest Path First) The Story So Far IP addresses are structured to reflect Internet

More information

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

Hierarchical Routing. Our routing study thus far - idealization all routers identical network flat not true in practice Hierarchical Routing Our routing study thus far - idealization all routers identical network flat not true in practice scale: with 200 million destinations: can t store all destinations in routing tables!

More information

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

CSE 461 Routing. Routing. Focus: Distance-vector and link-state Shortest path routing Key properties of schemes CSE 46 Routing Routing Focus: How to find and set up paths through a network Distance-vector and link-state Shortest path routing Key properties of schemes Application Transport Network Link Physical Forwarding

More information

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

(Refer Slide Time: 01:08 to 01:25min) COMPUTER NETWORKS Prof. Sujoy Ghosh Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture-27 RIP- Distance Vector Routing We have seen basic routing. Now we will

More information

Determining IP Routes. 2000, Cisco Systems, Inc. 9-1

Determining IP Routes. 2000, Cisco Systems, Inc. 9-1 Determining IP Routes, Cisco Systems, Inc. 9- Objectives Upon completion of this chapter, you will be able to complete the following tasks: Distinguish the use and operation of static and dynamic routes

More information

Communication Networks

Communication Networks Communication Networks Spring 208 Roland Meier / Thomas Holterbach Slides: Laurent Vanbever nsg.ee.ethz.ch ETH Zürich (D-ITET) April 9 208 Materials inspired from Scott Shenker & Jennifer Rexford Last

More information

CSc 450/550 Computer Networks Internet Routing

CSc 450/550 Computer Networks Internet Routing CSc 450/550 Computer Networks Internet Routing Jianping Pan Summer 2007 7/12/07 CSc 450/550 1 Review Internet Protocol (IP) IP header addressing class-based, classless, hierarchical, NAT routing algorithms

More information

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

Politecnico di Milano Scuola di Ingegneria Industriale e dell Informazione. 06 Routing protocols. Fundamentals of Communication Networks Politecnico di Milano Scuola di Ingegneria Industriale e dell Informazione 06 Routing protocols Fundamentals of Communication Networks Topics o Routing basics o Routing algorithms (Bellman-Ford, Dijkstra)

More information

Chapter 4 Network Layer. Network Layer 4-1

Chapter 4 Network Layer. Network Layer 4-1 Chapter 4 Network Layer Network Layer 4- Chapter 4: Network Layer 4. Introduction 4. Virtual circuit and datagram networks 4. What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing

More information

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

Internet rou)ng. V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst Internet rou)ng V. Arun CS491G: Computer Networking Lab University of MassachuseFs Amherst Slide material copyright 1996-2013 J.F Kurose and K.W. Ross, All Rights Reserved Graph abstraction 5 graph: G

More information

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS 1. General (5p) a) The so-called hourglass model (sometimes referred to as a wine-glass ) has been used

More information

MID-TERM EXAM TCP/IP NETWORKING Duration: 2 hours With Solutions

MID-TERM EXAM TCP/IP NETWORKING Duration: 2 hours With Solutions MID-TERM EXAM TCP/IP NETWORKING Duration: 2 hours With Solutions Jean-Yves Le Boudec 2005 December 8 Do not forget to put your names on all sheets of your solution. If you need to make assumptions in order

More information

6.02 Fall 2014! Lecture #21. Failures in routing Routing loops Counting to infinity

6.02 Fall 2014! Lecture #21. Failures in routing Routing loops Counting to infinity 6.02 Fall 2014! Lecture #21 Failures in routing Routing loops Counting to infinity Unanswered questions (about packet-switched networks) How do nodes determine routes to every other node? Nodes determine

More information

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

Lecture 12. Introduction to IP Routing. Why introduction? Routing Lecture. Introduction to IP Routing Why introduction? Routing: very complex issue need in-depth study entire books on routing our scope: give a flavour of basic routing structure and messaging give an

More information

cs/ee 143 Communication Networks

cs/ee 143 Communication Networks cs/ee 143 Communication Networks Chapter 5 Routing Text: Walrand & Parakh, 2010 Steven Low CMS, EE, Caltech Warning These notes are not self-contained, probably not understandable, unless you also were

More information

Topology. Youki Kadobayashi NAIST. Outline. Routing system: its function. Gateway Model Revisited. Routing system: its structure

Topology. Youki Kadobayashi NAIST. Outline. Routing system: its function. Gateway Model Revisited. Routing system: its structure Information Network 1 Routing (1) Topology Topology 1: 2a (1): a branch of mathematics concerned with those properties of geometric configurations (as point sets) which are unaltered by elastic deformations

More information

Network layer. Network Layer 4-1. application transport network data link physical. network data link physical. network data link physical

Network layer. Network Layer 4-1. application transport network data link physical. network data link physical. network data link physical Network layer transport segment from sending to receiving host on sending side encapsulates segments into datagrams on receiving side, delivers segments to transport layer network layer protocols in every

More information

CS118 Discussion Week 7. Taqi

CS118 Discussion Week 7. Taqi CS118 Discussion Week 7 Taqi Outline Hints for project 2 Lecture review: routing About Course Project 2 Please implement byte-stream reliable data transfer Cwnd is in unit of bytes, not packets How to

More information

Module 8. Routing. Version 2 ECE, IIT Kharagpur

Module 8. Routing. Version 2 ECE, IIT Kharagpur Module 8 Routing Lesson 27 Routing II Objective To explain the concept of same popular routing protocols. 8.2.1 Routing Information Protocol (RIP) This protocol is used inside our autonomous system and

More information

ITEC310 Computer Networks II

ITEC310 Computer Networks II ITEC310 Computer Networks II Chapter 22 Network Layer:, and Routing Department of Information Technology Eastern Mediterranean University Objectives 2/131 After completing this chapter you should be able

More information

Interplay between routing, forwarding

Interplay between routing, forwarding Chapter 4: outline 4. introduction 4. virtual circuit and datagram networks 4. what s inside a router 4.4 IP: Internet Protocol datagram format IPv4 addressing ICMP IPv6 4.5 routing algorithms link state

More information

How Routing Algorithms Work

How Routing Algorithms Work How Routing Algorithms Work A router is used to manage network traffic and find the best route for sending packets. But have you ever thought about how routers do this? Routers need to have some information

More information

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan

Internet Protocol: Routing Algorithms. Srinidhi Varadarajan Internet Protocol: Routing Algorithms Srinidhi Varadarajan Routing Routing protocol Goal: determine good path (sequence of routers) thru network from source to dest. Graph abstraction for routing algorithms:

More information

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

Overview. Problem: Find lowest cost path between two nodes Factors static: topology dynamic: load Dynamic Routing Overview Forwarding vs Routing forwarding: to select an output port based on destination address and routing table routing: process by which routing table is built Network as a Graph C

More information

Chapter 4: Network Layer

Chapter 4: Network Layer Chapter 4: Network Laer 4. Introduction 4. Virtual circuit and datagram networks 4. What s inside a router 4.4 IP: Internet Protocol Datagram format IPv4 addressing ICMP IPv6 4. Routing algorithms Link

More information

CMPE 151 Routing. Marc Mosko

CMPE 151 Routing. Marc Mosko CMPE 151 Routing Marc Mosko Talk Outline Routing basics Why segment networks? IP address/subnet mask The gateway decision based on dest IP address default gateway and static routing gateway discovery (DHCP,

More information

FINAL EXAM - SLOT 2 TCP/IP NETWORKING Duration: 90 min. With Solutions

FINAL EXAM - SLOT 2 TCP/IP NETWORKING Duration: 90 min. With Solutions First name: Family name: FINAL EXAM - SLOT 2 TCP/IP NETWORKING Duration: 90 min. With Solutions Jean-Yves Le Boudec, Patrick Thiran 2011 January 15 INSTRUCTIONS 1. The exam is in two time slots. Slot 1

More information

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

CS 138: Communication I. CS 138 V 1 Copyright 2012 Thomas W. Doeppner. All rights reserved. CS 138: Communication I CS 138 V 1 Copyright 2012 Thomas W. Doeppner. All rights reserved. Topics Network Metrics Layering Reliability Congestion Control Routing CS 138 V 2 Copyright 2012 Thomas W. Doeppner.

More information

IP Review. CS144 Review Session 3 April 18, 2008 Ben Nham

IP Review. CS144 Review Session 3 April 18, 2008 Ben Nham IP Review CS144 Review Session 3 April 18, 2008 Ben Nham Layering Review ApplicaBon Data Transport Data TCP/UDP Header Network Data TCP/UDP Header IP Header Link Data TCP/UDP Header IP Header Ethernet

More information

CIS 632 / EEC 687 Mobile Computing

CIS 632 / EEC 687 Mobile Computing CIS 63 / EEC 687 Mobile Computing IP Software: Routing Prof. Chansu Yu Network Protocols for Wired Network: Ethernet Ethernet address 48-bit, also called hardware/physical/mac/layer address Globally unique:

More information

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP IP ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP Peter R. Egli 1/37 Contents 1. IP Routing 2. Routing Protocols 3. Fragmentation in the IP Layer 4. Proxy ARP 5. Routing and IP forwarding

More information

CSC 4900 Computer Networks: Routing Algorithms

CSC 4900 Computer Networks: Routing Algorithms CSC 4900 Computer Networks: Routing Algorithms Professor Henry Carter Fall 2017 Last Time Subnets provide granularity for address assignment and ease management. What is 192.168.8.0? 192.168.32.0? 192.168.8.0:

More information

Internetworking Protocols and Software (COMP416)

Internetworking Protocols and Software (COMP416) Internetworking Protocols and Software (COMP416) Assignment Three (due on 2 Dec. 2013) Rocky K. C. Chang 1) [10 MARKS] (TCP congestion control I) In this question, we revisit the congestion control problem

More information

CS 5114 Network Programming Languages Control Plane. Nate Foster Cornell University Spring 2013

CS 5114 Network Programming Languages Control Plane. Nate Foster Cornell University Spring 2013 CS 5 Network Programming Languages Control Plane http://www.flickr.com/photos/rofi/0979/ Nate Foster Cornell University Spring 0 Based on lecture notes by Jennifer Rexford and Michael Freedman Announcements

More information

Routing, Routing Algorithms & Protocols

Routing, Routing Algorithms & Protocols Routing, Routing Algorithms & Protocols Computer Networks Lecture 6 http://goo.gl/pze5o8 Circuit-Switched and Packet-Switched WANs 2 Circuit-Switched Networks Older (evolved from telephone networks), a

More information

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING FINAL EXAMINATION: April 25, 2017 DURATION: 2V2 hrs. ECE361 - Computer Networks Exam Type: B Calculator Type: 2 (non-programmable calculators)

More information

CS321: Computer Networks Unicast Routing

CS321: Computer Networks Unicast Routing CS321: Computer Networks Unicast Routing Dr. Manas Khatua Assistant Professor Dept. of CSE IIT Jodhpur E-mail: manaskhatua@iitj.ac.in Introduction The goal of the network layer is deliver a datagram from

More information

Introduction to Computer Networks

Introduction to Computer Networks Introduction to Computer Networks Tian Song ( 嵩天 ), Ph.D., Assoc. Prof. songtian@bit.edu.cn Introduction to Computer Networks ICMP, ARP, DHCP, OSPF, BGP Tian Song ( 嵩天 ), Ph.D., Assoc. Prof. songtian@bit.edu.cn

More information

ETSF05/ETSF10 Internet Protocols. Routing on the Internet

ETSF05/ETSF10 Internet Protocols. Routing on the Internet ETSF05/ETSF10 Internet Protocols Routing on the Internet Circuit switched routing ETSF05/ETSF10 - Internet Protocols 2 Routing in Packet Switching Networks Key design issue for (packet) switched networks

More information

Routing Outline. EECS 122, Lecture 15

Routing Outline. EECS 122, Lecture 15 Fall & Walrand Lecture 5 Outline EECS, Lecture 5 Kevin Fall kfall@cs.berkeley.edu Jean Walrand wlr@eecs.berkeley.edu Definition/Key Questions Distance Vector Link State Comparison Variations EECS - Fall

More information

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

Routing. Routing. Overview. Overview. Routing vs. Forwarding. Why Routing Routing Dr. Arjan Durresi Department of Computer Science Louisiana State University Overview Routing vs. Forwarding Routing Algorithms, Distance Vector, Link State Dijkstra s Algorithm ARPAnet Routing

More information

EITF25 Internet Routing. Jens A Andersson

EITF25 Internet Routing. Jens A Andersson 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

More information

CSC 4900 Computer Networks: Routing Protocols

CSC 4900 Computer Networks: Routing Protocols CSC 4900 Computer Networks: Routing Protocols Professor Henry Carter Fall 2017 Last Time Link State (LS) versus Distance Vector (DV) algorithms: What are some of the differences? What is an AS? Why do

More information

CS BGP v4. Fall 2014

CS BGP v4. Fall 2014 CS 457 - BGP v4 Fall 2014 Autonomous Systems What is an AS? a set of routers under a single technical administration uses an interior gateway protocol (IGP) and common metrics to route packets within the

More information

Topics for This Week

Topics for This Week Topics for This Week Routing Protocols in the Internet OSPF, BGP More on IP Fragmentation and Reassembly ICMP Readings Sections 5.6.4-5.6.5 1 Hierarchical Routing aggregate routers into regions, autonomous

More information

ETSF05/ETSF10 Internet Protocols Routing on the Internet

ETSF05/ETSF10 Internet Protocols Routing on the Internet 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

More information

THE HONG KONG POLYTECHNIC UNIVERSITY. Department of Computing. This is an open-book examination.

THE HONG KONG POLYTECHNIC UNIVERSITY. Department of Computing. This is an open-book examination. THE HONG KONG POLYTECHNIC UNIVERSITY Department of Computing This is an open-book examination. () Internetworking Protocols and Software 7 January 2013 3 hours [Answer all ten questions.] 2 Please answer

More information

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class Computer Network Homework#3 COMPUTER NETWORK Homework #3 Due Date: May 22, 2017 in class Question 1 Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes

More information

Communication Networks

Communication Networks Communication Networks Spring 2018 Q&A Session Rüdiger Birkner Tobias Bühler https://comm-net.ethz.ch/ ETH Zürich August 6 2018 Old exam from 2016 3 hours instead of 2.5 Topics which we did not discuss

More information

SWITCHING, FORWARDING, AND ROUTING

SWITCHING, FORWARDING, AND ROUTING SWITCHING, FORWARDING, AND ROUTING George Porter Oct 4 and 9, 2018 ATTRIBUTION These slides are released under an Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) Creative Commons license

More information

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

Review: Routing in Packet Networks Shortest Path Algorithms: Dijkstra s & Bellman-Ford. Routing: Issues Review: Routing in Packet Networks Shortest Path lgorithms: ijkstra s & ellman-ford Routing: Issues How are routing tables determined? Who determines table entries? What info used in determining table

More information

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

Routing Protocols. The routers in an internet are responsible for receiving and. forwarding IP datagrams through the interconnected set of Routing Protocols MITA DUTTA The routers in an internet are responsible for receiving and forwarding IP datagrams through the interconnected set of sub-networks from source to destination. Routing protocols

More information

CSEP 561 Routing. David Wetherall

CSEP 561 Routing. David Wetherall CSEP 561 Routing David Wetherall djw@cs.washington.edu Routing Focus: How to find and set up paths through a network Distance-vector and link-state Application Shortest path routing Transport Key properties

More information