Module 1 OSI
Module 1 OSI
OSI Model
1
OSI Model Layers
Layer - 7 Application
Upper Layer
Layer - 6 Presentation or
Software Layer
Layer - 5 Session
Layer - 3 Network
Lower Layer
Layer - 2 Data Link or
Hardware Layer
Layer - 1 Physical
Application Layer
Application
Application Layer is responsible for
Application
providing Networking Services to
the user. It is also known as
Presentation Desktop Layer. Identification of
Services is done using Port Numbers.
Session
2
Example of HTTP request
http://www.zoomgroup.com
HTTP Request
HTTP Request
Received HTTP Reply Listen on
http:// www.zoomgroup.com
http://www.zoomgroup.com Port 80
Webpage Sending HTTP Reply
Webpage
3
Example of FTP request
ftp://ftp.microsoft.com
FTP Request
FTP Request
Received FTP Reply Listen on
ftp://ftp.microsoft.com
ftp://ftp.microsoft.com Port 21
Sending FTP Reply
4
Examples of Networking Services
HTTP 80
FTP 21
SMTP 25
TELNET 23
TFTP 69
Application Data
80 21 25 53 67 69
Presentation
Session
Transport
Network
Data Link
Physical
10
5
Presentation Layer
Session
Examples : ASCII, EBCDIC, JPEG,
MPEG, BMP, MIDI, WAV, MP3
Transport
Following tasks are perform at
Network Presentation layer :
11
Application Data
Presentation Data
Session
Transport
Network
Data Link
Physical
12
6
Session Layer
Transport Examples :
Physical
13
Application Data
Presentation Data
Session Data
Transport
Network
Data Link
Physical
14
7
Transport Layer
• Identifying Service
Transport
Transport
• Multiplexing & De-multiplexing
Network • Segmentation
15
Identifying Service
TCP UDP
16
8
Multiplexing & De-multiplexing
Application
Presentation
Session
80 21 25 53 67 69
Transport
TCP - 6 UDP - 17
Network
Data Link
Physical
17
Segmentation
A B
18
9
Sequencing & Reassembling
Hello!
You HowHow
Hello! are ?you
Are?
Hello! How you Hello!
are you ? How ? are
You
Hello! Hello!
How How
Are ?
You Are
?
A B
19
A B
20
10
Error Correction
Segment Missing
Hello! How are you ?
Hello! How Hello! How
are you ? are you ?
Hello! How Are You ?
1/5 2/5 3/5 4/5 5/5
A B
21
PC-A
Ack-Rec-3
Sending
Ack. 3-
Received- 3-
Sending
4window
can send 4 SegmentReceived
at 4-
window
5-window
a time to
PC-B
A B
22
11
Data flow from Transport Layer
Application Data
Presentation Data
Session Data
Transport TH Data
Segment
Network
Data Link
Physical
23
Network Layer
24
12
Routed Protocols
Segment
Segment
Destination
Segment IP
192.168.1.2
A B
192.168.1.1 192.168.1.2
25
Routing Protocols
www.zoomgroup.com
26
13
Data flow from Network Layer
Application Data
Presentation Data
Session Data
Network Packet
NH Segment
Data Link
Physical
27
Datalink Layer
14
Error Detection – CRC Check
Packet
PC-A
CRC No. 33333
Hello! How
are you ? PC-B
Source MAC
CRC No.
00-20-18-C0-07-71
Error00000
33333
11114
46323
99434
43434
99323
55434
89696
22222
32434
11114
Detected
Destination
Packet MAC
Error Detected
00-20-18-C0-07-72
192.168.1.1 192.168.1.2
00-20-18-C0-07-71 00-20-18-C0-07-72
29
Packet
Packet
Hello! How
Source MAC
are you ?
00-20-18-C0-07-71
20202
11114
46323
99434
43434
99323
55434
89696
22222
32434
00000
Destination
Packet MAC
00-20-18-C0-07-72
A B
192.168.1.1 192.168.1.2
00-20-18-C0-07-71 00-20-18-C0-07-72
30
15
Data flow from Data Link Layer
Application Data
Presentation Data
Session Data
Transport Segment
Data Link DH
FramePacket DT
Physical
31
Physical Layer
Physical Layer is
Application
responsible for electrical, mechanical
and procedural checks. Data will be
Presentation converted into Binary (i.e) 0’s & 1’s.
Data will be in the form of electrical
Session pulses if it is Coaxial or Twisted Pair
cable and in the form of Light if it is
Transport Fiber Optic Cable.
Physical
Physical
32
16
Physical Layer Example
Frame
Frame
Hello! How
are you ?
1010101010101010
Frame
A 0101011010101010101010101
1010101101010101010101010
0101011010101010101010101 B
33
Application Data
Presentation Data
Session Data
Transport Segment
Network Packet
Physical Bits
34
17
Data Encapsulation & De-capsulation
A B
Transport TH Transport TH
SegmentData TH Data
Segment
Network NH Segment
Packet NH
Packet Segment Network NH
35
Application
Presentation Application
Session
Transport Transport
Network Internet
Data Link
Network
Access
Physical
36
18
37
38
19
Example of HTTP request
http://www.zoomgroup.com
39
ftp://ftp.microsoft.com
40
20
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
C:\> telnet 192.168.1.150
Connecting .....
================================
Welcome to Hyderabad Router
================================
User Access Verification
password :
41
http://www.microsoft.com
42
21
http://mail.yahoo.com
xyz@yahoo.com
xyz
******
43
22