SlideShare a Scribd company logo
Layered Architecture or Network Architecture
The layered architecture consists of the set of layers, as explained in the class, each layer
is nothing but a collection of functions combined in one group. So, bottom line is, all the
layers make the communication process achievable, by dividing functionality among the
layers. Also each layer provides services to the layer above it. In the last lecture, there
were five points why layers are required.

Q. Why layers are required, cannot we make only one layer?
Answer: No, as explained in previous lecture.

Q. What is peer-to-peer communication?
Between machines layer ‘x’ on one machine, communicates with the layer ‘x’ on another
machine, a kind of indirect communication (by taking help of intermediate layers), except
the physical layer. Because the physical layer of one host connects with the physical layer
of another host through the medium directly. Those layers that communicate with the
corresponding layer on another machine are called as peer-to-peer layers and the
communication between peer to peer layers is called as peer-to-peer communication.




Circles with X represent routers. A and B are hosts are communicating, in this example
we are assuming that there are only two routes, whereas in practical there can be multiple
routers in between.
Q. What is Encapsulation?
Answer:




Layer 7 which is the topmost layer in layered architecture interacts with the application,
and the purpose of this layer is to get the message from the sender and forward to the
layer below it i.e. to layer 6 or take message from the layer below it (i.e. layer 6) and
deliver to the application. Application may be interacting with the various applications
running on the computer. Layer 7 is only concerned about interacting with the application
executing on the machine. Layer 7 and Layer 1 don’t attach any header to the message.
All the layers expect layer 7 transform the received message and attach the respective
header or trailer.

Q Why all the layers except layer 7 transform the message?
Answer: Because layer 1 only takes message from the application and forward it to the
layer 6, whereas each layer except layer 1 has some function to perform, which they do
when they receive message from the layer above it, and then attach the header also. Also,
there is no layer above layer 1, so layer 1 has nothing to do for any one else, except the
take the message from the applications in execution or delivers the message to the
application in execution.


Q What is layer to layer interface or Service Access Point?
Answer: Messages are passed from one layer to another layer through an interface; So
that means an interface exist between every pair of layers, i.e.
Layer 7-Layer 6 interface, between layer 7 and layer 6
Layer 6-Layer 5 interface, between layer 6 and layer 5, and so on.
The upper layers are implemented in the software and lower layers are implemented in
both software and hardware, except for the physical layer which is completely hardware.

Q How layered technology helps in achieving communication between two hosts?
Answer: As shown in above figure, with gives an over all view of layered architecture,
L7 data means the data unit at layer 7, L6 data means data unit at layer 6 and so on. The
process starts at layer 7, and then moves from layer n to layer n-1 in descending order at
sending side and ascending order at receiving side. At each layer (except layer 7 and
layer 1), a header is added and at layer 3, a header and trailer are added. When the
formatted data unit passes through the layer 1, it is changed into electromagnetic signal
and transported along a physical link.
                        Upon reaching the destination, the signal passes into layer 1; layer
1 transforms the received signal back into digital data. The data units then move back up
from layer n to layer n+1 through the layered architecture. As each block of data reaches
the next higher layer, the headers and trailers attached to it at the corresponding layer are
removed and actions appropriate to that layer are taken. By the time message reaches
layer 7, the message is in a form that it can be delivered to the application in execution.

ISO/OSI Model
Q What do you mean by ISO/OSI Model?
Answer: ISO is an acronym for International Standards Organization and OSI is an
acronym for Open Systems Interconnection.

Q. What is this ISO for? (You will not be asked this question in exam)
Answer: ISO is a word wide organization that takes formulates the standard and observer
that standards are being followed by everybody. This ensures compatibility and
scalability in future.

Q. What is OSI?
Answer: As told above, OSI is an acronym for Open Systems Interconnection. To
understand it, you need to break these into three words and understand each word
individually.
Open: Open means one who is ready to accept any thing and give any thing but is an
individual. For example: I am open to smoking and drinking, i.e. I don’t mind taking hard
drink and smoke.
System: System, you all know is a computer. But here systems are Open, which means
there are autonomous or individual in nature and can receive messages and send
messages.
Interconnection: Interconnection means connecting in between.

So, if we combine all three of them, what we can make out is, interconnecting
autonomous systems together.

