Chapter 1: Introduction

Similar documents
end systems, access networks, links 1.3 network core

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

Chapter I: Introduction

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

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

Chapter 1: introduction

Computer Networking Introduction

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?

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

Computer Networking Introduction

CS 4390 Computer Networks

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

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

Chapter 1 Introduction

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

Chapter 1 Introduction

Packet-switching: store-and-forward

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

Chapter 1 Introduction

Network core and metrics

CS 204: Advanced Computer Networks

Introduction to computer networking

Overview on the Internet the current and future telecommunication network

Part I: Introduction. 1: Introduction 1

Internet: A Brief Overview. Introduction 2-1

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

Chapter 1 Computer Networks and the Internet

A Whirlwind Introduction to the Internet Overview

CSE 434 Spring 2013 Computer Networks

Chapter 1. Computer Networks and the Internet

COMP 562: Advanced Topics in Networking

Introduction to Computer Networks. Roadmap

CSE3213 Computer Network I

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

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

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

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

Chapter 1 Introduction

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

CSC 401 Data and Computer Communications Networks

Chapter 1 Introduction

CSC 401 Data and Computer Communications Networks

LECTURE 1 - INTRODUCTION. Jacob Aae Mikkelsen

CS4491/02 Fog Computing. Network Basics

Fundamentals of Information Systems

Fundamentals of Information Systems

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

Chapter 1: introduction

Computer Networks. Lecture 1: Introduction. Computer Networking: A Top Down Approach. Dr. Yaoqing Liu

Computer Networks & Security 2016/2017

CSEN 503 Introduction to Communication Networks

Introduction. overview: our goal: get feel and terminology more depth, detail later in course approach: use Internet as example

CSCE 463/612 Networks and Distributed Processing Spring 2018

Internetworking Technology -

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

EC441 Fall 2018 Introduction to Computer Networking Chapter 1: Introduction

Introduction to Computer Networks. Chapter 1: introduction

Chapter 1 Introduction

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

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

Network Protocols and Architectures

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

Chapter 1 Introduction

Chapter 1 Introduction

Chapter 1 Introduction

CSC 4900 Computer Networks: Introduction

EECS 3214: Computer Network Protocols and Applications

Chapter 1 Introduction

Chapter 1 Introduction

Lecture 2: Internet Structure

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

Informática y Comunicaciones. Chapter 1 Introduction to Communications

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

TNK108 Datornät /Computer Networking. Fall Introduction 1-1

Communication In Smart Grid Part1 (Basics of Networking)

Chapter 1 Introduction

Computer Networking Introduction

Web Protocols and Practice

Δίκτυα Μετάδοσης Δεδομένων Data Networks. Introduction 1-1

TCN-5030 Computer Communications and Networking Technologies

Review for Internet Introduction

Chapter 1 Introduction

Protocol Layers, Security Sec: Application Layer: Sec 2.1 Prof Lina Battestilli Fall 2017

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

Chapter 1 Introduction

CS 471G Friday, 11 January Introduction 2-1

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

Computer Networking: A Top Down Approach

Chapter 1 Introduction

Computer Networks and the internet. Daniel Graham Ph.D

Suprakash Datta. Office: LAS 3043 Phone: ext Course page:

Foundations of Telematics

Telecommunication Networks Introduction

CS 3516: Advanced Computer Networks

Chapter 1: roadmap parte B

Chapter 1 Introduction

Networks Overview. Dr. Yingwu Zhu

CMP-330 Computer Networks

Transcription:

Chapter 1: Introduction Our goal: get feel and terminology more depth, detail later in course approach: use Inter as example Overview: what s the Inter? what s a protocol? work edge: hosts, s, physical media work core: packet/circuit switching, Inter structure performance: loss, delay, throughput protocol layers, service models security history 9/16/2013 Introduction (SSL) 1-1 Chapter 1: roadmap 1.1 What is the Inter? 1.2 Network edge end systems, works, links 1.3 Network core circuit switching, packet switching, work structure 1.4 Delay, loss and throughput in packet-switched works 15P 1.5 Protocol layers, service models 1.6 Networks under attack: security 1.7 History 9/16/2013 Introduction (SSL) 1-2 1

