77
Prof. Robin Kravets CS/ECE 438: Communication Networks Spring 2015 1 Copyright ©: CS 438 Staff, University of Illinois

CS/ECE 438: Communication Networks

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CS/ECE 438: Communication Networks

Prof. Robin Kravets

CS/ECE 438: Communication Networks

Spring 2015 1 Copyright ©: CS 438 Staff, University of Illinois

Page 2: CS/ECE 438: Communication Networks

Copyright notice

n  Copyright 2015 by University of Illinois n  All rights reserved. Permission to reproduce this

and all ECE/CS 438 course materials in whole or part for not-for-profit educational purposes is hereby granted. This document may not be reproduced for commercial purposes without the express written consent of the author.

n  Includes content by Brighten Godfrey, Matthew Caesar, Robin Kravets, Steve Lumetta, Bruce Hajek, Nitin Vaidya, Larry Peterson, Jennifer Rexford, Ion Stoica, and others

Spring 2015 2 Copyright ©: CS 438 Staff, University of Illinois

Page 3: CS/ECE 438: Communication Networks

Course Information

n  Instructor ¡  Prof. Robin Kravets

3114 SC 217-244-6026 [email protected]

n  TAs ¡  Frederick Douglas ¡  Qingxi Liao ¡  Guliz Tuncay

n  Class Webpage ¡  http://courses.engr.illinois.edu/cs438/

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 3

Page 4: CS/ECE 438: Communication Networks

Course Information

n  Use Piazza for all class related communication ¡  Announcements and discussions

n  http://www.piazza.com/illinois/cs438 ¡  All class questions ¡  This is your one-stop help-line! ¡  Will get answer < 24 hours

n  For personal communications, do not send email ¡  Use the private message function on Piazza

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 4

Page 5: CS/ECE 438: Communication Networks

Course Information

n  Text book ¡  Computer Networks: A Systems Approach, by

Peterson and Davie, 5th Ed. (minor differences from 4th edition)

n  Supplemental Text books ¡  UNIX Network Programming, by Stevens

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 5

Page 6: CS/ECE 438: Communication Networks

Prerequisites

n  Operating Systems Concepts ¡  CS 241 or ECE 391 or equivalent

n  Threads, memory management, sockets

n  C or C++ Programming ¡  Preferably Unix

n  Probability and Statistics

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 6

Page 7: CS/ECE 438: Communication Networks

Grading Policy

n  Homework 14% ¡  7 homework assignments

n  Programming Projects 46% ¡  MP0 3%, MP1 11%, MP2 16%, MP3 16%

n  Midterm Exam 15% ¡  Week of March 9 (M or T), 7 - 9PM

n  Final Exam 25% ¡  TBA

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 7

Page 8: CS/ECE 438: Communication Networks

Homework and Projects

n  Homework ¡  7 homeworks each worth 2% ¡  Due Wednesdays at start of class. ¡  General extension to Fridays start of class (hard deadline).

n  Solutions handed out in class on Fridays ¡  No questions to Professor, TAs or on Piazza after class on

Wednesday.

n  Projects ¡  Late policy for projects - 2% off per hour late ¡  MP0 and MP1 are solo ¡  MP2 and MP3 are 2 person teams

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 8

Page 9: CS/ECE 438: Communication Networks

Regrades

n  Within one week of posting of grades for a homework, MP or exam

n  Regrades must be submitted in writing on a separate piece of paper ¡  Please do not write on your homework,

MP or Exam

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 9

Page 10: CS/ECE 438: Communication Networks

Academic Honesty

n  Your work in this class must be your own. n  If students are found to have cheated (e.g., by copying or

sharing answers during an examination or sharing code for a project), all involved will at a minimum receive grades of 0 for the first infraction. ¡  We will run a similarity-checking system on code and binaries

n  Further infractions will result in failure in the course and/or recommendation for dismissal from the university.

n  Department honor code: https://wiki.engr.illinois.edu/display/undergradProg/Honor+Code

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 10

Page 11: CS/ECE 438: Communication Networks

What is cheating in a programming class?

n  At a minimum ¡  Copying code ¡  Copying pseudo-code ¡  Copying flow charts