Q. How many layers are in the ISO/OSI Model?
Answer: There are seven layers in the ISO/OSI Model.
   1. Application Layer
   2. Presentation Layer
   3. Session Layer
   4. Transport Layer
5. Network Layer
   6. Data Link Layer
   7. Physical Layer

Application Layer
Q. What is the purpose of Application Layer?
Answer: As explained before, this is the topmost layer in ISO/OSI model, and it interacts
with the applications in execution as shown in figure below.




                               (i)                                    (ii)

In figure (i), Application layer takes message from the user (here user is like some
application, for example chat application or telnet application or ftp application) and
gives that message to the layer below it i.e. presentation layer (for other functions to be
performed on this message) through an interface present between application layer and
presentation layer called as service access point. Note that no header is attached to the
message at this layer.

In figure (ii), Application layer takes messages from the layer below it i.e. presentation
layer, here also messages pass between presentation layer to the application layer through
an interface called as service access point, and deliver it to the appropriate application in
execution for which that message is meant for.

Q. What is the purpose of Presentation Layer?
Answer: Presentation layer is concerned about the language between used between two
hosts or between two systems, Since two systems are open as explained below, they are
autonomous or individual in nature, so each one of them can have their own language or
character set. Thus one of the jobs that Presentation Layer does is Translation.
Actually there are three functions that Presentation layer does:
    1. Translation
    2. Encryption
    3. Data Compression

Q What is Translation, and why is it required?
Answer: The process in two hosts or two systems are usually exchanging information in
the form character strings, numbers etc. The information is changed to bit, this
conversion of character strings and numbers into bits can be done in two ways, one way
is ASCII and second way is EBCDIC. So let us assume that Host A uses ASCII
representation of converting his message (remember message is combination of strings
and numbers) and Host B uses EBCDIC. If any message in ASCII is sent to Host B, he
will not be able to understand that. The solution to this is, presentation layer at the sender
converts ASCII message to some common format which when received by Host B is
converted into EBCDIC. What that common format is? That is another question, we wont
get into that.

Q What is Encryption? Why is it required?
Answer: Encryption is encoding, i.e. converting message from intelligible form to
unintelligible form. This is done to ensure security, so that while some confidential
message is in transit and some other third person manages to gain access to that message,
he should not be able to know what it means, if the message is not encrypted before
transmission, he can make out the meaning of it. Presentation layer at the sender end
encrypts the message and the encrypted message is transmitted over the medium. After
traveling through the medium, encrypted message reaches the physical layer of the
destination, where encrypted message is again decrypted to get the original message. So,
decryption is done at receive end, and is opposite of encryption. We can define
decryption as, converting message from unintelligible form to intelligible form, so that
one can make out what it mean.

Q. What is Data Compression? Why is it required?
Answer: Data Compression reduces the number of bits contained in the information. To
understand why data compression is done or what the advantages of doing data
compression are, let us take one example.
Suppose host A wants to transmit to Host B. They both are on point-to-point link (i.e.
Host A is on one side of the link and Host B is on the other side of the link, and link is
not shared by anyone else). The link can carry 10 bits/sec that means Host A can place 10
bits on the link in 1 sec. If Host A has a packet of size 20 bits, how much time will it take
to transmit it? Obviously the answer is 2 seconds. If presentation layer of A can compress
that message to half, i.e. after compression the size of the packet is 10 bits, now how
much time will it take? This time the answer is 1 sec, which is less than time taken to
send the same uncompressed packet. So transmission time is reduced by compression.
So, Presentation layer at the source compresses the message and compressed message is
given to the next layer down and finally reaches the physical layer of the source, which
transmits the message on the medium, medium travels through the medium and is
received by the receiver’s physical layer. Physical layer of the receivers gives the
message to the layer in upward direction. Finally message reaches the presentation layer
where message is decompressed to retrieve the original message. (Remember that when a
message travels down the layer, a header is attached to the message at every layer except
the Application layer and physical layer, and in data link layer a trailer is also attached.
Also when a message travels up the layer, headers are removed at every layer except the
application layer and physical layer)

