Docsity

Application Layer: Understanding Network Architectures, Protocols, and Services, Slides of Computer Networks

Toggle sidebar
bg1
Ch 2
Ch
apter
2
Application Layer
Application Layer
Computer Networking:
A T D A h
A note on the use of these ppt slides:
We’re making these slides freely available to all (faculty, students, readers).
They’re in PowerPoint form so you can add, modify, and delete slides
(
includin
g
this one
)
and slide content to suit
y
our needs. The
y
obviousl
y
A T
op
D
own
A
pproac
h
,
5th edition.
Jim Kurose, Keith Ross
Addis
Wsl A il
(g ) y y y
represent a lot of work on our part. In return for use, we only ask the
following:
If you use these slides (e.g., in a class) in substantially unaltered form,
that you mention their source (after all, we’d like people to use our book!)
Addis
on-
W
e
sl
ey,
A
pr
il
2009.
,
you note that they are adapted from (or perhaps identical to) our slides, and
note our copyright of this material.
Thanks and enjoy! JFK/KWR
2: Application Layer 1
All material copyright 1996-2009
J.F Kurose and K.W. Ross, All Rights Reserved
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Application Layer: Understanding Network Architectures, Protocols, and Services and more Slides Computer Networks in PDF only on Docsity!

Ch

Ch

apter 2

Application LayerApplication Layer

Computer Networking:A T

D

A

h

A note on the use of these ppt slides:We’re making these slides freely available to all (faculty, students, readers).They’re in PowerPoint form so you can add, modify, and delete slides(including this one) and slide content to suit your needs. They obviously

A T

op Down Approach,

5

th

edition.

Jim Kurose, Keith RossAddis

W sl

A

il

(^

g^

)^

y^

y^

y

represent a

lot

of work on our part. In return for use, we only ask the

following: ‰

If you use these slides (e.g., in a class) in substantially unaltered form, that you mention their source (after all, we’d like people to use our book!) ‰

If you post any slides in substantially unaltered form on a www site that

Addis

on-Wesley, April

‰

If

you post any slides in substantially unaltered form on a www site, that you note that they are adapted from (or perhaps identical to) our slides, andnote our copyright of this material.Thanks and enjoy! JFK/KWR

2: Application Layer

All material copyright 1996-2009J.F Kurose and K.W. Ross, All Rights Reserved

2: Application Layer

Chapter 2: Application LayerChapter 2: Application Layer Our goa

ls:

ˆ

learn about protocols

Our goa s ˆ

conceptual,implementation

ˆ

learn about protocolsby examining popularapplication-level

p

aspects of networkapplication protocols

pp protocols

™

HTTPF

P

™

transport-layerservice models

li

t

™

F

TP

™

SMTP / POP3 / IMAP

™

DNS

™

client-serverparadigm ™

peer to peer

™

DNS

ˆ

programming networkapplications

™

peer-to-peerparadigm

appl cat ons

™

socket API

2: Application Layer

Some network appsSome network apps

il

i l

k

ˆ

e-mail

ˆ

web

ˆ

social networks

ˆ

voice over IP

ˆ

instant messaging

ˆ

remote login

ˆ

real-time videoconferencing

id

ti

ˆ

P2P file sharing

ˆ

multi-user network

ˆ

grid computing

games

ˆ

streaming stored videoclipsclips

2: Application Layer

Chapter 2: Application layerChapter 2: Application layer

2 1 P i

i l

f

2 6 P2P

li

i

ˆ

.1 Principles of network applications

ˆ

2 2 W b

d HTTP

ˆ

.6 P2P applications

ˆ

2.7 Socket programming

ith UDP

ˆ

2.2 Web and HTTP

ˆ

2.3 FTP2 4 El

t

i^

M il

with UDP

ˆ

2.8 Socket programmingwith TCP

ˆ

.4 Electronic Mail ™

SMTP, POP3, IMAP

ˆ

2 5 DNS

with TCP

ˆ

2.5 DNS

2: Application Layer

Application architecturesApplication architectures

l

Client-server

™

Including data centers / cloud computing

Peer-to-peer (P2P)

Hybrid of client-server and P2P

Hybrid of client server and P2P

2: Application Layer

Google Data CentersGoogle Data Centers

E

d

f d

E

stimated cost of data center: $600M

Google spent $2.4B in 2007 on new data

g

p

centers

Each data center uses 50-100 megawatts

Each data center uses 50 100 megawattsof power

