




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































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
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
il
i l
k
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
2 1 P i
i l
f
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
with TCP
2: Application Layer
Including data centers / cloud computing
2: Application Layer
l
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
ss:
i^
Client process:
process
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
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)
f
P bli
d
i^
l
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
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
d
g
require low delay to be“effective”
ncryption, data integrity, …
2: Application Layer
Internet transport protocols servicesInternet transport protocols services TCP
i^
i
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
Application
Underlying
Application
e
Applicationlayer protocol SMTP [RFC 2821]
Underlyingtransport protocol TCP
e
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