n  Consider ¡  Did some one else tell you how to do it?

n  Does this mean I can’t help my friend? ¡  No, but don’t solve their problems for them

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 11

Page 12: CS/ECE 438: Communication Networks

Graduate Students

n  Graduate students MAY take an extra one hour project in conjunction with this class ¡  Graduate students

n  Write a survey paper in a networking research area of your choice

n  Project proposal with list of 10+ academic references (no URL’s) due February 10th

n  Paper due last day of class ¡  Undergraduates may not take this project course

n  However, if you are interested in networking research, please contact me

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 12

Page 13: CS/ECE 438: Communication Networks

Goal: foundational view of computer networks

n  Fundamental challenges of computer networking

n  Design principles of computer networks

n  From principles to practical protocols n  Build real network applications

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 13

Page 14: CS/ECE 438: Communication Networks

Course Contents

n  Introduction to UNIX Network Programming n  Direct Link Networks n  Packet Switched Networks n  Routing n  Internetworking n  End-to-End Protocols n  Congestion Control n  Mobile Ad hoc Networks n  P2P Networks n  Network Security n  … more if there is time

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 14

Page 15: CS/ECE 438: Communication Networks

Complete Schedule

n  See class webpage n  http://www.cs.illinois.edu/class/cs438

¡  Schedule is dynamic ¡  Check regularly for updates

n  Content ¡  Slides will be posted by the night before class

n  Bring a print out of the sides to class n  Some class material may not be in slides

¡  Examples may be worked out in class

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 15

Page 16: CS/ECE 438: Communication Networks

What do these two things have in common?

n  First printing press

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 16

n  The Internet

Both lowered the cost of distributing information and changed human society

[opte.org]

Page 17: CS/ECE 438: Communication Networks

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 17

A Brief History of the Internet

Page 18: CS/ECE 438: Communication Networks

Visionaries

n  Vannevar Bush, “As we may think” (1945): ¡  memex - an adjustable

microfilm viewer n  J. C. R. Licklider (1962): “Galactic Network” ¡  Concept of a global

network of computers connecting people with data and programs

¡  First head of DARPA computer research, October 1962

¡  Funded Arpanet

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 18

Bush

Licklider

Page 19: CS/ECE 438: Communication Networks

Circuit switching

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 19

1920s 1967

[US Air Force]

[Getty Images]

Page 20: CS/ECE 438: Communication Networks

1961-64: Packet switching

n  Leonard Kleinrock ¡  Queueing-theoretic analysis of packet switching in

MIT Ph.D. thesis (1961-63) demonstrated value of statistical multiplexing

n  Paul Baran (RAND), Donald Davies ¡  Concurrent work from (National Physical

Labratories, UK)

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 20

Kleinrock

Baran

Circuit switching

Time

Packet switching

Time

Page 21: CS/ECE 438: Communication Networks

Circuit Switching Datagram packet switching

1961-64: Packet switching

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 21

Page 22: CS/ECE 438: Communication Networks

Circuit Switching Datagram packet switching

Physical channel carrying stream of data from source to destination

Three phase: setup, data transfer, tear-down

Data transfer involves no routing

1961-64: Packet switching

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 22

Page 23: CS/ECE 438: Communication Networks

Circuit Switching Datagram packet switching

Physical channel carrying stream of data from source to destination

Message broken into short packets, each handled separately

Three phase: setup, data transfer, tear-down One operation: send packet

Data transfer involves no routing Packets stored (queued) in each router, forwarded to appropriate neighbor

1961-64: Packet switching

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 23

Page 24: CS/ECE 438: Communication Networks

1965: First computer network

n  Lawrence Roberts and Thomas Merrill connect a TX-2 at MIT to a Q-32 in Santa Monica, CA

n  ARPA-funded project n  Connected with telephone line –

it works, but it’s inefficient and expensive – confirming motivation for packet switching

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 24

Roberts

Page 25: CS/ECE 438: Communication Networks

The ARPANET begins

n  Roberts joins DARPA (1966), publishes plan for the ARPANET computer network (1967)

n  December 1968: Bolt, Beranek, and Newman (BBN) wins bid to build packet switch, the Interface Message Processor (IMP)

