Cpsc 527 Advanced Computer Networks Information and Organization

61 downloads 119 Views 4MB Size Report
Computer Networks and Internets (5th Edition), D. Comer,. Prentice Hall (2008). ◇ “Computer Networking: A Top Down Approach Featuring the Internet,” Jim ...
University of British Columbia

Cpsc 527 Advanced Computer Networks Instructor: Dr. Son T. Vuong Email: [email protected]

The World Connected Jump to first page

Information and Organization 

Instructor: Dr. Son Vuong  Email:

[email protected] or [email protected]  Office Hours: M, W: 2-3 pm 

References:  Research

reports/papers and protocol standard documents.  "Computer Networks," A. Tanenbaum – 4th Ed., Prentice Hall (2003)  "Data and Computer Communications," W. Stallings - 8th Ed. (2006)  Computer Networks and Internets (5th Edition), D. Comer, Prentice Hall (2008)  “Computer Networking: A Top Down Approach Featuring the Internet,” Jim Kurose & Keith Ross, 5th Ed., Addison Wesley, 2009 Spring 2010 – Dr. Son Vuong

Cpsc 527

2

1

Text and Workload 

Tentative Course Load and Evaluation: 1

Project  1 Presentation  Short Quizzes  1 Assignment  Class Participation 



(50%) (15%) (25%) (10%) (Bonus 4%)

Use of BlueCT (on Laptop) for interactive participation and learning Use of Peerwise for prereading and peerwise learning (CourseID=3109) http://peerwise.cs.auckland.ac.nz/at/?ubc_ca

Spring 2010 – Dr. Son Vuong

3

Cpsc 527

Cpsc 527 Outline

(*) Review



The Internet and TCP/IP (including IPv6, Muticasting, ATM congestion control) (*) Intro to the Internet of Things (IOT)



ext-Generation Internet: QoS, Scheduling, MPLS, IntServ, DiffServ, RSVP

Distributed multimedia systems: Compression, RTP/RTSP, VoIP  P2P etworks and Grid Computing  P2P Video-on-demand streaming (BitVampire)  etwork security (Intrusions, VPN, IPSec, VoIP security) Other hot topics (if time permits): - Mobile (wireless) communications (Mobile-IP, 802.11abg, Cellular, PAN - Bluetooth, Satellites) - Mobile intelligent agents (Wave/NEMO) - etwork management, SNMPv2, RMON2, etc. 

Spring 2010 – Dr. Son Vuong

Cpsc 527

4

2

Review    

Overview - Protocol and Service Internet Protocol Architecture IPv4/IPv6, TCP Other Internet Protocols

Spring 2010 – Dr. Son Vuong

5

Cpsc 527

Convergence? First Color TV Broadcast, 1953

HBO Launched, 1972

Interactive TV, 1990

Telephone, 1876 Early Wireless Phones, 1978

Handheld Portable Phones, 1990

Pentium Computer + Modem 1957

First PC Altair, 1974

IBM PC, 1981

Apple Mac, 1984

Apple Powerbook, 1990

IBM Thinkpad, 1992

Apple Newton, 1993

Eniac, 1947

HP Palmtop, 1991

Spring 2010 – Dr. Son Vuong

PC, 1993

Cpsc 527

Red Herring, 10/99

6

3

Divergence! Atari Home Pong, 1972

Game Consoles Personal Digital Assistants Digital VCRs (TiVo, ReplayTV) Communicators Smart Telephones E-Toys (Furby, Aibo)

Pentium PC, 1993

Network Computer, 1996

Free PC, 1999

Sega Dreamcast, 1999

Internet-enabled Smart Phones, 1999

Pentium II PC, 1997 Apple iMac, 1998 Palm VII PDA, 1999

Proliferation of diverse end devices and access networks Spring 2010 – Dr. Son Vuong

Red Herring, 10/99

Cpsc 527

7

The Shape of Things to Come 

Toyota Pod Concept Car Co-designed

with Sony Detects driver’s skill level and adjust suspension Detects driver’s mood (pulse rate, perspiration), compensates for road rage and incorporates a mood meter (happy vs. angry face) Inter-pod wireless LAN to communicate intentions between vehicles, such as passing Individual entertainment stations for each passenger Spring 2010 – Dr. Son Vuong

