ACIT Mumbai - OSI Model

43
Naveen Patel

description

Acit offer various certification courses like CCNA, CCNA SECURITY, CCNA VOICE, CCNP, CCIP, CCSP, CCVP, CCIE RS, CCIE SP, CCIE SEC, CHECKPOINT, MCITP, AND MORE...

Transcript of ACIT Mumbai - OSI Model

Page 1: ACIT Mumbai - OSI Model

Naveen Patel

Page 2: ACIT Mumbai - OSI Model

Naveen Patel

OSI was developed by the International Organization for Standardization (ISO) and introduced in 1984.

It is a layered architecture (consists of seven layers).

Each layer defines a set of functions which takes part in data communication.

OSI Model

Page 3: ACIT Mumbai - OSI Model

Naveen Patel

OSI Model Layers

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Layer - 7

Layer - 6

Layer - 5

Layer - 4

Layer - 3

Layer - 2

Layer - 1

User support Layers or

Software Layers

Network support Layers or

Hardware Layers

Core layer of the OSI

Page 4: ACIT Mumbai - OSI Model

Naveen Patel

Application Layer

Application Layer is responsible for providing an interface for the users to interact with application services or Networking Services .

Ex: Web browser, Telnet etc.

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Application Application

Page 5: ACIT Mumbai - OSI Model

Naveen Patel

Examples of Networking Services

Service Port No.

HTTP 80

FTP 21

SMTP 25

TELNET 23

TFTP 69

Page 6: ACIT Mumbai - OSI Model

Naveen Patel

Application Application

2180 25 6753 69

Data flow -- Application Layer

Data

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Page 7: ACIT Mumbai - OSI Model

Naveen Patel

Presentation Layer

Presentation Layer It is responsible for defining a standard format to the data.

It deals with data presentation. The major functions described at this

layer are.. Encoding – Decoding Ex: ASCII, EBCDIC (Text) JPEG,GIF,TIFF (Graphics) MIDI,WAV (Voice) MPEG,DAT,AVI (Video) Encryption – Decryption Compression – Decompression

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

PresentationPresentation

Page 8: ACIT Mumbai - OSI Model

Naveen Patel

Data flow -- Presentation Layer

Data

DataApplication Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Page 9: ACIT Mumbai - OSI Model

Naveen Patel

Session Layer

Session Layer It is responsible for establishing, maintaining and terminating the sessions.

Session ID is used to identify a session or interaction.

Examples : RPC Remote Procedural Call

SQL Structured Query LanguageASP AppleTalk Session protocol

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

SessionSession

Page 10: ACIT Mumbai - OSI Model

Naveen Patel

Data flow -- Session Layer

Data

Data

Data

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Page 11: ACIT Mumbai - OSI Model

Naveen Patel

Transport Layer

Transport Layer It provides data delivery

mechanism between the applications in the network.

The major functions described at the Transport Layer are..

• Identifying Service

• Multiplexing & De-multiplexing

• Segmentation

• Sequencing & Reassembling

• Error Correction

• Flow Control

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Transport Transport

Page 12: ACIT Mumbai - OSI Model

Naveen Patel

Identifying a Service

• Identification of Services is done using

Port Numbers.

• Port is a logical communication Channel

Total No. Ports 0 – 65535

Server Ports 1 - 1023

Client Ports 1024 – 65535

Page 13: ACIT Mumbai - OSI Model

Naveen Patel

• Transmission Control

Protocol

• Connection Oriented

• Supports Ack’s

• Reliable communication

• Slower data Transportation

• Protocol No is 6

Eg: HTTP, FTP, SMTP

• User Datagram

Protocol

• Connection Less

• No support for Ack’s

• Unreliable communication

• Faster data Transportation

• Protocol No is 17

Eg: DNS, DHCP, TFTP

TCP UDP

• The protocols which takes care of Data Transportation at Transport layer are…TCP,UDP

Transport Layer Protocols

Page 14: ACIT Mumbai - OSI Model

Naveen Patel

A B

Connection Establishment

Syn, Seq=x

Syn, seq=y ; ack x+1

Ack y+1

Page 15: ACIT Mumbai - OSI Model

Naveen Patel

Application Application

PresentationPresentation

SessionSession

Multiplexing & De-multiplexing

2180 25 6753 69

