Chapter 1 Computer Networks and the Internet

Similar documents
Packet-switching: store-and-forward

end systems, access networks, links circuit switching, packet switching, network structure

Computer Networks & Security 2016/2017

CSCE 463/612 Networks and Distributed Processing Spring 2018

Internet Architecture & Performance. What s the Internet: nuts and bolts view

Part 1: Introduction. Goal: Review of how the Internet works Overview

Introduction to Computer Networks. Roadmap

Chapter I: Introduction

Chapter 1. Computer Networks and the Internet

Computer Networking Introduction

Network Protocols and Architectures

Announcements. CS 5565 Network Architecture and Protocols. Outline for today. The Internet: nuts and bolts view. The Internet: nuts and bolts view

Chapter 1: Introduction

CS 4390 Computer Networks

Internet Routing. Review of Networking Principles. What s the Internet: nuts and bolts view. Communication links

Internet Routing. Review of Networking Principles

Part I: Introduction. 1: Introduction 1

Chapter 1 Introduction

Internetworking Technology -

Web Protocols and Practice

COMP 562: Advanced Topics in Networking

Introduction to computer networking

Computer Networks and the Internet. CMPS 4750/6750: Computer Networks

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

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?

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

CMP-330 Computer Networks

Outline. TCP/IP Internet

end systems, access networks, links circuit switching, packet switching, network structure

Network core and metrics

CSEN 503 Introduction to Communication Networks

Four sources of packet delay

Course on Computer Communication and Networks. Lecture 2 Chapter 1: Introduction: Part B: Network structure, performance, security prelude

Chapter 1 Introduction

A Whirlwind Introduction to the Internet. A Whirlwind Introduction to the Internet Overview

Chapter 1 Computer Networks and the Internet

Chapter 1 Introduction

Chapter 1 Introduction

Overview on the Internet the current and future telecommunication network

CS 332: Computer Networks Introduction

Chapter 1 Introduction

Chapter 1 Introduction

CS 204: Advanced Computer Networks

COSC 4213: Computer Networks II

Announcements. TAs office hours: Mohamed Grissa: Mohamed Alkalbani:

Chapter 1 Introduction

Part I: Introduction. Cool internet appliances. What s a protocol? What s the Internet: nuts and bolts view. What s the Internet: nuts and bolts view

What is a Distributed System? Module 1: Introduction to Networking & Internetworking

CSE3213 Computer Network I

Foundations of Telematics

Chapter 1 Introduction

Course on Computer Communication and Networks. Lecture 2 Chapter 1: Introduction: Part B: Network structure, performance, security prelude

end systems, access networks, links 1.3 network core

Networks Overview. Dr. Yingwu Zhu

Switching Networks (Fall 2010) EE 586 Communication and. August 27, Lecture 2. (modified by Cheung for EE586; based on K&R original) 1-1

ELE 543 Computer Network

Internet: A Brief Overview. Introduction 2-1

Chapter 1: roadmap parte B

CSE 434 Spring 2013 Computer Networks

RSC Part I: Introduction

CC451 Computer Networks

CSCD 330 Network Programming Spring 2018 Lecture 3 Introduction to Networks. Reading: Chapter 1 - Continued

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

Welcome to CS 340 Introduction to Computer Networking

Course on Computer Communication and Networks, CTH/GU

CMSC 332: Computer Networks Intro (cont.)

Chapter 1 Introduction

CSEE 4119 Computer Networks. Chapter 1 Introduction (2/2) Introduction 1-1

Master Course Computer Networks IN2097

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 3

CSCE 463/612 Networks and Distributed Processing Spring 2018

A closer look at network structure:

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

Computer Networks 2012/2013. Introduction part 1 (01) Dr. Tanir Ozcelebi. Thanks to A. Leon-Garcia & I. Widjaja, & I. Radovanovic & A. S.

CSCD 330 Network Programming Spring 2017

Chapter 1 Introduction. Introduction 1-1

A Whirlwind Introduction to the Internet. A Whirlwind Introduction to the Internet Overview

COMP 431 Internet Services & Protocols. A Whirlwind Introduction to the Internet ( Networking Nouns and Verbs ) Jasleen Kaur

Chapter 1 Introduction. Introduction 1-1

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Fundamentals of Information Systems

Telecommunication Networks Introduction

Introduction to Computer Networks. Chapter 1: introduction

Since enrollment is very small this semester, we have flexibilty. Traditional lecture Assigned reading, and then student(s) present during class time

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

CSE 4213: Computer Networks II

