Basic Concepts. CS168, Fall 2014 Sylvia Ratnasamy h<p://inst.eecs.berkeley.edu/~cs168/fa14/

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

end systems, access networks, links 1.3 network core

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

Lecture 2: Internet Structure

Computer Networks. ENGG st Semester, 2010 Hayden Kwok-Hay So

Computer Networks and the internet. Daniel Graham Ph.D

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

Chapter 1: introduction

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

Computer Networking Introduction

CS 3516: Computer Networks

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

Network core and metrics

Chapter 1. Computer Networks and the Internet

CSEN 503 Introduction to Communication Networks

A closer look at network structure:

CSC 401 Data and Computer Communications Networks

Overview on the Internet the current and future telecommunication network

CSC 4900 Computer Networks: Introduction

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

Fundamentals of Information Systems

Chapter 1: Introduction

Advanced Computer Networks Spring Set #1

A Whirlwind Introduction to the Internet Overview

CS 457 Networking and the Internet. Network Overview (cont d) 8/29/16. Circuit Switching (e.g., Phone Network) Fall 2016 Indrajit Ray

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

Lecture 2 Physical Layer - Multiplexing

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

Computer Communication Networks

Resource Sharing or Designing Access Network For Low Cost.

CS 204: Advanced Computer Networks

Outline. Computer Communication and Networks. The Network Core. Components of the Internet. The Network Core Packet Switching Circuit Switching

Chapter 8: Multiplexing

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

Outline: Connecting Many Computers

Integrated t Services Digital it Network (ISDN) Digital Subscriber Line (DSL) Cable modems Hybrid Fiber Coax (HFC)

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

CSIS Frequency Division Multiplexing. Basic Types of Multiplexing. Frequency Division Multiplexing. Frequency Division Multiplexing.

Communication Networks

Toward a Reliable Data Transport Architecture for Optical Burst-Switched Networks

Last Lecture. Nuts-and-bolts description of the Internet. ! The topology. ! The communication links. ! The core. ! The edge

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

CSE3213 Computer Network I

White Paper Broadband Multimedia Servers for IPTV Design options with ATCA

Communication Networks

Chapter 9. Internet. Copyright 2011 John Wiley & Sons, Inc 10-1

Network Layer Enhancements

Integrated and Differentiated Services. Christos Papadopoulos. CSU CS557, Fall 2017

Part I: Introduction. 1: Introduction 1

The Network Layer and Routers

Network Programming I Computer Network Design

CS348: Computer Networks Introduction to Computer Networks and Internet

Lecture #6 Multiplexing and Switching

Computer Networking. Queue Management and Quality of Service (QOS)

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?

Advanced Computer Networks

CSE 123A Computer Networks

CS 716: Introduction to communication networks. - 8 th class; 17 th Aug Instructor: Sridhar Iyer IIT Bombay

Eliminating the Last Mile Bottleneck

CMSC 611: Advanced. Interconnection Networks

EL Wireless and Mobile Networking Spring 2002 Mid-Term Exam Solution - March 6, 2002

2. A collection of interconnected networks is called an internetwork. 3. Each machine is connected to a central hub with a point-to-point connection.

Computer Networking Introduction

Modems, DSL, and Multiplexing. CS158a Chris Pollett Feb 19, 2007.

CS 716: Introduction to communication networks. - 9 th class; 19 th Aug Instructor: Sridhar Iyer IIT Bombay

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

Wireless Networks (CSC-7602) Lecture 8 (22 Oct. 2007) Seung-Jong Park (Jay) Fair Queueing

Lecture 4. Data Transmission Modes and Switching. Data Transmission & Switching 1-1

CS 471G Friday, 11 January Introduction 2-1

Full file at

IP Packet Switching. Goals of Todayʼs Lecture. Simple Network: Nodes and a Link. Connectivity Links and nodes Circuit switching Packet switching

CS 3640: Introduction to Networks and Their Applications

Computer Networking. Slide Set 1

Lecture 21: Congestion Control" CSE 123: Computer Networks Alex C. Snoeren

Networks Overview. Dr. Yingwu Zhu

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

CS519: Computer Networks

2 Network Basics. types of communication service. how communication services are implemented. network performance measures. switching.

Telecommunication Networks Introduction

Routers: Forwarding EECS 122: Lecture 13

CCM 4300 Lecture 5 Computer Networks, Wireless and Mobile Communications. Dr Shahedur Rahman. Room: T115

ITP 140 Mobile Applications Technologies. Networks

Read Chapter 1 of Kurose-Ross

6.033 Computer System Engineering

Today s Agenda. Today s Agenda 9/8/17. Networking and Messaging

CNT 4007 Computer Networks - Chapter 1 : Overview

BROADBAND AND HIGH SPEED NETWORKS

Network Superhighway CSCD 330. Network Programming Winter Lecture 13 Network Layer. Reading: Chapter 4

Chapter I: Introduction

CS 326: Operating Systems. Networking. Lecture 17

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

Networking Link Layer

CSE/EE 461 Computer Networks