So after message is translated, encrypted and compressed at the presentation layer, it is
passed to the lower layer i.e. Session layer, through interface present between the
presentation and session layer. Figure below depicts the behavior of presentation layer.
Session layer
Q. What is the purpose of Session Layer?
Answer: Session layer enable for processes in two different systems to enter into a dialog.
It allows communication between two processes to take place either in half-duplex or
full-duplex. So Session layer does dialog control.
Session layer allows a process to add checkpoints (also called as synchronization points)
into a stream of data. For example, if a system is sending a file of 2000 pages, it is
advisable to add checkpoints after every 100 pages. Checkpoint helps in acknowledging
that after every 100 page is received, an acknowledge goes to the sender. In this case, if a
crash happens during the transmission of page 523, the only pages that need to be resent
after system recovery are pages 501 to 600, and onwards.

Transport Layer
Q. What is the purpose of Transport Layer
Answer: The transport layer is responsible for source to destination delivery of the entire
message. What I mean by that, transport layer is not concerned how data travel from
source to destination, the only concern of transport layer is that it should reach there with
out any error and without any loss. In must simpler words, transport layer ensures that
data reaches at the destination intact overseeing error control and flow control. The
concern about how data travel is of the lower layer to transport layer, i.e. network layer.
As a matter of fact, lower three layers are concerned about how to route the packet from
source to destination i.e. network layer, data link layer and physical layer. The
responsibilities of transport layer are:
    1. Service Point Addressing
    2. Segmentation and Reassembly
    3. Connection Control
    4. Flow Control
    5. Error Control
Network Layer
Q. What is the purpose of Network Layer?
Answer: The network layer is responsible for source to destination delivery of a packet
possibly across multiple networks; again network layer relies on the layer below it for
actual transmission. The layer below network layer is data link layer. But yes data link
layer define the route that the packet will follow or packet can also take dynamic route
defined by the intermediate routers on the run. But for sending a packet from one router
to another, there is a medium in between, to travel through the medium and data link
layer and physical layer comes into picture, so network layer without the help of data link
layer and physical layer is incomplete. Similarly transport layer relies on network layer,
and transport layer is incomplete without the network layer and layers below network
layer.
The responsibilities of network layer are
    1. Routing
    2. Logical Addressing

Data Link Layer
Q What is the purpose of Data Link Layer?
Answer: The data link layer is responsible for end to end delivery of frames i.e. it is the
data link layer which actually do the job of sending frame from one end of link to other
end of the link (in a point to point link) obviously the actual transmission of frame is
done by the physical layer i.e. putting the bits of the frame on the link. Data link layer has
to take care of flow control, error control between two links that falls in the whole path
from source to destination. The responsibilities of data link layer are
    1. Framing
    2. Physical Addressing
    3. Flow Control
    4. Error Control
    5. Access Control

Physical Layer
Q. What is the purpose of Physical Layer?
Answer: Physical layer is the lower layer, and converts the message into bits; put the bits
on to the medium. The number of bits that the physical layer can put on the medium or
transmit through the medium is called as the transmission rate. Below is the figure the
depicts the transformation done to the message at physical layer.
The physical layer is concerned with the following
   1. Physical characteristics of the interfaces and medium
   2. Representation of bits
   3. Data Rate or Transmission Rate
   4. Link Configuration
   5. Physical topology

Summary of ISO/OSI Model

More Related Content

DOCX
Bt0072 computer networks
DOCX
Bca 4010 computer networking
PDF
Computer Network notes
PDF
Pbcbt an improvement of ntbcbt algorithm
PPTX
Inter process communication
PPTX
Inter Process Communication-R.D.Sivakumar
PDF
1757 1761
PPT
006 Osi Model
Bt0072 computer networks
Bca 4010 computer networking
Computer Network notes
Pbcbt an improvement of ntbcbt algorithm
Inter process communication
Inter Process Communication-R.D.Sivakumar
1757 1761
006 Osi Model

What's hot (13)

