Top Banner
© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-1 Building a Simple Network Understanding the Host-to-Host Communications Model
52

Osi tcp ip1 models

Nov 22, 2014

Download

Technology

24071983

 
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-1

Building a Simple Network

Understanding the Host-to-Host Communications Model

Page 2: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-2

Understanding Host-to-Host Communications

Older model– Proprietary– Application and combinations software controlled by one

vendor Standards-based model

– Multivendor software– Layered approach

Page 3: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-3

Why a Layered Network Model?

Standardizes interfaces Facilitates modular engineering Ensures interoperable

technology Accelerates evolution Reduces complexity Simplifies teaching and learning

Page 4: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-4

The Seven Layers of the OSI Model (Cont.)

Page 5: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-5

The Application Layer• Example of the Application layer: File transfer Electronic mail Terminal access Web Browser Network management

– Simple Network Management Protocol

Name management– Domain Name System

Page 6: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-6

The Seven Layers of the OSI Model (Cont.)

Page 7: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-7

The Presentation Layer

• Let’s look at what is happening:

I have a good file now.

I want that file too but in 3DES encryption format

Page 8: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-8

The Presentation Layer

The Presentation ensures that the information that the application layer of one system sends out is readable by the application layer of another system.

Page 9: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-9

The Presentation LayerActions of the Presentation layer: Format of data ( binary, BCD, ASCII…) Data structure ( .doc, .JPEG…) Data encryption ( DES, 3DES…)

Page 10: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-10

The Seven Layers of the OSI Model (Cont.)

Page 11: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-11

The Session Layer

Page 12: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-12

The Session Layer

• The Session layer establishes, manages, and terminates sessions between two communicating hosts.

Page 13: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-13

The Seven Layers of the OSI Model (Cont.)

Page 14: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-14

The Transport Layer• The Transport layer can guarantee that packets are received.

Page 15: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-15

The Transport Layer

• The Transport layers segments and reassembles ( lặp ráp ) data into a data stream

Page 16: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-16

The Transport Layer

• Connectionless transmission• Connection-oriented transmission

• The three-way handshake

• Flow control

• Acknowledgement

• Windowing

Page 17: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-17

The Transport LayerConnectionless transmissions

• Let’s look at what happens:

LocalPost Office

DestinationPost Office

Post Office system

Page 18: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-18

The Transport LayerConnectionless transmissions(cont)

LocalPost Office

DestinationPost Office

Post Office system

Host A

Internet

Local Router

Destination Router

Page 19: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-19

The Transport LayerConnectionless transmissions(cont)

• User Datagram Protocol (UDP) is an example of connectionless protocol

• Applications that use UDP to send their data information is DNS, TFTP, SNMP….

Page 20: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-20

The Transport LayerConnection-oriented transmissions

• Let’s look at what happens:

LocalPost Office

DestinationPost Office

Post Office system

Page 21: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-21

The Transport LayerConnection-oriented transmissions(cont)

LocalPost Office

DestinationPost Office

Post Office system

Host A

Internet

Local Router

Destination Router

Page 22: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-22

The Transport LayerConnection-oriented transmissions (cont)

• Transmission Control Protocol (TCP) is an example of connection-oriented protocol

• Applications that use TCP to send their data information is DNS, FTP, HTTP, HTTPs, SMTP, POP3, TELNET, SSH, …

Page 23: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-23

The Transport Layerthe three-way handshake

• In connection-oriented transmission, both the sender and receiver have to establish the session.

• It is called three-way handshake

Page 24: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-24

The Transport Layerthe three-way handshake (cont)

• Let’s look at what happens:• In the three-way handshake process, when Host A (sender) want to establish a session with Host B (receiver), it first send to the receiver a synchronize segment.

• Host B (receiver) after examine the synchronize packet from Host A, if agree, it will send acknowledgement synchronize segment to Host A.

Synchronize (Can I talk to you ?)

Ack (Yes), Synchronize ( Can I talk to you ?)

• Host A after receives the synchronize segment from Host B, it will send an acknowledgement segment to Host B to acknowledge to connection.

Ack (Yes)

Connection Established

Data Transfer(send segments)

Page 25: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-25

The Transport layerFlow Control

• Once data transfer is in progress, congestion can occur for two reasons.

Page 26: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-26

