Sunteți pe pagina 1din 43

1

OSI Model

OSI means Open System Interconnect model.


Developed by the International Organization for
Standardization in 1974.
It consists of seven layers.
Each layer has a different but specific processing
function.

OSI Model Layers

Layer - 7

Application
Application

Layer - 6

Presentation
Presentation

Layer - 5

Session
Session

Layer - 4

Transport
Transport

Layer - 3

Network
Network

Layer - 2

Data
Data Link
Link

Layer - 1

Physical
Physical

Upper Layer
or
Software Layer
Heart of OSI

Lower Layer
or
Hardware Layer

Application Layer

Application
Application
Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical

Application Layer is
responsible for providing
Networking Services to the
user. It is also known as
Desktop Layer. Identification of
Services is done using Port
Numbers.
Ports are Entry and Exit Points
to the Layer
Total No. Ports
0 65535
Reserved Ports
0 1023
Open Client Ports 1024 65535
4

Example of HTTP request


http://www.zoomgroup.com

Client

Web Server

Example of HTTP request

HTTP Request
Received
HTTP Reply
http:// www.zoomgroup.com
http://www.zoomgroup.com
Webpage

Client

HTTP Request
Listen on
Port 80
Sending HTTP Reply
Webpage

Web Server

Example of FTP request


ftp://ftp.microsoft.com

Client

FTP Server

Example of FTP request

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

Client

FTP Request
Listen on
Port 21
Sending FTP Reply

FTP Server

Examples of Networking Services


Service

Port No.

HTTP

80

FTP

21

SMTP

25

TELNET

23

TFTP

69

Data flow from Application Layer

Application
Application
80 21 25

Data

53 67 69

Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical

10

Presentation Layer

Application
Application
Presentation
Presentation
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical

Presentation Layer is
responsible for converting data
into standard format.
Examples : ASCII, EBCDIC,
JPEG, MPEG, BMP, MIDI, WAV,
MP3
Following tasks are perform at
Presentation layer :
Encoding
Decoding
Encryption Decryption
Compression Decompression

11

Data flow from Presentation Layer

Application
Application

Data

Presentation
Presentation

Data

Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical

12

Session Layer

Application
Application
Presentation
Presentation
Session
Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical

Session Layer is responsible for


establishing, maintaining and
terminating session.
Session ID works at Session
Layer.

Examples :
RPC Remote Procedure Call
SQL Structured Query Language
NFS Network File System

13

Data flow from Session Layer

Application
Application

Data

Presentation
Presentation

Data

Session
Session

Data

Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical

14

Transport Layer

Application
Application
Presentation
Presentation
Session
Session

Transport Layer is
responsible for end-to-end
connectivity. It is also known as
the heart of OSI Layers.
Following tasks are performed at
the Transport Layer : -

Transport
Transport
Transport
Transport

Identifying Service

Network
Network

Multiplexing & De-multiplexing

Data
Data Link
Link
Physical
Physical

Segmentation
Sequencing & Reassembling
Error Correction
Flow Control

15

Identifying Service
TCP
Transmission Control
Protocol

UDP
User Datagram
Protocol

Connection Oriented

Connection Less

Acknowledgement

No Acknowledgement

Reliable

Unreliable

Slower

Faster

Port No. 6

Port No. 17

e.g. HTTP, FTP, SMTP

e.g. DNS, DHCP, TFTP

16

Multiplexing & De-multiplexing

Application
Application
Presentation
Presentation
Session
Session
80 21 25

53 67 69

Transport
Transport
TCP - 6

UDP - 17

Network
Network
Data
Data Link
Link
Physical
Physical

17

Segmentation

Hello! How are you ?


Hello!
How are
you ?Hello! How Are You
?

18

Sequencing & Reassembling

you
Hello!
Hello!
HowHow
are ?
you
You Hello!
Are? Hello!
How are
How ?
you ? You Hello! How ? Are
Hello! How Are You
? are

19

Sequencing & Reassembling

Hello!
Hello! How are you ? Hello!
How are
How are
you ? Hello! How Are You
? you ?
1/5

You
4/5

2/5

3/5

Hello! How
1/5

2/5

4/5

5/5

5/5

Are
3/5

20

Error Correction

Segment Missing
Hello!
Hello! How are you ? Hello!
How are
How are
you ? Hello! How Are You
? you ?
1/5

You
4/5

2/5

3/5

Hello! How
1/5

2/5

4/5

5/5

5/5

Are
3/5

21

Flow Control - Windowing

Ack-RecAck.
Sending
3
Received3-window
Sending
4
5-window

PC-A
PC-A
Received
can
can send
send 44 Segment
Segment
3-window
4-window
at
at aa time
time to
to
PC-B
PC-B
B

22

Data flow from Transport Layer

Application
Application

Data

Presentation
Presentation

Data

Session
Session

Data

Transport
Transport

TH
Segment
Data

Network
Network
Data
Data Link
Link
Physical
Physical

23

Network Layer

Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Network
Network
Data
Data Link
Link
Physical
Physical