Transport Transport

TCP - 6 UDP - 17

Network Network

Data LinkData Link

PhysicalPhysical

Page 16: ACIT Mumbai - OSI Model

Naveen Patel

Segmentation

Hello! How are you ?

Hello! How Are You ?

Hello!

How are you ?

A B

Page 17: ACIT Mumbai - OSI Model

Naveen Patel

Sequencing & Reassembling

A B

You Hello! How ? Are

Hello! How AreYou ?

you

Hello! How ?

are

Page 18: ACIT Mumbai - OSI Model

Naveen Patel

Sequencing & Reassembling

Hello! How are you ?

Hello!1/5

How2/5

Are3/5

You4/5

?5/5

Hello!

How are you ?

A B

Hello! How are you ?

Hello!1/5

How2/5

Are3/5

You4/5

?5/5

Hello!1/5

How2/5

Are3/5

You4/5

?5/5

Hello!

How are you ?

Page 19: ACIT Mumbai - OSI Model

Naveen Patel

•Window Size = 1

Send 1 Receive 1Ack 2

Send 2 Receive 2Ack 3

Send 3Send 4

Receive 3Receive 4

•Window Size = 3

Send 5 Receive 5Ack 6

Send 7

A B

Flow Control

Page 20: ACIT Mumbai - OSI Model

Naveen Patel

Send 2Send 1

Send 3Ack 4

Send 5Send 4

Send 6Ack 5

Send 5Ack 7

1 2 3 4 5 6 7 1 2 3 4 5 6 7

A B

Error Correction

Page 21: ACIT Mumbai - OSI Model

Naveen Patel

Error Correction

Hello! How are you ?

Hello!1/5

How2/5

Are3/5

You4/5

?5/5

Hello!

How are you ? Hello!

1/5Are3/5

You4/5

?5/5

Hello!1/5

Are3/5

You4/5

?5/5

Segment Missing

Hello!1/5

Are3/5

You4/5

?5/5

How2/5

How2/5

Hello! How are you ?

Hello! How are you ?

A B

Page 22: ACIT Mumbai - OSI Model

Naveen Patel

Data flow -- Transport Layer

Data

Data

Data

DataTHSegment

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Page 23: ACIT Mumbai - OSI Model

Naveen Patel

Network Layer

Network Layer It provides Logical addressing & Path

determination (Routing) in this layer.

The protocols that work in this layer are:

Routed Protocols: IP, IPX, AppleTalk.. Etc Routed protocols used to carry user data

between hosts.

Routing Protocols: RIP, OSPF.. Etc Routing protocols performs Path

determination (Routing).

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Network Network

Page 24: ACIT Mumbai - OSI Model

Naveen Patel

Routed Protocols

10.0.0.1 10.0.0.2

A B

Segment

S.IP: 10.0.0.1

D.IP:10.0.0.2SegmentS.IP: 10.0.0.1

D.IP:10.0.0.2Network

Transport

Page 25: ACIT Mumbai - OSI Model

Naveen Patel

Routing Protocols

A

www.zoomgroup.com

Page 26: ACIT Mumbai - OSI Model

Naveen Patel

Data flow -- Network Layer

Data

Data

Data

Segment

Segment

NHPacket

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Devices that work at Network Layer

are Router, Multilayer switch etc..

Page 27: ACIT Mumbai - OSI Model

Naveen Patel

Datalink Layer

Datalink Layer It has 2 sub layers• MAC (Media Access Control) It provides reliable

transit of data across a physical link.

It also provides ERROR DETECTION using CRC (Cyclic Redundancy Check) and ordered delivery of Frames.

Ex: Ethernet, Token ring…etc

• LLC (Logical Link Control)

It provides communication with Network layer.

Negotiates with Network Layer using SAP & SNAP protocols

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Data LinkData Link

Page 28: ACIT Mumbai - OSI Model

Naveen Patel

Error Detection – CRC Check

Hello!

How are you ?

Packet

Packet

Source MAC 00-20-18-C0-07-71

Destination MAC00-20-18-C0-07-72

000003243422222896965543499323434349943446323111143333300000324342222289696554349932343434994344632311114Error Detected

192.168.1.100-20-18-C0-07-71

192.168.1.200-20-18-C0-07-72

A B

