Documente Academic
Documente Profesional
Documente Cultură
M1 Informatique, Reseaux
Cours 2 : La couche Application
Olivier Togni
Universite de Bourgogne, IEM/LE2I
Bureau G206
olivier.togni@u-bourgogne.fr
2 fevrier 2015
1 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
Apercu
2 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
Ex : le web =
3 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
Architecture client-serveur
I
client
serveur 2
requete
Primergy
reponse
requete
reponse
5 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
ex. : BitTorrent
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
7 de 27
Perte
donnees
Interdite
Interdite
Debit
Sensibilite au temps
Flexible
Flexible
non
non
non
oui : qques centaine
de ms
oui : qques s
Jeux interactifs
Acceptable
Flexible
qques kb/s `a
10 Mb/s
qques kb/s `a
10 Mb/s
qques kb/s
Messagerie
tanee
Interdite
Flexible
instan-
Interdite
Acceptable
de
Acceptable
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
Protocole applicatif
SMTP
Telnet
HTTP
FTP
NFS
souvent proprietaire
souvent proprietaire
protocole de transport
TCP
TCP
TCP
TCP
UDP ou TCP
UDP ou TCP
generalement UDP
8 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
Securisation de TCP
9 de 27
pas cryptes
mots de passe traversent linternet en clair
fournit une connexion TCP cryptee
integrite des donnees, authentification de bout en bout
au niveau application : les applications utilisent une librairie
SSL qui parle `a TCP
ex. HTTPS = HTTP sur TLS
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
Sockets
socket
process
Transport
Transport
Rseau
Rseau
Accs au rseau
10 de 27
Application
Accs au rseau
controle par
developpeur
controle
par OS
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
HTTP et le web
I
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
utilise TCP
I
I
I
PC, firefox
requete
reponse
12 de 27
Primergy
PDA, Safari
requete
reponse
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
Connexion persistante
I
plus rapide
13 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
Messages HTTP
I
I
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
sp
URL
sp
valeur
version
cr
cr
Lignes
d'en-tte
~
~
valeur
cr
Ligne
d'tat
lf
~
~
lf
lf
~
~
lf
~
~
corps
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
Reponses HTTP
HTTP/1.1 200 OK
Connection: close
Date: Tue, 09 Aug 2011 15:44:04 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Tue, 09 Aug 2011 15:11:03 GMT
Content-Length: 6821
Content-Type: text/html
(data data data data data ...)
Quelques autres codes :
301 Moved Permanently
400 Bad Request
404 Not Found
505 HTTP Version Not Supported
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
Cookies
I
I
cle de session
preferences de lutilisateur sur le site
achats realises, ...
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
Cookies
client
ebay 8734
server
cookie file
ebay 8734
amazon 1678
Amazon server
creates ID
1678 for user
cookiespecific
action
access
access
usual http request msg
cookie: 1678
usual http response msg
18 de 27
create
entry
cookiespecific
action
backend
database
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
Caches
I
I
19 de 27
cache navigateur
cache proxy HTTP
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
HTTP
Proxy HTTP
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
DNS
Nom dh
otes (ex. cnn.com, ufrsciencestech.u-bourgogne.fr)
I
I
I
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
DNS
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
DNS
equilibrage de charge
ex : serveurs de google.fr = plusieurs adresses IP
requete DNS www.google.fr ensemble dadresses dans
ordre different `a chaque reponse
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
DNS
Hierarchie
Root servers + Top Level Domains (TLD) + Authoritative servers
+ local servers
24 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
DNS
Serveurs racine
13 serveurs racine (root-servers [a-m].root-servers.net) dont
neuf dupliques, soit plus de 130 serveurs physiques
voir http://www.root-servers.org/
25 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
DNS
Requete iterative/recursive
root DNS
2
dns1.proxad.net
0
1
0
1
DNS local 1
111
000
0
0
1
111
000
0
1
0
1
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
0
1
0
1
01
1
0
1
0000
1111
0
1
0
0000
1111
0
1
0
0000
1111
01
1
0
1
0000
1111
0
1
0
1
root DNS
1
0
0
1
111
000
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
TLD DNS
0
1
0
1
0
1
0
1
111
000
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
000
111
01
1
0
1
4
5
0
1
0
1
111
000
0
1
0
1
000
111
0
1
0
1
111
000
0
1
0
1
000
111
0
1
0
1
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
2
dns1.proxad.net
0
1
0
1
DNS local 000
111
0
1
0
1
111
000
0
1
0
1
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
0
1
0
1
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
3
6
TLD DNS
0
1
0
1
0
1
0
1
111
000
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
000
111
0
1
0
1
6
1
authoritative DNS
mit.edu
0
1
0
1
111
000
0
1
111
000
0
1
111
000
0
1
111
000
0
1
0
1
0000
1111
0
1
0000
1111
0
1
0000
1111
0
1
0000
1111
0
1
0000
1111
0
1
atlas.free.fr
authoritative DNS
mit.edu
0
1
0
1
111
000
0
1
111
000
0
1
111
000
0
1
111
000
0
1
0
1
0000
1111
0
1
0000
1111
0
1
0000
1111
0
1
0000
1111
0
1
0000
1111
0
1
atlas.free.fr
chronos.mit.edu
chronos.mit.edu
26 de 27
M1 Informatique, R
eseaux Cours 2 : La couche Application
Couche Application
DNS
Enregistrements
RR = ressource record = (Name, Value, Type, TTL)
I
Type :
A Name = hostname, Value = adresse IPv4
AAAA Name = hostname, Value = adresse IPv6
NS Name = domain, Value = hostname du serveur
ayant authorite
CNAME Value = cannonical hostname
MX Value = nom cannonique de serveur mel
PTR Name = (adresse IP en sens
inverse).in-addr.arpa., Value = hostname