n  September 1969: BBN delivers first IMP to Kleinrock’s lab at UCLA

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 25

An older Kleinrock with the first IMP

Page 26: CS/ECE 438: Communication Networks

ARPANET comes alive

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 26

Stanford Research Institute (SRI)

“LO” Oct 29, 1969

UCLA

Page 27: CS/ECE 438: Communication Networks

ARPANET grows

n  Dec 1970: ARPANET Network Control Protocol (NCP)

n  1971: Telnet, FTP

n  1972: Email (Ray Tomlinson, BBN)

n  1979: USENET

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 27

ARPANET, April 1971

Page 28: CS/ECE 438: Communication Networks

And grows …

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 28

77 nodes

How many do we have today?

Page 29: CS/ECE 438: Communication Networks

ARPANET to Internet

n  Meanwhile, other networks such as PRnet, SATNET deveoped

n  May 1973: Vinton G. Cerf and Robert E. Kahn present first paper on interconnecting networks

n  Concept of connecting diverse networks, unreliable datagrams, global addressing, ...

n  Became TCP/IP

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 29 Kahn

Cerf

2004 Turing Award!

Page 30: CS/ECE 438: Communication Networks

TCP/IP deployment

n  TCP/IP implemented on mainframes by groups at Stanford, BBN, UCL

n  David Clark implements it on Xerox Alto and IBM PC

n  1982: International Organization for Standards (ISO) releases Open Systems Interconnection (OSI) reference model

¡  Design by committee didn’t win out n  January 1, 1983: “Flag Day” NCP to

TCP/IP transition on ARPANET OSI Reference Model’s layers

Spring 2015 30 Copyright ©: CS 438 Staff, University of Illinois

Application

Presentation

Physical

Transport

Session

Data Link

Network

Page 31: CS/ECE 438: Communication Networks

OSI Protocol Stack

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 31

Application

Presentation

Physical

Transport

Session

Data Link

Network

n  Application: Application specific protocols

n  Presentation: Format of exchanged data

n  Session: Name space for connection mgmt

n  Transport: Process-to-process channel

n  Network: Host-to-host packet delivery

n  Data Link: Framing of data bits

n  Physical: Transmission of raw bits

Page 32: CS/ECE 438: Communication Networks

Growth from Ethernet

n  Ethernet ¡  R. Metcalfe and D.

Boggs, July 1976 n  Spanning Tree

protocol ¡  Radia Perlman,

1985 n  Made local area

networking easy

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 32

Metcalfe

Perlman

Page 33: CS/ECE 438: Communication Networks

Growth spurs organic change

n  Early 1980s ¡  Many new networks: CSNET,

BITNET, MFENet, SPAN (NASA), ...

n  Nov 1983 ¡  DNS developed by Jon

Postel, Paul Mockapetris (USC/ISI), Craig Partridge (BBN)

n  1984 ¡  Hierarchical routing: EGP and

IGP (later to become eBGP and iBGP)

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 33

Postel

Partridge

Mockapetris

Page 34: CS/ECE 438: Communication Networks

NSFNET

n  1984: NSFNET for US higher education ¡  Serve many users, not just one

field ¡  Encourage development of

private infrastructure (e.g., initially, backbone required to be used for Research and Education)

¡  Stimulated investment in commercial long-haul networks

n  1990: ARPANET ends n  1995: NSFNET decommissioned

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 34

NSFNET backbone, 1992

Page 35: CS/ECE 438: Communication Networks

Explosive growth!

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 35

In users

Page 36: CS/ECE 438: Communication Networks

Explosive growth!

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 36

In users

Page 37: CS/ECE 438: Communication Networks

Explosive growth!

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 37

In hosts

Cisco estimates 21 Billion Devices

in 2018!

Page 38: CS/ECE 438: Communication Networks

Explosive growth!

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 38

In networks

Page 39: CS/ECE 438: Communication Networks

Explosive growth! In complexity

ethernet segment

hub

switch

LAN LAN

IP router

Autonomous System

...

BGP router

Spring 2015 39 Copyright ©: CS 438 Staff, University of Illinois

