What is Data Encapsulation and de-encapsulation in networking?
Last Updated :
05 Nov, 2021
This article is all about Data Encapsulation and Decapsulation in Networking. Both encapsulation and decapsulation processes are simultaneously running over a network in order to make effective communication possible. Encapsulation is the process which is executed on the sender's side whereas decapsulation occurs on the receiver's side.
Now, let's look at the step-by-step procedures of Encapsulation and Decapsulation.
ENCAPSULATION PROCESS :
Step-1 :
The process starts from the Application, Presentation and Session layer in the OSI model or Application layer in TCP/IP model, takes the data input from user and adds a header section (optional) then forwards it to the Transport layer.
Step-2 :
After this, further the transport layer again adds additional new information, called "segment header". This whole data packet is called "Segment" and at the end while decapsulation, this information is required. Now, this data is passed onto the next layer in the model, Network Layer.
Step-3 :
Similarly, the Network Layer adds header and trailer sections in the "Data Segment" received from the Transport Layer and forms new entity called as a Datagram. This data is further passed onto the Data Link Layer.
Step-4 :
Again, the Data Link Layer adds another field of data on the input received from the Network Layer. And this whole new data fragment is passed to the next layer, i.e. Physical Layer.
Step-5 :
At the end, the last layer Physical Layer adds the ultimate data in the input received from the previous layer. And the process of Encapsulation terminates.
The whole Encapsulation process can be summarized in this picture.
DECAPSULATION PROCESS :
Step-1 :
The process starts from the Physical Layer in the OSI model or TCP/IP model, takes the encapsulated data input signal and decapsulates the whole data into a Datagram and forwards it to the Data Link Layer.
Step-2 :
After this, further the Data Link Layer again cuts off additional new information. This whole datagram is decapsulated, analyzed and both header and trailer are checked, if everything is found correct. Now, this partially decapsulated data is passed onto the next layer in the model, Network Layer.
Step-3 :
Similarly, the Network Layer decapsulates header and trailer sections in the Data Segment received from the Data Link Layer is further passed onto the Transport Layer.
Step-4 :
Again, the Transport Layer decapsulates another field of data on the input received from the Network Layer. And further this data fragment is passed to the next layer, Application Layer.
Step-5 :
At the end, the last Application Layer completely decapsulates the data fragment input received from the previous layer. And the process of Decapsulation terminates.
The whole Decapsulation process can be summarized in this picture.
Similar Reads
How Data Encapsulation and De-encapsulation Works?
Data encapsulation and de-encapsulation are fundamental concepts in computer networking and communication protocols. These processes are essential for transferring data across networks efficiently and securely. What is Data Encapsulation?Encapsulation is the process of adding additional information
4 min read
What is Broadcasting in Computer Network?
In computer network, there are various ways in which we can transmit data from one node to another node, one node to multiple node, and many node to many nodes. For each type of transmission, there's a term associated with it. Let's see their examples in brief : For node to node: 'Unicast' also know
9 min read
Difference between encapsulation and decapsulation
In data communication there are two concept involves in transmission namely encapsulation and decapsulation. Encapsulation adds addition information to a send packet as it travels to its destination,and Decapsulation is the reverse process of encapsulation, So a receiver node can read the original s
5 min read
What is Bridge in Computer Network - Types, Uses, Functions & Differences
The bridge is a networking device in a computer network that is used to connect multiple LANs to a larger LAN. In computer networks, we have multiple networking devices such as bridges, hubs, routers, switches, etc, each device has its own specification and is used for a particular purpose. The brid
6 min read
What is Computer Networking?
Computer networking is like having a group of friends who all have phones and can call or text each other. In computer networking, instead of phones, we have computers and instead of phone lines, we use cables, Wi-Fi, or other methods to connect them. When computers are connected to a network, they
15+ min read
Data Encapsulation in Objective-C
Encapsulation is an Object-Oriented Programming concept that binds together the data and functions that manipulate the data and that keeps both safe from outside interference and misuse. Data encapsulation led to the important OOP concept of data hiding. Encapsulation in Objective-C is vital for pro
6 min read
Difference Between Computer Network and Data Communication
Computer Network: A computer network is a group of computer systems and other computing hardware devices that are linked through communication channels. A Computer Network enables file sharing across the network. It helps the web information to traverse more easily and conveniently. It allows the sh
3 min read
Advantages and Disadvantages of Computer Networking
Pre-requisites: What is Computer Networking?The computer network is defined as a set of interconnected autonomous systems that facilitate distributed processing of information. It results in better performance with a high speed of processing. Computer Networks can be defined as collections of two or
5 min read
What is Encapsulating Security Payload ?
Cyber Security is the branch of computer technology that deals with the security of the virtual cloud and internet. Any information that is stored or transmitted through the cloud needs to be secure and safe. Cyber Networking plays a very important role in maintaining that the connection established
5 min read
What is Digital Networking?
Digital Network refers to the social network built through the use of digital technologies. It supports digital switching and digital transmission of voice, video, data, and other network services. It has marketplaces, data networks, and communications networks that provide a platform that align the
4 min read