📜  封装和解封装的区别

📅  最后修改于: 2022-05-13 01:57:02.743000             🧑  作者: Mango

封装和解封装的区别

概述 :
本文将让您了解封装和解封装,以及它们之间的区别。在任何类型的数据传输中,确保和建立两个或多个网络或设备之间的安全通信非常重要。并且只有在此过程中涉及的时间量最小化时,才认为整个传输是有效的。

封装:
封装是指在应用层数据中附加新信息,因为它被传递到 TCP/IP 模型中的下一层。这个附加信息基本上分为两部分,Header 和 Trailer。这些是为了使传输更流畅而附加的元素,在每一层上都会生成一个 PDU(协议数据单元)。封装的概念可以在前面附加的屏幕截图中总结。

解封装:
解封装是指去除所有这些附加信息并提取原始存在的数据,这个过程一直持续到最后一层,即应用层。当每一层接近该层时,此过程会移除每一层中不同信息的碎片。这是整个过程的图示。

封装和解封装的区别:
现在,让我们看看封装和解封装之间的区别。

S.No.

ENCAPSULATION                                                                  

DECAPSULATION                                                                   
1.The data moment starts from the upper layer and terminates finally on the lowest layer.Whereas, here the data moves from the lower layer till the upper layer.
2.The process involves addition of header and trailer section.This process involves removal of header and trailer sections
3.This process executes first and is followed by decapsulation.This process executes once encapsulation is finally completed.
4.It occurs inside the source device.It occurs inside the destination device.