Computer Networks: Maarten Van Steen
Computer Networks: Maarten Van Steen
Chapter 07
(version June 13, 2007)
01 Introduction
02 Physical Layer
03 Data Link Layer
04 MAC Sublayer
05 Network Layer
06 Transport Layer
07 Application Layer
08 Network Security
00 – 1 /
Application Layer
• Electronic Mail
• Multimedia
07 – 1 Application Layer/
The Domain Name System
Basic idea: Every host has a worldwide unique name
that is bound to an IP address. DNS provides name-
lookup facilities: when given a hostname, it returns
that host’s IP address.
Generic Countries
robot pc24
Generic Countries
robot pc24
1. <nl,vu,cs,ftp>
Root
2. #<nl>, <vu,cs,ftp> name server
nl
3. <vu,cs,ftp> Name server
nl node
Client's 4. #<vu>, <cs,ftp>
name vu
resolver 5. <cs,ftp> Name server
vu node
6. #<cs>, <ftp>
cs
7. <ftp> Name server
8. #<ftp> cs node
ftp
<nl,vu,cs,ftp> #<nl,vu,cs,ftp>
Nodes are
managed by
the same server
<nl,vu,cs,ftp> #<nl,vu,cs,ftp>
% host 192.31.231.80
% 80.231.31.192.in-addr.arpa domain name pointer veldersschuit.cs.vu.nl.
arpa
in-addr
0 192 255
0 31 255
0 231 255
0 80 255
Message
transfer
agent
Message
transfer
agent
POP3 (1/2)
IMAP
Hyperlink
to abcd.com
Hyperlink
Browser to xyz.com
program
TCP connection
The Internet
Cache
Processing
module
(thread)
Front end
Incoming Outgoing
request reply
LAN
Front end
4 3 2
HTTP (1/2)
1. Look up www.furryvideo.com
DNS server 2. Furry's IP address returned
3. Request HTML page from Furry
1 2 5 6 4. HTML page returned
5. After click, look up cdn-server.com
6. IP address of cdn-server returned
www.furry- 3 7 cdn-server
Client 7. Ask cdn-server for bears.mpg
video.com (fake HTTP)
4 8 8. Client told to redirect to CDN-0420.com
9. Request bears.mpg
9 10
Cache on disk 10. Cached file bears.mpg returned
Proxy
CDN-0420.com
Multimedia
Low- High-
water water
mark mark
Command Description
DESCRIBE List media parameters
SETUP Establish channel
PLAY Start sending data to client
RECORD Start accepting data from client
PAUSE Temporarily stop sending data
TEARDOWN Release channel
Voice over IP
Essence: Instead of using traditional circuit-switching
technology, it may pay off to send digitized voice over
a packet-switching network. Two groups defined a
standard. ITU (the telcos) invented H.323. It’s big,
as all other ITU protocols are. The IETF invented SIP.
It’s simpler, like most IETF protocols.
Method Description
INVITE Request initiation of a session
ACK Confirm initiation of session
BYE Request termination of session
OPTIONS Query a host about capabilities
CANCEL Cancel a pending request
REGISTER Inform redirection server about current location
Location server
2 LOOKUP
3 REPLY
Proxy
Caller Callee
1 INVITE 4 INVITE
6 OK 5 OK
7 ACK 8 ACK
9 Data
Video-on-Demand (1/2)
Two models: (1) The user can request any video, and
stop the incoming stream at any time. (2) The provider
broadcasts popular videos, but starts several at short
intervals (near video on demand).
Video Switch
server Customer's
house
Fiber
Local
spooling
ATM or SONET server
backbone network