PC-A CRC No. 33333

PC-B CRC No. 11114Error Detected

For Error Correction Contact Source Transport

layer

PC-A CRC No. 33333

PC-B CRC No. 11114Error Detected

For Error Correction Contact Source Transport

layer

Page 29: ACIT Mumbai - OSI Model

Naveen Patel

Error Detection – CRC Check

Packet

Packet

Source MAC 00-20-18-C0-07-71

Destination MAC00-20-18-C0-07-72

00000324342222289696554349932343434994344632311114202020000032434222228969655434993234343499434463231111420202

Source MAC 00-20-18-C0-07-71

Destination MAC00-20-18-C0-07-72

Packet

Hello!

How are you ?

192.168.1.100-20-18-C0-07-71

192.168.1.200-20-18-C0-07-72

A B

Page 30: ACIT Mumbai - OSI Model

Naveen Patel

Data flow -- Data Link Layer

Data

Data

Data

Segment

DH

Packet

DT

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

PacketPacketFrame

Devices that work at Data link layer are

Switch, Bridge etc..

Page 31: ACIT Mumbai - OSI Model

Naveen Patel

Physical LayerPhysical Layer It defines the electrical, Mechanical & functional specifications for communication between the Network devices.

The functions described at this layer are.. Encoding/decoding: It is the process of converting the binary data into signals based on the type of the media.

• Copper media : Electrical signals of different voltages

• Fiber media : Light pulses of different wavelengths

• Wireless media: Radio frequency waves

Mode of transmision of signals: Signal Communication happens in three different modes

Simplex, Half-duplex, Full-duplex Protocols works at physical layer: 10BaseT, 100BaseT,

V.35, RS-232..etc

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysicalPhysicalPhysical

Page 32: ACIT Mumbai - OSI Model

Naveen Patel

Physical Transmission of data Example:

Frame

Frame

10101010101010101010101010101010

Frame

Hello!

How are you ?

A B01010110101010101010101011010101101010101010101010010101101010101010101010110101011010101010101010100101011010101010101010101

Page 33: ACIT Mumbai - OSI Model

Naveen Patel

Data flow -- Physical Layer

Data

Data

Data

Segment

Packet

Frame

Bits

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Devices that work at physical layer are ..Hub, Repeater.. Etc

Page 34: ACIT Mumbai - OSI Model

Naveen Patel

Segment

Packet

Frame

A B

Packet

Data

Data

Data

Bits

Data

Segment

Data Encapsulation & De-capsulation

Packet

Data

Data

Data

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysicalBits

DH DT

NH

THSegment

Packet

DT PacketDH DTDH

NH Segment NH

TH Data TH

Frame Packet

Page 35: ACIT Mumbai - OSI Model

Naveen Patel

Application Application

Host-to-Host Host-to-Host

InternetInternet

Network Access

Network Access

Comparing OSI with TCP/IP Layers

OSI Layers TCP/IP Layers

Application Application

PresentationPresentation

SessionSession

Transport Transport

Network Network

Data LinkData Link

PhysicalPhysical

Page 36: ACIT Mumbai - OSI Model

Naveen Patel

Page 37: ACIT Mumbai - OSI Model

Naveen Patel

Page 38: ACIT Mumbai - OSI Model

Naveen Patel

Example of FTP request

Client FTP Server

ftp://ftp.microsoft.com

Page 39: ACIT Mumbai - OSI Model

Naveen Patel

Example of FTP request

FTP Request ftp://ftp.microsoft.com

FTP Request Listen on

Port 21Sending FTP Reply

Received FTP Reply ftp://ftp.microsoft.com

Client FTP Server

Page 40: ACIT Mumbai - OSI Model

Naveen Patel

ftp://ftp.microsoft.com

Page 41: ACIT Mumbai - OSI Model

Naveen Patel

telnet 192.168.1.150

================================Welcome to Hyderabad Router================================User Access Verificationpassword :

Microsoft Windows 2000 [Version 5.00.2195](C) Copyright 1985-2000 Microsoft Corp.C:\>Connecting .....

Page 42: ACIT Mumbai - OSI Model

Naveen Patel

http://www.microsoft.com

Page 43: ACIT Mumbai - OSI Model

Naveen Patel

http://mail.yahoo.com

xyz

******

[email protected]