spanning tree + learning broadcast

MPLS, CSPF, OSPF, RIP, ...

eBGP, iBGP

Routing protocols

Page 40: CS/ECE 438: Communication Networks

Explosive growth!

n  In technologies ¡  Link speeds 200,000x faster ¡  NATs and firewalls ¡  Wireless everywhere ¡  Mobile everywhere ¡  Tiny devices (smart phones) ¡  Giant devices (data centers)

n  In applications ¡  Morris Internet Worm (1988) ¡  World wide web (1989) ¡  MOSAIC browser (1992) ¡  Search engines ¡  Peer-to-peer ¡  Voice ¡  Radio ¡  Botnets ¡  Social networking ¡  Streaming video ¡  Data centers ¡  Cloud computing ¡  IoT

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 40

Page 41: CS/ECE 438: Communication Networks

Explosive growth!

n  Every minute of the day ¡  Facebook users share nearly 2.5 million pieces of

content ¡  Twitter users tweet nearly 300,000 times ¡  Instagram users post nearly 220,000 new photos ¡  YouTube users upload 72 hours of new video

content ¡  Apple users download nearly 50,000 apps ¡  Email users send over 200 million messages ¡  Amazon generates over $80,000 in online sales

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 41

Page 42: CS/ECE 438: Communication Networks

Huge societal relevance

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 42

FridayJune 122009

SaturdayJune 13

SundayJune 14

Routing instabilities and outages in Iranian prefixesfollowing 2009 presidential election

Affe

cted

pre

fixes

[James Cowie,Renesys Corporation]

Page 43: CS/ECE 438: Communication Networks

Affe

cted

pre

fixes

(%

)

Fri, Aug 8, 2008[Earl Zmijewski, Renesys

Corporation]

Huge societal relevance

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 43

Routing instabilities and outages in Georgian prefixes following 2008 South Ossetia War

Page 44: CS/ECE 438: Communication Networks

Top 30 inventions of the last 30 years

1.  Internet/Broadband/World Wide Web 2.  PC/Laptop Computers 3.  Mobile Phones 4.  E-Mail 5.  DNA Testing and Sequencing/Human

Genome Mapping 6.  Magnetic Resonance Imaging (MRI) 7.  Microprocessors 8.  Fiber Optics 9.  Office Software 10.  Non-Invasive Laser/Robotic Surgery 11.  Open Source Software and Services 12.  Light Emitting Diodes (LEDs) 13.  Liquid Crystal Displays (LCDs) 14.  GPS 15.  Online Shopping/E-Commerce/Auctions

16.  Media File Compression 17.  Microfinance 18.  Photovoltaic Solar Energy 19.  Large Scale Wind Turbines 20.  Social Networking via Internet 21.  Graphic User Interface (GUI) 22.  Digital Photography/Videography 23.  RFID 24.  Genetically Modified Plants 25.  Biofuels 26.  Bar Codes and Scanners 27.  ATMs 28.  Stents 29.  SRAM/Flash Memory 30.  Anti-Retroviral Treatment for

AIDS

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 44

Compiled by the Wharton School @ U Penn, 2009

Page 45: CS/ECE 438: Communication Networks

Top 30 inventions of the last 30 years

1.  Internet/Broadband/World Wide Web 2.  PC/Laptop Computers 3.  Mobile Phones 4.  E-Mail 5.  DNA Testing and Sequencing/Human

Genome Mapping 6.  Magnetic Resonance Imaging (MRI) 7.  Microprocessors 8.  Fiber Optics 9.  Office Software 10.  Non-Invasive Laser/Robotic Surgery 11.  Open Source Software and Services 12.  Light Emitting Diodes (LEDs) 13.  Liquid Crystal Displays (LCDs) 14.  GPS 15.  Online Shopping/E-Commerce/Auctions

16.  Media File Compression 17.  Microfinance 18.  Photovoltaic Solar Energy 19.  Large Scale Wind Turbines 20.  Social Networking via Internet 21.  Graphic User Interface (GUI) 22.  Digital Photography/Videography 23.  RFID 24.  Genetically Modified Plants 25.  Biofuels 26.  Bar Codes and Scanners 27.  ATMs 28.  Stents 29.  SRAM/Flash Memory 30.  Anti-Retroviral Treatment for

