Lecture 05 - Data Communication Networks 2022.01.17
Lecture 05 - Data Communication Networks 2022.01.17
EEL3080
application M application
Application exchanges messages to implement some
application service using services of transport layer
transport H
M
transport
Transport-layer protocolt transfers M (e.g., reliably) from
one process to another, using services of network layer
network network
▪ transport-layer protocol encapsulates
link application-layer message, M, with link
transport layer-layer header Ht to create a
transport-layer segment
physical • Ht used by transport layer protocol to physical
implement its service
source destination
application M application
transport H
M
transport
Transport-layer protocolt transfers M (e.g., reliably) from
one process to another, using services of network layer
network H H
network
M
n t
Network-layer protocol transfers transport-layer segment
link [Ht | M] from one host to another, using link layer services link
▪ network-layer protocol encapsulates
physical transport-layer segment [Ht | M] with physical
network layer-layer header Hn to create a
network-layer datagram
source • Hn used by network layer protocol to destination
implement its service
Source: Kurose 4/41
Services, Layering and Encapsulation
application M application
transport H
M
transport
t
network H H
network
M
n t
Network-layer protocol transfers transport-layer segment
link [Ht | M] from one host to another, using link layer services link
H H H
M
n t
Link-layer protocoll transfers datagram [Hn| [Ht |M] from
physical host to neighboring host, using physical-layer services physical
▪ link-layer protocol encapsulates network
datagram [Hn| [Ht |M], with link-layer header
source Hl to create a link-layer frame destination
application M application
M
message
transport H
M
transport
H
t M
t
segment
network H H H H
network
M M
n t n t
datagram
link H H H link
H H H M
M
l n t
l n t
frame
physical physical
source destination
switch
H H
destination M network
H H
n H
t H H
M application M link M
H l n t
M transport physical n t
H H
t
M network
H H
n H
t
M link router
l n t
physical
Source: Kurose 7/41
ISO/OSI reference model
▪ P2P applications
▪ Principles of network ▪ video streaming and content
applications distribution networks
▪ Web and HTTP ▪ socket programming with
▪ E-mail, SMTP, IMAP UDP and TCP
▪ The Domain Name System
DNS
application
transport
write programs that: mobile network
network
data link
▪ permanent IP address
▪ often in data centers, for scaling
clients: local or
communicate
▪ peers request service from other
peers, provide service in return to
other peers local or
regional ISP
• self scalability – new peers bring new
service capacity, as well as new service home network content
demands provider
network datacenter
application application
proce socket proce controlled by
ss ss app developer
transport transport
network network controlled
link by OS
link Internet
physical physical
application
application layer protocol transport protocol
time time
Non-persistent HTTP response time = 2RTT+ file transmission time
Source: Kurose 31/41
Persistent HTTP (HTTP 1.1)
~
~ entity body ~
~ body
* Check out the online interactive exercises for more examples: http://gaia.cs.umass.edu/kurose_ross/interactive/
lock data
HTTP messages to complete a Web record X
X
“transaction” OK
update X
• no need for client/server to track X’
X’
“state” of multi-step exchange OK
t’ update X
X’’
• all HTTP requests are independent of X’’
each other unlock X
OK
client
server
ebay 8734 usual HTTP request msg Amazon server
cookie file creates ID
usual HTTP response 1678 for user backend
create
ebay 8734 set-cookie: 1678 entry database
amazon 1678
aside
What cookies can be used for: cookies and privacy:
▪ authorization ▪ cookies permit sites to
▪ shopping carts learn a lot about you on
their site.
▪ recommendations ▪ third party persistent
▪ user session state (Web e-mail) cookies (tracking cookies)
allow common identity
(cookie value) to be
Challenge: How to keep state? tracked across multiple
▪ at protocol endpoints: maintain state at web sites
sender/receiver over multiple
transactions
▪ in messages: cookies inHTTP messages
carry state
Source: Kurose 41/41
THANK YOU