PDF
An Effective Privacy-Preserving Data Coding in Peer-To-Peer Network
PDF
Elgamal signature for content distribution with network coding
PDF
Paper id 42201621
ODP
Fajar Purnama 152-d8713 Dynamic Content Synchronization Distributed LMS
PDF
Word2Vec on Italian language
PPSX
OSI Model of Networking-09-Nov-2019
PDF
REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N
PDF
Universal Network Coding-Based Opportunistic Routing for Unicast
PDF
D0441722
PDF
A genetic algorithm for constructing broadcast trees with cost and delay cons...
PDF
Applying Deep Learning Machine Translation to Language Services
PDF
AUTOCONFIGURATION ALGORITHM FOR A MULTIPLE INTERFACES ADHOC NETWORK RUNNING...
PDF
Securing Group Communication in Partially Distributed Systems
An Effective Privacy-Preserving Data Coding in Peer-To-Peer Network
Elgamal signature for content distribution with network coding
Paper id 42201621
Fajar Purnama 152-d8713 Dynamic Content Synchronization Distributed LMS
Word2Vec on Italian language
OSI Model of Networking-09-Nov-2019
REDUCED COMPLEXITY QUASI-CYCLIC LDPC ENCODER FOR IEEE 802.11N
Universal Network Coding-Based Opportunistic Routing for Unicast
D0441722
A genetic algorithm for constructing broadcast trees with cost and delay cons...
Applying Deep Learning Machine Translation to Language Services
AUTOCONFIGURATION ALGORITHM FOR A MULTIPLE INTERFACES ADHOC NETWORK RUNNING...
Securing Group Communication in Partially Distributed Systems
Ad

Viewers also liked (18)

DOC
Lecture1 introductiontonetwork
 
DOC
Html basics 6 image
 
RTF
Java script frame window
 
PDF
Assignment sw
 
DOC
Java script frame history
 
DOC
Lecture2 networkclassification
 
PDF
Java script objects 2
 
PPT
Week5
 
RTF
Html basics 11 form validation
 
PDF
Solution2
 
PDF
Assignment4
 
PDF
Set
 
DOC
Html basics 3 font align
 
PDF
Induction
 
DOC
Html basics 10 form
 
DOC
Html basics 1
 
DOC
Html basics 7 table
 
PPT
Week7
 
Lecture1 introductiontonetwork
 
Html basics 6 image
 
Java script frame window
 
Assignment sw
 
Java script frame history
 
Lecture2 networkclassification
 
Java script objects 2
 
Week5
 
Html basics 11 form validation
 
Solution2
 
Assignment4
 
Set
 
Html basics 3 font align
 
Induction
 
Html basics 10 form
 
Html basics 1
 
Html basics 7 table
 
Week7
 
Ad

Similar to Lecture4 isoosi (20)

PPTX
Omnya Ashraf.Network (chp1 OSI MODEL.).pptx
PPT
Osi Layer model provided by TopTechy.com
PPT
1_Operating System.ppt
PPTX
Open Systems Interconnections Model - 7 layers
PDF
Chap 2 network models
DOCX
7 Layers OSI model description with 3 unofficial Layers.
PPTX
Client Server Network and Peer to Peer.pptx
PPTX
OSI MODEL DISCRIPTION , WORKING AND ADVANTAGESPPT.pptx
PPT
OSI model (7 LAYER )
PPTX
Networking Standards And Protocols
PPTX
Iso model
PPT
PPT
934 Ch1 Networks
PDF
Osi model
PPT
Open Systems Interconnection (OSI) modelModel.ppt
PDF
OSI MODEL
PPSX
Complete Osi Model Explained
PPTX
The OSI model
PPT
CN unit 1 part 2 2023.ppt
Omnya Ashraf.Network (chp1 OSI MODEL.).pptx
Osi Layer model provided by TopTechy.com
1_Operating System.ppt
Open Systems Interconnections Model - 7 layers
Chap 2 network models
7 Layers OSI model description with 3 unofficial Layers.
Client Server Network and Peer to Peer.pptx
OSI MODEL DISCRIPTION , WORKING AND ADVANTAGESPPT.pptx
OSI model (7 LAYER )
Networking Standards And Protocols
Iso model
934 Ch1 Networks
Osi model
Open Systems Interconnection (OSI) modelModel.ppt
OSI MODEL
Complete Osi Model Explained
The OSI model
CN unit 1 part 2 2023.ppt

More from H K (20)

PDF
Assignment4
 
DOCX
Assignment3
 
PDF
Solution3
 
DOCX
Mid-
 
PDF
Assignment4
 