1.1 What is the Internet? 1.2 Network edge. 1.3 Network core

Chapter 1 Introduction

CSC 401 Data and Computer Communications Networks

Switching Networks (Fall 2010) EE 586 Communication and. August 30, Lecture 3. (modified by Cheung for EE586; based on K&R original) 1-1

Communication In Smart Grid Part1 (Basics of Networking)

Telecommunication Networks Introduction

Chapter 1 Introduction

Chapter 1. Introduction

Reti Internet Multimediali. Prof. Fabio Martignon!

CSCD 330 Network Programming Winter 2016

end systems, access networks, links network structure, circuit switching, packet switching

Chapter 1: introduction

CSC 401 Data and Computer Communications Networks

Transcription:

CSB051 Computer Networks 電腦網路 Chapter 1 Computer Networks and the Internet 吳俊興 國立高雄大學資訊工程學系

Outline 1.1 What is the Internet? 1.2 Network edge 1.3 Network core 1.4 Access networks and physical media 1.5 ISPs and Internet backbones 1.6 Delay & loss in packet-switched networks 1.7 Protocol layers and their service models 1.8 History 1-2

What s the Internet: nuts and bolts view A worldwide network that interconnects millions of computing devices millions of connected computing devices: hosts = end systems routers: forward packets (chunks of data) communication links fiber, copper, radio, satellite running network apps protocols control sending, receiving of msgs router local ISP company network server workstation mobile regional ISP 1-3

What s a protocol? human protocols: what s the time? I have a question introductions specific msgs sent specific actions taken when msgs received, or other events network protocols: machines rather than humans all communication activity in Internet governed by protocols protocols define format, order of msgs sent and received among network entities, and actions taken on msg transmission, receipt 1-4

RFC (Request for Comments) IETF http://www.rfc-editor.org/rfc-index2.html http://www.rfc-editor.org/rfcxx00.html RFC791: IP (Internet Protocol) RFC793: TCP (Transmission Control Protocol) RFC768: UDP (User Datagram Protocol) RFC854: TELNET RFC959: FTP (File Transfer Protocol) RFC821: SMTP (Simple Mail Transfer Protocol) RFC1034/1035: DNS (Domain Name System) RFC1939: POP3 (Post Office Protocol) RFC2131: DHCP (Dynamic Host Configuration Protocol) RFC2616: HTTP (Hypertext Transfer Protocol) RFC1631: NAT (Network Address Translator) 1-5

Outline 1.1 What is the Internet? 1.2 Network edge 1.3 Network core 1.4 Access networks and physical media 1.5 ISPs and Internet backbones 1.6 Delay & loss in packet-switched networks 1.7 Protocol layers and their service models 1.8 History 1-6

A closer look at network structure: network edge: applications and hosts network core: routers network of networks access networks, physical media: communication links 1-7

The network edge: end systems (hosts): run application programs e.g. Web, email at edge of network client/server model client host requests, receives service from always-on server e.g. Web browser/server; email client/server peer-peer model: minimal (or no) use of dedicated servers e.g. Gnutella, KaZaA 1-8

Network edge: connection-oriented service 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: acknowledgements and retransmissions flow control: (end-to-end) sender won t overwhelm receiver congestion control: senders slow down sending rate when network congested 1-9

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

Outline 1.1 What is the Internet? 1.2 Network edge 1.3 Network core 1.4 Access networks and physical media 1.5 ISPs and Internet backbones 1.6 Delay & loss in packet-switched networks 1.7 Protocol layers and their service models 1.8 History 1-11

TANet Backbone 1-12

The Network Core mesh of interconnected routers the fundamental question: how is data transferred through net? circuit switching: dedicated circuit per call: telephone net packet-switching: data sent thru net in discrete chunks (Divided by end-points v.s. channels) 1-13

Network Core: Circuit Switching End-end resources reserved for call link bandwidth, switch capacity dedicated resources: no sharing circuit-like (guaranteed) performance call setup required 1-14

Network Core: Circuit Switching network resources (e.g., bandwidth) divided into pieces pieces allocated to calls resource piece idle if not used by owning call (no sharing) dividing link bandwidth into pieces frequency division time division 1-15

Circuit Switching: FDM and TDM FDM Example: 4 users frequency TDM time frequency time 1-16

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 Entire packet must arrive at router before it can be transmitted on next link: store and forward delay = 3L/R Example: L = 7.5 Mbits R = 1.5 Mbps delay = 15 sec 1-17