What s the Inter: nuts and bolts view PC server wireless laptop cellular handheld router points wired links billions of connected computing devices: hosts = end systems running work apps communication links fiber, copper, radio, satellite transmission rate = bandwidth Packet switches forward packets routers and switches Mobile work Home work Global ISP Regional ISP Institutional work 9/16/2013 Introduction (SSL) 1-3 What s the Inter: architecture & protocols Inter: work of works loosely l hierarchical public Inter versus private intra protocols control sending, receiving of msgs e.g., TCP, IP, HTTP, Skype, Ether Inter standards RFC: Request for comments IETF: Inter Engineering Task Force Mobile work Home work Global ISP Regional ISP Institutional work 9/16/2013 Introduction (SSL) 1-4 2

What s the Inter: a service view communication infrastructure enables distributed applications: Web, VoIP, email, games, e-commerce, file sharing communication services provided to apps: reliable data delivery from source to destination best effort (unreliable) data delivery 9/16/2013 Introduction (SSL) 1-5 What s a protocol? human protocols: what s the time? I have a question introductions work protocols: machines rather than humans all communication activity in Inter governed by protocols protocols define format, order of msgs sent and received among work entities, and actions taken on msg transmission, receipt, or timeout 9/16/2013 Introduction (SSL) 1-6 3

What s a protocol? a human protocol and a computer work protocol: Hi Hi Got the time? 2:00 time TCP connection request TCP connection response Get http://www.awl.com/kurose-ross <file> Q: Other human protocols? 9/16/2013 Introduction (SSL) 1-7 Chapter 1: roadmap 1.1 What is the Inter? 12 1.2 Network edge end systems, works, links 1.3 Network core circuit switching, packet switching, work structure 1.4 Delay, loss and throughput in packet-switched works 15P 1.5 Protocol layers, service models 1.6 Networks under attack: security 1.7 History 9/16/2013 Introduction (SSL) 1-8 4

A closer look at work structure: work edge: hosts: clients and servers servers often in data centers works, physical media: wired, wireless communication links mobile work home work global ISP regional ISP work core: interconnected routers work of works institutional work 9/16/2013 Introduction (SSL) 1-9 Access works and physical media Q: How to connect end systems to edge router? residential s institutional works (school, company) mobile works Keep in mind: bandwidth (bits per second) of work? shared or dedicated? 9/16/2013 Introduction (SSL) 1-10 5

From physical media to communication channels basic concepts 9/16/2013 Introduction (SSL) 1-11 Modulation and Demodulation Common examples: radio, television channels for analog signals Can also be used for digital signals (encoding binary data) Acos(2 f t ) 0 9/16/2013 Introduction (SSL) 1-12 6

Shannon s Theorem C = B log 2 (1 + S/N) where C max capacity in bits/sec B bandwidth in hertz S/N signal to noise ratio 9/16/2013 Introduction (SSL) 1-13 FDM vs. TDM Duration of frame (or superframe) is 125 µsec in digital telephone works 9/16/2013 Introduction (SSL) 1-14 7

TDM in Telephone Networks Why 125 sec for frame duration? Sampling Theorem: An analog signal can be reconstructed from samples taken at a rate equal to twice the signal bandwidth Bandwidth for voice signals is 4 Khz; for hi fidelity music, 22.05 Khz Sampling rate for voice = 8000 samples/sec or one voice sample every 125 sec Digital voice channel (uncompressed), 8 bits x 8000/sec = 64 Kbps 9/16/2013 Introduction (SSL) 1-15 Other Multiplexing Techniques Space division multiplex Same frequency used in different cables Same frequency used in different (nonadjacent) cells A r A d F E G A D B C A F E G A D A B C Wavelength division multiplex Light pulses sent at different wavelengths in optical fiber Code division multiplex (in chapter 6 of text) A 9/16/2013 Introduction (SSL) 1-16 8