PDF
Dm assignment3
 
PPT
Proof
 
PDF
Resolution
 
DOCX
Assignment description
 
PDF
Dm assignment2
 
PDF
Dm assignment1
 
PPTX
Logic
 
DOCX
Introduction
 
PDF
Assignment 2 sol
 
PDF
Assignment sw solution
 
PDF
Violinphoenix
 
PDF
Ie project
 
PDF
Assignment cn subnetting
 
PDF
Assignment uplaodfile
 
PDF
Assignment sw
 
Assignment4
 
Assignment3
 
Solution3
 
Mid-
 
Assignment4
 
Dm assignment3
 
Proof
 
Resolution
 
Assignment description
 
Dm assignment2
 
Dm assignment1
 
Logic
 
Introduction
 
Assignment 2 sol
 
Assignment sw solution
 
Violinphoenix
 
Ie project
 
Assignment cn subnetting
 
Assignment uplaodfile
 
Assignment sw
 

Recently uploaded (20)

PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
Big Data Technologies - Introduction.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Advanced IT Governance
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Transforming Manufacturing operations through Intelligent Integrations
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
madgavkar20181017ppt McKinsey Presentation.pdf
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Big Data Technologies - Introduction.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
cuic standard and advanced reporting.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Advanced IT Governance
The AUB Centre for AI in Media Proposal.docx
CIFDAQ's Market Insight: SEC Turns Pro Crypto
NewMind AI Weekly Chronicles - August'25 Week I
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Lecture4 isoosi

  • 1. Layered Architecture or Network Architecture The layered architecture consists of the set of layers, as explained in the class, each layer is nothing but a collection of functions combined in one group. So, bottom line is, all the layers make the communication process achievable, by dividing functionality among the layers. Also each layer provides services to the layer above it. In the last lecture, there were five points why layers are required. Q. Why layers are required, cannot we make only one layer? Answer: No, as explained in previous lecture. Q. What is peer-to-peer communication? Between machines layer ‘x’ on one machine, communicates with the layer ‘x’ on another machine, a kind of indirect communication (by taking help of intermediate layers), except the physical layer. Because the physical layer of one host connects with the physical layer of another host through the medium directly. Those layers that communicate with the corresponding layer on another machine are called as peer-to-peer layers and the communication between peer to peer layers is called as peer-to-peer communication. Circles with X represent routers. A and B are hosts are communicating, in this example we are assuming that there are only two routes, whereas in practical there can be multiple routers in between.
  • 2. Q. What is Encapsulation? Answer: Layer 7 which is the topmost layer in layered architecture interacts with the application, and the purpose of this layer is to get the message from the sender and forward to the layer below it i.e. to layer 6 or take message from the layer below it (i.e. layer 6) and deliver to the application. Application may be interacting with the various applications running on the computer. Layer 7 is only concerned about interacting with the application executing on the machine. Layer 7 and Layer 1 don’t attach any header to the message. All the layers expect layer 7 transform the received message and attach the respective header or trailer. Q Why all the layers except layer 7 transform the message? Answer: Because layer 1 only takes message from the application and forward it to the layer 6, whereas each layer except layer 1 has some function to perform, which they do when they receive message from the layer above it, and then attach the header also. Also, there is no layer above layer 1, so layer 1 has nothing to do for any one else, except the take the message from the applications in execution or delivers the message to the application in execution. Q What is layer to layer interface or Service Access Point? Answer: Messages are passed from one layer to another layer through an interface; So that means an interface exist between every pair of layers, i.e. Layer 7-Layer 6 interface, between layer 7 and layer 6 Layer 6-Layer 5 interface, between layer 6 and layer 5, and so on.
  • 3. The upper layers are implemented in the software and lower layers are implemented in both software and hardware, except for the physical layer which is completely hardware. Q How layered technology helps in achieving communication between two hosts? Answer: As shown in above figure, with gives an over all view of layered architecture, L7 data means the data unit at layer 7, L6 data means data unit at layer 6 and so on. The process starts at layer 7, and then moves from layer n to layer n-1 in descending order at sending side and ascending order at receiving side. At each layer (except layer 7 and layer 1), a header is added and at layer 3, a header and trailer are added. When the formatted data unit passes through the layer 1, it is changed into electromagnetic signal and transported along a physical link. Upon reaching the destination, the signal passes into layer 1; layer 1 transforms the received signal back into digital data. The data units then move back up from layer n to layer n+1 through the layered architecture. As each block of data reaches the next higher layer, the headers and trailers attached to it at the corresponding layer are removed and actions appropriate to that layer are taken. By the time message reaches layer 7, the message is in a form that it can be delivered to the application in execution. ISO/OSI Model Q What do you mean by ISO/OSI Model? Answer: ISO is an acronym for International Standards Organization and OSI is an acronym for Open Systems Interconnection. Q. What is this ISO for? (You will not be asked this question in exam) Answer: ISO is a word wide organization that takes formulates the standard and observer that standards are being followed by everybody. This ensures compatibility and scalability in future. Q. What is OSI? Answer: As told above, OSI is an acronym for Open Systems Interconnection. To understand it, you need to break these into three words and understand each word individually. Open: Open means one who is ready to accept any thing and give any thing but is an individual. For example: I am open to smoking and drinking, i.e. I don’t mind taking hard drink and smoke. System: System, you all know is a computer. But here systems are Open, which means there are autonomous or individual in nature and can receive messages and send messages. Interconnection: Interconnection means connecting in between. So, if we combine all three of them, what we can make out is, interconnecting autonomous systems together. Q. How many layers are in the ISO/OSI Model? Answer: There are seven layers in the ISO/OSI Model. 1. Application Layer 2. Presentation Layer 3. Session Layer 4. Transport Layer
  • 4. 5. Network Layer 6. Data Link Layer 7. Physical Layer Application Layer Q. What is the purpose of Application Layer? Answer: As explained before, this is the topmost layer in ISO/OSI model, and it interacts with the applications in execution as shown in figure below. (i) (ii) In figure (i), Application layer takes message from the user (here user is like some application, for example chat application or telnet application or ftp application) and gives that message to the layer below it i.e. presentation layer (for other functions to be performed on this message) through an interface present between application layer and presentation layer called as service access point. Note that no header is attached to the message at this layer. In figure (ii), Application layer takes messages from the layer below it i.e. presentation layer, here also messages pass between presentation layer to the application layer through an interface called as service access point, and deliver it to the appropriate application in execution for which that message is meant for. Q. What is the purpose of Presentation Layer? Answer: Presentation layer is concerned about the language between used between two hosts or between two systems, Since two systems are open as explained below, they are autonomous or individual in nature, so each one of them can have their own language or character set. Thus one of the jobs that Presentation Layer does is Translation. Actually there are three functions that Presentation layer does: 1. Translation 2. Encryption 3. Data Compression Q What is Translation, and why is it required? Answer: The process in two hosts or two systems are usually exchanging information in the form character strings, numbers etc. The information is changed to bit, this conversion of character strings and numbers into bits can be done in two ways, one way is ASCII and second way is EBCDIC. So let us assume that Host A uses ASCII representation of converting his message (remember message is combination of strings
  • 5. and numbers) and Host B uses EBCDIC. If any message in ASCII is sent to Host B, he will not be able to understand that. The solution to this is, presentation layer at the sender converts ASCII message to some common format which when received by Host B is converted into EBCDIC. What that common format is? That is another question, we wont get into that. Q What is Encryption? Why is it required? Answer: Encryption is encoding, i.e. converting message from intelligible form to unintelligible form. This is done to ensure security, so that while some confidential message is in transit and some other third person manages to gain access to that message, he should not be able to know what it means, if the message is not encrypted before transmission, he can make out the meaning of it. Presentation layer at the sender end encrypts the message and the encrypted message is transmitted over the medium. After traveling through the medium, encrypted message reaches the physical layer of the destination, where encrypted message is again decrypted to get the original message. So, decryption is done at receive end, and is opposite of encryption. We can define decryption as, converting message from unintelligible form to intelligible form, so that one can make out what it mean. Q. What is Data Compression? Why is it required? Answer: Data Compression reduces the number of bits contained in the information. To understand why data compression is done or what the advantages of doing data compression are, let us take one example. Suppose host A wants to transmit to Host B. They both are on point-to-point link (i.e. Host A is on one side of the link and Host B is on the other side of the link, and link is not shared by anyone else). The link can carry 10 bits/sec that means Host A can place 10 bits on the link in 1 sec. If Host A has a packet of size 20 bits, how much time will it take to transmit it? Obviously the answer is 2 seconds. If presentation layer of A can compress that message to half, i.e. after compression the size of the packet is 10 bits, now how much time will it take? This time the answer is 1 sec, which is less than time taken to send the same uncompressed packet. So transmission time is reduced by compression. So, Presentation layer at the source compresses the message and compressed message is given to the next layer down and finally reaches the physical layer of the source, which transmits the message on the medium, medium travels through the medium and is received by the receiver’s physical layer. Physical layer of the receivers gives the message to the layer in upward direction. Finally message reaches the presentation layer where message is decompressed to retrieve the original message. (Remember that when a message travels down the layer, a header is attached to the message at every layer except the Application layer and physical layer, and in data link layer a trailer is also attached. Also when a message travels up the layer, headers are removed at every layer except the application layer and physical layer) So after message is translated, encrypted and compressed at the presentation layer, it is passed to the lower layer i.e. Session layer, through interface present between the presentation and session layer. Figure below depicts the behavior of presentation layer.
  • 6. Session layer Q. What is the purpose of Session Layer? Answer: Session layer enable for processes in two different systems to enter into a dialog. It allows communication between two processes to take place either in half-duplex or full-duplex. So Session layer does dialog control. Session layer allows a process to add checkpoints (also called as synchronization points) into a stream of data. For example, if a system is sending a file of 2000 pages, it is advisable to add checkpoints after every 100 pages. Checkpoint helps in acknowledging that after every 100 page is received, an acknowledge goes to the sender. In this case, if a crash happens during the transmission of page 523, the only pages that need to be resent after system recovery are pages 501 to 600, and onwards. Transport Layer Q. What is the purpose of Transport Layer Answer: The transport layer is responsible for source to destination delivery of the entire message. What I mean by that, transport layer is not concerned how data travel from source to destination, the only concern of transport layer is that it should reach there with out any error and without any loss. In must simpler words, transport layer ensures that data reaches at the destination intact overseeing error control and flow control. The concern about how data travel is of the lower layer to transport layer, i.e. network layer. As a matter of fact, lower three layers are concerned about how to route the packet from source to destination i.e. network layer, data link layer and physical layer. The responsibilities of transport layer are: 1. Service Point Addressing 2. Segmentation and Reassembly 3. Connection Control 4. Flow Control 5. Error Control
  • 7. Network Layer Q. What is the purpose of Network Layer? Answer: The network layer is responsible for source to destination delivery of a packet possibly across multiple networks; again network layer relies on the layer below it for actual transmission. The layer below network layer is data link layer. But yes data link layer define the route that the packet will follow or packet can also take dynamic route defined by the intermediate routers on the run. But for sending a packet from one router to another, there is a medium in between, to travel through the medium and data link layer and physical layer comes into picture, so network layer without the help of data link layer and physical layer is incomplete. Similarly transport layer relies on network layer, and transport layer is incomplete without the network layer and layers below network layer. The responsibilities of network layer are 1. Routing 2. Logical Addressing Data Link Layer Q What is the purpose of Data Link Layer? Answer: The data link layer is responsible for end to end delivery of frames i.e. it is the data link layer which actually do the job of sending frame from one end of link to other end of the link (in a point to point link) obviously the actual transmission of frame is done by the physical layer i.e. putting the bits of the frame on the link. Data link layer has to take care of flow control, error control between two links that falls in the whole path from source to destination. The responsibilities of data link layer are 1. Framing 2. Physical Addressing 3. Flow Control 4. Error Control 5. Access Control Physical Layer Q. What is the purpose of Physical Layer? Answer: Physical layer is the lower layer, and converts the message into bits; put the bits on to the medium. The number of bits that the physical layer can put on the medium or transmit through the medium is called as the transmission rate. Below is the figure the depicts the transformation done to the message at physical layer.
  • 8. The physical layer is concerned with the following 1. Physical characteristics of the interfaces and medium 2. Representation of bits 3. Data Rate or Transmission Rate 4. Link Configuration 5. Physical topology Summary of ISO/OSI Model