Packet-switched networks: forwarding Goal: move packets through routers from source to destination we ll study several path selection (i.e. routing) algorithms (chapter 4) datagram network: destination address in packet determines next hop routes may change during session analogy: driving, asking directions virtual circuit network: each packet carries tag (virtual circuit ID), tag determines next hop fixed path determined at call setup time, remains fixed thru call routers maintain per-call state 1-18

Network Taxonomy Telecommunication networks Circuit-switched networks Packet-switched networks FDM TDM Networks with VCs Datagram Networks Datagram network is not either connection-oriented or connectionless. Internet provides both connection-oriented (TCP) and connectionless services (UDP) to apps. 1-19

Outline 1.1 What is the Internet? 1.2 Network edge 1.3 Network core 1.4 Access networks and physical media 1.5 ISPs and Internet backbones 1.6 Delay & loss in packet-switched networks 1.7 Protocol layers and their service models 1.8 History 1-20

Access networks and physical media Q: How to connect end systems to edge router? residential access nets institutional access networks (school, company) mobile access networks local ISP regional ISP Keep in mind: bandwidth (bits per second) of access network? shared or dedicated? company network 1-21

Physical Media Bit: propagates between transmitter/rcvr pairs physical link: what lies between transmitter & receiver guided media: signals propagate in solid media: copper, fiber, coax unguided media: signals propagate freely, e.g., radio Twisted Pair (TP) two insulated copper wires Category 3: traditional phone wires, 10 Mbps Ethernet Category 5: 100Mbps Ethernet Power Line 1-22

Outline 1.1 What is the Internet? 1.2 Network edge 1.3 Network core 1.4 Access networks and physical media 1.5 Internet structure and ISPs 1.6 Delay & loss in packet-switched networks 1.7 Protocol layers and their service models 1.8 History 1-23

Fig. 1.12 Interconnection of ISPs 1-24

Internet structure: network of networks roughly hierarchical at center: tier-1 ISPs (e.g., MCI/UUNet/WorldCom, BBN/Genuity, Sprint, AT&T), national/international coverage treat each other as equals Tier-1 providers interconnect (peer) privately Tier 1 ISP NAP Tier 1 ISP Tier 1 ISP Tier-1 providers also interconnect at public network access points (NAPs) 1-25

Tier-1 ISP: e.g., MCI 1-26

http://map.twnic.net.tw/ 1-27

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-2 ISP Tier 1 ISP NAP Tier 1 ISP Tier 1 ISP Tier-2 ISPs also peer privately with each other, interconnect at NAP Tier-2 ISP Tier-2 ISP Tier-2 ISP 1-28

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 local ISP Tier 3 ISP Tier-2 ISP Tier 1 ISP Tier-2 ISP local ISP local ISP Tier 1 ISP local ISP Tier-2 ISP NAP Tier 1 ISP Tier-2 ISP local ISP local ISP Tier-2 ISP local ISP 1-29

Internet structure: network of networks a packet passes through many networks! local ISP Tier 3 ISP Tier-2 ISP local ISP Tier 1 ISP local ISP Tier-2 ISP NAP local ISP Tier 1 ISP Tier 1 ISP Tier-2 ISP local ISP Tier-2 ISP local ISP Tier-2 ISP local ISP local ISP 1-30

Outline 1.1 What is the Internet? 1.2 Network edge 1.3 Network core 1.4 Access networks and physical media 1.5 ISPs and Internet backbones 1.6 Delay & loss in packet-switched networks 1.7 Protocol layers and their service models 1.8 History 1-31

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 1-32

Four sources of packet delay 1. nodal processing: check bit errors determine output link 2. queueing time waiting at output link for transmission depends on congestion level of router A transmission propagation B nodal processing queueing 1-33

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

Nodal delay d = d + d + d + nodal proc queue trans d prop d proc = processing delay typically a few microsecs or less d queue = queuing delay depends on congestion d trans = transmission delay = L/R, significant for low-speed links d prop = propagation delay a few microsecs to hundreds of msecs 1-35

Real Internet delays and routes What do real Internet delay & loss look like? Traceroute/tracert program: provides delay measurement from source to router along end-end Internet path towards destination. For all i: sends three packets that will reach router i on path towards destination router i will return packets to sender sender times interval between transmission and reply. 3 probes 3 probes 3 probes 1-36