Cpsc 527

8

4

“X-Internet” Beyond the PC Internet Computers Internet Users

93 Million

Today’s Internet

407 Million

Automobiles 663 Million

Telephones

X-Internet

1.5 Billion

Electronic Chips 30 Billion

Spring 2010 – Dr. Son Vuong

Cpsc 527

Forrester Research, May 2001 9

“X-Internet” Beyond the PC Millions 15000

10000

5000

PC Internet X Internet

20 01 20 02 20 03 20 04 20 05 20 06 20 07 20 08 20 09 20 10

0

Spring 2010 – Dr. Son Vuong

Cpsc 527

Year

Forrester Research, May 2001

10

5

Uses of Computer Networks • • • •

Spring 2010 – Dr. Son Vuong

Business Applications Home Applications Mobile Users Social Issues

Cpsc 527

11

Business Applications of Networks



A network with two clients and one server.

Spring 2010 – Dr. Son Vuong

Cpsc 527

12

6

Business Applications of Networks (2)

The client-server model involves requests and replies.



Spring 2010 – Dr. Son Vuong

Cpsc 527

13

Home Network Applications    

Access to remote information Person-to-person communication Interactive entertainment Electronic commerce

** Home Gateway Initiative (HGI)

Spring 2010 – Dr. Son Vuong

Cpsc 527

14

7

Home Network Applications (2)

In peer-to-peer system there are no fixed clients and servers. Spring 2010 – Dr. Son Vuong

Cpsc 527

15

Home Network Applications (3)

Some forms of e-commerce. Spring 2010 – Dr. Son Vuong

Cpsc 527

16

8

Home environment Audiovisual

WiFi Service platform

Bluetooth Portable

High Speed Access

Service platform

Gateway

Home Networks

Ethernet

Coax Telephony Internet

xDSL CATV Wireless FTTH

PLT Domotics

Spring 2010 – Dr. Son Vuong

17

Cpsc 527

What will HGI enable….. Security

Home Gateway PC

QoS control

Services Internet

Home Network

Service integration

Device Management

Security

Entertainment

End to end service delivery Gaming

Voice services Personal content

Spring 2010 – Dr. Son Vuong

Cpsc 527

18

9

Mobile Network Users

Combinations of wireless networks and mobile computing. Spring 2010 – Dr. Son Vuong

Cpsc 527

19

Classification of Networks

Classification of interconnected processors by scale. Spring 2010 – Dr. Son Vuong

Cpsc 527

20

10

Network Perspective 





Network users: services that their applications need, e.g., guarantee that each message it sends will be delivered without error within a certain amount of time Network designers: cost-effective design e.g., that network resources are efficiently utilized and fairly allocated to different users Network providers: system that is easy to administer and manage e.g., that faults can be easily isolated and it is easy to account for usage

Spring 2010 – Dr. Son Vuong

21

Cpsc 527

Inter-Process Communication 



Turn host-to-host connectivity into process-toprocess communication. Fill gap between what applications expect and what the underlying technology provides. Host

Host Application

Host

Channel

Application

Host

Host

Spring 2010 – Dr. Son Vuong

Cpsc 527

22

11

IPC Abstractions 

Request/Reply (responsive traffic)  distributed

file systems  digital libraries (web) 

Stream-Based (non-responsive traffic)  video:

sequence of frames

 1/4

NTSC = 352x240 pixels (CIF/SIF)  (352 x 240 x 24)/8=247.5KB = 2 Mbits  30 fps = 7500KBps = 60Mbps  video

applications

 on-demand

video  video conferencing Spring 2010 – Dr. Son Vuong

23

Cpsc 527

Interfaces (Protocol and Service) Host 1

Host 2

High-level object

High-level object

SERVICE interface Protocol

SERVICE interface PROTOCOL

Protocol

Peer-to-peer Interface

Spring 2010 – Dr. Son Vuong

Cpsc 527

24

12

TCP

TCP send(IP, message)

deliver(TCP, message)

IP

Spring 2010 – Dr. Son Vuong

IP

25

Cpsc 527

ISO Architecture End host

End host

Application

Application

Presentation

Presentation

Session

Session

Transport

Transport

Network

Network

Network

Network

Data link

Data link

Data link

Data link

Physical

Physical

