2. OSI and Protocol Stack OSI: Open Systems Interconnect Link Layer : includes device driver and network interface card Network Layer : handles the movement of packets, i.e. Routing Transport Layer : provides a reliable flow of data between two hosts Application Layer : handles the details of the particular application OSI Model TCP/IP Hierarchy Protocols 7 th Application Layer 6 th Presentation Layer 5 th Session Layer 4 th Transport Layer 3 rd Network Layer 2 nd Link Layer 1 st Physical Layer Application Layer Transport Layer Network Layer Link Layer
3.
4.
5.
6.
7.
8.
9.
10.
11.
12. OSI: Open Systems Interconnection ISO/OSI è uno stack di protocolli incapsulati, che sicuramente è più flessibile rispetto al paradigma di TCP/IP (TCP= Transfer Control Protocol ; IP= Internet Protocol), ma soltanto perché risulta più astratto rispetto a questo. In pratica non esistono implementazioni 'complete' di ISO/OSI, a parte quelle proprietarie (ad esempio il protocollo proprietario DECNET della Digital) e di interesse accademico. ISO/OSI ha quindi un interesse puramente didattico come esempio di architettura di riferimento per tutte le altre architetture utilizzate in pratica.
13.
14.
15.
16.
17.
18.
19.
20. TCP : Connessione Host Client Send SYN seq=x Receive SYN +ACK segment Send ACK y+1 Receive SYN segment Send SYN seq=y, ACK x+1 Receive ACK segment Host Client Send FIN seq=x Receive FIN + ACK segment Send ACK y+1 Receive FIN segment Send ACK x+1 Receive ACK segment Apertura di una connessione TCP Chiusura di una connessione TCP Receive ACK segment Send FIN seq=y, ACK x+1
21. TCP : Data transfer (Trasferimento Dati) Host Client Invio Packet 1 Avvio Timer Ritrasmissione Packet 1 Avvio Timer Packet 1 dovrebbe arrivare ACK deve essere inviato ACK dovrebbe Normalmente arrivare A questo punto Ricezione Packet 1 Invio ACK 1 Tempo Scaduto Ricezione ACK 1 Cancellazione Timer Packet Lost Pacchetto perso Timer Timer