Now back to works 9/16/2013 Introduction (SSL) 1-17 Access : digital subscriber line (DSL) central office telephone work DSL modem splitter voice, data transmitted at different frequencies over dedicated line to central office DSLAM DSL multiplexer ISP use FDM in telephone line to central office DSLAM data over DSL line goes to Inter voice over DSL line goes to telephone < 2.5 Mbps upstream transmission rate (typically < 1 Mbps) < 24 Mbps downstream transmission rate (typically < 10 Mbps) 9/16/2013 Introduction (SSL) 1-18 9

Access : cable work cable headend cable modem splitter V I D E O V I D E O V I D E O V I D E O V I D E O Channels V I D E O D D A A T T A A C O N T R O L 1 2 3 4 5 6 7 8 9 frequency division multiplexing: different channels transmitted in different frequency bands 9/16/2013 Introduction (SSL) 1-19 Access : cable and fiber cable headend cable splitter modem data, TV transmitted at different frequencies over shared cable distribution work CMTS cable modem termination system ISP HFC: hybrid fiber coax cable and fiber work attaches homes to ISP router asymmetric: up to 30 Mbps downstream transmission rate, 2 Mbps upstream transmission rate homes share work to cable headend (unlike DSL, which has dedicated to central office) Fiber to the home (Verizon, Google) - optical switches 9/16/2013 Introduction (SSL) 1-20 10

Access : home work wireless devices often combined in single box to/from headend or central office cable or DSL modem wireless point (54 Mbps) router, firewall, NAT wired Ether (100 Mbps) 9/16/2013 Introduction (SSL) 1-21 Enterprise works (Ether) institutional link to ISP (Inter) institutional router Ether switch institutional mail, web servers today, end systems typically connect into Ether switch 10 Mbps, 100Mbps, 1Gbps, 10Gbps transmission rates A large enterprise work is connected to multiple ISPs 9/16/2013 Introduction (SSL) 1-22 11

Wireless works shared wireless work connects end system to router via base station aka point wireless LANs: within building (100 ft) 802.11b/g/n (WiFi) wide-area wireless provided by telco (cellular) operator, 10 s km between 1 and 10 Mbps 3G, 4G: LTE to Inter to Inter 9/16/2013 Introduction (SSL) 1-23 Physical Media Bit: propagates between transmitter & receiver physical link: what lies between transmitter & receiver guided media: signals propagate inside 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 Ether Category 5: 100Mbps Ether Category 6: 10Gbps 9/16/2013 Introduction (SSL) 1-24 12

Physical Media: coax, fiber Coaxial cable: two concentric copper conductors baseband: single channel in cable legacy Ether broadband: multiple l channels in cable HFC bidirectional -> broadcast Fiber optic cable: glass fiber carrying light pulses high-speed point-to-point transmission, e.g., 10 s-100 s Gps low error rate: repeaters spaced far apart immune to electromagic noise 9/16/2013 Introduction (SSL) 1-25 Physical media: radio signal carried in electromagic waves can be omnidirectional or as a directional beam propagation environment effects: reflection obstruction by objects interference Radio link types: LAN (e.g., Wi Fi) 11Mbps, 54 Mbps wide-area (e.g., cellular) 3G cellular: ~ a few Mbps terrestrial microwave e.g. up to 45 Mbps channels satellite 45Mbps channel (or multiple smaller channels) geosynchronous vs. low altitude 270 msec end-end delay for geosynchronous 9/16/2013 Introduction (SSL) 1-26 13

