6.033: Intro to Computer Networks Layering & Routing Dina Katabi & Sam Madden Some slides are contributed by N. McKewon, J. Rexford, I. Stoica.

Slides:



Advertisements
Similar presentations
Protocol layers and Wireshark Rahul Hiran TDTS11:Computer Networks and Internet Protocols 1 Note: T he slides are adapted and modified based on slides.
Advertisements

Layering and the network layer CS168, Fall 2014 Sylvia Ratnasamy
Chapter 17 Networking Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William.
Network Layer: Internet-Wide Routing & BGP Dina Katabi & Sam Madden.
Summer Workshop on Cyber Security Computer Networks Security (Part 1) Dr. Hamed Mohsenian-Rad University of California at Riverside and Texas Tech University.
1 Link Layer & Network Layer Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
Networking Theory (part 2). Internet Architecture The Internet is a worldwide collection of smaller networks that share a common suite of communication.
L10: Protocols and Layering Dina Katabi Spring Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek,
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
COS 461: Computer Networks Jennifer Rexford Lectures: MW 10-10:50am in Architecture N101 Preceptors: Rob Kiefer, Xiaozhou Li, and Peng Sun Precepts: F.
1 Link Layer & Network Layer Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek, Hari Balakrishnan, and Sam Madden Prof. Dina Katabi.
CS335 Networking & Network Administration Tuesday, April 20, 2010.
Introduction to Computer Networks 09/23 Presenter: Fatemah Panahi.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
1 Review of Important Networking Concepts Introductory material. This slide uses the example from the previous module to review important networking concepts:
Lecture slides prepared for “Business Data Communications”, 7/e, by William Stallings and Tom Case, Chapter 8 “TCP/IP”.
Lecture 8 Modeling & Simulation of Communication Networks.
Computer Networks Layering and Routing Dina Katabi
Lecture 1 Internet CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger and Daniel Zappala Lecture 1 Introduction.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 8: Bridging Slides used with permissions.
Communications Recap Duncan Smeed. Introduction 1-2 Chapter 1: Introduction Our goal: get “feel” and terminology more depth, detail later in course.
LECTURE 9 CT1303 LAN. LAN DEVICES Network: Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and.
Chapter 2 Network Models
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Instructor: Christopher Cole Some slides taken from Kurose & Ross book IT 347: Chapter 1.
1 ELEN602 Lecture 2 Review of Last Lecture Layering.
CIM 2465 Intro to TCP/IP1 Introduction to TCP/IP (Topic 5) Textbook: Networking Basics, CCNA 1 Companion Guide, Cisco Press Cisco Networking Academy Program,
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
L11: Link and Network layer Dina Katabi Spring Some slides are from lectures by Nick Mckeown, Ion Stoica, Frans Kaashoek,
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.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_b Protocol Layering Instructor: Dr. Li-Chuan Chen Date: 09/15/2003 Based in part upon slides of Prof.
1 Networking Chapter Distributed Capabilities Communications architectures –Software that supports a group of networked computers Network operating.
5: Link Layer Part Link Layer r 5.1 Introduction and services r 5.2 Error detection and correction r 5.3Multiple access protocols r 5.4 Link-Layer.
1 Network Layer Lecture 13 Imran Ahmed University of Management & Technology.
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
©Brooks/Cole, 2003 Model and protocol  A model is the specification set by a standards organization as a guideline for designing networks.  A protocol.
4061 Session 25 (4/17). Today Briefly: Select and Poll Layered Protocols and the Internets Intro to Network Programming.
Chapter 2 Protocols and the TCP/IP Suite 1 Chapter 2 Protocols and the TCP/IP Suite.
1 Chapter 4. Protocols and the TCP/IP Suite Wen-Shyang Hwang KUAS EE.
Rehab AlFallaj.  Network:  Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and do specific task.
IT 210: Web-based IT Fall 2012 Lecture: Network Basics, OSI, & Internet Architecture.
Sy Le CS 147.  Process of transferring information between computers virtually anywhere in the world.
Enterprise Network Systems TCP Mark Clements. 3 March 2008ENS 2 Last Week – Client/ Server Cost effective way of providing more computing power High specs.
L11: Protocols and Network layer Frans Kaashoek Spring Some slides are from lectures by Nick Mckeown, Ion Stoica,Dina.
J. Liebeher (modified by M. Veeraraghavan) 1 Introduction Complexity of networking: An example Layered communications The TCP/IP protocol suite.
Introduction and Overview of Network and Telecommunications.
Communication Networks NETW 501 Tutorial 2
A special acknowledge goes to J.F Kurose and K.W. Ross Some of the slides used in this lecture are adapted from their original slides that accompany the.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
CIS 700-5: The Design and Implementation of Cloud Networks
Whirlwind Tour Of Lectures So Far
Part I. Overview of Data Communications and Networking
CS 280: Summary: A day in the life of a web request
Course Review 2015 Computer networks 赵振刚
Using MIS 2e Chapter 6 Appendix
Lectures Computer networking تمرین 3 نمره. پژوهش عملیاتی 2 نمره.
THE NETWORK LAYER.
Chapter 5 The Network Layer.
Intra-Domain Routing Jacob Strauss September 14, 2006.
Computer Science 457 Networking and the Internet
ECE453 – Introduction to Computer Networks
Networking Theory (part 2)
Network Models CCNA Instructor Training Course October 12-17, 2009
Distributed Systems CS
Network Architecture Models
Networking Theory (part 2)
Distributed Systems CS
Presentation transcript:

6.033: Intro to Computer Networks Layering & Routing Dina Katabi & Sam Madden Some slides are contributed by N. McKewon, J. Rexford, I. Stoica

The Internet is an Exciting Place 2

