CS3600 SYSTEMS AND NETWORKS

Similar documents
CS4700/CS5700 Fundaments of Computer Networks

CS4700/CS5700 Fundaments of Computer Networks

Lecture 3 Protocol Stacks and Layering

Lecture 2: Internet Architecture

CS 268: Internet Architecture & E2E Arguments. Today s Agenda. Scott Shenker and Ion Stoica (Fall, 2010) Design goals.

CSE 123A Computer Networks

CS4700/CS5700 Fundamentals of Computer Networks

Page 1. Goals for Today" What Is A Protocol?" CS162 Operating Systems and Systems Programming Lecture 10. Protocols, Layering and e2e Argument"

CS4700/5700: Network fundamentals

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

INTRODUCTORY COMPUTER

Introduction to Networks

Peer entities. Protocol Layering. Protocols. Example

ECE 650 Systems Programming & Engineering. Spring 2018

CS3600 SYSTEMS AND NETWORKS

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

QUESTION BANK EVEN SEMESTER

Chapter 2 Network Models 2.1

CS4700/CS5700 Fundamentals of Computer Networks

Internet Design Principles

Last Lecture. Network Architecture: Layers. This Lecture. In the sending host (2) In the sending host

CS 640: Introduction to Computer Networks. Today s Lecture. Page 1

Page 1. Review: The Problem" Software System Modularity" Solution: Intermediate Layers"

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

Computer Networks

Network Reference Models

EEC-484/584 Computer Networks

Lecture-4. TCP/IP-Overview:

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Data Communication and Network. Introducing Networks

ITEC 3800 Data Communication and Network. Introducing Networks

Networking and Internetworking 1

The OSI Model. Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO).

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. ** Slides are attributed to J. F.

CS-435 spring semester Network Technology & Programming Laboratory. Stefanos Papadakis & Manolis Spanakis

BABU MADHAV INSTITUTE OF INFORMATION TECHNOLOGY, UTU 2017

Introduction to Information Science and Technology 2017 Networking I. Sören Schwertfeger 师泽仁

Announcements Computer Networking. What is the Objective of the Internet? Today s Lecture

CN1047 INTRODUCTION TO COMPUTER NETWORKING CHAPTER 6 OSI MODEL TRANSPORT LAYER

Computer Communication & Networks / Data Communication & Computer Networks Week # 03

System Programming. Introduction to computer networks

Chapter 2 Network Models 2.1

E&CE 358: Tutorial 1. Instructor: Sherman (Xuemin) Shen TA: Miao Wang

What Global (non-digital) Communication Network Do You Use Every Day?"

What Global (non-digital) Communication Network Do You Use Every Day?"

Chapter 2 Communicating Over the Network

Need For Protocol Architecture

Computer Network : Lecture Notes Nepal Engineering College Compiled by: Junior Professor: Daya Ram Budhathoki Nepal Engineering college, Changunarayan

Outline: Connecting Many Computers

COMS Introduction to Computers. Networking

Class Overview. CSE 123b Communications Software. Some hints. Some hints (2) Administrativa. Course material. Winter 2002

Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

CSCI Computer Networks

OSI Model. Teran Subasinghe MBCS, Bsc.(Hons) in Computer Science - University of Greenwich, UK

L1: Introduction. Hui Chen, Ph.D. Dept. of Engineering & Computer Science Virginia State University Petersburg, VA 23806

Goals for Today s Class. EE 122: Networks & Protocols. What Global (non-digital) Communication Network Do You Use Every Day?

Raj Jain. The Ohio State University Columbus, OH

Introduction to computer networking

TCP/IP THE TCP/IP ARCHITECTURE

TSIN02 - Internetworking

CPS221 Lecture: Layered Network Architecture

Reference Models. 7.3 A Comparison of the OSI and TCP/IP Reference Models

Communication Networks

COMP750. Distributed Systems. Network Overview

Lecture 2 Communication services The Trasport Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Chapter -4 OSI Reference Model

Need For Protocol Architecture

OSI Transport Layer. objectives

TCOM 370 NOTES 99-1 NETWORKING AND COMMUNICATIONS

Network Architecture Models

b) Diverse forms of physical connection - all sorts of wired connections, wireless connections, fiber optics, etc.

Copyleft 2005, Binnur Kurt. Objectives

CS 428/528 Computer Networks Lecture 01. Yan Wang