Pure P2P architecturePure P2P architecture

l

ˆ

no always-on server

ˆ

arbitrary end systemsdi

tl

i^

t

directly communicate

ˆ

peers are intermittentlyconnected and change IP

peer-peer

connected and change IPaddresses

Highly scalable butHighly scalable but

difficult to manage

2: Application Layer

Processes communicatingProcesses communicating P

ss:

i^

Client process:

process

P

rocess: program running

within a host.

ˆ

within same host two

Client process: process

that initiatescommunication

ˆ

within same host, twoprocesses communicateusing inter-process

Server process: process

that waits to be

g

p

communication (definedby OS).

contacted

ˆ

processes in differenthosts communicate by

h

i

ˆ

Note: applications withP2P architectures have

li nt p

ss s &

exchanging messages

client processes &server processes

2: Application Layer

SocketsSockets

ˆ

d /

i^

host or

host or

ˆ

process sends/receivesmessages to/from itssocket

host

or

server

ost o server

controlled by

socket

ˆ

socket analogous to door

™

sending process shoves

processsocket

processsocket

y

app developer

™

sending process shoves message out door

™

sending process relies ont

s

t i f

st

t

TCP withbuffers,variables

TCP withbuffers,variables

Internet

t

ransport infrastructure on other side of door whichbrings message to socket

controlledby OS

at receiving process

by

OS

ˆ

API: (1) choice of transport protocol; (2) ability to fix

2: Application Layer

a few parameters (lots more on this later)

App

layer protocol defines

App

layer protocol defines

T

f

P bli

d

i^

l

ˆ

T

ypes of messages exchanged,

™

e g

request response

Public-domain protocols: ˆ

defined in RFCs

ll

f

™

e.g., request, response

ˆ

Message syntax:

™

what fields in messages &

ˆ

allows forinteroperability

ˆ

HTTP SMTP

™

what fields in messages &how fields are delineated

ˆ

Message semantics

ˆ

e.g., HTTP, SMTP,BitTorrent

Proprietary protocols:

g

™

meaning of information infields

ˆ

R l

f

h

d h

Proprietary protocols: ˆ

e.g., Skype, ppstream

ˆ

Rules for when and howprocesses send &respond to messages

2: Application Layer

respond to messages

What transport service does an app need? Data loss ˆ

some apps (e g

audio) can

Throughput ˆ

some apps (e g

ˆ

some apps (e.g., audio) cantolerate some loss

ˆ

other apps (e.g., file

ˆ

some apps (e.g.,multimedia) requireminimum amount of

ˆ

other apps (e.g., filetransfer, telnet) require100% reliable datat

f

minimum amount ofthroughput to be“effective”

transfer

Timing ˆ

some apps (e g

ˆ

other apps (“elastic apps”)make use of whatever

h

h

h

ˆ

some apps (e.g.,Internet telephony,interactive games)

throughput they get

Security

E

d

g

require low delay to be“effective”

ˆ

E

ncryption, data integrity, …

2: Application Layer

Internet transport protocols servicesInternet transport protocols services TCP

i^

UDP

i

TCP

service:

ˆ

connection-oriented: setuprequired between client and

UDP service: ˆ

unreliable data transferbetween sending and

required between client andserver processes

ˆ

reliable transport between

di

d

i i

between sending andreceiving process

ˆ

does not provide:connection setup

sending and receiving process

ˆ

flow control: sender won’toverwhelm receiver

connection setup,reliability, flow control,congestion control, timing,

h

h

ˆ

congestion control: throttlesender when networkoverloaded

throughput guarantee, orsecurity

overloaded

ˆ

does not provide: timing,minimum throughput

Q: why bother?

Why is

there a UDP?

2: Application Layer

guarantees, security

Internet apps:

application transport protocols

Internet apps:

application

, transport protocols

Application

Underlying

Application

e

mail

Applicationlayer protocol SMTP [RFC 2821]

Underlyingtransport protocol TCP

e

-mail

remote terminal access

Web

fil

t^

f

SMTP [RFC 2821]Telnet [RFC 854]HTTP [RFC 2616]FTP [RFC 959]

TCPTCPTCPTCP

file transfer

streaming multimedia

FTP [RFC 959]HTTP (eg Youtube),RTP [RFC 1889]

TCPTCP or UDP

Internet telephony

SIP, RTP, proprietary(e.g., Skype)

typically UDP

2: Application Layer