AIDS

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 45

Compiled by the Wharton School @ U Penn, 2009

Page 46: CS/ECE 438: Communication Networks

1

10110

11

That’s it! ...right?

Why is Networking Challenging

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 46

11110 01

1011

1 10

Page 47: CS/ECE 438: Communication Networks

Fundamental Challenge: Speed of Light

n  How long does it take light to travel from UIUC to Mountain View, CA (Google Headquarters)?

n  Answer: ¡  Distance UIUC –> Mountain View is 2,935 km ¡  Traveling 300,000 km/s: 9.78ms

n  Note: Dependent on transmission medium ¡  3.0 x 108 meters/second in a vacuum ¡  2.3 x 108 meters/second in a cable ¡  2.0 x 108 meters/second in a fiber

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 47

Page 48: CS/ECE 438: Communication Networks

Fundamental Challenge: Speed of Light

n  How long does it take an Internet “packet” to travel from UIUC to Mountain View?

n  Answer: ¡  For sure ≥ 9.78ms ¡  But also depends on:

n  The route the packet takes (could be circuitous!) n  The propagation speed of the links the packet traverses

¡  e.g. in optical fiber light propagates only at 2/3 C n  The transmission rate (bandwidth) of the links (bits/sec)

¡  And also the size of the packet

n  Number of hops traversed (“store and forward” delay) n  The “competition” for bandwidth the packet encounters (congestion). It may

have to wait in router queues.

¡  In practice this boils down to ≥ 40ms (and likely more) n  With variance (can be hard to predict!)

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 48

Page 49: CS/ECE 438: Communication Networks

Performance

n  Bandwidth/throughput ¡  Data transmitted per

unit time ¡  Example: 10 Mbps ¡  Link bandwidth vs. end-

to-end bandwidth

¡  Notation n  KB = 210 bytes n  Mbps = 106 bits per

second

n  Latency/delay ¡  Time from A to B ¡  Example: 30 msec ¡  Many applications

depend on round-trip time (RTT)

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 49

Why?

You will mess this up at least once on a HW or exam!

Page 50: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Amount of data in “pipe” ¡  channel = pipe ¡  delay = length ¡  bandwidth = area of a cross section ¡  bandwidth x delay product = volume

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 50

Bandwidth

Delay

Page 51: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Bandwidth x delay product ¡  How many bits the sender must transmit before the first bit

arrives at the receiver if the sender keeps the pipe full ¡  Takes another one-way latency to receive a response

from the receiver

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 51

A B

1

Page 52: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Bandwidth x delay product ¡  How many bits the sender must transmit before the first bit

arrives at the receiver if the sender keeps the pipe full ¡  Takes another one-way latency to receive a response

from the receiver

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 52

A B

1 2

Page 53: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Bandwidth x delay product ¡  How many bits the sender must transmit before the first bit

arrives at the receiver if the sender keeps the pipe full ¡  Takes another one-way latency to receive a response

from the receiver

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 53

A B

1 3 2

Page 54: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Bandwidth x delay product ¡  How many bits the sender must transmit before the first bit

arrives at the receiver if the sender keeps the pipe full ¡  Takes another one-way latency to receive a response

from the receiver

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 54

A B

1 4 2 3

Page 55: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Bandwidth x delay product ¡  How many bits the sender must transmit before the first bit

arrives at the receiver if the sender keeps the pipe full ¡  Takes another one-way latency to receive a response

from the receiver

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 55

A B

8 11 9 10 4 7 5 6 1 2 3

Page 56: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Bandwidth x delay product ¡  How many bits the sender must transmit before the first bit

arrives at the receiver if the sender keeps the pipe full ¡  Takes another one-way latency to receive a response

from the receiver

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 56

A B

8 11 9 10 4 7 5 6 2 3

1

12

Page 57: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Bandwidth x delay product ¡  How many bits the sender must transmit before the first bit

arrives at the receiver if the sender keeps the pipe full ¡  Takes another one-way latency to receive a response

from the receiver

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 57

A B

