Network Technologies essentials Week 5: Routing Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University of Washington.

Slides:



Advertisements
Similar presentations
Network Technologies essentials Week 2: Physical layer & direct links Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall,
Advertisements

Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
Fundamentals of Computer Networks ECE 478/578 Lecture #18: Policy-Based Routing Instructor: Loukas Lazos Dept of Electrical and Computer Engineering University.
1 LINK STATE PROTOCOLS (contents) Disadvantages of the distance vector protocols Link state protocols Why is a link state protocol better?
1 Comnet 2010 Communication Networks Recitation 6 Routing.
Routing So how does the network layer do its business?
Distance-Vector Routing COS 461: Computer Networks Spring 2010 (MW 3:00-4:20 in COS 105) Michael Freedman
Routing and Routing Protocols
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
Fundamentals of Networking Discovery 2, Chapter 6 Routing.
Computer Networks Layering and Routing Dina Katabi
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
Network Technologies essentials Week 4: Internetworking Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University of.
SAvPS – úvod Genči 2009 (bsaed on Tanenbaum’s slides.
Lecture Week 10 Link-State Routing Protocols. Objectives Describe the basic features & concepts of link-state routing protocols. List the benefits and.
Lecture 8 Page 1 Advanced Network Security Review of Networking Basics: Internet Architecture, Routing, and Naming Advanced Network Security Peter Reiher.
6: Routing Working at a Small to Medium Business.
1 Computer Communication & Networks Lecture 22 Network Layer: Delivery, Forwarding, Routing (contd.)
Routing and Routing Protocols Routing Protocols Overview.
Network Technologies essentials Week 8: TCP congestion control Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University.
Network Technologies essentials Week 9: Applications: DNS and HTTP Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vector Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
Network Technologies essentials Week 9: Distributed file sharing & multimedia Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall,
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
David Wetherall Professor of Computer Science & Engineering Introduction to Computer Networks Hierarchical Routing (§5.2.6)
Network Technologies essentials Week 3: Retransmission, sharing links, switching Compilation made by Tim Moors, UNSW Australia Original slides by David.
Routing Overview.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 06_a Routing Protocols: RIP, OSPF, BGP Instructor: Dr. Li-Chuan Chen Date: 10/06/2003 Based in part upon.
1 Computer Communication & Networks Lecture 21 Network Layer: Delivery, Forwarding, Routing Waleed.
TCOM 515 Lecture 2. Lecture 2 Objectives Dynamic Routing Distance Vectore Routing Link State Routing Interior vs Exterior RIP - Routing Information Protocol.
CS 4396 Computer Networks Lab BGP. Inter-AS routing in the Internet: (BGP)
Routing protocols. Static Routing Routes to destinations are set up manually Route may be up or down but static routes will remain in the routing tables.
Dynamic Routing Protocols II OSPF
Transport Layer3-1 Network Layer Every man dies. Not every man really lives.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
Ch 22. Routing Direct and Indirect Delivery.
1 Chapter 4: Internetworking (IP Routing) Dr. Rocky K. C. Chang 16 March 2004.
Computer Science & Engineering Introduction to Computer Networks Routing Overview.
CS 6401 Intra-domain Routing Outline Introduction to Routing Distance Vector Algorithm.
CSE 421 Computer Networks. Network Layer 4-2 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education-Prentice Hall, 2011 The Network Layer Chapter
The Network Layer Chapter 5 Computer Networks, Fifth Edition by Andrew Tanenbaum and David Wetherall, © Pearson Education- Prentice Hall, 2011.
CSE 461 University of Washington1 Where we are in the Course More fun in the Network Layer! – We’ve covered packet forwarding – Now we’ll learn about routing.
Network Layer COMPUTER NETWORKS Networking Standards (Network LAYER)
Working at a Small-to-Medium Business or ISP – Chapter 6
2017 session 1 TELE3118: Network Technologies Week 6: Network Layer Control Plane Inter-Domain Routing Protocols Some slides have been adapted from:
Dynamic Routing Protocols II OSPF
COMP 3270 Computer Networks
Network Layer.
THE NETWORK LAYER.
Chapter 5 The Network Layer.
Intra-Domain Routing Jacob Strauss September 14, 2006.
Dynamic Routing Protocols II OSPF
E : Internet Routing Lecture 5 Fundamentals of Routing Protocols
Routers Routing algorithms
Intradomain Routing Outline Introduction to Routing
Dynamic Routing and OSPF
ECE453 – Introduction to Computer Networks
Advanced Computer Networks
Working at a Small-to-Medium Business or ISP – Chapter 6
COMP/ELEC 429/556 Introduction to Computer Networks
COMPUTER NETWORKS CS610 Lecture-41 Hammad Khalid Khan.
EE 122: Intra-domain routing: Distance Vector
Communication Networks
BGP Instability Jennifer Rexford
Network Layer: Internet Inter-Domain Routing
Presentation transcript:

Network Technologies essentials Week 5: Routing Compilation made by Tim Moors, UNSW Australia Original slides by David Wetherall, University of Washington ISBN-10: © 2014 For the book A. Tanenbaum and D. Wetherall: Computer Networks, 5 th ed, Prentice-Hall, 2011A. Tanenbaum and D. Wetherall: Computer Networks, 5 th ed, Prentice-Hall, 2011 Tim added green graffiti

Computer Networks2 Shortest Paths (4) Optimality property: – Subpaths of shortest paths are also shortest paths ABCE is a shortest path  So are ABC, AB, BCE, BC, CE AB C D E F G H

Computer Networks3 Dijkstra’s Algorithm Algorithm : Mark all nodes tentative, set distances from source to 0 (zero) for source, and ∞ (infinity) for all other nodes While tentative nodes remain: – Extract N, a node with lowest distance – Add link to N to the shortest path tree – Relax the distances of neighbors of N by lowering any better distance estimates 5-3.4

Dijkstra’s Algorithm (2) Initialization Computer Networks4 AB C D E F G H ∞ ∞ ∞ ∞ ∞ ∞ We’ll compute shortest paths from A ∞ 5-3.5

Computer Networks5 Distance Vector Algorithm Each node maintains a vector of distances (and next hops) to all destinations 1.Initialize vector with 0 (zero) cost to self, ∞ (infinity) to other destinations 2.Periodically send vector to neighbors 3.Update vector for each destination by selecting the shortest distance heard, after adding cost of neighbor link – Use the best neighbor for forwarding 5-4.5

DV Example (4) Second exchange for all nodes to find best 2-hop routes Computer Networks6 A learns Cost Next 0-- 3B 9D 6B To A says B says C says D says A03∞7 B3063 C∞602 D7320 = learned better route B C D A B learns Cost Next 3A 0-- 5D 3D C learns Cost Next 9B 5D 0-- 2D D learns Cost Next 6B 3B 2C

Forwarding with ECMP (2) Computer Networks7 AB C D E F G H Multipath routes from F/E to C/HE’s Forwarding Choices Flow Possible next hops Example choice F  HC, DD F  CC, DD E  HC, DC E  CC, DC Use both paths to get to one destination 5-7.9

Hierarchical Routing (4) Penalty is longer paths Computer Networks8 1C is best route to region 5, except for destination 5C

Subnets Internally split up one IP prefix Computer Networks9 64K addresses One prefix sent to rest of Internet 16K 32K 8K CompanyRest of Internet

Computer Networks10 Routing Policies – Transit One party (customer) gets TRANSIT service from another party (ISP) – ISP accepts traffic from customer to deliver to the rest of Internet – ISP accepts traffic from the rest of the Internet to delivery to customer – Customer pays ISP for the privilege Customer 1 ISP Customer 2 Rest of Internet Non- customer

Computer Networks11 Routing Policies – Peer Both party (ISPs in example) get PEER service from each other – Each ISP accepts traffic from the other ISP only for their customers – ISPs do not carry traffic to the rest of the Internet for each other – ISPs don’t pay each other Customer A1 ISP A Customer A2 Customer B1 ISP B Customer B

BGP Example AS2 buys TRANSIT service from AS1 and PEER service from AS3 Computer Networks ← B, AS3 → A, AS2 ← C, AS4 → B, AS3 ↑ C, AS4 ↓ A, AS1,AS2 ↓ B, AS1, AS3 ↑ A, AS2 ↓ B, AS1, AS3 ↓ C, AS1, AS4 ↑ B, AS3 ↓ A, AS1, AS2 ↓ C, AS1, AS4

END © 2013 D. Wetherall Slide material from: TANENBAUM, ANDREW S.; WETHERALL, DAVID J., COMPUTER NETWORKS, 5th Edition, © Electronically reproduced by permission of Pearson Education, Inc., Upper Saddle River, New Jersey Computer Networks13