Network Layer is
responsible for providing best
path for data to reach the
destination. Logical Addressing
works on this layer. Router is a
Network Layer device.
It is divided into two parts
Routed Protocols
e.g. IP, IPX, Apple Talk.
Routing Protocols
e.g. RIP, IGRP, OSPF, EIGRP

24

Routed Protocols

Segment

Hello!
How are
you ?

Source IP
192.168.1.1

Hello!
How are
you ?

Destination
Segment IP
192.168.1.2

192.168.1.1

192.168.1.2

25

Routing Protocols

www.zoomgroup.com

26

Data flow from Network Layer

e.g. Router

Application
Application

Data

Presentation
Presentation

Data

Session
Session

Data

Transport
Transport

Segment

Network
Network

Segment
NHPacket

Data
Data Link
Link
Physical
Physical

27

Datalink Layer

Application
Application
Presentation
Presentation
Session
Session
Transport
Transport
Network
Network
Data
Data
Link
Data
Link
DataLink
Link
Physical
Physical

Datalink Layer is
divided into two Sub Layers :
LLC Logical Link Control
It talks about Wan protocols e.g.
PPP, HDLC, Frame-relay
MAC Media Access Control
It talks about Physical Address.
It is a 48 bit address i.e. 12 digit
Hexadecimal Number.
It is also responsible for Error
Detection
Devices working on Data Link
Layer are Switch, Bridge, NIC.

28

Error Detection CRC Check

Packet

Hello!
How are
you ?

PC-A
PC-A
CRC
CRC No.
No. 33333
33333
PC-B
PC-B
Source MAC
00-20-18-C0-07-71
CRC
No.
CRC
No. 11114
11114
Error
33333
11114
46323
99434
43434
99323
55434
89696
22222
32434
00000
Detected
Destination
MAC
Packet
Error
Detected
00-20-18-C0-07-72
Error Detected

For
For Error
Error Correction
Correction
Contact
Contact Source
Source Transport
Transport layer
layer

192.168.1.1
00-20-18-C0-07-71

192.168.1.2
00-20-18-C0-07-72

29

Error Detection CRC Check

Packet

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

Hello!
How are
you ?

20202
11114
46323
99434
43434
99323
55434
89696
22222
32434
00000

Destination
Packet MAC
00-20-18-C0-07-72

192.168.1.1
00-20-18-C0-07-71

192.168.1.2
00-20-18-C0-07-72

30

Data flow from Data Link Layer

e.g. Switch

Application
Application

Data

Presentation
Presentation

Data

Session
Session

Data

Transport
Transport

Segment

Network
Network

Packet

Data
Data Link
Link

Packet DT
DH Frame

Physical
Physical

31

Physical Layer

Application
Application
Presentation
Presentation
Session
Session
Transport
Transport

Physical Layer is
responsible for electrical,
mechanical and procedural checks.
Data will be converted into Binary
(i.e) 0s & 1s. Data will be in the
form of electrical pulses if it is
Coaxial or Twisted Pair cable and in
the form of Light if it is Fiber Optic
Cable.

Network
Network
Data
Data Link
Link
Physical
Physical
Physical
Physical

Devices working at Physical Layer


are Hubs, Repeaters, Cables,
Modems etc.

32

Physical Layer Example

Frame

Hello!
How are
you ?
1010101010101010
Frame

0101011010101010101010101
1010101101010101010101010
0101011010101010101010101

33

Data flow from Physical Layer

e.g. Hub

Application
Application

Data

Presentation
Presentation

Data

Session
Session

Data

Transport
Transport

Segment

Network
Network

Packet

Data
Data Link
Link

Frame

Physical
Physical

Bits

34

Data Encapsulation & De-capsulation

Application
Application

Data

Data

Application
Application

Presentation
Presentation

Data

Data

Presentation
Presentation

Session
Session

Data

Data

Session
Session

Transport
Transport

TH
Data
Segment

Segment
Data
TH

TransportTH
Transport

Network
Network

Packet
Segment
NH

Segment
NHPacket

Network NH
Network

Data
DataLink
Link

Packet
DHFrame
DT

Packet
DH
Packet
DTFrame

DH
DT
DataLink
Link
Data

Physical
Physical

Bits

Bits

Physical
Physical

35

Comparing OSI with TCP/IP Layers

OSI Layers

TCP/IP Layers

Application
Application
Presentation
Presentation

Application
Application

Session
Session
Transport
Transport
Network
Network
Data
Data Link
Link
Physical
Physical

Transport
Transport
Internet
Internet
Network
Network
Access
Access

36

37

38

Example of HTTP request


http://www.zoomgroup.com

39

ftp://ftp.microsoft.com

40

Microsoft Windows 2000 [Version 5.00.2195]


(C) Copyright 1985-2000 Microsoft Corp.
telnet 192.168.1.150
C:\>
Connecting .....
================================
Welcome to Hyderabad Router
================================
User Access Verification
password :

41

http://www.microsoft.com

42

http://mail.yahoo.com

xyz@yahoo.com

xyz
******

43

S-ar putea să vă placă și