CS 268: Graduate Computer Networks Spring Overview

Communicating over the Network

Tutorial 2 : Networking

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

Outline. Inter-Process Communication. IPC across machines: Problems. CSCI 4061 Introduction to Operating Systems

The Internet. Overview. Network building blocks

COMPUTER NETWORKS UNIT I. 1. What are the three criteria necessary for an effective and efficient networks?

Networking and Internetworking 1

CSCD 433/533 Advanced Networks

CS3600 SYSTEMS AND NETWORKS

Revision of Previous Lectures

1: Review Of Semester Provide an overview of encapsulation.

CS 268: Lecture 4 (Internet Architecture & E2E Arguments)

Network Models. Behrouz A. Forouzan Data communication and Networking Fourth edition

5105: BHARATHIDASAN ENGINEERING COLLEGE NATTARMPALLI UNIT I FUNDAMENTALS AND LINK LAYER PART A

QUESTION BANK UNIT-I

The History and the layers of the OSI Model 30 - October

Communications Software. CSE 123b. CSE 123b. Spring Lecture 1: Introduction & Review. Stefan Savage.

Data Communication & Computer Networks MCQ S

Networking Applications

Page 1. Goals for Today" Why is Networking Important?" Example: Whatʼs in a Search Query?"

Guide to Networking Essentials, 6 th Edition. Chapter 6: Network Reference Models and Standards

CS4700/CS5700 Fundamentals of Computer Networks

Chapter 2 Network Architectures A global view

NT1210 Introduction to Networking. Unit 10

CS1302 / Computer Networks

Transcription:

CS3600 SYSTEMS AND NETWORKS NORTHEASTERN UNIVERSITY Lecture 17: Internet architecture Prof. Alan Mislove (amislove@ccs.neu.edu) Slides used with permissions from Edward W. Knightly, T. S. Eugene Ng, Ion Stoica, Hui Zhang

A Generic Switch incoming links Switch outgoing links Alan Mislove amislove at ccs.neu.edu Northeastern University 2

A Generic Switch incoming links Switch outgoing links How to Demultiplex? Alan Mislove amislove at ccs.neu.edu Northeastern University 2

A Generic Switch incoming links Switch outgoing links How to Demultiplex? How to Multiplex? Alan Mislove amislove at ccs.neu.edu Northeastern University 2

A Generic Switch incoming links Switch outgoing links How to Demultiplex? How to Switch? How to Multiplex? Alan Mislove amislove at ccs.neu.edu Northeastern University 2

Circuit Switching: Multiplexing/ Demultiplexing Frames Slots = 0 1 2 3 4 5 0 1 2 3 4 5 Alan Mislove amislove at ccs.neu.edu Northeastern University 3

Circuit Switching: Multiplexing/ Demultiplexing Frames Slots = 0 1 2 3 4 5 0 1 2 3 4 5 Time divided in frames and frames divided in slots Alan Mislove amislove at ccs.neu.edu Northeastern University 3

Circuit Switching: Multiplexing/ Demultiplexing Frames Slots = 0 1 2 3 4 5 0 1 2 3 4 5 Time divided in frames and frames divided in slots Relative slot position inside a frame determines which conversation the data belongs to E.g., slot 0 belongs to red conversation Needs synchronization between sender and receiver Alan Mislove amislove at ccs.neu.edu Northeastern University 3

Circuit Switching: Multiplexing/ Demultiplexing Frames Slots = 0 1 2 3 4 5 0 1 2 3 4 5 Time divided in frames and frames divided in slots Relative slot position inside a frame determines which conversation the data belongs to E.g., slot 0 belongs to red conversation Needs synchronization between sender and receiver In case of non-permanent conversations Needs to dynamic bind a slot to a conservation How to do this? Alan Mislove amislove at ccs.neu.edu Northeastern University 3

Circuit Switching: Multiplexing/ Demultiplexing Frames Slots = 0 1 2 3 4 5 0 1 2 3 4 5 Time divided in frames and frames divided in slots Relative slot position inside a frame determines which conversation the data belongs to E.g., slot 0 belongs to red conversation Needs synchronization between sender and receiver In case of non-permanent conversations Needs to dynamic bind a slot to a conservation How to do this? If a conversation does not use its circuit the capacity is lost! Alan Mislove amislove at ccs.neu.edu Northeastern University 3

