Vous êtes sur la page 1sur 45

OSI Model

Valli Chandrasekaran August,2009

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

Role OF OSI Model


It provides a way to understand how internetwork operates Breaks the complex operation of networking into a simple elements The change in one layer do not affect the other Layers

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

Using Layers to Describe Data Communication

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

OSI Model

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

OSI Layers

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

OSI Layers

Provides connectivity and path selection between two host Provides Logical address

No error correction, best effort delivery.

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

OSI Layers

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

OSI Layers

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

OSI Layers

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

OSI Layers

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

10

OSI Layers

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

11

Peer-to-Peer Communication

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

12

TCP/IP Model

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

13

Encapsulation

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

14

Names for Data at Each Layer

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

15

ISO/OSI Reference Model (2)


File Transfer, Email, Remote Login ASCII Text, Sound (syntax layer) Establish/manage connection

End-to-end control & error checking (ensure complete data transfer):TCP Routing and Forwarding Address:IP Two party communication: Ethernet How to transmit signal; coding Hardware means of sending and receiving data on a carrier

16

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

TCP/IP Model

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

17

What Is TCP/IP?
A suite of protocols Rules that dictate how packets of information are sent across multiple networks Addressing

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

18

TCP/IP Applications
Application layer
File Transfer Protocol (FTP) Remote Login (Telnet) E-mail (SMTP)

Transport layer
Transport Control Protocol (TCP) User Datagram Protocol (UDP)

Network layer
Internet Protocol (IP)

Data link & physical layer


LAN Ethernet, Token Ring, FDDI, etc. WAN Serial lines, Frame Relay, X.25, etc.

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

19

TCP/IP Protocol Stack

7 6 5 4 3 2 1

Application Presentation Session Transport Network Application


4 5

Transport
3

Internet
2

Data Link
Physical

Data Link
1

Physical

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

20

Application Layer Overview


File Transfer - TFTP * - FTP * - NFS E-Mail - SMTP Remote Login - Telnet * - rlogin * Network Management - SNMP * Name Management - DNS* *Used by the router
Physical

Application

Transport Internet Data Link

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

21

Transport Layer Overview

Application Transport Internet Data Link Physical

Transmission Control Protocol (TCP) User Datagram Protocol (UDP)

ConnectionOriented Connectionless

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

22

TCP Transmission Control Protocol

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

23

UDP User Datagram Protocol


Unreliable Fast Assumes application will retransmit on error

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

24

Port Numbers

Application Layer

F T P

T E L N E T
23 TCP

S M T P

D N S

T F T P

S N M P

R I P

21

25

53

69
UDP

161

520

Transport Layer

Port Numbers

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

25

TCP Three Way Handshake/Open Connection


Host A Host B

Send SYN (seq=100 ctl=SYN) SYN received

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

26

TCP Three Way Handshake/Open Connection


Host A Host B

Send SYN (seq=100 ctl=SYN) SYN received SYN received Send SYN, ACK 2 (seq=300 ack=101 ctl=syn,ack)

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

27

TCP Three Way Handshake/Open Connection


Host A Host B

Send SYN (seq=100 ctl=SYN) SYN received SYN received Send SYN, ACK 2 (seq=300 ack=101 ctl=syn,ack)

Established (seq=101 ack=301 ctl=ack)

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

28

TCP Simple Acknowledgment


Sender Receiver

Window size = 1
29

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

TCP Simple Acknowledgment


Sender
Send 1

Receiver Receive 1

Window size = 1
30

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

TCP Simple Acknowledgment


Sender
Send 1 Receive ACK 2

Receiver Receive 1
Send ACK 2

Window size = 1
31

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

TCP Simple Acknowledgment


Sender
Send 1 Receive ACK 2

Receiver Receive 1
Send ACK 2

Send 2

Receive 2

Window size = 1
32

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

TCP Simple Acknowledgment


Sender
Send 1 Receive ACK 2

Receiver Receive 1
Send ACK 2

Send 2
Receive ACK 3

Receive 2 Send ACK 3

Window size = 1
33

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

TCP Simple Acknowledgment


Sender
Send 1 Receive ACK 2

Receiver Receive 1
Send ACK 2

Send 2
Receive ACK 3 Send 3

Receive 2 Send ACK 3 Receive 3

Window size = 1
34

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

TCP Simple Acknowledgment


Sender
Send 1 Receive ACK 2

Receiver Receive 1
Send ACK 2

Send 2
Receive ACK 3 Send 3

Receive 2 Send ACK 3 Receive 3 Send ACK 4


Window size = 1
35

Receive ACK 4

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

TCP Windowing

Sender

Receiver

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

36

TCP Windowing

Sender

Window size = 3 Send 1 Window size = 3 Send 2 Window size = 3 Send 3

Receiver

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

37

TCP Windowing

Sender

Window size = 3 Send 1 Window size = 3 Send 2 Window size = 3 Send 3

Receiver

ACK 3 Window size = 2

Packet 3 is Dropped

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

38

TCP Windowing

Sender

Window size = 3 Send 1 Window size = 3 Send 2 Window size = 3 Send 3

Receiver

ACK 3 Window size = 2

Packet 3 is Dropped

Window size = 2 Send 3 Window size = 2 Send 4

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

39

TCP Windowing

Sender

Window size = 3 Send 1 Window size = 3 Send 2 Window size = 3 Send 3

Receiver

Packet 3 is ACK 3 Window size = 2 Dropped

Window size = 2 Send 3 Window size = 2 Send 4 ACK 5 Window size = 2

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

40

Internet Layer Overview

Internet Protocol (IP) Application


Transport
Internet Data Link Physical

Internet Control Message Protocol (ICMP) Address Resolution Protocol (ARP) Reverse Address Resolution Protocol (RARP)

OSI network layer corresponds to the TCP/IP internet layer


41

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

Protocol Field

Transport Layer

TCP 6

UDP 17 IP Protocol Numbers

Internet Layer

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

42

Internet Control Message Protocol

Application Transport

1
ICMP Internet

Destination Unreachable Echo (Ping) Other

Data Link Physical

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

43

Q and A

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

44

2006 Cisco Systems, Inc. All rights reserved. Cisco Confidential.

45

Vous aimerez peut-être aussi