Architecture and Performance of the Internet

Similar documents
Chapter 1 Computer Networks and the Internet

Internet structure: network of networks

Computer Networks and the Internet

ECE/CS 372 introduction to computer networks. Lecture 2. Midterm scheduled for Tuesday, May 7 th

Overview of TCP/IP. TCP/IP and Internet

Network Overview. The network edge: The network edge: Internet Services Models. The network edge: A closer look at network structure:

Computer Networks & Security 2014/2015

Introduction cont. Some Structure in the Chaos. Packet switching versus circuit switching. Access networks and physical media

CSCI Topics: Internet Programming Fall 2008

Introduction. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross

Module 2 Overview of Computer Networks

Network Edge and Network Core

Protocols. Packets. What's in an IP packet

Course book: Computer Networking. Computer Networks 3 rd edition. By Andrew ST S.Tanenbaum. Top Down approach 3 rd edition.

CH.1. Lecture # 2. Computer Networks and the Internet. Eng. Wafaa Audah. Islamic University of Gaza. Faculty of Engineering

R2. The word protocol is often used to describe diplomatic relations. How does Wikipedia describe diplomatic protocol?

What s the Internet. routers: forward packets (chunks of data) millions of connected computing devices: hosts = end systems

IT Internet Architecture and Protocols. Lecture 02 Overview of Internet Architecture

Delay, loss, layered architectures. packets queue in router buffers. packets queueing (delay)

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Computer Networks Homework 1

Introduction. Computer Networking. Prof. Andrzej Duda

Internet Routing. Review of Networking Principles

Communications and Computer Networks

Transport and Network Layer

Chapter 1 Introduction

Lecture 28: Internet Protocols

What is CSG150 about? Fundamentals of Computer Networking. Course Outline. Lecture 1 Outline. Guevara Noubir noubir@ccs.neu.

Transport Layer Protocols

How do I get to

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

Based on Computer Networking, 4 th Edition by Kurose and Ross

Computer Networks CS321

Objectives of Lecture. Network Architecture. Protocols. Contents

Protocols and Architecture. Protocol Architecture.

Final for ECE374 05/06/13 Solution!!

Topics. Computer Networks. Let s Get Started! Computer Networks: Our Definition. How are Networks Used by Computers? Computer Network Components

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? What s the Internet? What s the Internet?

CPS221 Lecture: Layered Network Architecture

Link Layer. 5.6 Hubs and switches 5.7 PPP 5.8 Link Virtualization: ATM and MPLS

The OSI and TCP/IP Models. Lesson 2

How To Understand The Internet From A Telephone To A Computer (For A Computer)

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

TCP/IP Protocol Suite. Marshal Miller Chris Chase

How To Understand The Layered Architecture Of A Network

Lesson 1 - Computer Networks and Internet - Overview

PART OF THE PICTURE: The TCP/IP Communications Architecture

Ethernet. Ethernet. Network Devices

CS 78 Computer Networks. Internet Protocol (IP) our focus. The Network Layer. Interplay between routing and forwarding

The Internet. Charging for Internet. What does 1000M and 200M mean? Dr. Hayden Kwok-Hay So

Review of Networking Basics. Yao Wang Polytechnic University, Brooklyn, NY11201

1.1 History of Communication Networks

PLANEAMENTO E GESTÃO DE REDES INFORMÁTICAS COMPUTER NETWORKS PLANNING AND MANAGEMENT

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Chapter 7: Computer Networks, the Internet, and the World Wide Web. Invitation to Computer Science, C++ Version, Third Edition

First Midterm for ECE374 02/25/15 Solution!!

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

Chapter 2 - The TCP/IP and OSI Networking Models

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Networking Test 4 Study Guide

IP Networking. Overview. Networks Impact Daily Life. IP Networking - Part 1. How Networks Impact Daily Life. How Networks Impact Daily Life

Overview of Computer Networks

CSE3214 Computer Network Protocols and Applications. Chapter 1 Examples and Homework Problems

Module 1. Introduction. Version 2 CSE IIT, Kharagpur

CSE 3461 / 5461: Computer Networking & Internet Technologies

CSIS CSIS 3230 Spring Networking, its all about the apps! Apps on the Edge. Application Architectures. Pure P2P Architecture

Computer Networks III

ELEC3030 Computer Networks

Computer Networks - Xarxes de Computadors

Requirements of Voice in an IP Internetwork

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

SFWR 4C03: Computer Networks & Computer Security Jan 3-7, Lecturer: Kartik Krishnan Lecture 1-3

COMP 361 Computer Communications Networks. Fall Semester Midterm Examination

How To Design A Layered Network In A Computer Network

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

What s the Internet: a service view. Chapter 1 Introduction. What s the Internet: nuts and bolts view. What s the Internet: nuts and bolts view

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