Chapter 1: roadmap 1.1 What is the Inter? 1.2 Network edge end systems, works, links 1.3 Network core circuit switching, packet switching, work structure 1.4 Delay, loss and throughput in packet-switched works 15P 1.5 Protocol layers, service models 1.6 Networks under attack: security 1.7 History 9/16/2013 Introduction (SSL) 1-27 The Network Core mesh of interconnected routers the fundamental question: how is data transferred through? circuit switching: dedicated circuit per call: telephone packet-switching: data sent thru in discrete chunks 9/16/2013 Introduction (SSL) 1-28 14

Network Core: Circuit Switching End-to-end resources reserved for each call E.g., link bandwidth FDM, TDM end-to-end circuit-like (guaranteed) performance call setup required resource piece idle if not used by the call (no sharing) 9/16/2013 Introduction (SSL) 1-29 Numerical example How long does it take to send a file of 640,000000 bits from host A to host B over a circuit-switched work? all links are 1.536 Mbps each link uses TDM with 24 slots/sec (i.e., one slot per circuit) 500 msec to establish end-to-end circuit Let s work it out! 9/16/2013 Introduction (SSL) 1-30 15

Packet Switching: Statistical Multiplexing A 100 Mb/s Ether statistical multiplexing C B queue of packets waiting for output link 1.5 Mb/s D Sequence of A & B packets does not have fixed pattern bandwidth shared on demand statistical multiplexing queueing delay, packet loss also called asynchronous time division multiplexing (ATDM) 9/16/2013 Introduction (SSL) 1-31 E Network Core: Packet Switching each end-end data stream divided into packets packets of different users share work resources each packet uses full link bandwidth resources used as needed Bandwidth division into pieces Dedicated allocation Resource reservation resource contention: aggregate resource demand d can exceed amount available congestion: packets queue, wait for link use store and forward: packets move one hop at a time Each node receives the complete packet before forwarding 9/16/2013 Introduction (SSL) 1-32 16

Disadvantage of store-and-forward L R R R takes L/R seconds to transmit (push out) a message of L bits on to link at R bps store and forward: entire message must arrive at router before it can be transmitted on next link Example: L = 7.5 Mbits R = 1.5 Mbps End-to-end delay more than 15 seconds A file/message larger than maximum packet size is transmitted as multiple packets 9/16/2013 Introduction (SSL) 1-33 Circuit vs. Message vs. Packet Switching violates storeand-forward? 9/16/2013 Introduction (SSL) 1-34 17

Packet Switching versus Message Switching Advantages of packet switching Smaller end-to-end delay from pipelining Less data loss from transmission errors Disadvantages of packet switching More header bits Additional work to do segmentation and reassembly 9/16/2013 Introduction (SSL) 1-35 Packet switching versus circuit switching 1 Mb/s link each user: 100 kb/s when active active 10% of time (a bursty user) circuit-switching: 10 users packet switching: with 35 users, probability > 10 active at same time is less than.0004 N users 1 Mbps link Q: how did we get value 0.0004? 9/16/2013 Introduction (SSL) 1-36 18

Packet switching versus circuit switching Is packet switching a slam dunk winner? great for bursty data resource sharing simpler, no call setup excessive congestion -> packet delay and loss protocols needed for reliable data transfer, congestion control Q: How to provide circuit-like behavior? bandwidth guarantees needed for interactive audio/video apps solution may impact work neutrality 9/16/2013 Introduction (SSL) 1-37 Network Taxonomy Telecommunication works Circuit-switched works Packet-switched works FDM/WDM TDM Networks with VCs Datagram Networks Any technology can be used in link layer of Inter under IP Inter won! Aside - Inter s transport layer provides both connectionoriented (TCP) and connectionless services (UDP). 9/16/2013 Introduction (SSL) 1-38 19

Inter structure: work of works End systems connect to Inter via ISPs (Inter Service Providers) Residential, company, and university ISPs Access ISPs in turn must be interconnected so that any two hosts can send packets to each other Resulting work of works is very complex Evolution was driven by economics and national policies 9/16/2013 Introduction (SSL) 1-39 Inter structure: work of works Question: given millions of ISPs, how to connect them together? 9/16/2013 Introduction (SSL) 1-40 20