Real Internet delays and routes traceroute: gaia.cs.umass.edu to www.eurecom.fr Three delay measements from gaia.cs.umass.edu to cs-gw.cs.umass.edu 1 cs-gw (128.119.240.254) 1 ms 1 ms 2 ms 2 border1-rt-fa5-1-0.gw.umass.edu (128.119.3.145) 1 ms 1 ms 2 ms 3 cht-vbns.gw.umass.edu (128.119.3.130) 6 ms 5 ms 5 ms 4 jn1-at1-0-0-19.wor.vbns.net (204.147.132.129) 16 ms 11 ms 13 ms 5 jn1-so7-0-0-0.wae.vbns.net (204.147.136.136) 21 ms 18 ms 18 ms 6 abilene-vbns.abilene.ucaid.edu (198.32.11.9) 22 ms 18 ms 22 ms 7 nycm-wash.abilene.ucaid.edu (198.32.8.46) 22 ms 22 ms 22 ms 8 62.40.103.253 (62.40.103.253) 104 ms 109 ms 106 ms 9 de2-1.de1.de.geant.net (62.40.96.129) 109 ms 102 ms 104 ms 10 de.fr1.fr.geant.net (62.40.96.50) 113 ms 121 ms 114 ms 11 renater-gw.fr1.fr.geant.net (62.40.103.54) 112 ms 114 ms 112 ms 12 nio-n2.cssi.renater.fr (193.51.206.13) 111 ms 114 ms 116 ms 13 nice.cssi.renater.fr (195.220.98.102) 123 ms 125 ms 124 ms 14 r3t2-nice.cssi.renater.fr (195.220.98.110) 126 ms 126 ms 124 ms 15 eurecom-valbonne.r3t2.ft.net (193.48.50.54) 135 ms 128 ms 133 ms 16 194.214.211.25 (194.214.211.25) 126 ms 128 ms 126 ms 17 * * * 18 * * * 19 fantasia.eurecom.fr (193.55.113.142) 132 ms 128 ms 136 ms trans-oceanic link * means no reponse (probe lost, router not replying) 1-37

Packet loss queue (aka buffer) preceding link in buffer has finite capacity when packet arrives to full queue, packet is dropped (aka lost) lost packet may be retransmitted by previous node, by source end system, or not retransmitted at all 1-38

Throughput throughput: rate (bits/time unit) at which bits transferred between sender/receiver instantaneous: rate at given point in time average: rate over longer period of time server, with file of F bits to send to client pipe link that capacity can carry fluid R s bits/sec at rate R s bits/sec) pipe link that capacity can carry Rfluid c bits/sec at rate R c bits/sec) 1-39

Throughput (more) R s < R c What is average end-end throughput? R s bits/sec R c bits/sec R s > R c What is average end-end throughput? R s bits/sec R c bits/sec bottleneck link link on end-end path that constrains end-end throughput 1-40

Outline 1.1 What is the Internet? 1.2 Network edge 1.3 Network core 1.4 Access networks and physical media 1.5 ISPs and Internet backbones 1.6 Delay & loss in packet-switched networks 1.7 Protocol layers, service models 1.8 History 1-41

Protocol Layers Networks are complex! many pieces : hosts routers links of various media applications protocols hardware, software Question: Is there any hope of organizing structure of network? Or at least our discussion of networks? 1-42

Why layering? Dealing with complex systems: explicit structure allows identification, relationship of complex system s pieces layered reference model for discussion modularization eases maintenance, updating of system change of implementation of layer s service transparent to rest of system e.g., change in gate procedure doesn t affect rest of system layering considered harmful? 1-43

Internet protocol stack application: supporting network applications FTP, SMTP, HTTP transport: host-host data transfer TCP, UDP network: routing of datagrams from source to destination IP, routing protocols link: data transfer between neighboring network elements PPP, Ethernet physical: bits on the wire application transport network link physical 1-44

message segment datagram frame H l H n H n H t H t H t M M M M source application transport network link physical Encapsulation link physical H l H n H t M H l H n H t M switch H l H n H n H t H t H t M M M M destination application transport network link physical H l H n H n H t H t M M network link physical H l H n H n H t H t M M router 1-45

Sample Ethernet Frame 1-46

Summary 1.1 What is the Internet? inter-networking, Internet, protocols 1.2 Network edge end-system/host (client/server), P2P, connectionless, connection-oriented 1.3 Network core router, circuit/packet switching, FDM/TDM, store-and-forward, router, datagram/virtual-circuit networks 1.4 Access networks and physical media 1.5 ISPs and Internet backbones 3 tiers 1.6 Delay & loss in packet-switched networks types of delay, packet loss 1.7 Protocol layers and their service models message, segment, datagram, frame 1.8 History 1-47