Chapter 1: Introduction

Computer Networks Vs. Distributed Systems

Communication Systems Internetworking (Bridges & Co)

Strategies. Addressing and Routing

How To Use A Network Over The Internet (Networking) With A Network (Netware) And A Network On A Computer (Network)

The OSI model has seven layers. The principles that were applied to arrive at the seven layers can be briefly summarized as follows:

Introduction to computer networks and Cloud Computing

What is Network Latency and Why Does It Matter?

Introduction to TCP/IP

Chapter 1 Computer Networks and the Internet. Chapter 1: Introduction. Chapter 1: roadmap. Cool internet appliances

Network Security TCP/IP Refresher

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

Introduction to Computer Networks

Chapter 1: Introduction. Chapter 1 Introduction. Chapter 1: roadmap. Cool internet appliances. What s the Internet: nuts and bolts view

PART-A Questions. 9. What are the two parts of message inside the envelope?

Clearing the Way for VoIP

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

The OSI & Internet layering models

Network Technologies

Transcription:

SC250 Computer Networking I Architecture and Performance of the Internet Prof. Matthias Grossglauser School of Computer and Communication Sciences EPFL http://lcawww.epfl.ch 1

Today's Objectives Understanding the Internet architecture Circuit-switching vs. packet-switching Datagram vs. virtual circuit Layering and functions of layers Naming and addressing Internet design principles Elements of Internet performance Packet delay and pipelining Packet queueing and loss 2

Network Taxonomy Telecommunications network Circuit-switched networks Packet-switched networks FDM TDM Networks with VCs Note: a datagram network is not either connection-oriented or connectionless Internet provides both connection-oriented (TCP) and connectionless services (UDP) to applications Circuit-switched vs. packet-switched: network core Datagram networks Connection-oriented vs. connectionless: end-to-end service model 3

Connection-Oriented Service (TCP) Goal: data transfer between end systems Handshaking: setup (prepare for) data transfer ahead of time Hello, hello back human protocol set up state in two communicating hosts TCP - Transmission Control Protocol Internet s connectionoriented service TCP service [RFC 793] Reliable, in-order bytestream data transfer loss: acknowledgments and retransmissions Flow control: sender won t overwhelm receiver Congestion control: senders slow down sending rate when network congested 4

Connectionless Service (UDP) Goal: data transfer between end systems same as before! UDP - User Datagram Protocol [RFC 768]: Internet s connectionless service unreliable data transfer no flow control Apps using TCP: HTTP (Web), FTP (file transfer), Telnet (remote login), SMTP (email) Apps using UDP: streaming media, teleconferencing, DNS, Internet telephony no congestion control 5

Packet-Switched Networks: Forwarding Goal: move packets through routers from source to destination We ll study several path selection (i.e., routing) algorithms Datagram network: Destination address in packet determines next hop Routes may change during session Analogy: driving, asking directions; post office Virtual circuit network: Each packet carries tag (virtual circuit ID), tag determines next hop Fixed path determined at call setup time, remains fixed Routers maintain per-call state Analogy: ants following trail of pheromones 6

Layering Analogy Collaboration between two distracted professors E=mc 3? E=mc 2! 7

Layering: Transport Service So distracted, they rely on their assistants to keep track Can you please get this paper to Einstein? And let me know what he responds! Assistant 8

Layering: Transport Protocol The assistants remember and track the entire exchange during the collaboration Did you get the paper from Prof. Tournesol for Prof. Einstein that I sent you last week? Assistant 1 Assistant 2 No, only the one from 14 days ago. Can you send me another copy? 9

Layering: Network Service The assistants use the postal service to carry letters back and forth between their offices Assistant From: Prof. Tournesol EPFL Lausanne Post Office To: Prof. Einstein ETH Zurich 10

Layering: Network Protocol Postal service forwards the letter through multiple centers EPFL Mail Center 1 Mail Center 2 ETHZ To get this letter to Zurich, I need to forward it to Mail Center 2 11

Layering: Link Layer Service Post Office Bring this letter to Mail Center 2 Trucking Company 12

Layering: Link Layer Protocol Trucking company carries letter to next mail center, where another routing decision is made Trucking port at Mail Center 1 Trucking port at Mail Center 2 13

A Layering Analogy Host Router Host Application Application Transport Transport Network Network Network Link/Physical L/P L/P Link/Physical 14

Layering, Names, and Addresses Profs. Tournesol and Einstein's collaboration Application Assistant 1 + 2, keeping track of letters TCP connection Post office IP best-effort datagram delivery service Trucking company Link layer 15

