Chapter 1 Computer Networks and the Internet



Similar documents
Internet structure: network of networks

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

CSCI Topics: Internet Programming Fall 2008

Network Edge and Network Core

Computer Networks and 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?

TCIPG Reading Group. Introduction to Computer Networks. Introduction 1-1

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

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

Architecture and Performance of the Internet

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

Chapter 1 Introduction

Chapter 1 Introduction

Roadmap. Cool internet appliances. Introduction to Computer Networks. What s the Internet: nuts and bolts view

Network edge and network core. millions of connected compu?ng devices: hosts = end systems running network apps

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

Chapter 1: Introduction. Chapter 1: roadmap. What is the Internet? Introduction to Computer Networks 計 算 機 網 路 概 論

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

Chapter 1: roadmap. Access networks and physical media

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

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

Computer Networks & Security 2014/2015

Course on Computer Communication and Networks. Lecture 1 & part of lecture 2 Chapter 1: Introduction

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

Module 2 Overview of Computer Networks

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

Chapter 1 Introduction

Lesson 1 - Computer Networks and Internet - Overview

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

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

Overview of TCP/IP. TCP/IP and Internet

Introduction. Chapter 1 Introduction. CS 3516 Computer Networks. Chapter 1: Roadmap. Chapter 1: Introduction. Cool Internet Appliances

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

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

1.1 History of Communication Networks

Overview: Internet vs Data Center Networks

Computer Networks CS321

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

Internet Routing. Review of Networking Principles

Network Security. Vorlesung Kommunikation und Netze SS 10 E. Nett

Computer Networks Homework 1

Layered protocol (service) architecture

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

1/31/2013. Data Communications & Networks. Session 1 Main Theme. 2 Introduction and Overview. Dr. Jean-Claude Franchitti

Introduction to computer networks and Cloud Computing

Internet and IP addressing

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

Overview of Computer Networks

TCP/IP Protocol Suite. Marshal Miller Chris Chase

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

Telecommunications, Networks, and Wireless Computing

Introduction to Computer Networks

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

CSE 3461 / 5461: Computer Networking & Internet Technologies

What is Network Latency and Why Does It Matter?

Kick starting science...

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

Protocols. Packets. What's in an IP packet

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

Computer Networks and the Internet

1 Introduction to mobile telecommunications

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

Chapter 8: Computer Networking. AIMS The aim of this chapter is to give a brief introduction to computer networking.

Chapter 5. Data Communication And Internet Technology

EECC694 - Shaaban. Transmission Channel

Internet architecture is very scalable. Thailand Statistics

The OSI and TCP/IP Models. Lesson 2

Network Applications

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

: Instructor

Transport Layer Protocols

Chapter 4 Connecting to the Internet through an ISP

Computer Networking Networks

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

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

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

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

ICS 153 Introduction to Computer Networks. Inst: Chris Davison

Agenda. Distributed System Structures. Why Distributed Systems? Motivation

Computer Networks Vs. Distributed Systems

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

Analog vs. Digital Transmission

Computer Networks III

Chapter 9A. Network Definition. The Uses of a Network. Network Basics

Network Performance: Networks must be fast. What are the essential network performance metrics: bandwidth and latency

Lecture 5: Network Attacks I. Course Admin

ANALYSIS OF LONG DISTANCE 3-WAY CONFERENCE CALLING WITH VOIP

Transport and Network Layer

The OSI & Internet layering models

Communications and Computer Networks

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

Lecture 28: Internet Protocols

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

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

Chapter 1 Computer Networks and the Internet

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

Technical Support Information Belkin internal use only

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Transcription:

CSF531 Advanced 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 running network apps communication links fiber, copper, radio, satellite transmission rate = bandwidth routers: forward packets (chunks of data) router local ISP company network server workstation mobile regional ISP 1-3

What s the Internet: nuts and bolts view protocols control sending, receiving of msgs e.g., TCP, IP, HTTP, FTP, PPP IP: Internet Protocol TCP: Transmission Control Protocol Internet: network of networks loosely hierarchical public Internet versus private intranet Internet standards RFC: Request for comments IETF: Internet Engineering Task Force router local ISP company network server workstation mobile regional ISP 1-4

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-5

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-6

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

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

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-9

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-10

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-11

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-12

TANet Backbone 1-13

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-14

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-15

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-16

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

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-18

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-19

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-20

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-21

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-22

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-23

Physical Media: coax, fiber Coaxial cable: two concentric copper conductors bidirectional baseband: single channel on cable legacy Ethernet broadband: multiple channel on cable HFC Fiber optic cable: glass fiber carrying light pulses, each pulse a bit high-speed operation: high-speed point-to-point transmission (e.g., 5 Gps) low error rate: repeaters spaced far apart ; immune to electromagnetic noise 1-24

Physical media: radio signal carried in electromagnetic spectrum no physical wire bidirectional propagation environment effects: reflection obstruction by objects interference Radio link types: terrestrial microwave e.g. up to 45 Mbps channels PAN/LAN (e.g., Wifi) 2Mbps, 11Mbps, 54Mbps wide-area (e.g., cellular) e.g. 3G: hundreds of kbps satellite up to 50Mbps channel (or multiple smaller channels) 270 msec end-end delay geosynchronous versus low altitude 1-25

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-26

Fig. 1.12 Interconnection of ISPs 1-27

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-28

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

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

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-31

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

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

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-34

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-35

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-36

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-37

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-38

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-39

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-40

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-41

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-42

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-43

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-44

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-45

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-46

Sample Ethernet Frame 1-47

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-48