8 11 9 10 4 7 5 6 3

2

12

1

13

Page 58: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Bandwidth x delay product ¡  How many bits the sender must transmit before the first bit

arrives at the receiver if the sender keeps the pipe full ¡  Takes another one-way latency to receive a response

from the receiver (round trip BxD)

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 58

A B

16 19 17 18 12 15 13 14

11

20

9

21

10

22

8 6 7 5 3 4 1 2

Page 59: CS/ECE 438: Communication Networks

Delay x Bandwidth Product

n  Example: Transcontinental Channel ¡  BW = 45 Mbps ¡  delay = 50ms ¡  bandwidth x delay product

= (50 x 10–3 sec) x (45 x 106 bits/sec) = 2.25 x 106 bits

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 59

ms Mbps

Page 60: CS/ECE 438: Communication Networks

Bandwidth vs. Latency

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 60

n  Relative importance ¡  1-byte: Latency bound

n  1ms vs 100ms latency dominates 1Mbps vs 100Mbps BW ¡  25MB: Bandwidth bound

n  1Mbps vs 100Mbps BW dominates 1ms vs 100ms latency

25MB 1 Mbps

1B

1Mbps

1ms

100 Mbps 1Mbps

100ms

Page 61: CS/ECE 438: Communication Networks

Bandwidth vs. Latency

n  Infinite bandwidth ¡  RTT dominates

n  Throughput = TransferSize / TransferTime n  TransferTime = RTT + 1/Bandwidth x

TransferSize

n  Its all relative ¡  1-MB file on a 1-Gbps link looks like a 1-

KB packet on a 1-Mbps link

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 61

Page 62: CS/ECE 438: Communication Networks

Fundamental Challenge: Speed of Light

n  How many cycles does your PC execute before it can possibly get a reply to a message it sent to a Mountain View web server?

n  Answer ¡  Round trip takes >= 80ms ¡  PC runs at (say) 3 GHz ¡  3,000,000,000 cycles/sec * 0.08 sec = 240,000,000 cycles

n  Thus ¡  Communication feedback is always dated ¡  Communication fundamentally asynchronous

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 62

Page 63: CS/ECE 438: Communication Networks

Fundamental Challenge: Speed of Light

n  What about machines directly connected (via a local area network or LAN)?

n  Answer: % ping www.cs.uiuc.edu

PING dcs-www.cs.uiuc.edu (128.174.252.83) 56(84) bytes of data.64 bytes from 128.174.252.83: icmp_seq=1 ttl=63 time=0.263 ms64 bytes from 128.174.252.83: icmp_seq=2 ttl=63 time=0.595 ms64 bytes from 128.174.252.83: icmp_seq=3 ttl=63 time=0.588 ms64 bytes from 128.174.252.83: icmp_seq=4 ttl=63 time=0.554 ms...

n  500us = 1,500,000 cycles ¡  Still a loooooong time…

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 63

Page 64: CS/ECE 438: Communication Networks

Fundamental Challenge: Shared infrastructure

n  Different parties must work together ¡  Multiple parties with different agendas must agree how to

divide the task between them

n  Working together requires ¡  Protocols (defining who does what)

n  These generally need to be standardized ¡  Agreements regarding how different types of activity are

treated (policy)

n  Different parties very well might try to “game” the network’s mechanisms to their advantage

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 64

Page 65: CS/ECE 438: Communication Networks

Fundamental Challenge: Shared infrastructure

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 65

n  Physical links and switches must be shared among many users

n  Common multiplexing strategies ¡  (Synchronous) time-division multiplexing (TDM) ¡  Frequency-division multiplexing (FDM)

Page 66: CS/ECE 438: Communication Networks

Fundamental Challenge: Shared infrastructure

n  Statistical Multiplexing (SM) ¡  On-demand time-division multiplexing ¡  Scheduled on a per-packet basis ¡  Packets from different sources are

interleaved ¡  Uses upper bounds to limit transmission

n  Queue size determines capacity per source

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 66

Page 67: CS/ECE 438: Communication Networks

Fundamental Challenge: Shared infrastructure

n  Packets buffered in switch until forwarded n  Selection of next packet depends on policy