Physical

Physical

One or more nodes within the network

Spring 2010 – Dr. Son Vuong

Cpsc 527

26

13

Spring 2010 – Dr. Son Vuong

Cpsc 527

27

Spring 2010 – Dr. Son Vuong

Cpsc 527

28

14

The Mail System MIT

Stanford Nick

Dave

Admin

Admin

Spring 2010 – Dr. Son Vuong

29

Cpsc 527

The Mail System (Cont) MIT

Stanford Application Layer

Nick

Dave Transport Layer

Admin

Admin Network Layer

Link Layer

Spring 2010 – Dr. Son Vuong

Cpsc 527

30

15

The Internet Athena.MIT.edu

Leland.Stanford.edu Application Layer

Nick

Dave Transport Layer

O.S. D

Data Hdr

O.S.

Data Hdr

Network Layer

H D

H

D D

Spring 2010 – Dr. Son Vuong

H

D

D

H

H

Link Layer

H

31

Cpsc 527

What is the Internet? “It’s the TCP/IP Protocol Stack” 

Applications

Applications  Web  Email

Middleware Services “Narrow Waist”

TCP/IP

 Video/Audio



Transport Services and Represent’n Standards  Open Data Network Bearer Service

Network Technology Substrate Access Technologies

TCP/IP Access Technologies  Ethernet  Wireless

(LAN) (LMDS, WLAN,

Cellular)  Cable  ADSL  Satellite

Where is the next “narrow waist”? Spring 2010 – Dr. Son Vuong

Cpsc 527

32

16

Lect 1 Peer Instruction Question 1.0 – Characteristics of Current Internet What are the characteristics of current Internet ? A. B. C. D. E. F.

No time guarantee for delivery No guarantee of delivery in sequence or at all Each packet is individually routed Best effort service All of the above None of the above

Spring 2010 – Dr. Son Vuong

Cpsc 527

33

Characteristics of the Internet Each packet is individually routed.  No time guarantee for delivery.  No guarantee of delivery in sequence or at all. 

 Things

get lost  Acknowledgements  Retransmission  How to determine when to retransmit? Timeout?  Need local copies of contents of each packet.  How long to keep each copy?  What if an acknowledgement is lost?  No guarantee of integrity of data.  Packets can be fragmented.  Packets may be duplicated Cpsc 527

Spring 2010 – Dr. Son Vuong

34

17

Layering in the Internet 

Transport Layer  Provides

reliable, in-sequence delivery of data from end-to-end on behalf of application.



Network Layer  Provides

“best-effort”, but unreliable, delivery of datagrams.



Link Layer  Carries

data over (usually) point-to-point links between hosts and routers; or between routers and routers.

Spring 2010 – Dr. Son Vuong

Cpsc 527

35

Spring 2010 – Dr. Son Vuong

Cpsc 527

36

18

Spring 2010 – Dr. Son Vuong

Cpsc 527

37

Lect 1 Peer Instruction Question 1.1 – Hub and Switch 

A. B. C. D. E. F.

What are the differences between a hub and a switch? Layer: physical layer (repeater), link layer Buffering: yes/no Intelligence: with/out CSMA/CD Collision domain: single vs multiple Forwarding: flooding vs self-learning Plug-and-play: yes/no

Spring 2010 – Dr. Son Vuong

Cpsc 527

38

19

Switch example Suppose C sends frame to D

3

2

I B



hub

hub

hub

A

address interface

switch

1

F

D

C

E

G

A B E G C

1 1 2 3 1

H

Switch receives frame from C  

notes in bridge table that C is on interface 1 because D is not in table, switch forwards frame into interfaces 2 and 3

frame received by D

 Spring 2010 – Dr. Son Vuong

39

Cpsc 527

Switch example Suppose D replies back with frame to C.

3

2

I B



hub

hub

hub

A

address interface

switch

1

C

D

F E

G

A B E G C D

1 1 2 3 1 2

H

Switch receives frame from D  

notes in bridge table that D is on interface 2 because C is in table, switch forwards frame only to interface 1

frame received by C

 Spring 2010 – Dr. Son Vuong

Cpsc 527

40

20

Lect 1 Peer Instruction Question 1.2 – Switch Self-Learning How many copies of the frame from C must be made for this frame to reach D. Answer: A: 3 B: 4 C:8 D:12 E: none of those

