22
CompTIA Network + Chapter 2 Dissecting the OSI Model

CompTIA Network + Chapter 2 Dissecting the OSI Model

Embed Size (px)

Citation preview

Page 1: CompTIA Network + Chapter 2 Dissecting the OSI Model

CompTIA Network +

Chapter 2

Dissecting the OSI Model

Page 2: CompTIA Network + Chapter 2 Dissecting the OSI Model

Objectives

What is the purpose of a Network model? What are the layers of the OSI model? What are the characteristics of each layer of the

OSI model? How does the TCP/IP stack compare to the OSI

model? What are the well-known TCP and/or UDP port

numbers for a given collection of common applications

Page 3: CompTIA Network + Chapter 2 Dissecting the OSI Model

The Purpose of Reference Models

• It breaks network communication into smaller, simpler parts that are easier to develop.

• It facilitates standardization of network components to allow multiple-vendor development and support.

• It allows different types of network hardware and software to communicate with each other.

• It prevents changes in one layer from affecting the other layers so that they can develop more quickly.

• It breaks network communication into smaller parts to make learning it easier to understand.

Page 4: CompTIA Network + Chapter 2 Dissecting the OSI Model

The OSI seven-layer model

Application

Presentation

Session

Transport

Network

Data Link

Physical

Figure 2-2 OSI Stack

Page 5: CompTIA Network + Chapter 2 Dissecting the OSI Model

Protocol Data Unit (PDU)

Application

Presentation

Session

Transport

Network

Data Link

Physical

Segments

Packets

Frames

Bits

Figure 2-3 PDU Names

Page 6: CompTIA Network + Chapter 2 Dissecting the OSI Model

Physical LayerApplication

Presentation

Session

Transport

Network

Data Link

Physical

• How Bits are represented on the medium

• Wring standards for connectors and jacks

• Physical topology• Synchronizing bits• Bandwidth usage• Multiplexing strategy

Figure 2-4 Layer 1: Physical Layer

Page 7: CompTIA Network + Chapter 2 Dissecting the OSI Model

Data Link Layer

Data Link

Application

Presentation

Session

Transport

Network

Physical

• Physical Addressing• Logical topology• Method of transmitting

on the media

Figure 2-8 Layer 2: The Data Link Layer

MAC

LLC• Connection Services• Synchronizing

transmissions

Page 8: CompTIA Network + Chapter 2 Dissecting the OSI Model

Network Layer

Network

Data Link

Application

Presentation

Session

Transport

Physical

• Logical addressing• Switching• Route discovery and

selection• Connection services• Bandwidth usage• Multiplexing strategy

Figure 2-9 Layer 3: The Network Layer

Page 9: CompTIA Network + Chapter 2 Dissecting the OSI Model

Transport Layer

Transport

Network

Data Link

Application

Presentation

Session

Physical

• TCP/UDP• Windowing• Buffering

Figure 2-10 Layer 4: The Transport Layer

Page 10: CompTIA Network + Chapter 2 Dissecting the OSI Model

TCP Sliding Window

Sender Receiver

Window Size 1Segment 1

Ack 2

Window Size 2

Ack 4

Segment 2

Segment 3

Window Size 4

Ack 8

Segment 4

Segment 5

Segment 6

Segment 7

Figure 2-11 TCP Sliding Window

Page 11: CompTIA Network + Chapter 2 Dissecting the OSI Model

Session Layer

Session

Transport

Network

Data Link

Application

Presentation

Physical

• Setting up a session• Maintaining a session• Tearing down a session

Figure 2-12 Layer 5: The Session Layer

Page 12: CompTIA Network + Chapter 2 Dissecting the OSI Model

Presentation Layer

Presentation

Session

Transport

Network

Data Link

Application

Physical

• Data formatting• Encryption

Figure 2-13 Layer 6: The Presentation Layer

Page 13: CompTIA Network + Chapter 2 Dissecting the OSI Model

Application Layer

Application

Presentation

Session

Transport

Network

Data Link

Physical

• Application services• Service advertisement

Figure 2-13 Layer 6: The Presentation Layer

Page 14: CompTIA Network + Chapter 2 Dissecting the OSI Model

The TCP/IP Stack

Application

Transport

Internet

Network Interface

Page 15: CompTIA Network + Chapter 2 Dissecting the OSI Model

The TCP/IP and OSI Models Compared

Application

Transport

Internet

Network Interface

TCP/IP Stack

Application

Presentation

Session

Transport

Network

Data Link

Physical

OSI Stack

Figure 2-15 TCP/IP Stack

Page 16: CompTIA Network + Chapter 2 Dissecting the OSI Model

IP Ver4 Header

Figure 2-16 IP Version 4 Packet Format

Page 17: CompTIA Network + Chapter 2 Dissecting the OSI Model

TCP Header

Figure 2-17 TCP Segment Format

Page 18: CompTIA Network + Chapter 2 Dissecting the OSI Model

UDP Header

Figure 2-18 UDP Segment Format

Page 19: CompTIA Network + Chapter 2 Dissecting the OSI Model

TCP/IP Port Number

Port numbers

indicate the

upper-layer

protocol that is

using the transport.

Page 20: CompTIA Network + Chapter 2 Dissecting the OSI Model

Port Types

Port numbers are assigned in various ways, based on three ranges:

System Ports (0-1023), System Ports are assigned by IETF process for standards-track protocols, as per RFC6335. Also known as well-known-ports

User Ports (1024-49151) ,User Ports are assigned by IANA using the "Expert Review" process, as per RFC6335

Dynamic and/or Private Ports (49152-65535), Dynamic Ports are not assigned, they are dynamically created as your computer need them. Also known as ephemeral ports.

Page 21: CompTIA Network + Chapter 2 Dissecting the OSI Model

Communication Between Two Systems

Page 22: CompTIA Network + Chapter 2 Dissecting the OSI Model

Summary The ISO’s OSI reference model cosists of seven layers: physical (Layer 1),

data link (Layer 2), network (Layer 3), transport (Layer4), session (Layer 5), presentation (Layer 6), and application (Layer 7). The purpose of each layer presented, along with examples of technologies residing at the various layers.

The TCP/IP stack was presented as an alternate model to the OSI reference model. The TCP/IP stack consist of four layers: network interface, Internet, transport, and application. These layers were compared and contrasted with the seven layers of the OSI model.

The chapter discussed how port numbers are used to associate data at the transport layer with an appropriate application layer protocol. Examples of common application layer protocols in the TCP/IP suite were presented, along with their port numbers.