Documente Academic
Documente Profesional
Documente Cultură
2
OSI Model
3
7 Application Layer is
Application
Application responsible for providing
Networking Services to user.
Presentation It also known as Desktop Layer.
Identification of Services is
Session done using Port Numbers.
e.g. HTTP,FTP, SMTP,
Transport SIP,IMAP,DNS
Network
Ports are nothing but Socket i.e.
Entry and Exit Point to the Layer
Data Link
FTP Request
FTP Request
Received FTP Reply Listen on
ftp://ftp.microsoft.com
ftp://ftp.microsoft.com Port 21
Sending FTP Reply
HTTP 80
FTP 21
SMTP 25
TELNET 23
TFTP 69
How data flows from Application Layer
11
Application Data
80 21 25 53 67 69
Presentation
Session
Transport
Network
Data Link
Physical
Presentation Layer
Presentation Layer is
Application responsible for converting data
into standard format.
Presentation
Presentation
Examples : ASCII, EBCDIC, JPEG,
Session
MPEG, BMP, MIDI, WAV, MP3
Transport
Following tasks are perform at
Network Presentation layer :
12
How data flows from Presentation Layer
13
Application Data
Presentation Data
Session
Transport
Network
Data Link
Physical
Session Layer
Transport
Network
Data Link
Physical
14
How data flows from Session Layer
15
Application Data
Presentation Data
Session Data
Transport
Network
Data Link
Physical
Transport Layer
Transport Layer is
Application responsible for end-to-end
connectivity. It is also known as
Presentation heart of OSI Layers. Following
task are performed at Transport
Session Layer : -
Transport
Transport • Identifying Service
TCP UDP
• Acknowledgement • No Acknowledgement
• Reliable • Unreliable
• Slower • Faster
Application
Presentation
Session
80 21 25 53 67 69
Transport
TCP - 6 UDP - 17
Network
Data Link
Physical
18
Segmentation
A B
19
Sequencing & Reassembling
A B
20
Error Detection
Segment Missing
Hello! Hello! How are you ? Hello!
How are How are
you ? Hello! How Are You ? you ?
1/5 2/5 3/5 4/5 5/5
A B
21
Flow Control - Windowing
Ack-Rec- PC-A
Ack.
Sending
3 Received
Received-
3-window
Sending
can send 4 Segment3-window
4-window
4 at a time to
5-window
PC-B
A B
22
How data flows from Transport Layer
23
Application Data
Presentation Data
Session Data
Transport TH
Segment
Data
Network
Data Link
Physical
Network Layer
Network Layer is
Application responsible for providing best
path to data to reach destination.
Presentation Logical Addressing sits on this
layer. Device working on Network
Session Layer is Router.
24
Routed Protocols
Segment
Hello!
How are
you ? Source IP Hello!
192.168.1.1
How are
Destination
Segment IP
192.168.1.2 you ?
A B
192.168.1.1 192.168.1.2
25
How data flows from Network Layer
26
Application Data
Presentation Data
Session Data
Network NHPacket
Segment
Data Link
Physical
Datalink Layer
Presentation
• LLC – Logical Link Control
Session It talks about Wan protocols e.g.
PPP, HDLC, Frame-relay
Transport
• MAC – Media Access Control
Network It talks about Physical Address.
It is 48 bit Addressing
Data
Data Link i.e. 12 digit Hexadecimal No.
It is also responsible for Error
Physical Detection
Device working on Data Link
Layer is Switch, Bridge, NIC.
27
Error Detection – CRC Check
Packet
PC-A
Hello!
CRC No. 33333
How are PC-B
you ? Source MAC
CRC No. 11114
00-20-18-C0-07-71
Error33333
11114
46323
99434
43434
99323
55434
89696
22222
32434
00000
Detected
Error Detected
Destination
Packet MAC
00-20-18-C0-07-72
192.168.1.1 192.168.1.2
28 00-20-18-C0-07-71 00-20-18-C0-07-72
How data flows from Data Link Layer
29
Application Data
Presentation Data
Session Data
Transport Segment
Physical
Physical Layer
Physical Layer is
Application responsible for electrical,
mechanical or procedural checks.
Presentation Data will be converted in Binary
that is 0’s & 1’s. Data will be in the
Session form of electrical pulses if it is
Coaxial or Twisted Pair cable and in
Transport the form of Light if it is Fiber Optic
Cable.
Network
Devices working at Physical Layer
Data Link are Hubs, Repeaters, Cables,
Modems etc.
Physical
30
Physical Layer Example
Frame
Hello!
How are
you ?
1010101010101010
Frame
A 0101011010101010101010101
1010101101010101010101010
0101011010101010101010101 B
31
How data flows from Physical Layer
32
Application Data
Presentation Data
Session Data
Transport Segment
Network Packet
Physical Bits
Encapsulation.
Layers of OSI Reference Model.
Data Encapsulation & De-capsulation
A B
35
Transport TH TH
Transport
Data
Segment TH
Segment
Data
Network NH
Packet
Segment NHPacket
Segment NetworkNH
36
OSI Layers TCP/IP Layers
Application
Presentation Application
Session
Transport Transport
Network Internet
Data Link
Network
Access
Physical
OSI Layers (1)
Physical
Bottommost layer
Implements an unreliable bit link
Uses synchronization bits to synchronize the receiver
Specify the modulation scheme
Physical interface between devices
Mechanical
Electrical
Functional
Procedural
For activating, maintaining and deactivating the physical link
between communicating network systems
Data Link Layer.
The data link layer is responsible for moving frames from
one hop (node) to the next.
The major duties of the data link layer are:
Framing
Physical addressing:
Physical address is the MAC address, which is hard coded
into NIC and is of 48-bit represented by Hexadecimal
format.
00.27.AB.CC.EE.23
00.27.AB-Vendor
CC.EE.23-User
Cmd Ipconfig/all to show the system details
Flow control
Error Control
Access Control
Data Link layer protocols are CSMA/CD, CSMA/CA, Token passing etc.
OSI Layers (2)
Data Link
Supervises transmission of packets by physical layer
Means of activating, maintaining and deactivating a reliable link
Adds sequence number and CRC
Error detection and control
Encapsulation and Decapsulation are performed
Regulates the access to the link
Higher layers may assume error free transmission
A) Medium Access Control
MAC address will be added
B) Logical Link Control
CRC will be added
Data Link Layer.
Data Link Layer
Network Layer.
Logical addressing:
Logical address is also called IP address which is of 32-bits
and represented in decimal format.
192.168.32.97
Routing:
To route the packets from the source to destination in an
internetwork, the router uses network layer information.
The PDU of network layer is packet.
Network layer protocols are IP, IPX, AppleTalk.
Routing protocol-RIP , OSPF, BGP
Routed Protocol - IP, IPX, AppleTalk
which layer ?
Which Layer ?
Example
Network Layer.
Network Layer