Spring 2010 – Dr. Son Vuong

41

Cpsc 527

Switch example Suppose D replies back with frame to C.

3

2

I B



hub

hub

hub

A

address interface

switch

1

C

D

F E

G

A B E G C D

1 1 2 3 1 2

H

Switch receives frame from D  

notes in bridge table that D is on interface 2 because C is in table, switch forwards frame only to interface 1

frame received by C

 Spring 2010 – Dr. Son Vuong

Cpsc 527

42

21

Lect 1 Peer Instruction Question 1.3 – Switch Self-Learning Now, how many copies of the frame from D must be made for this frame to reach C ? Answer: A: 3 B: 4 C:8 D:12 E: none of those

Spring 2010 – Dr. Son Vuong

Cpsc 527

43

Summary   

 

ISO/OSI reference model has seven layers. TCP/IP Protocol suite has four layers. Interconnection devices: Gateway, Router, Switch/Bridge, Hub/Repeater Next lecture: IPv4-v6 Then: TCP

Spring 2010 – Dr. Son Vuong

Cpsc 527

44

22

Network 1 (Ethernet)

Example TCP/IP Internet H2

H1

H7

R3

H8

H3 Network 4 (point-to-point)

Network 2 (Ethernet)

R1 R2 H4 Network 3 (FDDI)

H1

H5

TCP

R1

ETH

R2

IP

IP ETH

Spring 2010 – Dr. Son Vuong

H8

H6

R3

IP FDDI

FDDI

TCP IP

PPP

PPP

ETH

ETH

Cpsc 527

45

Ethernet CSMA/CD algorithm 1. Adaptor receives datagram 4. If adapter detects another transmission while from net layer & creates transmitting, aborts and frame sends jam signal 2. If adapter senses channel 5. After aborting, adapter idle, it starts to transmit enters exponential frame. If it senses channel backoff: after the mth busy, waits until channel idle and then transmits collision, adapter chooses a K at random from 3. If adapter transmits entire {0,1,2,@,2m-1}. Adapter frame without detecting waits K*512 bit times and another transmission, the returns to Step 2 adapter is done with frame !

Spring 2010 – Dr. Son Vuong

Cpsc 527

46

23

Ethernet’s CSMA/CD (more) Jam Signal: make sure all other transmitters are aware of collision; 48 bits Bit time: .1 microsec for 10 Mbps Ethernet ; for K=1023, wait time is about 50 msec

See/interact with Java applet on AWL Web site: highly recommended !

Spring 2010 – Dr. Son Vuong

Exponential Backoff:  Goal: adapt retransmission attempts to estimated current load  heavy load: random wait will be longer  first collision: choose K from {0,1}; delay is K· 512 bit transmission times  after second collision: choose K from {0,1,2,3}U  after ten collisions, choose K from {0,1,2,3,4,U,1023}

Cpsc 527

47

Lect 7 (Ch. 5). Peer Instruction Question 7.1 – Bin Exp Backoff In CSMA/CD, after the 5th collision, what is the probability that a node chooses K=4? Answer: A:1/8 B:1/16 C:1/32 D:1/64 E: none

Spring 2010 – Dr. Son Vuong

Cpsc 527

48

24

Efficiency of Ethernet (CSMA/CD) 

Efficiency =

____1_____ (1 + 5.4 α)

where α = tprop / ttrans = (L/c) / (F/R) = LR/cF (L: cable length, c: prop speed, R: rate, F: frame size) 

Derivation: Efficiency = _____ ttrans _____ (ttrans + tcontention)

Tcontention = tslot Nslots = (2 tprop) (e) = 2e T = 5.4 T Nslots= 1/Prob (some station acquires channel in the slot) = e Spring 2010 – Dr. Son Vuong

49

Cpsc 527

CSMA/CD efficiency  

Tprop = max prop between 2 nodes in LAN ttrans = time to transmit max-size frame Efficiency

1

=

1 + 5t prop / ttrans   

Efficiency goes to 1 as tprop goes to 0 Goes to 1 as ttrans goes to infinity Much better than ALOHA, but still decentralized, simple, and cheap

Spring 2010 – Dr. Son Vuong

Cpsc 527

50

25