Two Billion Internet Users 3 ~5 Billion Devices (PCs, laptops, smart phones, etc.)

The Internet is a Tense Place 4

Internet Traffic to/from Egypt

Stop Online Piracy Act (SOPA) 7

Network Neutrality 8 FCC Rules Against Comcast P2P Throttling The U.S. Federal Communications Commission has ordered Comcast to stop interfering with peer-to-peer traffic on its broadband network…

IP Address Space Exhaustion 9 “Currently, the Internet is built using IPv4, but on February 3, 2011, the global supply of unassigned IPv4 Internet addresses was exhausted. On that date, the Internet Assigned Numbers Authority has distributed the final five blocks of approximately 16 million IPv4 addresses among the five Regional Internet Registries. ”

Cyber Attacks 10

What is the Internet? 3 guiding principles! 11

“Best-Effort Packet Delivery Service” 12 THE INTERNET THE INTERNET packets

“Power at the Edge” End-to-End Principle Whenever possible, communications protocol operations should be defined to occur at the end- points of a communications system. Keeps the network simple and scalable Allows for easy introduction of new services at the edges

“A Network of Networks” Client Browser Web server THE INTERNET THE INTERNET

“A Network of Networks” Client Browser Web server 6 1 2

How the Internet is Organizing? Layering 16

Layering Layering is a particular form of abstraction The system is broken into a vertical stack of functions/protocols The service provided by one layer is based solely on the service provided by layer below – This is the “up/down” interface

Application HTTP, FTP, SMTP, BitTorrent, … Transport TCP, UDP End-to-End Layer Layering in the Internet Data Link Physical Ethernet, WiFi, … Framing, coding, channel access Modulation/demodulation Network IP Forwarding & routing Everything else! Reliability, integrity, packet ordering, congestion control, …

Application Transport Network Datalink Application Transport Network Datalink Network Datalink Physical medium Host Switch (Router) Link and network layers are implemented everywhere The end-to-end layer (i.e., transport and application) is implemented only at hosts

An Example Browser mypc.mit.edu Server web.mit.edu GET “6.033/index.html” TCP Reliable data transfer IP FTP News File Router Wireless Optical T3 Ethernet SCTP UDP OK; file data

The Internet “Hourglass” IP WebFTPMailNewsVideoAudiopingnapster Applications TCPSCTPUDPICMP Transport protocols Ethernet SatelliteOpticalPower linesBluetoothATM Link technologies Many applications, transports, and link protocols All use IP at the network layer: universal network layer

Routing (figuring out the routes) & Forwarding (sending the packets) 22 Network Layer

How Does a Router Forwards the Packets? A router has input links and output links A router sends an input packet on the output link leading toward the packet’s destination node A router does not care of who generated the packet Router Destination of blue packets Destination of red packets Destination of green packets Router

Link 1, input Link 1, output Link 2, input Link 2, output Link 3, input Link 3, output A A B B C C Router D D How does the router know which output link leads to a packet destination? Packet header has the destination Router looks up the destination in its table to find output link Table is built using a routing protocol Forwarding Table Destination Out-link A out-link 1 B out-link 2 C out-link 3 D out-link 3 to B

Basic Requirements of a Routing Protocol Finds a path from source to destination Optimizes some metric (delay, cost, etc.) Has no (permanent) loops

Distance Vector Routing Initialize – Distance to self is zero and next hop is self – Distance to anyone else is infinity Announce: Every T seconds – Tell neighbors distances to all destinations Update route to dst. upon message from j – Distance via j = j’s distance + weight of link to j – If distance via j is shorter than current distance, update routing table to go via j

27 Example Objective: Determine the route from (R 1, …, R 7 ) to R 8 that minimizes the distance R5R5 R3R3 R7R7 R6R6 R4R4 R2R2 R1R R8R8

28 Solution is simple by inspection... (in this case) R3R3 R1R1 R5R5 R4R4 R8R8 R6R6 The shortest paths from all sources to a destination (e.g., R 8 ) is the spanning tree routed at that destination. R2R2 R7R

29 Distance Vector Routing R5R5 R3R3 R7R7 R8R8 R6R6 R4R4 R2R2 R1R1 Example Initial State: All routers except R8 set their route length to ∞. R8 sets its route length to 0. 0

30 R5R5 R3R3 R7R7 R8R8 R6R6 R4R4 R2R2 R1R R1R1 Inf R2R2 R3R3 4, R 8 R4R4 Inf R5R5 2, R 8 R6R6 R7R7 3, R  Every T seconds, Router i tells its neighbors about its current lowest-cost path to R8  Each router updates its distance as min(current distance, received distance + link weight) Note, routing tables have both the next-hop and the distance Distance Vector Routing Example

31 R5R5 R3R3 R7R7 R8R8 R6R6 R4R4 R2R2 R1R R1R1 6, R3 R2R2 4, R5 R3R3 4, R 8 R4R4 6, R7 R5R5 2, R 8 R6R6 R7R7 3, R Repeat until no distance change Distance Vector Routing Example

32 R5R5 R3R3 R7R7 R8R8 R6R6 R4R4 R2R2 R1R R1R1 6, R3 R2R2 4, R5 R3R3 4, R 8 R4R4 6, R7 R5R5 2, R 8 R6R6 R7R7 3, R R5R5 R3R3 R7R7 R8R8 R6R6 R4R4 R2R2 R1R R1R1 5, R2 R2R2 4, R5 R3R3 4, R 8 R4R4 5, R2 R5R5 2, R 8 R6R6 R7R7 3, R Final Iteration Distance Vector Routing Example

Summary Internet architecture is based on layering E2E Layer Network Layer Link Layer Job of Network Layer is Routing & Forwarding – Routers build routing tables using routing protocol – Routers forward packets based on the packet’s header and the routing table