Circuit Switching Three phases 1. circuit establishment 2. data transfer 3. circuit termination If circuit not available: busy Examples Telephone networks ISDN (Integrated Services Digital Networks) Alan Mislove amislove at ccs.neu.edu Northeastern University 4

Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 Transmission delay propagation delay between Host 1 and Switch1 propagation delay between Host 1 and Host 2 Information time Alan Mislove amislove at ccs.neu.edu Northeastern University 5

Timing in Circuit Switching Host 1 Host 2 Switch 1 Switch 2 Circuit Establishment Transmission delay propagation delay between Host 1 and Switch1 propagation delay between Host 1 and Host 2 Transmission Circuit Termination Information time Alan Mislove amislove at ccs.neu.edu Northeastern University 5

Packet Switching: Multiplexing/ Demultiplexing Alan Mislove amislove at ccs.neu.edu Northeastern University 6

Packet Switching: Multiplexing/ Demultiplexing Alan Mislove amislove at ccs.neu.edu Northeastern University 6

Packet Switching: Multiplexing/ Demultiplexing Data from any conversation can be transmitted at any given time Alan Mislove amislove at ccs.neu.edu Northeastern University 6

Packet Switching: Multiplexing/ Demultiplexing Data from any conversation can be transmitted at any given time A single conversation can use the entire link capacity if it is alone Alan Mislove amislove at ccs.neu.edu Northeastern University 6

Packet Switching: Multiplexing/ Demultiplexing Data from any conversation can be transmitted at any given time A single conversation can use the entire link capacity if it is alone How to demultiplex? Alan Mislove amislove at ccs.neu.edu Northeastern University 6

Packet Switching: Multiplexing/ Demultiplexing Data from any conversation can be transmitted at any given time A single conversation can use the entire link capacity if it is alone How to demultiplex? Use meta-data (header) to describe data Alan Mislove amislove at ccs.neu.edu Northeastern University 6

Packet Switching Data are sent as formatted bit-sequences, so-called packets. Packets have the following structure: Header Data Trailer Header and Trailer carry control information (e.g., destination address, check sum) At each node the entire packet is received, stored briefly, and then forwarded to the next node based on the header information (Store-and-Forward Networks) Allows statistical multiplexing Alan Mislove amislove at ccs.neu.edu Northeastern University 7

Packet Switch incoming links Node Memory outgoing links Alan Mislove amislove at ccs.neu.edu Northeastern University 8

Datagram Packet Switching Host C Host A Host D Node 1 Node 2 Node 3 Node 5 Host B Node 4 Node 6 Node 7 Host E Alan Mislove amislove at ccs.neu.edu Northeastern University 9

Datagram Packet Switching Host C Host A Host D Node 1 Node 2 Node 3 Node 5 Host B Node 4 Node 6 Node 7 Host E Each packet is independently switched Alan Mislove amislove at ccs.neu.edu Northeastern University 9

Datagram Packet Switching Host C Host A Host D Node 1 Node 2 Node 3 Node 5 Host B Node 4 Node 6 Node 7 Host E Each packet is independently switched Each packet header contains destination address Alan Mislove amislove at ccs.neu.edu Northeastern University 9

Timing of Datagram Packet Switching Host 1 Host 2 Switch 1 Switch 2 transmission time of Packet 1 at Host 1 Packet 1 Packet 2 Packet 3 propagation delay between Host 1 and Switch 2 Packet 1 Packet 2 Packet 3 processing delay of Packet 1 at Switch 2 Packet 1 Packet 2 Packet 3 Alan Mislove amislove at ccs.neu.edu Northeastern University 10

Packet-Switching vs. Circuit- Switching Alan Mislove amislove at ccs.neu.edu Northeastern University 11

Packet-Switching vs. Circuit- Switching Most important advantage of packet-switching over circuit switching: ability to exploit statistical multiplexing More efficient bandwidth usage However, packet-switching needs to buffer and deal with congestion More complex switches Harder to provide good network services (e.g., delay and bandwidth guarantees) Alan Mislove amislove at ccs.neu.edu Northeastern University 11

Organizing Network Functionality Many kinds of networking functionality e.g., encoding, framing, routing, addressing, reliability, etc. Many different network styles and technologies circuit-switched vs packet-switched, etc. wireless vs wired vs optical, etc. Many different applications ftp, email, web, P2P, etc. Network architecture How should different pieces be organized? How should different pieces interact? Alan Mislove amislove at ccs.neu.edu Northeastern University 12

