Encoding
Encoding
Computers store data in the form of 0s and 1s. Before this data can be sent through a
communication channel, it must be converted into signals. This process is called Data Encoding.
data encoding is the process of converting binary data into electrical signals so that it can travel
through cables, optical fiber, or wireless networks. Encoding helps the sender and receiver
understand the transmitted data correctly.
Data encoding is important because computers understand binary data, but communication channels
transmit signals.
• Unipolar Encoding
In this method, only one voltage level is used. Usually, binary 1 is represented by a positive voltage,
while binary 0 is represented by zero voltage.
Since only one polarity is used, this method is called unipolar encoding.
The main advantage of this technique is its simplicity. However, it suffers from synchronization
problems and produces a large DC component. Because of these limitations, it is rarely used in
modern communication systems.
• Polar Encoding
• Positive voltage
• Negative voltage
Binary values are represented using both positive and negative voltages.
In NRZ encoding, the signal remains constant throughout the bit interval.
One voltage level represents binary 1 and another voltage level represents binary 0.
The signal does not return to zero after every bit, which makes the method bandwidth efficient.
However, long sequences of identical bits may create synchronization problems because there are
very few signal transitions.
RZ (Return to Zero)
In Return to Zero encoding, the signal returns to zero in the middle of every bit period.
Manchester Encoding
Manchester encoding combines data and clock information into a single signal.
Because synchronization is excellent, Manchester encoding is widely used in local area networks
(LANs).
Examples include:
This method is widely used in digital telephones and audio recording systems.
Introduction
Non-Return to Zero (NRZ) is one of the simplest and most widely used digital encoding techniques. In
this method, binary data is represented using two different voltage levels. One voltage level
represents binary 1 and another voltage level represents binary 0.
The name "Non-Return to Zero" comes from the fact that the signal does not return to zero voltage
between successive bits. Instead, it remains at the same voltage level throughout the bit interval.
NRZ is simple to implement and requires less bandwidth compared to many other encoding
techniques. Because of its simplicity, it became one of the earliest methods used in digital
communication systems.
Working of NRZ
In NRZ encoding, a constant voltage level is maintained during the entire bit period.
For example:
If several consecutive bits have the same value, the signal remains unchanged throughout those bit
intervals.
Introduction
A positive voltage may represent binary 1, while a negative voltage may represent binary 0.
The receiver determines the bit value by observing the voltage level rather than the signal transition.
Working of NRZ-L
Whenever a bit value changes from 0 to 1 or from 1 to 0, the signal level changes accordingly.
However, if consecutive bits have the same value, the signal remains constant.
For example:
Data: 11110000
Signal:
High High High High Low Low Low Low
The receiver simply observes the signal level to determine the transmitted bits.
Advantages of NRZ-L
Disadvantages of NRZ-L
This can cause synchronization problems and make clock recovery difficult.
NRZ-I (Non-Return to Zero Inverted)
Introduction
In this technique, information is represented by signal transitions rather than voltage levels.
The receiver looks for changes in the signal to determine the transmitted data.
Working of NRZ-I
Advantages of NRZ-I
It is more reliable than NRZ-L when transmitting data containing many 1s.
Disadvantages of NRZ-I
Long sequences of zeros still create synchronization problems because no transitions occur.
Manchester Encoding
Introduction
Manchester Encoding is a digital encoding technique that combines data and clock information into a
single signal.
In Manchester encoding, every bit contains a transition in the middle of the bit period. This transition
allows the receiver to maintain synchronization without requiring a separate clock signal.
Because synchronization information is embedded within the signal itself, Manchester encoding is
highly reliable.
The direction of the transition in the middle determines the bit value.
Generally:
Because a transition occurs in every bit period, the receiver can easily identify bit boundaries.
Since every bit contains a transition, clock recovery becomes very easy.
For this reason, it has been widely used in Ethernet LAN technologies.
Because transitions occur in every bit period, the signal changes frequently and requires more
bandwidth than NRZ encoding.
The next topic in your syllabus after Data Encoding Techniques is:
Modulation Techniques
Introduction
The process of modifying a carrier signal according to the information signal is called Modulation.
A carrier signal is a high-frequency signal that carries information from the sender to the receiver.
During modulation, certain characteristics of the carrier signal are changed according to the data
being transmitted.
• Amplitude
• Frequency
• Phase
Introduction
Amplitude Shift Keying (ASK) is a digital modulation technique in which the amplitude of the carrier
signal is changed according to the binary data while frequency and phase remain constant.
In simple words, the strength of the signal changes depending on whether the transmitted bit is 0 or
1.
Working of ASK
In ASK, one amplitude value represents binary 1 and another amplitude value represents binary 0.
For example:
• High Amplitude = 1
When a binary 1 is transmitted, the carrier signal is sent with full amplitude. When a binary 0 is
transmitted, the amplitude is reduced or removed.
Advantages of ASK
ASK is simple to implement and requires less hardware complexity. It is suitable for low-speed
communication systems.
Disadvantages of ASK
The major disadvantage of ASK is that it is highly affected by noise because noise directly changes the
amplitude of the signal. Therefore, transmission errors may occur.
Frequency Shift Keying (FSK) is a modulation technique in which the frequency of the carrier signal is
changed according to the binary data while amplitude and phase remain constant.
This technique is more reliable than ASK because frequency is less affected by noise.
Working of FSK
For example:
When the bit value changes, the frequency of the carrier signal also changes.
The receiver identifies the transmitted data by detecting the frequency of the received signal.
Advantages of FSK
FSK provides better noise immunity than ASK and offers more reliable communication.
Disadvantages of FSK
FSK requires more bandwidth than ASK because multiple frequencies must be transmitted.
Introduction
Phase Shift Keying (PSK) is a modulation technique in which the phase of the carrier signal is changed
according to the binary data while amplitude and frequency remain constant.
PSK is one of the most widely used modulation techniques in modern communication systems.
Working of PSK
For example:
• Phase 0° = Binary 1
The receiver detects these phase changes and reconstructs the original data.
Advantages of PSK
PSK provides better performance and greater resistance to noise compared to ASK and FSK.
It supports higher data transmission rates and is widely used in wireless communication systems.
Disadvantages of PSK
The main disadvantage of PSK is that the transmitter and receiver must maintain accurate phase
synchronization.
Introduction
Instead of transmitting one bit at a time, QPSK transmits two bits simultaneously using four different
phase values.
This increases the data transmission rate without requiring additional bandwidth.
Working of QPSK
• 00 → 45°
• 01 → 135°
• 10 → 225°
• 11 → 315°
Since two bits are transmitted together, communication becomes more efficient.
Advantages of QPSK
Disadvantages of QPSK
The design and implementation of QPSK systems are more complex than basic PSK systems.
Conclusion
Modulation is the process of converting digital data into analog signals for transmission through
communication channels. The most important modulation techniques are ASK, FSK, PSK, and QPSK.
ASK changes amplitude, FSK changes frequency, and PSK changes phase of the carrier signal. Among
these techniques, PSK and QPSK provide better performance and are widely used in modern
communication systems such as mobile networks, satellite communication, and wireless systems.
Exam Tip
ASK
FSK
PSK
Comparison of ASK, FSK, and PSK
These are the most frequently asked modulation topics in university exams.
Introduction
Both methods are used to send data, but they differ in the way the communication channel is
utilized. Understanding these two transmission techniques is important because they form the basis
of modern computer networks and communication systems.
• Baseband Transmission
Introduction
In this method, digital signals are transmitted directly through the medium without converting them
into analog form. Since the complete channel is occupied by one signal, no other signal can use the
medium simultaneously.
Baseband transmission is commonly used in Local Area Networks (LANs) because it provides fast and
reliable communication over short distances.
When a device wants to send data, the digital signal is placed directly onto the communication
medium.
The signal occupies the complete bandwidth available in the channel. As a result, only one
transmission can occur at a particular moment.
If another device wants to transmit data, it must wait until the channel becomes free.
Digital Signals
No Frequency Division
Baseband transmission is simple and inexpensive to implement. Since digital signals are transmitted
directly, there is no need for modulation equipment.
It provides high data transmission speed over short distances and is widely used in computer
networks.
Disadvantages of Baseband Transmission
Only one signal can use the channel at a time. Therefore, multiple simultaneous transmissions are
not possible.
The transmission distance is limited because digital signals weaken as they travel through the
medium.
• Ethernet LANs
• Computer networks
• Office networks
• Broadband Transmission
Introduction
Each frequency range carries a separate signal. Therefore, multiple signals can be transmitted
simultaneously through the same medium.
Unlike baseband transmission, broadband communication usually uses analog signals and requires
modulation.
Broadband transmission is widely used in cable television systems, Internet services, and long-
distance communication networks.
In broadband transmission, the communication channel is divided into several frequency bands.
Multiple signals can then travel simultaneously without interfering with one another.
For example, one frequency band may carry television signals while another frequency band carries
Internet data.
Because different frequency bands are used, several users can share the same communication
medium at the same time.
Characteristics of Broadband Transmission
Analog Communication
Frequency Division
Broadband transmission allows multiple users to share the same communication channel
simultaneously.
It supports high-capacity communication and is suitable for transmitting voice, video, and data
together.
It is widely used in modern communication systems because of its flexibility and scalability.
Broadband systems are more complex and expensive than baseband systems.
The design and maintenance of broadband networks are also more complicated.
Entire bandwidth used by one signal Bandwidth divided into multiple channels
Introduction
Frequency Division Multiplexing (FDM) is a multiplexing technique in which the total available
bandwidth of a communication channel is divided into several smaller frequency bands. Each user or
signal is assigned a separate frequency range, allowing multiple signals to be transmitted
simultaneously through the same communication medium.
The basic idea of FDM is that different signals can coexist on the same communication channel if
they use different frequencies. Since each signal occupies its own frequency band, they do not
interfere with one another during transmission.
FDM is mainly used in analog communication systems where continuous signals are transmitted over
long distances.
Working of FDM
In Frequency Division Multiplexing, each input signal is first assigned a unique carrier frequency.
These signals are then combined by a multiplexer and transmitted through a single communication
channel.
During transmission, all signals travel at the same time but occupy different frequency ranges. At the
receiving end, a demultiplexer separates the signals according to their frequencies and delivers them
to the appropriate users.
To prevent overlap between adjacent channels, small unused frequency ranges known as guard
bands are placed between them.
For example, in radio broadcasting, multiple radio stations transmit simultaneously. Each station is
assigned a different frequency, allowing listeners to tune to a particular station without interference
from others.
Advantages of FDM
One important advantage of FDM is that multiple signals can be transmitted simultaneously without
waiting for one another. Each user receives a dedicated frequency band, which provides continuous
communication.
FDM is particularly suitable for analog communication systems and is widely used in radio and
television broadcasting.
Disadvantages of FDM
The major disadvantage of FDM is that it requires a large amount of bandwidth. The use of guard
bands also reduces bandwidth efficiency.
In addition, if frequencies are not properly separated, interference may occur between adjacent
channels.
Applications of FDM
• Radio Broadcasting
• Television Broadcasting
Introduction
Time Division Multiplexing (TDM) is a multiplexing technique in which multiple users share the same
communication channel by using different time slots.
Unlike FDM, where the channel is divided according to frequency, TDM divides the channel according
to time. Each user is allowed to transmit data only during its assigned time slot.
Working of TDM
In TDM, the communication channel is divided into a sequence of time slots. Each user is assigned a
specific time slot during which it can transmit data.
The multiplexer collects data from different users and transmits them one after another in rapid
succession. Because the switching occurs very quickly, users feel as if they are communicating
simultaneously.
At the receiving end, the demultiplexer separates the data according to the assigned time slots and
delivers it to the correct destination.
For example, if four users share a communication channel, the first time slot may be assigned to User
1, the second to User 2, the third to User 3, and the fourth to User 4. After User 4, the cycle repeats
again.
Types of TDM
Synchronous TDM
In synchronous TDM, each user receives a fixed time slot whether it has data to send or not.
If a user has no data available, its time slot remains unused, resulting in some bandwidth wastage.
Statistical TDM
In statistical TDM, time slots are allocated only to users who actually have data to transmit.
This improves bandwidth utilization and increases communication efficiency.
Advantages of TDM
TDM provides efficient utilization of bandwidth and does not require separate frequency bands.
It is particularly suitable for digital communication systems and supports a large number of users
through a single communication channel.
Disadvantages of TDM
The main disadvantage of TDM is that accurate synchronization is required between sender and
receiver.
If many users share the channel, delays may occur while waiting for a time slot.
Applications of TDM
• Telephone Networks
• Computer Networks
Introduction
It is based on the same principle as Frequency Division Multiplexing, but instead of using different
frequencies, it uses different wavelengths of light.
WDM allows multiple optical signals to travel simultaneously through a single optical fiber, greatly
increasing the capacity of the communication system.
Working of WDM
In WDM, different data streams are converted into light signals of different wavelengths. These light
signals are combined using a multiplexer and transmitted through a single optical fiber.
Since each wavelength behaves like an independent communication channel, multiple signals can
travel through the fiber simultaneously without interfering with one another.
At the receiving end, a demultiplexer separates the wavelengths and delivers the original data
streams to their respective destinations.
This technique allows enormous amounts of information to be transmitted through a single fiber
optic cable.
Advantages of WDM
The most important advantage of WDM is its extremely high transmission capacity.
It makes efficient use of optical fiber and supports long-distance communication with very high data
rates.
WDM is also scalable because additional wavelengths can be added whenever more capacity is
required.
Disadvantages of WDM
WDM systems are expensive because they require sophisticated optical equipment.
Installation, operation, and maintenance are more complex compared to FDM and TDM systems.
Applications of WDM
Introduction
Unguided Transmission Media is a communication medium in which signals travel through air,
vacuum, or space in the form of electromagnetic waves. Since no physical cable is required, it is also
known as Wireless Communication.
The major types of unguided transmission media are:
• Radio Waves
• Microwaves
• Infrared Communication
• Satellite Communication
• Radio Waves
Introduction
Radio waves are electromagnetic waves used for wireless communication. They can travel long
distances and spread in all directions from the transmitting antenna. Because radio waves can pass
through walls, buildings, and other obstacles, they are widely used in broadcasting and mobile
communication.
Radio waves are one of the oldest and most commonly used forms of wireless communication.
In radio communication, the transmitter converts information into radio signals and sends them
through an antenna.
These signals travel through the atmosphere and are received by another antenna at the receiving
end.
The receiver converts the radio waves back into useful information such as sound, video, or data.
• Television Broadcasting
• Mobile Communication
• Wireless Networking
Radio waves can travel over large distances and cover wide geographical areas. This makes them
suitable for broadcasting services.
• No Line-of-Sight Requirement
The transmitter and receiver do not need to face each other directly because radio waves can pass
through buildings and obstacles.
Since physical cables are not required, the cost of installation is relatively low.
• Supports Mobility
Users can move freely while communicating, making radio waves suitable for mobile communication
systems.
• Susceptible to Interference
Radio waves can be affected by electrical equipment, weather conditions, and other radio signals.
• Lower Security
Because signals are broadcast in all directions, unauthorized users may intercept communication.
• Limited Bandwidth
• Microwaves
Introduction
Microwaves are high-frequency electromagnetic waves used for communication over long distances.
Unlike radio waves, microwaves travel in straight lines and usually require a direct line-of-sight path
between the transmitter and receiver.
Because of their high frequency, microwaves can carry large amounts of information and support
high-speed communication.
Working of Microwaves
The transmitter sends microwave signals directly toward the receiving antenna.
Since microwaves travel in straight lines, obstacles such as mountains and buildings can block
communication.
Applications of Microwaves
• Cellular Networks
• Television Transmission
• Internet Communication
Advantages of Microwaves
Microwaves can carry large amounts of information and support high-speed communication.
• Long-Distance Communication
Microwave links can transmit signals over long distances using communication towers.
Disadvantages of Microwaves
Heavy rain, storms, and atmospheric conditions may weaken microwave signals.
• Expensive Installation
• Infrared Communication
Introduction
Infrared communication uses infrared light waves for data transmission over short distances. Infrared
waves have frequencies higher than microwaves but lower than visible light.
Because infrared signals cannot pass through walls, they are mainly used for communication within a
limited area.
For successful communication, both devices generally need to be positioned in the same direction.
• TV Remote Controls
• Wireless Keyboards
• Wireless Mouse
• Low Cost
• Better Security
• Simple Implementation
• Obstacle Sensitivity
• Directional Communication
The sender and receiver often need proper alignment for communication.
• Satellite Communication
Introduction
Uplink
Signal Processing
Downlink
Because satellites are located high above the Earth, they can provide communication coverage over
large areas.
• Television Broadcasting
• GPS Navigation
• Weather Forecasting
• Internet Connectivity
• Global Coverage
Voice, video, television, and Internet services can all be transmitted through satellites.
• Long-Distance Communication
• Signal Delay
Signals must travel long distances between Earth and the satellite, causing transmission delays.
• Weather Effects
• Complex Technology
Good. We will start one by one and in exam-writing style, not short notes.
Introduction
Communication over a computer network is a very complex process. When one computer sends data
to another computer, many operations take place simultaneously. Data must be prepared,
addressed, transmitted through the communication medium, received correctly, checked for errors,
and delivered to the appropriate application.
If all these tasks were performed by a single program, network design would become extremely
difficult. Therefore, network communication is divided into several layers. This approach is known as
Layered Architecture.
A layered architecture divides the communication process into different layers, where each layer
performs a specific function. Each layer provides services to the layer above it and receives services
from the layer below it. This division makes network design simpler, more organized, and easier to
maintain.
For example:
Each layer performs its task independently and passes the result to the next layer.
Because of this arrangement, changes made in one layer usually do not affect other layers.
The email does not travel directly from one computer to another. Instead, it passes through several
layers.
At the sender side, each layer adds its own information to the data and passes it to the next lower
layer.
When the data reaches the receiver, each layer removes the information added by the corresponding
layer at the sender side and processes the data.
Dividing communication into layers makes network design easier to understand and implement.
• Easier Troubleshooting
If a problem occurs, it can be identified within a specific layer rather than searching through the
entire network system.
• Modularity
Each layer performs a separate task independently. Therefore, modifications can be made without
affecting the entire network.
• Standardization
Layered architecture provides standard interfaces and protocols that allow different manufacturers'
devices to communicate with each other.
• Flexibility
New technologies can be introduced in one layer without changing all other layers.
• Increased Complexity
The use of multiple layers sometimes makes the communication process more complex.
• Processing Overhead
Each layer adds its own control information, increasing processing time and overhead.
• Duplication of Functions
Some functions such as error control may be performed by multiple layers, resulting in inefficiency.
The OSI Model and TCP/IP Model, which are the most important network reference models, are both
based on the concept of layered architecture.
Conclusion
Layered architecture is a method of organizing network communication into multiple layers, where
each layer performs a specific function and provides services to the next layer. This approach
simplifies network design, improves maintainability, and promotes standardization. Because of these
advantages, layered architecture has become the basis of modern networking systems.
Exam Tip
For 5 marks:
• Definition
• Working
• Advantages
For 10 marks:
• Introduction
• Concept
• Working
• Advantages
• Disadvantages
• Conclusion
Next Topic:
Protocol Hierarchy (very important because it comes before OSI Model and TCP/IP Model).
Good. We will start one by one and in exam-writing style, not short notes.
Introduction
Communication over a computer network is a very complex process. When one computer sends data
to another computer, many operations take place simultaneously. Data must be prepared,
addressed, transmitted through the communication medium, received correctly, checked for errors,
and delivered to the appropriate application.
If all these tasks were performed by a single program, network design would become extremely
difficult. Therefore, network communication is divided into several layers. This approach is known as
Layered Architecture.
A layered architecture divides the communication process into different layers, where each layer
performs a specific function. Each layer provides services to the layer above it and receives services
from the layer below it. This division makes network design simpler, more organized, and easier to
maintain.
For example:
Each layer performs its task independently and passes the result to the next layer.
Because of this arrangement, changes made in one layer usually do not affect other layers.
The email does not travel directly from one computer to another. Instead, it passes through several
layers.
At the sender side, each layer adds its own information to the data and passes it to the next lower
layer.
When the data reaches the receiver, each layer removes the information added by the corresponding
layer at the sender side and processes the data.
Finally, the message reaches the intended application.
Dividing communication into layers makes network design easier to understand and implement.
• Easier Troubleshooting
If a problem occurs, it can be identified within a specific layer rather than searching through the
entire network system.
• Modularity
Each layer performs a separate task independently. Therefore, modifications can be made without
affecting the entire network.
• Standardization
Layered architecture provides standard interfaces and protocols that allow different manufacturers'
devices to communicate with each other.
• Flexibility
New technologies can be introduced in one layer without changing all other layers.
• Increased Complexity
The use of multiple layers sometimes makes the communication process more complex.
• Processing Overhead
Each layer adds its own control information, increasing processing time and overhead.
• Duplication of Functions
Some functions such as error control may be performed by multiple layers, resulting in inefficiency.
The OSI Model and TCP/IP Model, which are the most important network reference models, are both
based on the concept of layered architecture.
Conclusion
Layered architecture is a method of organizing network communication into multiple layers, where
each layer performs a specific function and provides services to the next layer. This approach
simplifies network design, improves maintainability, and promotes standardization. Because of these
advantages, layered architecture has become the basis of modern networking systems.
Exam Tip
For 5 marks:
• Definition
• Working
• Advantages
For 10 marks:
• Introduction
• Concept
• Working
• Advantages
• Disadvantages
• Conclusion
Next Topic:
Protocol Hierarchy (very important because it comes before OSI Model and TCP/IP Model).
Introduction
The TCP/IP Reference Model is the most widely used networking model in the world. It was
developed by the U.S. Department of Defense (DoD) for communication in ARPANET, which later
became the Internet.
TCP/IP stands for Transmission Control Protocol / Internet Protocol. This model provides a set of
communication rules that allow computers connected to different networks to communicate with
each other.
Unlike the OSI model, which is mainly a theoretical model, the TCP/IP model is a practical model and
forms the basis of the modern Internet.
The main objective of the TCP/IP model is to provide reliable communication between
interconnected networks.
• Layers of TCP/IP Model
4. Application Layer
3. Transport Layer
2. Internet Layer
Some books also show a five-layer version by separating the Physical and Data Link layers. However,
the standard TCP/IP model contains four layers.
Introduction
The Network Access Layer is the lowest layer of the TCP/IP model. It is responsible for transmitting
data through the physical network.
This layer combines the functions of the Physical Layer and Data Link Layer of the OSI model.
It deals with hardware addressing, framing, and actual transmission of data over communication
media.
This layer transmits bits through cables, optical fibers, or wireless media.
• Framing
• Hardware Addressing
• Error Detection
Examples
• Ethernet
• Wi-Fi
• Token Ring
2. Internet Layer
Introduction
The Internet Layer is responsible for delivering packets from the source network to the destination
network.
• Logical Addressing
• Routing
• Packet Delivery
• Fragmentation
Protocols Used
• IP (Internet Protocol)
3. Transport Layer
Introduction
The Transport Layer provides end-to-end communication between source and destination systems.
Its primary responsibility is to ensure reliable and efficient delivery of data.
• Segmentation
• Flow Control
• Error Control
• End-to-End Communication
• Reliability
Protocols Used
4. Application Layer
Introduction
This layer combines the functions of the Application, Presentation, and Session layers of the OSI
model.
• Email Communication
• Remote Login
• Web Services
• Name Resolution
Protocols Used
• HTTP
• HTTPS
• FTP
• SMTP
• DNS
• Telnet
Step 1
Step 2
The Transport Layer divides the data into segments and adds TCP information.
Step 3
Step 4
The Network Access Layer converts the data into frames and transmits it through the network.
At the receiving side, the same layers process the data in reverse order until it reaches the
destination application.
• Open Standard
• Scalable
It supports networks of all sizes, from small LANs to the global Internet.
• Reliable Communication
• Interoperability
• Practical Implementation
• Complex Configuration
The TCP/IP model does not clearly define services and interfaces as OSI does.
Conclusion
The TCP/IP Reference Model is the practical networking model used on the Internet. It consists of
four layers: Network Access, Internet, Transport, and Application. Each layer performs specific
communication functions and works together to ensure reliable data transmission. Because of its
flexibility, scalability, and practical implementation, TCP/IP has become the standard networking
model used throughout the world.
OSI vs TCP/IP (Very Important for Exam)
7 Layers 4 Layers
Exam Tip
Protocol Hierarchy
Introduction
To make communication manageable, these tasks are divided among different layers. Each layer
follows a set of rules known as Protocols. The arrangement of these protocols into different layers is
called a Protocol Hierarchy.
A protocol hierarchy provides a structured way for computers to communicate efficiently and
reliably.
• What is a Protocol?
A protocol is a set of rules and procedures that govern communication between devices in a
network.
Just as people follow a common language while communicating, computers follow protocols to
exchange information correctly.
Protocols define:
Each layer performs a specific task and uses its own protocol. The layers work together to provide
complete communication services.
Instead of handling all communication functions at once, the network divides responsibilities among
layers.
When a user sends data from one computer to another, the data passes through several layers.
Each layer performs a specific operation and adds its own control information before passing the
data to the next lower layer.
At the receiving side, the same layers work in reverse order. Each layer removes the information
added by the corresponding layer at the sender side.
This process continues until the original message reaches the destination application.
For example:
• Peer-to-Peer Communication
Each layer on the sender communicates logically with the corresponding layer on the receiver.
For example:
Although the actual data travels through lower layers, each layer behaves as if it is directly
communicating with its counterpart on the remote machine.
• Simplifies Communication
Breaking communication into layers makes the networking process easier to understand and
manage.
• Modularity
Each layer performs a specific function independently. Changes in one layer do not significantly affect
other layers.
• Easier Maintenance
• Standardization
Protocol hierarchy allows devices from different manufacturers to communicate using common
standards.
• Flexibility
New protocols can be introduced without redesigning the entire network system.
• Increased Overhead
Each layer adds control information to the data, increasing transmission overhead.
• Complexity
• Performance Reduction
The most popular network models such as the OSI Reference Model and TCP/IP Reference Model
are based on the concept of protocol hierarchy.
Conclusion
Exam Tip
• Introduction
• Definition of Protocol
• Working
• Peer-to-Peer Communication
• Advantages
• Disadvantages
• Conclusion
Next Topic:
Interface and Services (very important and often asked before OSI Model).
Introduction
In a layered network architecture, each layer performs a specific task and provides certain facilities to
the layer above it. For communication to work properly, layers must interact with each other in a
well-defined manner.
Two important concepts used in layered architectures are Services and Interfaces.
A service defines what a layer does, while an interface defines how the layer above accesses those
services.
Understanding services and interfaces is important because the OSI and TCP/IP models are built on
these concepts.
• Service
Definition
A service is a set of functions or facilities provided by one layer to the layer above it.
In simple words, a service is the work performed by a lower layer for the benefit of the upper layer.
Each layer uses the services of the layer below it and provides services to the layer above it.
Understanding Services
The Application Layer wants the message to reach the destination. It does not need to know how the
message travels through routers, cables, or wireless networks.
The lower layers handle all these tasks and provide communication services to the Application Layer.
Thus, the Application Layer uses the service without knowing its internal implementation.
Characteristics of Services
Services help transfer data, establish connections, detect errors, and perform many other networking
functions.
Since each layer provides services independently, changes can be made without affecting other
layers.
• Types of Services
1. Connection-Oriented Service
Introduction
The sender and receiver first create a communication path and then exchange data.
Working
Connection Establishment
Data Transfer
Connection Termination
Advantages
• Reliable Communication
• Error Control
• Flow Control
Disadvantages
• Additional Overhead
• More Complex
Example
TCP (Transmission Control Protocol)
2. Connectionless Service
Introduction
The sender simply sends the data and the network attempts to deliver it.
Working
Advantages
• Faster Communication
• Less Overhead
• Simple Implementation
Disadvantages
• Less Reliable
• No Guaranteed Delivery
Example
Definition
An interface is the boundary between two adjacent layers through which services are provided and
accessed.
In simple words, an interface defines how one layer communicates with the layer immediately above
or below it.
Without interfaces, layers would not know how to request services from one another.
Functions of an Interface
• Service Access
• Standardization
• Independence
Service Interface
Example: Reliable data transfer Example: Method used to request data transfer
They make network design modular and organized. Services define the responsibilities of each layer,
while interfaces provide a standardized method for accessing those services.
Because of these concepts, complex communication systems such as the OSI and TCP/IP models can
function efficiently.
Conclusion
A service is a facility provided by one layer to another layer, whereas an interface is the boundary
through which these services are accessed. Services may be connection-oriented or connectionless
depending on communication requirements. Together, services and interfaces form the foundation
of layered network architectures and enable efficient communication between network layers.
Exam Tip
Next Topic:
ISO-OSI Reference Model (7 Layers) — one of the most important 10–15 mark topics in Computer
Networks.
Introduction
As computer networks started growing, different manufacturers developed their own networking
systems. These systems were often incompatible with each other, making communication difficult. To
solve this problem, the International Organization for Standardization (ISO) developed a standard
networking model known as the OSI (Open Systems Interconnection) Reference Model in 1984.
The OSI model provides a framework for understanding how data travels from one computer to
another over a network. It divides the communication process into seven layers, where each layer
performs a specific function and provides services to the layer above it.
The main objective of the OSI model is to standardize network communication and ensure
interoperability between different systems.
As a result:
The OSI model solved these problems by providing a common standard for communication.
7. Application Layer
6. Presentation Layer
5. Session Layer
4. Transport Layer
3. Network Layer
1. Physical Layer
Data moves from the Application Layer down to the Physical Layer at the sender side and then moves
upward from the Physical Layer to the Application Layer at the receiver side.
1. Physical Layer
Introduction
The Physical Layer is the lowest layer of the OSI model. It is responsible for the actual transmission of
bits through the communication medium.
This layer deals with the physical connection between devices and defines how bits are transmitted
over cables, optical fibers, or wireless channels.
• Transmission of Bits
The Physical Layer transmits raw binary bits (0s and 1s) from one device to another.
• Physical Connection
• Transmission Media
Devices Associated
• Hubs
• Repeaters
• Cables
• Connectors
Introduction
The Data Link Layer is responsible for reliable node-to-node communication. It receives raw data
from the Physical Layer and converts it into frames.
Its primary purpose is to ensure error-free transmission between directly connected devices.
• Framing
• Error Detection
• Flow Control
• Access Control
It determines which device can use the communication channel at a particular time.
• Physical Addressing
• Switches
• Bridges
3. Network Layer
Introduction
The Network Layer is responsible for delivering packets from the source network to the destination
network.
It determines the best path for data transmission and handles logical addressing.
• Routing
• Logical Addressing
• Packet Forwarding
• Congestion Control
Devices Associated
• Routers
4. Transport Layer
Introduction
The Transport Layer ensures reliable communication between source and destination systems.
It is responsible for end-to-end delivery of data and guarantees that data arrives correctly.
• Segmentation
• Flow Control
• End-to-End Communication
• Reliability
Protocols Used
• TCP
• UDP
5. Session Layer
Introduction
The Session Layer establishes, manages, and terminates communication sessions between
applications.
• Session Establishment
• Session Maintenance
• Session Termination
• Synchronization
Example
Introduction
The Presentation Layer acts as a translator between the application layer and the network.
Different systems may use different data formats. The Presentation Layer converts data into a
common format.
• Data Translation
• Encryption
• Decryption
• Data Compression
Example
7. Application Layer
Introduction
The Application Layer is the topmost layer of the OSI model. It provides services directly to the user
and enables applications to access network resources.
This layer acts as the interface between users and the network.
• File Transfer
• Email Services
• Web Access
Enables access to websites and web services.
• Remote Login
Protocols Used
• HTTP
• FTP
• SMTP
• DNS
• Standardization
• Modular Design
• Easier Troubleshooting
• Interoperability
• Flexibility
Changes in one layer do not affect other layers.
• Complex Structure
• Higher Overhead
Modern networks primarily use the TCP/IP model instead of the complete OSI model.
Conclusion
The OSI Reference Model is a seven-layer framework developed by ISO to standardize network
communication. Each layer performs specific functions and provides services to the layer above it.
The model simplifies network design, promotes interoperability, and helps understand how data
travels through a network. Although modern networks mainly use TCP/IP, the OSI model remains the
most important conceptual model for studying computer networks.
Exam Tip
• Introduction
• Diagram of 7 layers
• Data Flow
• Advantages
• Disadvantages
• Conclusion
This is one of the most important topics in Computer Networks and is asked almost every year.
Next Topic:
TCP/IP Reference Model (very important because examiners often ask: "Compare OSI and TCP/IP
Models").