Inter structure: work of works Option: connect each ISP to every other ISP? connecting each ISP to each other directly doesn t scale: O(N 2 ) connections. 9/16/2013 Introduction (SSL) 1-41 Inter structure: work of works Option: connect each ISP to a global transit ISP? Customer and provider ISPs have economic agreement. global ISP 9/16/2013 Introduction (SSL) 1-42 21

Inter structure: work of works But if one global ISP is viable business, there will be competitors. ISP A ISP B ISP C 9/16/2013 Introduction (SSL) 1-43 Inter structure: work of works But if one global ISP is viable business, there will be competitors. which must be interconnected Inter exchange point ISP A IXP IXP ISP B ISP C peering link 9/16/2013 Introduction (SSL) 1-44 22

Tier-1 ISP: e.g., Sprint POP: point-of-presence to/from backbone peering to/from customers 9/16/2013 Introduction (SSL) 1-45 Inter structure: work of works and regional works may arise to connect s to ISPS ISP A IXP IXP ISP B ISP C regional 9/16/2013 Introduction (SSL) 1-46 23

Inter structure: work of works and a content provider work (e.g., Akamai, Google, Microsoft) may run its own work to bring services, content close to end users ISP A ISP B IXP Content provider work IXP ISP B regional 9/16/2013 Introduction (SSL) 1-47 Inter structure: work of works Tier 1 ISP Tier 1 ISP Google IXP IXP IXP Regional ISP Regional ISP ISP ISP ISP ISP ISP ISP ISP Introduction (SSL) ISP at center: small # of well-connected large works tier-1 commercial ISPs (e.g., Level 3, Sprint, AT&T, NTT), national & international coverage content provider works (e.g., Google): private work that connects it data centers to Inter, often bypassing tier-1 and regional ISPs 9/16/2013 1-48 24

Chapter 1: roadmap 1.1 What is the Inter? 1.2 Network edge end systems, works, links 1.3 Network core circuit switching, packet switching, work structure 1.4 Delay, loss and throughput in packet-switched works 15P 1.5 Protocol layers, service models 1.6 Networks under attack: security 1.7 History 9/16/2013 Introduction (SSL) 1-49 How do loss and delay occur? packet arrival rate to link temporarily 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 9/16/2013 Introduction (SSL) 1-50 25

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 9/16/2013 Introduction (SSL) 1-51 Delay in packet-switched works 3. Transmission delay: R: link bandwidth (bps) L: packet length (bits) time to send bits into link = L/R 4. Propagation delay: d: length of physical link s: propagation speed in medium (~2x10 8 m/sec) propagation delay = d/s A transmission Note: s and R are very different quantities! propagation B nodal processing queueing 9/16/2013 Introduction (SSL) 1-52 26

End-to-End Delay Nodal delay (from when last bit of packet arrives at this node to when last bit arrives at next node) d nodal = d proc + d queue + d trans + d prop End-to-end delay over N identical nodes/links from client c to server s (from when last bit of packet leaves client to when last bit arrives at server) d c-s = d prop + Nd nodal Round trip time (RTT) RTT = d c-s + d s-c + t server where t server is server processing time 9/16/2013 Introduction (SSL) 1-53 Real Inter delays and routes What do real Inter delay & loss look like? traceroute program: provides delay measurement from source to router along end-end Inter 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 9/16/2013 Introduction (SSL) 1-54 27