Problem Application SMTP SSH FTP Transmission Media Coaxial cable Fiber optic Alan Mislove amislove at ccs.neu.edu Northeastern University 13

Problem Application SMTP SSH FTP HTTP Transmission Media Coaxial cable Fiber optic Alan Mislove amislove at ccs.neu.edu Northeastern University 13

Problem Application SMTP SSH FTP HTTP Transmission Media Coaxial cable Fiber optic Alan Mislove amislove at ccs.neu.edu Northeastern University 13

Problem Application SMTP SSH FTP HTTP Transmission Media Coaxial cable Fiber optic Packet radio Alan Mislove amislove at ccs.neu.edu Northeastern University 13

Problem Application SMTP SSH FTP HTTP Transmission Media Coaxial cable Fiber optic Packet radio Alan Mislove amislove at ccs.neu.edu Northeastern University 13

Problem Application SMTP SSH FTP HTTP Transmission Media Coaxial cable Fiber optic Packet radio new application has to interface to all existing media adding new application requires O(m) work, m = number of media new media requires all existing applications be modified adding new media requires O(a) work, a = number of applications Alan Mislove amislove at ccs.neu.edu Northeastern University 13

Problem Application SMTP SSH FTP HTTP Transmission Media Coaxial cable Fiber optic Packet radio new application has to interface to all existing media adding new application requires O(m) work, m = number of media new media requires all existing applications be modified adding new media requires O(a) work, a = number of applications total work in system O(ma) eventually too much work to add apps/media Application end points may not be on the same media! Alan Mislove amislove at ccs.neu.edu Northeastern University 13

Solution: Indirection Solution: introduce an intermediate layer that provides a single abstraction for various network technologies O(1) work to add app/media Indirection is an often used technique in computer science Application SMTP SSH NFS Intermediate layer Transmission Media Coaxial cable Fiber optic Alan Mislove amislove at ccs.neu.edu Northeastern University 14

Solution: Indirection Solution: introduce an intermediate layer that provides a single abstraction for various network technologies O(1) work to add app/media Indirection is an often used technique in computer science Application SMTP SSH NFS HTTP Intermediate layer Transmission Media Coaxial cable Fiber optic Alan Mislove amislove at ccs.neu.edu Northeastern University 14

Solution: Indirection Solution: introduce an intermediate layer that provides a single abstraction for various network technologies O(1) work to add app/media Indirection is an often used technique in computer science Application SMTP SSH NFS HTTP Intermediate layer Transmission Media Coaxial cable Fiber optic Alan Mislove amislove at ccs.neu.edu Northeastern University 14

Solution: Indirection Solution: introduce an intermediate layer that provides a single abstraction for various network technologies O(1) work to add app/media Indirection is an often used technique in computer science Application SMTP SSH NFS HTTP Intermediate layer Transmission Media Coaxial cable Fiber optic 802.11 LAN Alan Mislove amislove at ccs.neu.edu Northeastern University 14

Solution: Indirection Solution: introduce an intermediate layer that provides a single abstraction for various network technologies O(1) work to add app/media Indirection is an often used technique in computer science Application SMTP SSH NFS HTTP Intermediate layer Transmission Media Coaxial cable Fiber optic 802.11 LAN Alan Mislove amislove at ccs.neu.edu Northeastern University 14

Network Architecture Architecture is not the implementation itself Architecture is how to organize implementations what interfaces are supported where functionality is implemented Architecture is the modular design of the network Alan Mislove amislove at ccs.neu.edu Northeastern University 15

Software Modularity Break system into modules: Well-defined interfaces gives flexibility can change implementation of modules can extend functionality of system by adding new modules Interfaces hide information allows for flexibility but can hurt performance Alan Mislove amislove at ccs.neu.edu Northeastern University 16

Network Modularity Like software modularity, but with a twist: Implementation distributed across routers and hosts Must decide both: how to break system into modules where modules are implemented Alan Mislove amislove at ccs.neu.edu Northeastern University 17

Layering Layering is a particular form of modularization The system is broken into a vertical hierarchy of logically distinct entities (layers) The service provided by one layer is based solely on the service provided by layer below Rigid structure: easy reuse, performance suffers Alan Mislove amislove at ccs.neu.edu Northeastern University 18