¡  How do we make these decisions in a fair manner? Round Robin? FIFO?

¡  How should the switch handle congestion?

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 67

Page 68: CS/ECE 438: Communication Networks

Fundamental Challenge: Things break

n  Communication involves a chain of interfaces, links, routers, and switches… ...stitched together with many layers of software... ...all of which must function correctly!

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 68

Page 69: CS/ECE 438: Communication Networks

Fundamental Challenge: Things break

n  Suppose a communication involves 50 components that work correctly (independently) 99% of the time.

n  What’s the likelihood the communication fails at a given point in time? ¡  Answer: success requires that they all function, so failure

probability = 1 – 0.9950 = 39.5%

n  So we have a lot of components, which tend to fail… ¡  … and we may not find out for a loooong time

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 69

Page 70: CS/ECE 438: Communication Networks

Fundamental Challenge: Enormous dynamic range

n  Challenge: enormous dynamic range ¡  Round trip times (latency) 10 us’s to sec’s (105) ¡  Data rates (bandwidth) kbps to 10 Gbps (107) ¡  Queuing delays in the network 0 to sec’s ¡  Packet loss 0 to 90+% ¡  End system (host) capabilities cell phones to clusters ¡  Application needs: size of transfers,

bidirectionality, reliability, tolerance of jitter

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 70

Page 71: CS/ECE 438: Communication Networks

Fundamental Challenge: Enormous dynamic range

n  Challenge: enormous dynamic range

n  Related challenge: very often, there is no such thing as “typical” ¡  Beware of your “mental models”! ¡  Must think in terms of design ranges, not points ¡  Mechanisms need to be adaptive

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 71

Page 72: CS/ECE 438: Communication Networks

Fundamental Challenge: Constantly Changing

n  Incessant rapid growth ¡  Decades of exponential growth ¡  Data centers contain hundreds of

thousands of hosts, Internet contains billions of hosts, millions of routers

¡  Microsoft’s data center in Chicago: 500k servers

¡  Bandwidth 10x cheaper in 4 years ¡  (commercial CDN prices)

n  Adds another dimension of dynamic range… ¡  and quite a number of ad hoc artifacts…

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 72

[Ion Stoica, Conviva]

Page 73: CS/ECE 438: Communication Networks

Fundamental Challenge: Security

n  Challenge: there are Bad Guys out there! n  Early days

¡  Vandals ¡  Hackers ¡  Crazies ¡  Researchers

n  As network population grows, it becomes more and more attractive to crooks

n  As size of and dependence on the network grows, becomes more attractive to spies, governments, and militaries

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 73

Page 74: CS/ECE 438: Communication Networks

Fundamental Challenge: Security

n  Attackers seek ways to misuse the network towards their gain ¡  Carefully crafted “bogus” traffic to manipulate the

network’s operation ¡  Torrents of traffic to overwhelm a service (denial-of-

service) for purposes of extortion/competition ¡  Passively recording network traffic in transit (sniffing) ¡  Exploit flaws in clients and servers using the network to

trick into executing the attacker’s code (compromise)

n  They all do this energetically because there is significant $$$ to be made

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 74

Page 75: CS/ECE 438: Communication Networks

The Ultimate Challenge

n  Cannot reboot the Internet ¡  Everyone depends on the Internet

n  Businesses n  Hospitals n  Education institutions n  Financial sector n  …

n  Fixing the Internet akin to changing the engine while you are flying the plane!

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 75

Page 76: CS/ECE 438: Communication Networks

Why Networking is Challenging

n  Tubes: not entirely wrong, but simplistic

n  How do we build a communication infrastructure for all of humanity?

n  Must design for extreme heterogeneity across technology, applications, users

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 76

1

10110

11

11110 01

1011

1 10

Page 77: CS/ECE 438: Communication Networks

What’s next

n  MP 0 ¡  Available Friday ¡  Sockets refresher

n  HW 1 ¡  Available Friday

n  Friday ¡  UNIX network programming

n  Next week ¡  Technical overview of Internet architecture ¡  Data link technologies

Spring 2015 Copyright ©: CS 438 Staff, University of Illinois 77