Naming and Addressing Name: Albert Einstein Application URL: www.epfl.ch Address within site: Office A124 Transport Port number: 80 Mailing address: Raemistr. 101 CH-8092 Zurich Mail center 2 Network Link/Physical IP address: 192.33.210.10 hardware address: 00:02:B3:A7:5A:0A 16

Naming and Addressing Application Human meaning, global Transport Topological meaning, global Network Link/Physical Local meaning 17

Human vs Topological Meaning IP=60.73.155.17, name=s2.yahoo.com IP=193.33.210.9, name=s1.yahoo.com IP=193.33.210.10, name=mailx.bluewin.net 18

Human vs Topological Meaning IP=193.33.210.9, name=s1.yahoo.com IP=193.33.210.10, name=mailx.bluewin.net These two levels provide flexibility Web site changes ISPs: same URL, different IP address IP=60.73.155.17, name=s2.yahoo.com IP address: Close in network <-> similar addressses Good to find a route efficiently Hierarchical address space -> don't need to keep track of every address individually Name: Close in meaning <-> similar name 19 Easy to remember, etc.

Naming and Addressing Names: www.cnn.com, mgrossglauser@trustmymail.com Domain Name System (DNS) IP address: 193.33.210.10 Address Resolution Protocol (ARP) Hw address: 00:02:B3:A7:5A:0A 20

Protocol Architecture (OSI Model) data data SAP Protocol entity multiplexing procedures demultiplexing SAP Protocol entity layer n PDU layer n PDU Lower layer protocols layer n-1 layer n-1 21

Protocol Architecture Protocol entity Provides a set of services, e.g., connect, send Data multiplexing/demultiplexing Construction/analysis of PDUs Execution of procedures Protocol Data Unit (PDU) TCP/IP: TCP segment, IP packet, Ethernet frame Header: control functions Opaque data Procedures Actions to perform protocol functions: eg. lost packet retransmission 22

Encapsulation in TCP/IP HTTP Request TCP segment header data header header data data IP packet Ethernet frame 23

Physical Layer and Data Link Layer H1 Physical transmission = physical function H2 frame to H3 point to point cables bits <-> electrical / optical signals transmit individual bits over the cable: modulation, encoding H3 Ethernet switch Frame transmission = data Link function bits <-> frames bit error detection hosts packet boundaries in some cases: error correction by retransmission Modems, Ethernets 24

Network Layer Network layer Set of functions required to tranfer packets end-to-end (i.e., from host to host) Examples: IP, Appletalk, IPX Intermediate systems (routers) Forward packets to the final destination 25

Transport Layer Why a transport layer? Makes network service available to (multiple) programs Is end-to-end only, not in routers In TCP/IP there are two transport protocols UDP (user datagram protocol) unreliable offers a datagram service to the application (unit of information is a message) TCP (transmisssion control protocol) reliable offers a stream service (unit of information is a byte) 26

Application Layer Application layer supports network application Applications that are distributed over the network Applications that communicate through the network Many known protocols FTP: file transfer SMTP: email protocol HTTP:web protocol An application uses UDP or TCP, it is a designer s choice Interface with the transport layer Use for example the socket API: a library of C functions, or java classes Socket also means (IP address, port number) 27

Layering: Logical Communication Each layer: distributed entities implement layer functions at each node entities perform actions, exchange messages with peers Application Transport Network Link/Physical Application Transport Network Link/Physical Application Transport Network Link/Physical Network Link/Physical Application Transport Network Link/Physical 28

Layering: Logical Communication E.g.: transport take data from app add addressing, reliability check info to form datagram send datagram to peer wait for peer to ack receipt analogy: post office data Application Transport Network Link/Physical Application Transport Network Link/Physical data ack Application Transport Network Link/Physical Network Link/Physical data Application Transport Network Link/Physical 29

Layering: Physical Communication data application transport network link physical application transport network link physical application transport network link physical network link physical data application transport network link physical 30

Internet Structure: Network of Networks Roughly hierarchical At center: tier-1 ISPs (e.g., UUNet, BBN/Genuity, Sprint, AT&T), national/international coverage Treat each other as equals (e.g., no payments) Tier-1 providers interconnec t (peer) privately Tier 1 ISP Tier 1 ISP NAP Tier 1 ISP Tier-1 providers also interconnect at public network access points (NAPs) 31

Internet Structure: Network of Networks Tier-2 ISPs: smaller (often regional) ISPs Connect to one or more tier-1 ISPs, possibly other tier-2 ISPs Tier-2 ISP pays tier-1 ISP for connectivity to rest of Internet tier-2 ISP is customer of tier-1 provider Tier-2 ISP Tier 1 ISP Tier 1 ISP Tier-2 ISP NAP P Tier 1 ISP Tier-2 ISP Tier-2 ISPs also peer privately with each other, interconnect at NAP Tier-2 ISP Tier-2 ISP 32