CS455: Introduction to Distributed Systems [Spring 2018] Dept. Of Computer Science, Colorado State University

Chapter 6 Medium Access Control Protocols and Local Area Networks

CS 3516: Advanced Computer Networks

Episode 5. Scheduling and Traffic Management

Why Your Application only Uses 10Mbps Even the Link is 1Gbps?

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

Routers: Forwarding EECS 122: Lecture 13

Transcription:

Basic Concepts CS168, Fall 2014 Sylvia Ratnasamy h<p://inst.eecs.berkeley.edu/~cs168/fa14/

Administrivia Discussion secions start Wednesday, Sep 10 Homework#1 out this week - we will be using PandaGrader for submissions; stay tuned for details 2

Today What is a network made of? How is it shared? How do we evaluate a network? 3

Today What is a network made of? How is it shared? How do we evaluate a network? 4

link end- system switch Internet Service Provider 5

phone company 6

phone company 7

home PC switch 8

DSL modem DSLAM central office phone line... home PC switch telephone telephone network 9

AT&T Central Offices in the Bay Area

AT&T Central Office in Berkeley

Digital Subscriber Line (DSL) Twisted pair copper 3 separate channels - - - downstream data channel upstream data channel 2- way phone channel up to 25 Mbps downstream up to 2.5 Mbps upstream 12

Why phone lines?

cable company 14

cable company 15

home PC switch 16

cable modem cable head CMTS end copper fiber... home PC switch 17

cable head CMTS end fiber switch 18

Cable Coaxial copper & fiber up to 42.8 Mbps downstream up to 30.7 Mbps upstream shared broadcast medium 19

university net 20

university net 21

Ethernet cable... workstacon local switch aggregate switch 22

Ethernet Twisted pair copper 100 Mbps, 1 Gbps, 10 Gbps (each direcion) 23

& more Cellular (smart phones) Satellite (remote areas) Fiber to the Home (home) OpIcal carrier (Internet backbone) 24

WiFi phone company university net cable company WiFi WiFi 25

What physical infrastructure is already available? 26

Today What is a network made of? How is it shared? How do we evaluate a network? 27

shared link and switch resources 28

How do we scale a network to many end- systems? O(n 2 ) links per- node capacity scales as 1/n 29

How do we scale a network to many end- systems? Switched networks enable efficient scaling! 30

Two approaches to sharing ReservaIons On demand 31

IntuiIon: Three sources of bursty traffic 12Mbps Link capacity = 30Mbps 11Mbps 13Mbps Time

Intuition: reservations 12Mbps Frequent overloading Link capacity = 30Mbps 11Mbps Each source gets 10Mbps 13Mbps Time

Intuition: on demand No overloading Link capacity = 30Mbps Time

Switching on- demand exploits sta7s7cal mul7plexing be<er than reservaions Sharing using the staisics of demand Good for bursty traffic (average << peak demand) Similar to insurance, with the same failure mode

Intuition: on demand Link capacity = 30Mbps Time What do we do under overload?

StaIsIcal muliplexing is a recurrent theme in computer science Phone network rather than dedicated lines - ancient history Packet switching rather than circuits - today s lecture Cloud compuing - shared vs. dedicated machines

Two approaches to sharing ReservaIons On demand How are these implemented? 38

Two approaches to sharing ReservaIons à circuit switching On demand à packet switching How are these implemented? 39

Two approaches to sharing Packet switching - packets treated on demand - admission control: per packet Circuit switching - resources reserved per acive "connecion" - admission control: per connecion A hybrid: virtual circuits - emulaing circuit switching with packets (see text) 40

Circuit Switching src 10Mb/s? 10Mb/s? dst 10Mb/s? (1) src sends a reservaion request to dst (2) Switches establish a circuit (3) src starts sending data (4) src sends a teardown circuit message

Circuit Switching switch src dst ReservaIon establishes a circuit within a switch 42

Many kinds of circuits Time division muliplexing - divide Ime in Ime slots - separate Ime slot per circuit time Frequency division muliplexing - - divide frequency spectrum in frequency bands separate frequency band per circuit frequency time 43

Timing in Circuit Switching time

Timing in Circuit Switching time

Timing in Circuit Switching time

Timing in Circuit Switching time

Timing in Circuit Switching Circuit establishment time

Timing in Circuit Switching Circuit establishment Data transfer Data time

Timing in Circuit Switching Circuit establishment Data transfer Data Circuit teardown time

Timing in Circuit Switching Circuit establishment Data transfer Circuit teardown time

Timing in Circuit Switching Data time

Timing in Circuit Switching Information time

Circuit Switching A B Circuit switching doesn t route around trouble

Circuit Switching Pros - predictable performance - simple/fast switching (once circuit established) Cons - - - - complexity of circuit setup/teardown inefficient when traffic is bursty circuit setup adds delay switch fails à its circuit(s) fails

Packet switching switch dst Each packet contains desinaion (dst) Each packet treated independently 56

Packet switching switch dst Each packet contains desinaion (dst) Each packet treated independently With buffers to absorb transient overloads 57