The Transport layerFlow Control (cont)

• First, the sending device might be able to generate traffic faster than the network can transfer it.

Page 27: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-27

The Transport layerFlow Control (cont)

• The second reason is that multiple devices need to send data to the same destination.

Page 28: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-28

The Transport layerFlow Control (cont)

• When datagram arrive too quickly for a device to process, it temporarily stores them in memory.

data

data

Page 29: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-29

The Transport layerFlow Control (cont)

• If the datagrams are part of a small burst, this buffering solves the problem.

data

data

Page 30: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-30

The Transport layerFlow Control (cont)

• However, if the traffic continues at this rate, the device eventually exhausts its memory and must discard additional datagrams that arrive.

datadata

datadata

Page 31: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-31

The Transport layerFlow Control (cont)

• Instead of losing the data, the transport function can issue a “not ready” indicator to the sender.

datadata

datadata

Page 32: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-32

The Transport layerFlow Control (cont)

datadata

datadata

Page 33: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-33

The Transport layerFlow Control (cont)

• After the receiving device has processed sufficient segments to free space in its buffer, the receiver sends a “ready transport “ indicator –which is like a go signal.

datadata

datadata

go

Transport

Page 34: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-34

The Transport layerFlow Control (cont)

go

Transport

Page 35: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-35

The Transport LayerAcknowledgement

• The transport layer provide a reliable service regardless of the quality of the underlying network

Page 36: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-36

The Transport LayerAcknowledgement (cont)

data

data

Page 37: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-37

The Transport LayerWindowing• Acknowledging every data segment, however, has its drawback

(điều trở ngại).

data

• If the sender has to wait for an acknowledgement of each data segment, the throughput will be very low.

data

Page 38: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-38

The Transport LayerWindowing (cont)

Sender

TCP

Receiver

TCP

You and I will use window size of 1 ?I agree

Send 1Ack 2

Send 2Ack 3

Page 39: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-39

I agree

The Transport LayerWindowing (cont)

• Now let’s examine an example with windows size of 3.

Sender

TCP

Receiver

TCP

You and I will use window size of 3 ?

Send 1Send 2Send 3

Ack 4

Send 4

Send 6Send 5

Ack 5

Send 5

Ack 7

Page 40: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-40

The Seven Layers of the OSI Model (Cont.)

Page 41: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-41

The Seven Layers of the OSI Model (Cont.)

Page 42: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-42

Ethernet Frame Structure

Page 43: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-43

MAC Address Components

Page 44: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-44

MAC Addresses

Page 45: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-45

The Seven Layers of the OSI Model

Page 46: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-46

Data Data Data

Data Stream

Data Stream Data Stream

Data

Data IP Header 1IP Header 1IP Header 1

IP Header 1IP Header 1Frame Header IIP Header 1Frame Header I IP Header 1Frame Header I IP Header 1

IP Header 1 Data

Data Data Data

Data Stream Data Stream

Application

Presentation

Session

Transport

Network

Data Link

Physical

Application

Presentation

Session

Transport

Network

Data Link

Physical

Page 47: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-47

Defines four layers Uses different names for Layers 1

through 3 Combines Layers 5 through 7 into

single application layer

TCP/IP Stack

Page 48: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-48

TCP/IP Stack vs. the OSI Model

Page 49: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-49

Data Encapsulation

Page 50: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-50

Summary

The OSI reference model defines the network functions that occur at each layer.

The information sent on a network is referred to as data or data packets. If one computer wants to send data to another computer, the data must first be packaged by a process called encapsulation.

When the remote device receives a sequence of bits, the physical layer at the remote device passes the bits to the data link layer for manipulation. This process is referred to as de-encapsulation.

Page 51: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-51

Summary (Cont.)

TCP/IP is now the most widely used protocol for a number of reasons, including its flexible addressing scheme, its usability by most operating systems and platforms, its many tools and utilities, and the need to use it to connect to the Internet.

The components of the TCP/IP stack are the network access, Internet, transport, and application layers.

The OSI model and the TCP/IP stack are similar in structure and function, with correlation at the physical, data link, network, and transport layers. The OSI model divides the application layer of the TCP/IP stack into three separate layers.

Page 52: Osi tcp ip1 models

© 2007 Cisco Systems, Inc. All rights reserved. ICND1 v1.0—1-52