Internet Structure: Network of Networks Tier-3 ISPs and local ISPs last hop ( access ) network (closest to end systems) Local and tier- 3 ISPs are customers of higher tier ISPs connecting them to rest of Internet local ISP Tier 3 ISP Tier-2 ISP Tier 1 ISP local ISP Tier 1 ISP local ISP Tier-2 ISP NAP Tier 1 ISP local ISP Tier-2 ISP local ISP Tier-2 ISP local ISP Tier-2 ISP local ISP local ISP 33

Internet Structure: Network of Networks a packet passes through many networks! local ISP Tier 3 ISP Tier-2 ISP local ISP local ISP Tier-2 ISP local ISP Tier 1 ISP NAP Tier 1 ISP Tier 1 ISP Tier-2 ISP local ISP Tier-2 ISP local ISP Tier-2 ISP local ISP local ISP 34

Internet Design Principles Internet architecture what's special about it? Cerf and Kahn s internetworking principles: Minimalism, autonomy - no internal changes required to interconnect networks Best effort service model Decentralized control End-to-end principle: do whatever possible in hosts rather than inside network This architecture was a major ingredient in the Internet's rapid spread Flexibility to develop & deploy new applications Ease of interconnection But future requirements might be different... 35

Contrast with the Telephone Network bricks (dumb) brains (smart) 36

The Telephone Network Designed to carry voice calls over 100 years old smart network: tight control of data and signaling traffic -> sophisticated service with guarantees Dumb terminals telephone are very simple devices Offered services (applications) special numbers (toll free, paid service), caller ID, calling card, call restrictions, conference calls,... hard to develop new services standardization required 37

Common View of Internet bricks (dumb) brains (smart) 38

Performance: How do Loss and Delay Occur? Packets queue in router buffers Packet arrival rate to link exceeds output link capacity Packets queue, wait for turn packet being transmitted (delay) A B packets queueing (delay) free (available) buffers: arriving packets dropped (loss) if no free buffers 39

Four Sources of Packet Delay 1 Nodal processing: 2 Queuing Check bit errors Determine output link Time waiting at output link for transmission Depends on congestion level of router A transmission propagation B nodal processing queueing 40

Delay in Packet-Switched Networks 3 Transmission delay: A R=link bandwidth (bps) L=packet length (bits) time to send bits into link = L/R transmission 4 Propagation delay: d = length of physical link s = propagation speed in medium (~2x10 8 m/sec) propagation delay = d/s Note: s and R are very different quantities! propagation B nodal processing queueing 41

Nodal Delay d total = d proc +d queue +d trans + d prop d proc = processing delay Typically a few microsecs or less d queue = queuing delay depends on congestion Varies from packet to packet -> model as random variable d trans = transmission delay = L/R Significant for low-speed links d prop = propagation delay A few microsecs to hundreds of msecs 42

Delay first bit Transmission Propagation packet last bit Waiting Time End-to-end delay Distance Waiting time = processing + queuing delays 43

Packet-Switching: Store-and-Forward L R R R Takes L/R seconds to transmit (push out) packet of L bits on to link or R bps Example: L = 7.5 Mbits R = 1.5 Mbps delay = 15 sec Entire packet must arrive at router before it can be transmitted on next link: store and forward delay = 3L/R 44

End-to-End Delay d end-end = N(d proc +d queue +d trans + d prop ) N: number of hops Number of intermediate routers + 1 45

Packet Switching: Pipelining through Message Segmenting Now break up the message into 5000 packets Each packet 1,500 bits 1 msec to transmit packet on one link pipelining: each link works in parallel Delay reduced from 15 sec to 5.002 sec 46

Delay with One Large Message Transmission Propagation message End-to-end delay Distance 47

Delay with Multiple Short Packets Transmission Propagation packets End-to-end delay Distance 48

End-to-End Delay N: number of hops Number of intermediate routers+1 With one large message: d end-end = N(d proc +d queue +d trans + d prop ) With very small packets (fluid limit): d end-end = N(d proc +d queue + d prop ) + d trans 49

Packet Loss Queue (aka buffer) preceding link in buffer has finite capacity When packet arrives to full queue, packet is dropped (aka lost) Tolerated in best-effort service model Lost packet may be retransmitted by previous node, by source end system, or not retransmitted at all In TCP/IP: only the end-system can retransmit Other reasons for packet loss: bit errors, i.e., corrupted bits Detected through checksums Rare in wired networks, common in wireless 50

Experiment: RTT as Function of Packet Size Exercise in next lab: Ping a remote host many times, with varying packet size Can you figure out the various delay components? 51

Experiment: Scatter Plot of Ping RTTs Scatter plot: Every point corresponds to one ping experiment 52