Packet Switching Pros - - - efficient use of network resources simpler to implement robust: can route around trouble Cons - - unpredictable performance requires buffer management and conges7on control

Today What is a network made of? How is it shared? - will assume packet switching from here on How do we evaluate a network? 59

Today What is a network made of? How is it shared? How do we evaluate a network? 60

Performance Metrics Delay Loss Throughput

Delay How long does it take to send a packet from its source to des7na7on?

Loss What frac7on of the packets sent to a des7na7on are dropped?

Throughput At what rate is the des7na7on receiving data from the source

Delay Consists of four components - - - - transmission delay propaga7on delay queuing delay processing delay due to link proper7es due to traffic mix and switch internals

A network link bandwidth delay x bandwidth PropagaIon delay l Link bandwidth l number of bits sent/received per unit Ime (bits/sec or bps) l PropagaIon delay l Ime for one bit to move through the link (seconds) l Bandwidth- Delay Product (BDP) l l number of bits in flight at any Ime BDP = bandwidth propagaion delay

Examples l Same city over a slow link: l l l bandwidth: ~100Mbps propagaion delay: ~0.1msec BDP: 10,000bits (1.25KBytes) l Cross- country over fast link: l l l bandwidth: ~10Gbps propagaion delay: ~10msec BDP: 10 8 bits (12.5MBytes)

1. Transmission delay How long does it take to push all the bits of a packet into a link? Packet size / Transmission rate of the link - e.g. 1000 bits / 100 Mbits per sec = 10-5 sec Computer Networks, Fall 2013 68

2. PropagaIon delay How long does it take to move one bit from one end of a link to the other? Link length / PropagaIon speed of link - E.g. 30 kilometers / 3 10 8 meters per sec = 10-4 sec Computer Networks, Fall 2013 69

Packet Delay Sending 100B packets from A to B? A 1Mbps, 1ms B time=0 Time to transmit one bit = 1/10 6 s Time to transmit 800 bits=800x1/10 6 s 100Byte packet Time when that bit reaches B = 1/10 6 +1/10 3 s Time The last bit reaches B at (800x1/10 6 )+1/10 3 s = 1.8ms

Packet Delay 1GB file in 100B packets Sending 100B packets from A to B? A 1Gbps, 1ms? 1Mbps, 1ms B 100Byte packet 10 7 x 100B packets The last bit in the file reaches B at (10 7 x800x1/10 9 )+1/10 3 s = 8001ms The last bit reaches B at (800x1/10 9 )+1/10 3 s = 1.0008ms Time The last bit reaches B at (800x1/10 6 )+1/10 3 s = 1.8ms

Packet Delay: The pipe view Sending 100B packets from A to B? A 1Mbps, 10ms B pkt tx time 100Byte packet BW à 100Byte packet time à Time 100Byte packet

Packet Delay: The pipe view Sending 100B packets from A to B? 1Mbps, 10ms (BDP=10,000) BW à time à 1Mbps, 5ms (BDP=5,000) 10Mbps, 1ms (BDP=10,000) BW à time à BW à time à

Packet 200B? Delay: The pipe view Sending 100B packets from A to B? 1Mbps, 10ms (BDP=10,000) BW à time à 1Mbps, 10ms (BDP=10,000) BW à time à

3. Queuing delay How long does a packet have to sit in a buffer before it is processed? Computer Networks, Fall 2013 75

Queuing delay: pipe view

Queuing delay: pipe view No overload!

Queuing delay: pipe view Queue Transient Overload Not a rare event!

Queuing delay: pipe view Queue Transient Overload Not a rare event!

Queuing delay: pipe view Queue Transient Overload Not a rare event!

Queuing delay: pipe view Queue Transient Overload Not a rare event!

Queuing delay: pipe view Queue Transient Overload Not a rare event!

Queuing delay: pipe view Queue Transient Overload Queues absorb transient bursts but introduce queuing delay Not a rare event!

Queuing delay: pipe view What about persistent overload? Will eventually drop packets ( loss )

Queuing Delay l How long does a packet have to sit in a buffer before it is processed? l Depends on traffic pa<ern l arrival rate at the queue l nature of arriving traffic (bursty or not?) l transmission rate of outgoing link

Queuing Delay l How long does a packet have to sit in a buffer before it is processed? l Characterized with staisical measures l average queuing delay l variance of queuing delay l probability delay exceeds a threshold value

Basic Queuing Theory Terminology l Arrival process: how packets arrive l l Average rate A Peak rate P l W: average Ime packets wait in the queue l W for waiing Ime l L: average number of packets waiing in the queue l L for length of queue

Li<le s Law (1961) L = A x W l Compute L: count packets in queue every second l How osen does a single packet get counted? W Imes l Why do you care? l Easy to compute L, harder to compute W

4. Processing Delay How long does the switch take to process a packet? typically assume this is negligible Computer Networks, Fall 2013 89

Recap What is a network made of? - What physical infrastructure exists? How is it shared? - On- demand or reserve? How do we evaluate a network? - to be contd. Computer Networks, Fall 2013 90