Real Inter delays and routes traceroute: gaia.cs.umass.edu to www.eurecom.fr Three delay measurements 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. (204.147.132.129) 16 ms 11 ms 13 ms 5 jn1-so7-0-0-0.wae.vbns. (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. (62.40.96.129) 109 ms 102 ms 104 ms 10 de.fr1.fr.geant. (62.40.96.50) 113 ms 121 ms 114 ms 11 renater-gw.fr1.fr.geant. (62.40.103.54) 112 ms 114 ms 112 ms 12 nio-n2.cssi.renater.fr n2 (193.51.206.13) 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. (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 trans-oceanic link different packets 17 * * * 18 * * * * means no response (probe lost, router not replying) 19 fantasia.eurecom.fr (193.55.113.142) 132 ms 128 ms 136 ms 9/16/2013 Introduction (SSL) 1-55 Queueing delay (waiting time) R: link bandwidth (bps) L: packet length (bits) service rate = R/L (pkts/sec) : average packet arrival rate average queueing delay traffic intensity = arrival rate/service rate = L/R L/R ~ 0: average queueing delay small L/R -> 1: delays become large L/R > 1: more work arriving than can be served, average delay infinite! In reality, buffer overflow when L/R -> 1 0 1 L/R 9/16/2013 Introduction (SSL) 1-56 28

Packet loss buffer in router for each link has finite capacity lost packet may be retransmitted by previous node, by source end system, or not at all A buffer (waiting area) packet being transmitted B packet arriving to full buffer is lost 9/16/2013 Introduction (SSL) 1-57 Throughput - rate at which bits are transferred from source to destination (in bits/sec.) R s < R c end-end throughput less than? R s bits/sec R c bits/sec R s > R c end-end throughput less than? R s bits/sec R c bits/sec bottleneck link link on end-end path that constrains end-end throughput 9/16/2013 Introduction (SSL) 1-58 29

Throughput: Inter scenario per-connection end-toend throughput is approximately min(r c, R s, R/10) Actually sharing a bottleneck equally is ideal but unrealistic R s R s R s R s R In practice: R c or R s is often the bottleneck or the server is the bottleneck R c R c R c 10 connections (fairly) share backbone bottleneck link R bits/sec 9/16/2013 Introduction (SSL) 1-59 Little s law and a useful queueing delay formula 9/16/2013 Introduction (SSL) 1-60 30

Little s Law Average population p = (average delay) x (throughput rate) average delay 1 N N delay i1 i where N is number of departures throughput rate N/T where T is duration of experiment average population (to be defined) 9/16/2013 Introduction (SSL) 1-61 Number in system n(t) 1 average population ntdt ( ) where is duration of the experiment 0 Time t 9/16/2013 Introduction (SSL) 1-62 31

random variable x samples x, x,..., x 1 2 1 mean (average) x n n n 1 second moment x ( xi ) ( x) n n i=1 x 2 2 2 i1 2 x x mean residual life 2x 2 i Special case : x is a constant x 2 ( x) 2 mean residual life ( x) 2x 2 x 2 9/16/2013 Introduction (SSL) 1-63 random variable x with discrete values x 1, x 2,, x m let p i = probability [x = x i ] for i = 1, 2,, m by definition mean m x i 1 x i p i m 2 2 second moment x xpi i 1 (Aside: For a continuous random variable, use integration instead of summation.) i 9/16/2013 Introduction (SSL) 1-64 32

Single-Server Queue queue server x average service time, in seconds service rate, in jobs/second ( = 1/ x ) arrival rate, in jobs/second utilization of server Conservation of flow x 9/16/2013 Introduction (SSL) 1-65 M/G/1 queue Single server does not idle when there is work, no overhead, i.e., it performs 1 second of work per second FIFO service Arrivals according to a Poisson process at rate jobs/second Service times of arrivals are x 1, x 2,, x i which are independent, identically distributed ib t d (with a general distribution) ib ti Average service time is x, average wait is W, average delay is T = W + x 9/16/2013 Introduction (SSL) 1-66 33

Let Ut () Ut () be the unfinished work at time t 0 1 x2w2 x3w3 2 1 x 2 2 2 1 1 2 x3 2 x 3 2 x 1 2 3 1 2 3 4 5 arrivals and departures time 9/16/2013 Introduction (SSL) 1-67 Derivation of W Time average of unfinished work is U 1 Utdt () 0 1 1 n n 2 xi xw i i i1 i1 x 2 i and w i are independent n 1 2 xi xi wi where xiwi xi w i 2 For Poisson arrivals, the average wait is equal to U from the Poisson arrivals see time average (PASTA) Theorem 9/16/2013 Introduction (SSL) 68 34

Derivation of W (cont.) The average wait is 1 x 2 2 2 2 W x xw xw x W (1 ) 2 2 x W 2(1 ) 2 Pollaczek-Khinchin (P-K) mean value formula 9/16/2013 Introduction (SSL) 1-69 M/G/1 queue Markovian Pi Poisson General T Average delay is T xw x 2 x 2(1 ) x 0 1.0 Also called Pollaczek-Khinchin (P-K) mean value formula 9/16/2013 Introduction (SSL) 1-70 35

Special Cases 1. Service times have an exponential distribution (M/M/1). We then have x 2( x) 2 2 2 2 (2)( x) ( x) ( x) W 2(1 ) 1 1 T W x x x x x x 1 1 x 1 1 1 T decreases as increases T x 0.1 x 10 10 10 10 0 1.0 9/16/2013 Introduction (SSL) 1-71 2. Service times are constant (deterministic) x ( x) 2 2 M/D/1 W ( x) 2 x 2(1 ) 2(1 ) TWx T (2 ) 1 2(1 ) T decreases as increases 9/16/2013 Introduction (SSL) 1-72 36

Two Servers and Two Queues: 60 jobs/sec 100 jobs/sec 60 jobs/sec 100 jobs/sec Single Higher Speed Server: 120 jobs/sec 200 jobs/sec 9/16/2013 Introduction (SSL) 1-73 Chapter 1: roadmap 1.1 What is the Inter? 1.2 Network edge end systems, works, links 1.3 Network core circuit switching, packet switching, work structure 1.4 Delay, loss and throughput in packet-switched works 15 1.5 Protocol layers, service models 1.6 Networks under attack: security 1.7 History 9/16/2013 Introduction (SSL) 1-74 37

Protocol Layers Networks are complex! many pieces : hosts routers links of various media applications protocols hardware, software Question: How to organize work structure? 9/16/2013 Introduction (SSL) 1-75 Layered architecture Use abstraction to hide complexity Each layer provides a service via its own internal actions as well as relying on service provided by layer below is a work of processes Can have alternative abstractions at each layer (resulting in protocol graph rather than protocol stack) Application programs Process-to-process channels Host-to-host connectivity Hardware Application programs Request/reply Message channel stream channel Host-to-host connectivity Hardware 9/16/2013 Introduction (SSL) 1-76 38

Why layering? layered architecture as reference model for protocol design by community effort decompose a large system into smaller pieces which can be designed and implemented by different people/teams modularity eases maintenance and evolution of system allows changes in implementation method so long as API remains the same, e.g., different Ethers strict layering often violated for efficient protocol implementation cross-layer design 9/16/2013 Introduction (SSL) 1-77 Each protocol involves two or more peers two kinds of specifications service interface: operations a local user can perform on a protocol entity and get results peer-peer protocol: format and meaning of messages exchanged by protocol entities (also called peers) to provide protocol service The term protocol generally refers to peerpeer spec High-level entity Protocol entity Host 1 Host 2 Service interface Peer-topeer protocol High-level entity Protocol entity 9/16/2013 Introduction (SSL) 1-78 39

Inter protocol stack application: supporting work applications FTP, SMTP, HTTP transport: process-process data transfer TCP, UDP work: routing of datagrams from source to destination IP, routing protocols link: data transfer between neighboring work elements PPP, Ether, 802.11 (WiFi) physical: bits on the wire application transport work link physical 9/16/2013 Introduction (SSL) 1-79 ISO/OSI reference model presentation: allow applications to interpret meaning of data, e.g., encryption, compression, machinespecific conventions session: synchronization, checkpointing, recovery of data exchanged Inter stack missing these layers! these services, if needed, must be implemented in application (or application protocol) needed? application presentation session transport work link physical 9/16/2013 Introduction (SSL) 1-80 40

Inter Architecture Inter Engineering Task Force (IETF) application protocols support applications i multiplexing and demultiplexing hourglass shape (only IP in work layer) best effort service => any delivery service can be used by IP limitation of hourglass FTP HTTP NV TFTP TCP IP UDP NET 1 NET 2... NET n TCP Application UDP IP Network 9/16/2013 Introduction (SSL) 1-81 Encapsulation Protocol peers provide a data delivery service How do protocol peers in different machines exchange protocol messages between themselves? In protocol header encapsulated and de-encapsulated Data Host 1 User Upper layer User Upper layer Lower layer Data H U Data H U Lower layer H L H U Data Host 2 Data 9/16/2013 Introduction (SSL) 1-82 41

Logical communication between peers E.g.: transport accept data from application add addressing, reliability check info to form a message send message to peer via a delivery service wait for peer s reply (ack) data application transport work link physical application transport work link physical ack data application transport work link physical work link physical data application transport work link physical 9/16/2013 Introduction (SSL) 1-83 Physical path of data Each layer takes data (service data unit) from above adds header to create its own protocol data unit passes protocol data unit to layer below message segment H 4 M M datagram H 3 H 4 M frame H 2 H 3 H 4 M T 2 bits protocol data units application transport work link physical source host work link physical router... work link physical router application transport work link physical destination host Note: In the past, a switch implements only two layers (physical and link). Nowadays many switches function as routers 9/16/2013 Introduction (SSL) 1-84 42

Chapter 1: roadmap 1.1 What is the Inter? 1.2 Network edge end systems, works, links 1.3 Network core circuit switching, packet switching, work structure 1.4 Delay, loss and throughput in packet-switched works 15P 1.5 Protocol layers, service models 1.6 Networks under attack: security (read on your own) 1.7 History 9/16/2013 Introduction (SSL) 1-85 Network Security The field of work security is about: how bad guys can attack computer works how we can defend hosts and works against attacks how to design architectures that are immune to attacks Inter not originally designed with (much) security in mind original vision: a group of mutually trusting users attached to a transparent work needs security considerations in each layer 9/16/2013 Introduction (SSL) 1-86 43

Bad guys: put malware into hosts via Inter malware can get in host from: virus: self-replicating infection from receiving/executing object (e.g., e-mail attachment) worm: self-replicating infection from passively receiving object that gets itself executed spyware can record keystrokes, web sites visited, upload info to collection site infected host can be enrolled in a bot, used for spam, DDoS attacks 9/16/2013 Introduction (SSL) 1-87 Distributed Denial of service (DDoS) attacks attackers overwhelm resources with bogus traffic make resources (server, bandwidth) unavailable to legitimate traffic 1. select target 2. break into hosts around the work (see bot) 3. send packets toward target from compromised hosts target 9/16/2013 Introduction (SSL) 1-88 44

The bad guys can sniff packets Packet sniffing: broadcast media (shared Ether, wireless) promiscuous work interface reads/records all packets (e.g., including passwords!) passing by A C src:b dest:a payload B Wireshark software is a (free) packet-sniffer 9/16/2013 Introduction (SSL) 1-89 The bad guys can use false source addresses IP spoofing: send packet with false source address A C src:b dest:a payload B More on security in Chapter 8 9/16/2013 Introduction (SSL) 1-90 45

Chapter 1: roadmap 1.1 What is the Inter? 1.2 Network edge end systems, works, links 1.3 Network core circuit switching, packet switching, work structure 1.4 Delay, loss and throughput in packet-switched works 15 1.5 Protocol layers, service models 1.6 Networks under attack: security 1.7 History please read on your own 9/16/2013 Introduction (SSL) 1-91 End of Chapter 1 9/16/2013 Introduction (SSL) 1-92 46