Difference between encapsulation and decapsulation

difference encapsulation and decapsulation

Key difference - Encapsulation vs decapsulation

Data is important for every organization. Therefore, it is necessary to easily send the data to another location with minimum time. Data can be sent to the destination over the network. A network is a collection of interconnected devices such as computers and printers for sharing resources. When there are a large number of hosts, the network becomes complex. Connecting different computers increases the incompatibility. Therefore, open standard network models have been improved. The International Organization for Standardization (OSI) and Transmission Control Protocol / Internet Protocol (TCP / IP) are two common network models. TCP / IP is the new network model which replaces the OSI model. These models contain layers. Data passes through the data communication layers. Encapsulation and Decapsulation are two terms related to the transmission of data through each layer. the key difference between encapsulation and decapsulation is that , during encapsulation, the data moves from the upper layer to the lower layer and each layer includes a packet of information, called a header, with the actual data, while from decapsulation, data moves from the bottom layer to the top layers. the layer decompresses the corresponding headers to obtain the actual data.

What is encapsulation ?

Network models are used to standardize network communication. When sending data from one location to another, the data goes through several layers. The TCP / IP model has four layers. They are the application layer, the transport layer, the internet layer and the network access layer. Each layer plays a specific role in the TCP / IP model. The application layer includes all the services provided to the end user, such as messaging, web browsing, etc. The transport layer manages host-to-host communications. In the network layer, data is called packets. It provides source and destination IP addresses that identify the location on the network. Each device on the network has an IP address. In the network access layer, the package is called a frame. In this layer, the packet from the Internet layer is assigned the source and destination MAC addresses. The MAC address is the physical address. Finally, the frame is sent outside the network.

Suppose an email is sent. Email is created in the application layer. The email must pass the order of the transport layer, the Internet layer and the network access layer, using different protocols and exiting a computer using a wireless or wired network interface. Then the email goes through the network and arrives at the destination. Then the email goes from the network access layer, the Internet layer and the transport layer to the application layer in order.

difference encapsulation and decapsulation
Encapsulation is the process of adding information to the data in the application layer when it is sent through each layer of the model. Each time the data crosses a layer, a new protocol data unit (PDU) is created. Data sent from the application layer added a header with information about TCP / UDP in the transport layer. Now the data is called a segment. When this segment reaches the Internet layer, a header with IP addresses is added. Now it's called a package. When the packet reaches the network access layer, a header with MAC addresses is added. Now he is known as a cadre. Likewise, in each layer, a protocol data unit (PDU) is created. The adding this information to each layer is called Encapsulation. Once the encapsulation process is complete, the frame is sent to the network.

What is decapsulation?

As explained in the encapsulation process, the frame leaves the host computer to the network. Then it reaches the destination host. In the destination host, the frame is decapsulated in reverse order to the application layer. The frame that reaches the network access layer contains the data, the TCP / UDP header, the header with IP addresses and the header with MAC addresses.

When sent to the network layer, it is a packet containing data, a TCP / UDP header and a header with an IP address. Then the package reaches the transport layer. Now it is segmented and contains data and a TCP / UDP header. Finally, the segment reaches the application layer. In the application layer, the host can see the data sent from the source computer. This process is called decapsulation.

What is the similarity between encapsulation and decapsulation?

Encapsulation and decapsulation are related to how data is sent and received over the network according to network models.

What is the difference between encapsulation and decapsulation?

Encapsulation vs decapsulation

When data moves from the upper layer to the lower layer according to a network model, each layer includes an information packet called a header, as well as the actual data. This set of data in each layer is called encapsulation. As the data moves from the lower layer to the upper layers depending on the network model, each layer decompresses the corresponding headers and uses this information to obtain the actual data. This decompaction of the data in each layer is called decapsulation.
 Occurrence
Encapsulation occurs on the source computer. Decapsulation occurs on the destination computer.

Summary - Encapsulation  vs decapsulation 

A network is a connection with a large number of devices. These devices are different from each other. This can create compatibility issues. To avoid this, all devices on the network use the standard network model for data communication. A major network model is the TCP / IP model. These models consist of a number of layers. Data that should be transferred to a new location must go through each layer. When each layer is reached, the information is added to the data. This is called encapsulation. When the data reaches the destination, the added information is decompressed in each layer. This process is called decapsulation. The difference between encapsulation and decapsulation is that,

Download the PDF of Encapsulation vs Decapsulation

You can download the PDF version of this article and use it for offline purposes as per the citation note. Please download the PDF version here: Difference between encapsulation and decapsulation

Post a Comment

0 Comments