ISO OSI Reference Model Seven layers Lower two layers are peer-to-peer Network layer involves multiple switches Next four layers are end-to-end Host 1 Intermediate switch Host 2 Application Presentation Session Transport Network Datalink Physical Physical medium A Network Datalink Physical Application Presentation Session Transport Network Datalink Physical Physical medium B Alan Mislove amislove at ccs.neu.edu Northeastern University 19

Key Concepts Alan Mislove amislove at ccs.neu.edu Northeastern University 20

Key Concepts Service says what a layer does Ethernet: unreliable subnet unicast/multicast/broadcast datagram service IP: unreliable end-to-end unicast datagram service TCP: reliable end-to-end bi-directional byte stream service Guaranteed bandwidth/latency unicast service Service Interface says how to access the service E.g. UNIX socket interface Protocol says how is the service implemented a set of rules and formats that govern the communication between two peers Alan Mislove amislove at ccs.neu.edu Northeastern University 20

Physical Layer (1) Service: move information between two systems connected by a physical link Interface: specifies how to send a bit Protocol: coding scheme used to represent a bit, voltage levels, duration of a bit Examples: coaxial cable, optical fiber links; transmitters, receivers Alan Mislove amislove at ccs.neu.edu Northeastern University 21

Datalink Layer (2) Service: framing (attach frame separators) send data frames between peers others: arbitrate the access to common physical media per-hop reliable transmission per-hop flow control Interface: send a data unit (packet) to a machine connected to the same physical media Protocol: layer addresses, implement Medium Access Control (MAC) (e.g., CSMA/CD) Alan Mislove amislove at ccs.neu.edu Northeastern University 22

Network Layer (3) Service: deliver a packet to specified network destination perform segmentation/reassemble others: packet scheduling buffer management Interface: send a packet to a specified destination Protocol: define global unique addresses; construct routing tables Alan Mislove amislove at ccs.neu.edu Northeastern University 23

Transport Layer (4) Service: Multiplexing/demultiplexing optional: error-free and flow-controlled delivery Interface: send message to specific destination Protocol: implements reliability and flow control Examples: TCP and UDP Alan Mislove amislove at ccs.neu.edu Northeastern University 24

Session Layer (5) Service: full-duplex access management (e.g., token control) synchronization (e.g., provide check points for long transfers) Interface: depends on service Protocol: token management; insert checkpoints, implement roll-back functions Alan Mislove amislove at ccs.neu.edu Northeastern University 25

Presentation Layer (6) Service: convert data between various representations Interface: depends on service Protocol: define data formats, and rules to convert from one format to another Alan Mislove amislove at ccs.neu.edu Northeastern University 26

Application Layer (7) Service: any service provided to the end user Interface: depends on the application Protocol: depends on the application Examples: FTP, Telnet, WWW browser Alan Mislove amislove at ccs.neu.edu Northeastern University 27

Physical Communication Communication goes down to physical network, then to peer, then up to relevant layer Host A Application Presentation Session Transport Network Datalink Physical Router Network Datalink Physical Physical medium Host B Application Presentation Session Transport Network Datalink Physical Alan Mislove amislove at ccs.neu.edu Northeastern University 28

Encapsulation A layer can use only the service provided by the layer immediate below it Each layer may change and add a header to data packet data data data data data data data data data data data data data data Alan Mislove amislove at ccs.neu.edu Northeastern University 29

Encapsulation As data is moving down the protocol stack, each protocol is adding layer-specific control information. Alan Mislove amislove at ccs.neu.edu Northeastern University 30

Example: Postal System Standard process (historical): Write letter Drop an addressed letter off in your local mailbox Postal service delivers to address Addressee reads letter (and perhaps responds) Alan Mislove amislove at ccs.neu.edu Northeastern University 31

Postal Service as Layered System Layers: Letter writing/reading Delivery Information Hiding: Network need not know letter contents Customer need not know how the postal network works Encapsulation: Envelope Customer Post Office Customer Post Office Alan Mislove amislove at ccs.neu.edu Northeastern University 32

Hourglass Note: Additional protocols like routing protocols (RIP, OSPF) needed to make IP work Alan Mislove amislove at ccs.neu.edu Northeastern University 33

Implications of Hourglass A single Internet layer module: Allows all networks to interoperate all networks technologies that support IP can exchange packets Allows all applications to function on all networks all applications that can run on IP can use any network Simultaneous developments above and below IP Alan Mislove amislove at ccs.neu.edu Northeastern University 34