Professional Documents
Culture Documents
Day1 OSI PDF
Day1 OSI PDF
Day1 OSI PDF
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
N
2
G
1
IE S
1
O LO
Application Application
O O
Presentation Session
Application Layer
Application Layer is responsible for providing an interface for the users to interact with application services or Networking Services . Ex: Web browser etc. Identification of Services is done using Port Numbers (Service Point Addresses). Port is a logical communication Channel Port number is a 16 bit identifier. Total No. Ports 0 65535 Server Ports 1 - 1023 Client Ports 1024 65535
N
4
G
3
IE S
2
HTTP
FTP SMTP TELNET TFTP
80
21 25 23 69
O LO N
Data
53 67 69
O O
80 21 25
Application
G
5
IE S
3
Presentation Layer
O LO
Data
Data
O O
Application
N
8
G
7
Network
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
IE S
4
Session Layer
Application
Presentation
Session Session Transport
Session Layer It is responsible for establishing, maintaining and terminating the sessions. Session ID is used to identify a session or interaction.
O LO
Data
Data Data
O O
Application
N
10
G
9
Network
Examples : RPC Remote Procedural Call SQL Structured Query Language ASP AppleTalk Session protocol
IE S
5
Transport Layer
Application
Presentation
Session Transport Transport
O LO
UDP
User Datagram Protocol Connection Less No support for Acks Unreliable communication Faster data Transportation Protocol No is 17 Eg: DNS, DHCP, TFTP
Services are identified at this layer with the help of Port Nos. The major protocols which takes care of Data Transportation at Transport layer areTCP,UDP
O O
Transmission Control Protocol Connection Oriented Supports Acks Reliable communication Slower data Transportation Protocol No is 6 Eg: HTTP, FTP, SMTP
Identifying a Service
TCP
N
12
G
11
Network
IE S
6
Transport Layer It provides data delivery mechanism between the applications in the network. The major functions described at the Transport Layer are..
Connection Establishment
O LO T M O O E
Multiplexing & De-multiplexing
Presentation Session
80 21 25 53 67 69
TCP - 6
Application
Transport
UDP - 17
G
13
IE S
7
Segmentation
You
O LO
How You You Hello! ? Are Hello! ? How Are
O O
N
B
16
G
15
IE S
8
Flow Control
Window Size = 1 Send 1 Send 2 Window Size = 3 Send 1 Send 2 Send 3 Send 4 Receive 1 Receive 2 Receive 3 Ack 4 Receive 1 Ack 2 Receive 2 Ack 3
O LO
B
Error Correction
N
B
O O
1 2 3 4 5 6 7
Send 1 Send 2 Send 3
1 2 3 4 5 6 7
G
17
IE S
9
Segment
O LO
Network Layer Routed Protocols:
IP, IPX, AppleTalk.. Etc Routed protocols used to carry user data between hosts.
Application
Presentation Session
O O
Network Layer
It provides Logical addressing & Path determination (Routing) in this layer. The protocols that work in this layer are:
Routing Protocols:
RIP, OSPF.. Etc Routing protocols performs Path determination (Routing).
N
20
G
19
IE S
10
Routing Protocols
O LO E C H
Data
Data Data Segment NH Segment
O O
Application
Presentation Session
N
=
Packet
Devices that work at Network Layer are Router, Multilayer switch etc.. 22
G
21
IE S
11
Presentation
Session Transport
O LO
D-L Head
B
O O
algorithm is executed and device will calculate a FCS for data including L2 header. On receiving a frame on other end device will run same algorithm for data + L2 header If receiving value calculated value is same accepts the frame or else drop
FCS
A
192.168.1.1 00-20-18-C0-07-71
DATA
N
192.168.1.2 00-20-18-C0-07-72
24
Network
IE S
23
It also provides ERROR DETECTION using CRC (Cyclic Redundancy Check) and ordered delivery of Frames. Ex: Ethernet, Token ringetc
12
Application
Presentation Session
O O
Physical Layer
Physical 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.
H
Copper media : Electrical signals of different
voltages
Fiber media
wavelengths
N
: Light pulses of different
O LO
Frame
Devices that work at Data link layer are Switch, Bridge etc.. 25
G
13
IE S
Frame
O LO
Data
Data Data Segment Packet Frame Bits
O O
Application
N
28
G
27
IE S
14
A
Application Presentation Session Transport Network Data Link Physical
Data Data
B
Application
Data
Session
TH Data Segment
Packet Segment NH Packet Frame DH DT Bits
Transport Network
O LO
Frame Bits
OSI Layers
O O
Application Application
N
TCP/IP Layers Host-to-Host Internet Network Access
30
G
Data Link Physical
29
IE S
15
Data
Data
Presentation